|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.nuiton.wikitty.search.TreeNodeResult<T>
WikittyQuery
@Deprecated public class TreeNodeResult<T extends Serializable>
L'iteration se fait en profondeur
| Nested Class Summary | |
|---|---|
static interface |
TreeNodeResult.Visitor<T extends Serializable>
Deprecated. Visitor for TreeNodeResult |
| Field Summary | |
|---|---|
protected int |
attCount
Deprecated. |
protected T |
object
Deprecated. optional user object |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected T extends Serializable object
protected int attCount
| Constructor Detail |
|---|
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 data
public 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 node| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||