Public Member Functions

cern.gp.nodes.children.ChildrenListManager Interface Reference

Inheritance diagram for cern.gp.nodes.children.ChildrenListManager:
cern.gp.nodes.children.ChildrenManager cern.gp.nodes.children.DefaultChildrenListManager

List of all members.

Public Member Functions

void initChildrenList (NodeList nodeList)

Detailed Description

A class implementing this interface is a manager of a list of children of a given node. It can receive a NodeList that provides a view on the list of nodes that makes the children of the given node. The manager is in charge of updating it as needed adding or removing nodes using the NodeList interface.

Version:
Revision:
1.2
Date:
2006/09/25 08:52:36
Author:
Lionel Mestre

Member Function Documentation

void cern.gp.nodes.children.ChildrenListManager.initChildrenList ( NodeList  nodeList  ) 

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

Implemented in cern.gp.nodes.children.DefaultChildrenListManager.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties