org.apache.beehive.netui.tags.tree
Class InheritableState

Object
  extended by InheritableState
All Implemented Interfaces:
Serializable

public class InheritableState
extends Object
implements Serializable

This is a set of tree properties that are used to render the tree markup.

See Also:
Serialized Form

Field Summary
static String DEFAULT_IMAGES
          The default directory name for icon images.
 
Constructor Summary
InheritableState()
           
 
Method Summary
 String getExpansionAction()
           
 String getIconRoot()
          This will return the location of the icon images.
 String getImageRoot()
          Return the default location of all images.
 String getImageSpacer()
           
 String getItemIcon()
           
 String getLastLineJoinImage()
           
 String getLastNodeCollapsedImage()
           
 String getLastNodeExpandedImage()
           
 String getLineJoinImage()
           
 String getNodeCollapsedImage()
           
 String getNodeExpandedImage()
           
 InheritableState getParent()
           
 String getSelectionAction()
           
 String getSelectionTarget()
           
 String getVerticalLineImage()
           
 void initalizeTreeState()
          This method initalizes the state of the properties to their default values used by the tree tag to create the tree markup.
 void setExpansionAction(String action)
           
 void setIconRoot(String iconRoot)
          This will set the location of the icon images.
 void setImageRoot(String imageRoot)
          Sets the default location of all the images.
 void setImageSpacer(String imageSpacer)
           
 void setItemIcon(String itemIcon)
           
 void setLastLineJoinImage(String imageLineLast)
           
 void setLastNodeCollapsedImage(String lastNodeCollapsedImage)
           
 void setLastNodeExpandedImage(String lastNodeExpandedImage)
           
 void setLineJoinImage(String imageLineMiddle)
           
 void setNodeCollapsedImage(String nodeCollapsedImage)
           
 void setNodeExpandedImage(String nodeExpandedImage)
           
 void setParent(InheritableState parent)
           
 void setSelectionAction(String action)
           
 void setSelectionTarget(String target)
           
 void setVerticalLineImage(String imageLineVertical)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IMAGES

public static final String DEFAULT_IMAGES
The default directory name for icon images.

See Also:
Constant Field Values
Constructor Detail

InheritableState

public InheritableState()
Method Detail

setParent

public void setParent(InheritableState parent)

getParent

public InheritableState getParent()

getLastNodeExpandedImage

public String getLastNodeExpandedImage()

setLastNodeExpandedImage

public void setLastNodeExpandedImage(String lastNodeExpandedImage)

getNodeExpandedImage

public String getNodeExpandedImage()

setNodeExpandedImage

public void setNodeExpandedImage(String nodeExpandedImage)

getLastNodeCollapsedImage

public String getLastNodeCollapsedImage()

setLastNodeCollapsedImage

public void setLastNodeCollapsedImage(String lastNodeCollapsedImage)

getNodeCollapsedImage

public String getNodeCollapsedImage()

setNodeCollapsedImage

public void setNodeCollapsedImage(String nodeCollapsedImage)

getLastLineJoinImage

public String getLastLineJoinImage()

setLastLineJoinImage

public void setLastLineJoinImage(String imageLineLast)

getLineJoinImage

public String getLineJoinImage()

setLineJoinImage

public void setLineJoinImage(String imageLineMiddle)

getVerticalLineImage

public String getVerticalLineImage()

setVerticalLineImage

public void setVerticalLineImage(String imageLineVertical)

getImageSpacer

public String getImageSpacer()

setImageSpacer

public void setImageSpacer(String imageSpacer)

getItemIcon

public String getItemIcon()

setItemIcon

public void setItemIcon(String itemIcon)

getSelectionAction

public String getSelectionAction()

setSelectionAction

public void setSelectionAction(String action)

getExpansionAction

public String getExpansionAction()

setExpansionAction

public void setExpansionAction(String action)

getSelectionTarget

public String getSelectionTarget()

setSelectionTarget

public void setSelectionTarget(String target)

getImageRoot

public String getImageRoot()
Return the default location of all images. It is used as the location for the tree structure images.

Returns:

setImageRoot

public void setImageRoot(String imageRoot)
Sets the default location of all the images.

Parameters:
imageRoot -

getIconRoot

public String getIconRoot()
This will return the location of the icon images. When the location is explicitly set, this works exactly the same as all other inheritable properties. When this is not set, it will return the getImageRoot location.

Returns:
a String value of the icon root.

setIconRoot

public void setIconRoot(String iconRoot)
This will set the location of the icon images.

Parameters:
iconRoot - the location of the icon images.

initalizeTreeState

public void initalizeTreeState()
This method initalizes the state of the properties to their default values used by the tree tag to create the tree markup.