public interface NodeCollection
The nodes can be organized hierarchically so that a given collection can have a parent node. In this case, the collection is the children of that parent node. Any node of the collection can be either a leaf or a parent node of another collection.
A NodeCollection is managed by a ChildrenManager that control the addition and removal of
nodes.
A NodeCollection can be ordered or not. If the collection is ordered and if the sorting criteria is
dynamically changed, it is necessary to refresh the ordering of the collection using the method
refreshOrdering.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all nodes from this collection
|
GPNode |
findChildByName(java.lang.String name)
Finds a child node by name.
|
ChildrenManager |
getChildrenManager()
Returns the
ChildrenManager this collection is managed with |
int |
getNodesCount()
Gets the number of nodes in the collection.
|
GPNode |
getParentNode()
Gets the parent node of this collection of children
|
void |
refreshOrdering()
Signal this collection that it should refresh the ordering of its member using the sorting mecanism already in
place.
|
void refreshOrdering()
GPNode getParentNode()
ChildrenManager getChildrenManager()
ChildrenManager this collection is managed withChildrenManager this collection is managed withint getNodesCount()
GPNode findChildByName(java.lang.String name)
name - the name of the child node to
find or null if any arbitrary child may be returnedvoid clear()