|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreeRootElement
This interface provides additional behavior on the root node in a tree. There
are certain optimizations that may be done if state is tracked in the root.
In addition, there are a number of features that are only applied to the root
such as images. Finally, when the tree is run on the client, there are
additonal features required of the root.
This is a pretty simple interface to implement. Mostly the there are only
properties that are stored for the additional state. The only method that
is complicated is the changeSelected
method.
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 |
getRootNodeCollapsedImage()
|
String |
getRootNodeExpandedImage()
|
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 |
setRootNodeCollapsedImage(String rootNodeCollapsedImage)
|
void |
setRootNodeExpandedImage(String rootNodeExpandedImage)
|
void |
setTreeRenderState(TreeRenderState trs)
Set the TreeRenderState |
Methods inherited from interface INameable |
---|
getObjectName, setObjectName |
Method Detail |
---|
void changeSelected(String selectNode, ServletRequest request)
TreeHelpers.changeSelected
that can
be used for delegation. This requires the root, the currently selected node,
and will return the newly selected node.
selectNode
- a String value name of the new node selectedrequest
- the ServletRequest.TreeElement getSelectedNode()
TreeElement
. This method
will return null if no element is currently selected.
TreeRenderState getTreeRenderState()
void setTreeRenderState(TreeRenderState trs)
trs
- InheritableState getInheritableState()
void setInheritableState(InheritableState state)
state
- String getRootNodeExpandedImage()
void setRootNodeExpandedImage(String rootNodeExpandedImage)
rootNodeExpandedImage
- String getRootNodeCollapsedImage()
void setRootNodeCollapsedImage(String rootNodeCollapsedImage)
rootNodeCollapsedImage
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |