public interface ChildrenMapManager extends ChildrenManager
| Modifier and Type | Method and Description |
|---|---|
void |
initChildrenMap(NodeMap nodeMap)
Receives the
NodeMap that is managed by this manager
and that can be used to add or remove children. |
getComparatorvoid initChildrenMap(NodeMap nodeMap)
NodeMap that is managed by this manager
and that can be used to add or remove children.
This method is called lazily once when the children are going
to be displayed. It is similar to the addNotify()
of a GUI component.
The implementation of this method should do two things. First it
should initialize the map of children with the current children.
For that it can use the method addNode of the nodeMap.
Second, and only if the children are dynamic and are changing based
on some external events, it should keep the reference to the given
nodeMap for future use.
If the children are not dynamic, which means that they don't change after they have been initialized here, there is no need to keep a reference to the nodeMap.
nodeMap - the map representing the children
managed by this manager