|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTreeElement
TreeRootElement
public class TreeRootElement
This is a concrete implementation of ITreeRootElement
. It is a subclass of the
TreeElement
and is created for the root element when a tree is defined
through JSP tags.
Field Summary |
---|
Constructor Summary | |
---|---|
TreeRootElement()
Default constructor for creating a simple tree. |
|
TreeRootElement(String label,
boolean expanded)
Construct a new TreeElement with the specified parameters. |
Method Summary | |
---|---|
void |
changeSelected(String selectNode,
ServletRequest request)
Change the node that is selected. |
InheritableState |
getInheritableState()
Property that returns the InheritableState that was set on the Tree. |
String |
getObjectName()
Returns the ObjectName of the INameable object. |
String |
getRootNodeCollapsedImage()
Returns the collapsed image for the root node. |
String |
getRootNodeExpandedImage()
Returns the expanded image for the root node. |
TreeElement |
getSelectedNode()
Return the currently selected TreeElement . |
TreeRenderState |
getTreeRenderState()
return the TreeRenderState for this tree. |
void |
setInheritableState(InheritableState state)
Property that sets the InheritableState that is set on the Tree tag. |
void |
setObjectName(String name)
Set the ObjectName of the INameable object. |
void |
setRootNodeCollapsedImage(String rootNodeCollapsedImage)
Sets the name of the collapsed image for the root node. |
void |
setRootNodeExpandedImage(String rootNodeExpandedImage)
Sets the expanded image for the root node. |
void |
setTreeRenderState(TreeRenderState trs)
Set the TreeRenderState |
Methods inherited from class TreeElement |
---|
addAttribute, addChild, addChild, addParameter, clearChildren, findNode, getAction, getAttributeList, getChild, getChildren, getClientAction, getContent, getHref, getIcon, getLabel, getLevel, getName, getParams, getParent, getRoot, getScope, getTagId, getTarget, getTitle, isDisabled, isExpanded, isExpandOnServer, isLabelLegalAsAlt, isLast, isLeaf, isSelected, onExpand, onSelect, removeChild, removeChild, setAction, setClientAction, setContent, setDisabled, setExpanded, setExpandOnServer, setHref, setIcon, setLabel, setName, setParent, setScope, setSelected, setTagId, setTarget, setTitle, size, updateName |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeRootElement()
public TreeRootElement(String label, boolean expanded)
expanded
- Should this node be expanded?Method Detail |
---|
public void changeSelected(String selectNode, ServletRequest request)
changeSelected
in interface ITreeRootElement
selectNode
- request
- the ServletRequest.public TreeElement getSelectedNode()
TreeElement
. This method
will return null if no element is currently selected.
getSelectedNode
in interface ITreeRootElement
public TreeRenderState getTreeRenderState()
getTreeRenderState
in interface ITreeRootElement
TreeRenderState
public void setTreeRenderState(TreeRenderState trs)
setTreeRenderState
in interface ITreeRootElement
trs
- public InheritableState getInheritableState()
getInheritableState
in interface ITreeRootElement
getInheritableState
in class TreeElement
public void setInheritableState(InheritableState state)
setInheritableState
in interface ITreeRootElement
setInheritableState
in class TreeElement
state
- public String getRootNodeExpandedImage()
getRootNodeExpandedImage
in interface ITreeRootElement
public void setRootNodeExpandedImage(String rootNodeExpandedImage)
setRootNodeExpandedImage
in interface ITreeRootElement
rootNodeExpandedImage
- the name of the image to display. This will be searched
for below the image root.public String getRootNodeCollapsedImage()
getRootNodeCollapsedImage
in interface ITreeRootElement
public void setRootNodeCollapsedImage(String rootNodeCollapsedImage)
setRootNodeCollapsedImage
in interface ITreeRootElement
rootNodeCollapsedImage
- the name of the collapsed image to display. This will be searched
for below the image root.public void setObjectName(String name)
setObjectName
in interface INameable
name
- the Object's name.
IllegalStateException
- if this method is called more than once for an objectpublic String getObjectName()
getObjectName
in interface INameable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |