public abstract class AbstractNode extends org.jboss.dashboard.factory.BasicFactoryElement implements TreeNode
Constructor and Description |
---|
AbstractNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TreeNode |
getAncestor(String ancestorNodeClassName)
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 |
getGetUriType() |
protected String |
getI18nProperty(String name) |
String |
getIconCategory()
The icon gallery name
|
String |
getIconId()
Icon identifier
|
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
|
protected TreeNode |
getSubnodeById(String id) |
TreeNode |
getSubNodeByPath(String path)
Get a subnode by its path
|
TreeNode[] |
getSubnodes() |
Tree |
getTree() |
protected boolean |
hasDynamicChildren() |
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
|
protected List |
listChildren()
Get the children list for this node
|
protected TreeNode |
listChildrenById(String id)
Get a children node by its id.
|
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.
|
void |
setEditable(boolean b) |
void |
setEditURI(String editURI) |
void |
setEditURIAjaxCompatible(boolean editURIAjaxCompatible) |
void |
setExpandible(boolean expandible) |
void |
setGetUriType(String getUriType) |
void |
setIconCategory(String iconCategory) |
void |
setIconId(String iconId) |
protected void |
setLast(boolean b) |
void |
setParent(TreeNode parent) |
void |
setSubnodes(TreeNode[] subnodes) |
void |
setTree(Tree tree) |
String |
toString() |
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop
public boolean isEditable()
TreeNode
isEditable
in interface TreeNode
public void setEditable(boolean b)
public boolean isExpandible()
isExpandible
in interface TreeNode
public void setExpandible(boolean expandible)
public boolean isEditURIAjaxCompatible()
TreeNode
isEditURIAjaxCompatible
in interface TreeNode
public void setEditURIAjaxCompatible(boolean editURIAjaxCompatible)
public String getDescription(Locale l)
TreeNode
getDescription
in interface TreeNode
public String getPath()
TreeNode
public TreeNode getSubNodeByPath(String path)
TreeNode
getSubNodeByPath
in interface TreeNode
public int getLevel()
TreeNode
public boolean isLastChild()
TreeNode
isLastChild
in interface TreeNode
protected void setLast(boolean b)
public void setIconId(String iconId)
public String getIconCategory()
TreeNode
getIconCategory
in interface TreeNode
public void setIconCategory(String iconCategory)
public String getEditURI()
TreeNode
getEditURI
in interface TreeNode
public void setEditURI(String editURI)
public String getGetUriType()
public void setGetUriType(String getUriType)
public TreeNode[] getSubnodes()
public void setSubnodes(TreeNode[] subnodes)
public TreeNode getParent()
TreeNode
public Tree getTree()
public boolean isLeaf()
TreeNode
public void setTree(Tree tree)
public boolean onSelect()
TreeNode
public boolean onUnselect()
TreeNode
onUnselect
in interface TreeNode
public boolean onEdit()
TreeNode
public boolean onUnedit()
TreeNode
public boolean onExpand()
TreeNode
public boolean onCollapse()
TreeNode
onCollapse
in interface TreeNode
public void setParent(TreeNode parent)
public final List getChildren()
getChildren
in interface TreeNode
public TreeNode getAncestor(String ancestorNodeClassName)
TreeNode
getAncestor
in interface TreeNode
ancestorNodeClassName
- class name to look forpublic TreeNode getAncestorForLevel(int ancestorLevel)
TreeNode
getAncestorForLevel
in interface TreeNode
protected List listChildren()
protected TreeNode listChildrenById(String id)
id
- protected boolean hasDynamicChildren()
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.