public class PIAGroupTree.GrpModelNode extends Object implements MutableTreeNode
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
children() |
Enumeration |
children(boolean force)
Returns the children of the receiver as an
Enumeration. |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
PModelHandle |
getData() |
int |
getIndex(TreeNode node) |
TreeNode |
getParent() |
void |
insert(MutableTreeNode child,
int index)
Inserts a child node
|
boolean |
isLeaf() |
void |
needsRefresh() |
void |
remove(int index)
Removes a child node
|
void |
remove(MutableTreeNode child)
Removes a child node
|
void |
removeChildren() |
void |
removeFromParent()
Removes this node from its parent
|
void |
setParent(MutableTreeNode newParent)
Sets the parent of this node
|
void |
setUserObject(Object object)
Sets the object thats to be represented by this node
|
String |
toString() |
public PModelHandle getData()
public Enumeration children()
public Enumeration children(boolean force)
Enumeration.force - if true, forces a reload of the receiver's childrenpublic void removeChildren()
public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic void insert(MutableTreeNode child, int index)
insert in interface MutableTreeNodechild - The node to be insertedindex - the position at which the node is to be insertedpublic void remove(int index)
remove in interface MutableTreeNodeindex - The position of the node to be removedpublic void remove(MutableTreeNode child)
remove in interface MutableTreeNodechild - The node to be removedpublic void setUserObject(Object object)
setUserObject in interface MutableTreeNodeobject - The object to be representedpublic void removeFromParent()
removeFromParent in interface MutableTreeNodepublic void setParent(MutableTreeNode newParent)
setParent in interface MutableTreeNodenewParent - The new parentpublic void needsRefresh()
Copyright © 2003, 2023, Oracle and/or its affiliates.