WikittyQuery@Deprecated public class TreeNodeResult<T extends Serializable> extends DefaultMutableTreeNode implements Iterable<TreeNodeResult<T>>
| Modifier and Type | Class and Description |
|---|---|
static interface |
TreeNodeResult.Visitor<T extends Serializable>
Deprecated.
Visitor for TreeNodeResult
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
attCount
Deprecated.
|
protected T |
object
Deprecated.
optional user object
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
TreeNodeResult(T userObject)
Deprecated.
Creates a tree node with no parent, no children, but which allows
children, and initializes it with the specified user object.
|
TreeNodeResult(T userObject,
boolean allowsChildren)
Deprecated.
Creates a tree node with no parent, no children, initialized with
the specified user object, and that allows children only if
specified.
|
TreeNodeResult(T object,
int attCount)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptVisitor(TreeNodeResult.Visitor<T> visitor)
Deprecated.
Visite en profondeur de l'arbre, il est possible d'arreter la visite
soit en entrant dans le noeud soit en sortant du noeud, si respectivement
visitEnter ou visitLeave retourne false.
|
int |
getAttCount()
Deprecated.
Retourn le nombre d'attachment pour ce noeud (avec les sous noeud)
|
TreeNodeResult<T> |
getChild(T child)
Deprecated.
Return TreeNodeResult where object in TreeNodeResult equals child in
parameter
|
List<TreeNodeResult<T>> |
getChildren()
Deprecated.
Get direct children of this node
|
T |
getObject()
Deprecated.
Retourne l'objet associe avec ce noeud (id, wikitty ou BusinessEntity)
|
T |
getUserObject()
Deprecated.
Returns this node's user object.
|
Iterator<TreeNodeResult<T>> |
iterator()
Deprecated.
Iterate on all children or sub-children, in depth first
|
void |
setUserObject(T userObject)
Deprecated.
Sets the user object for this node to
userObject. |
String |
toString()
Deprecated.
Returns the result of sending
toString() to this node's
user object, or null if this node has no user object. |
add, breadthFirstEnumeration, children, clone, 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, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectprotected T extends Serializable object
protected int attCount
public TreeNodeResult(T object, int attCount)
object - L'id, le wikitty ou le BusinessEntity suivant le type de TattCount - le nombre d'attachment pour ce noeud (avec les sous noeud)public TreeNodeResult(T userObject)
userObject - an Object provided by the user that constitutes
the node's datapublic TreeNodeResult(T userObject, boolean allowsChildren)
userObject - an Object provided by the user that constitutes
the node's dataallowsChildren - if true, the node is allowed to have child
nodes -- otherwise, it is always a leaf nodepublic void setUserObject(T userObject)
userObject.userObject - the Object that constitutes this node's
user-specified datagetUserObject(),
toString()public T getUserObject()
getUserObject in class DefaultMutableTreeNodetoString()public String toString()
toString() to this node's
user object, or null if this node has no user object.toString in class DefaultMutableTreeNodegetUserObject()public boolean acceptVisitor(TreeNodeResult.Visitor<T> visitor)
visitor - public List<TreeNodeResult<T>> getChildren()
public Iterator<TreeNodeResult<T>> iterator()
iterator in interface Iterable<TreeNodeResult<T extends Serializable>>public T getObject()
public TreeNodeResult<T> getChild(T child)
child - public int getAttCount()
Copyright © 2009-2012 CodeLutin. All Rights Reserved.