Public Member Functions | |
void | refreshOrdering () |
GPNode | getParentNode () |
ChildrenManager | getChildrenManager () |
int | getNodesCount () |
GPNode | findChildByName (String name) |
void | clear () |
A class implementing this interface hold a collection of nodes.
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
.
void cern.gp.nodes.children.NodeCollection.clear | ( | ) |
Removes all nodes from this collection
GPNode cern.gp.nodes.children.NodeCollection.findChildByName | ( | String | name | ) |
Finds a child node by name.
<code>name</code> | the name of the child node to find or null if any arbitrary child may be returned |
ChildrenManager cern.gp.nodes.children.NodeCollection.getChildrenManager | ( | ) |
Returns the ChildrenManager
this collection is managed with
ChildrenManager
this collection is managed with int cern.gp.nodes.children.NodeCollection.getNodesCount | ( | ) |
Gets the number of nodes in the collection.
Referenced by cern.gp.explorer.GPListExplorerPanel.getListNodes().
GPNode cern.gp.nodes.children.NodeCollection.getParentNode | ( | ) |
Gets the parent node of this collection of children
void cern.gp.nodes.children.NodeCollection.refreshOrdering | ( | ) |
Signal this collection that it should refresh the ordering of its member using the sorting mecanism already in place. This method should only be called in the case the collection is ordered and the ordering criteria has been dynamically updated. The method should not have any effect in case the collection is not already sorted.