|
|||||||||
| 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 ITreeRootElementselectNode - request - the ServletRequest.public TreeElement getSelectedNode()
TreeElement. This method
will return null if no element is currently selected.
Implementation Note: The method that changes the selected node based on the request,
TreeHelpers.processTreeRequest(String, TreeElement, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse),
gets called during the processing of the Tree tag within a JSP. If the
getSelectedNode method is called from an Action in a Page Flow Controller,
the value of the selected node will have not yet been updated.
getSelectedNode in interface ITreeRootElementpublic TreeRenderState getTreeRenderState()
getTreeRenderState in interface ITreeRootElementTreeRenderStatepublic void setTreeRenderState(TreeRenderState trs)
setTreeRenderState in interface ITreeRootElementtrs - public InheritableState getInheritableState()
getInheritableState in interface ITreeRootElementgetInheritableState in class TreeElementpublic void setInheritableState(InheritableState state)
setInheritableState in interface ITreeRootElementsetInheritableState in class TreeElementstate - public String getRootNodeExpandedImage()
getRootNodeExpandedImage in interface ITreeRootElementpublic void setRootNodeExpandedImage(String rootNodeExpandedImage)
setRootNodeExpandedImage in interface ITreeRootElementrootNodeExpandedImage - the name of the image to display. This will be searched
for below the image root.public String getRootNodeCollapsedImage()
getRootNodeCollapsedImage in interface ITreeRootElementpublic void setRootNodeCollapsedImage(String rootNodeCollapsedImage)
setRootNodeCollapsedImage in interface ITreeRootElementrootNodeCollapsedImage - 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 INameablename - 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 | ||||||||