cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager Class Reference

Inheritance diagram for cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager:
Collaboration graph
[legend]

List of all members.

Classes

class  CategoryComparator

Public Member Functions

 CategoryTreeNodeManager (Category categoryRoot)
void initChildrenList (NodeList nodeList)
java.util.Comparator getComparator ()
NodeList getNodeList ()

Private Attributes

Logger logger
NodeList nodeList = null
Category categoryRoot = null

Constructor & Destructor Documentation

cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager::CategoryTreeNodeManager ( Category  categoryRoot  )  [inline]

Referenced by initChildrenList().


Member Function Documentation

java.util.Comparator cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager::getComparator (  )  [inline]

Do not compare beans

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

NodeList cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager::getNodeList (  )  [inline]

References nodeList.

void cern::laser::guiplatform::windows::category::CategoryTreeExplorer::CategoryTreeNodeManager::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.

References cern::gp::nodes::children::NodeList::addNode(), categoryRoot, CategoryTreeNodeManager(), cern::laser::client::LaserException::getRootCause(), cern::laser::client::data::Category::isLeaf(), cern::gp::nodes::children::NodeList::iterator(), and logger.


Member Data Documentation

category root

Referenced by initChildrenList().

Initial value:
        LogFactory.getLogger(CategoryTreeNodeManager.class.getName())

logger

Referenced by initChildrenList().

Referenced by getNodeList().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2