org.apache.beehive.netui.tags
Class TagConfig

Object
  extended by TagConfig

public final class TagConfig
extends Object

This class implements a series of static method that will return configuration information. The information is buffered, and config properties values defined here. The document type configuration is not found in this class. It is found TagRenderBase TagRenderingBase and the HTML tag Html.


Constructor Summary
TagConfig()
           
 
Method Summary
static String getTreeImageLocation()
          This method returns the default location for the tree images.
static String getTreeRendererClassName()
          This method returns the class name of the renderer to use for NetUI trees in the Web application.
static boolean isDefaultJavaScript()
          Return true if the default JavaScript support should be written to the output stream.
static boolean isLegacyJavaScript()
          Return true if the legacy JavaScript support should be written to the output stream.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagConfig

public TagConfig()
Method Detail

isLegacyJavaScript

public static boolean isLegacyJavaScript()
Return true if the legacy JavaScript support should be written to the output stream.

Returns:
boolean

isDefaultJavaScript

public static boolean isDefaultJavaScript()
Return true if the default JavaScript support should be written to the output stream.

Returns:
boolean

getTreeImageLocation

public static String getTreeImageLocation()
This method returns the default location for the tree images. This may be configured by setting the <tree-image-location> element in the netui.config file to the location of the images. This location should not include the context path of the webapp or the leading '/', but should be an absolute path within the webapp.

<tree-image-location>resources/images</tree-image-location>

Returns:
the default location of the tree images.

getTreeRendererClassName

public static String getTreeRendererClassName()
This method returns the class name of the renderer to use for NetUI trees in the Web application. The class name returned will usually be the predefined default NetUI implementation, TreeRenderer, unless NetUI is configured to use a different implementation. This may be configured by setting the <tree-renderer-class> element in the beehive-netui-config file to the name of a class that extends TreeRenderer.

<tree-renderer-class>com.xyz.tree.CustomTreeRenderer</tree-renderer-class>

Note that the NetUI Tree tag has an attribute for setting the name of the TreeRenderer class to use on a tree by tree bases.

Returns:
the name of the class to use to renderer the trees in the application.