public interface MutableTreeTableNode extends TreeTableNode
Note this does not extend MutableTreeNode
to minimize the contract
breakage, cf. TreeNode.getIndex(javax.swing.tree.TreeNode)
.
MutableTreeNode
Modifier and Type | Method and Description |
---|---|
Enumeration<? extends MutableTreeTableNode> |
children()
Returns an enumeration this node's children.
|
void |
insert(MutableTreeTableNode child,
int index)
Adds the
child to this node at the specified index . |
void |
remove(int index)
Removes the child node at the specified
index from this node. |
void |
remove(MutableTreeTableNode node)
Removes the specified child
node from this node. |
void |
removeFromParent()
Removes this node from it's parent.
|
void |
setParent(MutableTreeTableNode newParent)
Sets the parent of this node to
newParent . |
getChildAt, getColumnCount, getParent, getUserObject, getValueAt, isEditable, setUserObject, setValueAt
getAllowsChildren, getChildCount, getIndex, isLeaf
Enumeration<? extends MutableTreeTableNode> children()
children
in interface TreeNode
children
in interface TreeTableNode
TreeTableNode
svoid insert(MutableTreeTableNode child, int index)
child
to this node at the specified index
. This
method calls setParent
on child
with this
as the
parameter.child
- the node to add as a childindex
- the index of the childIndexOutOfBoundsException
- if index
is not a valid indexvoid remove(int index)
index
from this node.
This method calls setParent
on child
with a null
parameter.index
- the index of the childIndexOutOfBoundsException
- if index
is not a valid indexvoid remove(MutableTreeTableNode node)
node
from this node.
This method calls setParent
on child
with a null
parameter.node
- the index of the childvoid removeFromParent()
getParent().remove(this)
.NullPointerException
- if getParent()
returns null
void setParent(MutableTreeTableNode newParent)
newParent
. This methods remove
the node from its old parent.newParent
- the new parent for this nodeWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses