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 TreeNode
public TreeNode getChildAt(int childIndex)
getChildAt
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public void insert(MutableTreeNode child, int index)
insert
in interface MutableTreeNode
child
- The node to be insertedindex
- the position at which the node is to be insertedpublic void remove(int index)
remove
in interface MutableTreeNode
index
- The position of the node to be removedpublic void remove(MutableTreeNode child)
remove
in interface MutableTreeNode
child
- The node to be removedpublic void setUserObject(Object object)
setUserObject
in interface MutableTreeNode
object
- The object to be representedpublic void removeFromParent()
removeFromParent
in interface MutableTreeNode
public void setParent(MutableTreeNode newParent)
setParent
in interface MutableTreeNode
newParent
- The new parentpublic void needsRefresh()
Copyright © 2003, 2023, Oracle and/or its affiliates.