

Public Member Functions | |
| ConfigurationNodeManger (Collection confList) | |
| void | initChildrenList (NodeList nodeList) |
| java.util.Comparator | getComparator () |
| void | addConfiguration (BeanSupport configuration) throws IntrospectionException |
| void | removeConfiguration (GPNode node) |
Private Attributes | |
| final Logger | logger |
| Collection | confList = null |
| NodeList | nodeList = null |
| cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::ConfigurationNodeManger | ( | Collection | confList | ) | [inline] |
| confList | List with Configuration Objects |
| void cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::addConfiguration | ( | BeanSupport | configuration | ) | throws IntrospectionException [inline] |
References cern::gp::nodes::children::NodeList::addNode(), cern::gp::nodes::GPNode::getName(), cern::gp::nodes::GPNode::getPeerNode(), cern::gp::nodes::children::NodeList::iterator(), logger, nodeList, and cern::gp::nodes::children::NodeList::removeNode().
Referenced by cern::laser::guiplatform::windows::user::UserExplorer::UserNodeManager::addConfiguration().
| java.util.Comparator cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::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.
null Implements cern::gp::nodes::children::ChildrenManager.
| void cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::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.
| nodelist | the list representing the children managed by this manager |
Implements cern::gp::nodes::children::ChildrenListManager.
References cern::gp::nodes::children::NodeList::addNode(), confList, cern::laser::console::Configuration::getName(), cern::laser::guiplatform::configuration::ConfigurationBean::getName(), and logger.
| void cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::removeConfiguration | ( | GPNode | node | ) | [inline] |
Collection cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::confList = null [private] |
user list
Referenced by initChildrenList().
final Logger cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::logger [private] |
LogFactory.getLogger(ConfigurationNodeManger.class.getName())
Referenced by addConfiguration(), initChildrenList(), and removeConfiguration().
NodeList cern::laser::guiplatform::windows::user::UserExplorer::ConfigurationNodeManger::nodeList = null [private] |
Referenced by addConfiguration(), and removeConfiguration().
1.6.2