public interface TreeNode
Modifier and Type | Method and Description |
---|---|
TreeNode |
getAncestor(String lookfortype)
Determine the first ancestor with given class name
|
TreeNode |
getAncestorForLevel(int ancestorLevel)
Get ancestor for given level
|
List |
getChildren() |
String |
getDescription(Locale l)
Node description
|
String |
getEditURI()
URI of the JSP to include when showing this node
|
String |
getIconCategory()
The icon gallery name
|
String |
getIconId()
Icon identifier
|
String |
getId() |
int |
getLevel()
This node deep level
|
String |
getName(Locale l)
Node name
|
TreeNode |
getParent()
Get the parent node if it exists
|
String |
getPath()
This node path, constructed by adding parent identifiers
|
TreeNode |
getSubNodeByPath(String path)
Get a subnode by its path
|
Tree |
getTree() |
boolean |
isEditable()
Determine if this node is selectable
|
boolean |
isEditURIAjaxCompatible()
Determines if edit URI is Ajax compatible
|
boolean |
isExpandible() |
boolean |
isLastChild()
Indicates if this node is the last one in his group.
|
boolean |
isLeaf()
Determine if this node has no children
|
boolean |
onCollapse()
Called when the node is collapse.
|
boolean |
onEdit()
Called when the node is edited.
|
boolean |
onExpand()
Called when the node is expanded.
|
boolean |
onSelect()
Called when the node is selected.
|
boolean |
onUnedit()
Called when the node is unedited.
|
boolean |
onUnselect()
Called when the node is unselected.
|
String getId()
String getIconId()
String getIconCategory()
String getEditURI()
boolean isEditURIAjaxCompatible()
String getPath()
TreeNode getSubNodeByPath(String path)
path
- int getLevel()
boolean isLastChild()
List getChildren()
TreeNode getParent()
Tree getTree()
boolean onSelect()
boolean onUnselect()
boolean onEdit()
boolean onUnedit()
boolean onExpand()
boolean onCollapse()
boolean isLeaf()
boolean isEditable()
TreeNode getAncestor(String lookfortype)
lookfortype
- class name to look forTreeNode getAncestorForLevel(int ancestorLevel)
ancestorLevel
- boolean isExpandible()
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.