NODE
- is the generic type of the tree-nodes of this model.public static interface UiWidgetAbstractTree.UiTreeModelMutable<NODE> extends UiWidgetAbstractTree.UiTreeModel<NODE>
UiWidgetAbstractTree.UiTreeModel
with features for editing the tree structure. It
represents the current state of the tree for a tree widget. Modifications may still be cancelled and
reverted. UiWidgetAbstractTree.UiTreeModel
used by the according mutable tree models.Modifier and Type | Method and Description |
---|---|
void |
addChild(NODE parent,
NODE child)
Convenience method variant of
addChild(Object, Object, int) to add a child at the end. |
void |
addChild(NODE parent,
NODE child,
int index)
Adds the given
child <NODE> to the given parent at the specified
index . |
void |
removeChilden(NODE parent,
NODE... children)
Removes the given
children from the parent . |
getChildren, getChildrenAsync
void addChild(NODE parent, NODE child, int index)
child
<NODE> to the given parent
at the specified
index
.parent
- is the parent <NODE> where to add the given child
.child
- is the <NODE> to add to the children
of
parent
. This method will remove the child
from any previous parent.
The instance of the child may later be modified. To prevent undesired modifications create a
deep-copy of the node before calling this method.index
- is the index where to add the child.void addChild(NODE parent, NODE child)
addChild(Object, Object, int)
to add a child at the end.parent
- is the parent <NODE> where to add the given child
.child
- is the <NODE> to add to the children
of
parent
.addChild(Object, Object, int)
Copyright © 2001–2016 mmm-Team. All rights reserved.