public class FacesTreeNode extends DefaultMutableTreeNode implements TreeNode
DefaultMutableTreeNode,
adding support for notifying subscribing classes.allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
FacesTreeNode(L userData,
DialogObjectConstant nodeConst)
Create a new node with given
ListRow and dialog object constant representing the node. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MutableTreeNode newChild) |
void |
addObserver(Observer o)
Adds an observer to notify about changes to the node
|
Object |
clone() |
Object |
getDomainObject()
Returns the domain object associated with the node.
|
<L extends ListRow> |
getListRow() |
DialogObjectConstant |
getNodeConst() |
String |
getType()
Returns the text representation of the node
|
void |
insert(MutableTreeNode child,
int index) |
void |
remove(int index) |
void |
remove(MutableTreeNode node) |
void |
removeAllChildren() |
void |
removeFromParent() |
void |
setDomainObject(Object domainObject)
Set the domain object associated with the node.
|
void |
setParent(MutableTreeNode newParent) |
void |
setUserObject(Object object) |
breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, setAllowsChildren, toStringpublic FacesTreeNode(L userData,
DialogObjectConstant nodeConst)
ListRow and dialog object constant representing the node.userData - the ListRow holding the node's data.nodeConst - the dialog object constant representing the node.public Object getDomainObject()
public void setDomainObject(Object domainObject)
domainObject - the domain objectpublic void addObserver(Observer o)
o - the observerpublic String getType()
public DialogObjectConstant getNodeConst()
public <L extends ListRow> L getListRow()
public void insert(MutableTreeNode child, int index)
insert in interface MutableTreeNodeinsert in class DefaultMutableTreeNodepublic void remove(int index)
remove in interface MutableTreeNoderemove in class DefaultMutableTreeNodepublic void remove(MutableTreeNode node)
remove in interface MutableTreeNoderemove in class DefaultMutableTreeNodepublic void setUserObject(Object object)
setUserObject in interface MutableTreeNodesetUserObject in class DefaultMutableTreeNodepublic void removeFromParent()
removeFromParent in interface MutableTreeNoderemoveFromParent in class DefaultMutableTreeNodepublic void setParent(MutableTreeNode newParent)
setParent in interface MutableTreeNodesetParent in class DefaultMutableTreeNodepublic void add(MutableTreeNode newChild)
add in class DefaultMutableTreeNodepublic void removeAllChildren()
removeAllChildren in class DefaultMutableTreeNodepublic Object clone()
clone in class DefaultMutableTreeNodeCopyright © 2006–2017 Esito AS. All rights reserved.