Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::nodes::children::DefaultChildrenListManager Class Reference

Inheritance diagram for cern::gp::nodes::children::DefaultChildrenListManager:

Inheritance graph
[legend]
Collaboration diagram for cern::gp::nodes::children::DefaultChildrenListManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DefaultChildrenListManager (GPNode[] childrenNodes)
void initChildrenList (NodeList nodeList)
Comparator getComparator ()

Private Attributes

final GPNode[] children

Detailed Description

A default implementation of a ChildrenListManager used for a fixed number of children nodes that are known at the moment when the ChildrenListeManager is instantiated.

See also:
DefaultChildrenMapManager
Author:
Vito Baggiolini
Version:
Revision
1.2
,
Date
2006/09/25 08:52:36
,
Author
acaproni


Constructor & Destructor Documentation

cern::gp::nodes::children::DefaultChildrenListManager::DefaultChildrenListManager GPNode[]  childrenNodes  )  [inline]
 


Member Function Documentation

Comparator cern::gp::nodes::children::DefaultChildrenListManager::getComparator  )  [inline]
 

Returns a comparator that can be used to sort the collection of nodes managed by this class. null can be returned to specify that the collection should not be sorted. If a comparator is returned it should be able to compare two nodes belonging to the children managed by this manager. An adapter can be used to deal with the bean associated to the node instead of the nodes itself.

Returns:
a comparator for the node or null
See also:
BeanComparatorAdapter

Implements cern::gp::nodes::children::ChildrenManager.

void cern::gp::nodes::children::DefaultChildrenListManager::initChildrenList NodeList  nodeList  )  [inline]
 

Receives the NodeList 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 list of children with the current children. For that it can use the method addNode of the nodeList. Second, and only if the children are dynamic and are changing based on some external events, it should keep the reference to the given nodeList 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 nodeList.

Parameters:
nodelist the list representing the children managed by this manager

Implements cern::gp::nodes::children::ChildrenListManager.


Member Data Documentation

final GPNode [] cern::gp::nodes::children::DefaultChildrenListManager::children [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:36 2009 for ACS Java API by doxygen 1.3.8