cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager Class Reference

Inheritance diagram for cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CreatedFiltersNodeManager (List filters)
java.util.Comparator getComparator ()
void initChildrenMap (cern.gp.nodes.children.NodeMap nodeMap)
void addFilter (FilterItemBean filter) throws IntrospectionException
void removeFilter (GPNode node)
void removeFilter (String name, String operator, String value)
void removeFilter (Filter filter)
void removeAllFilters ()
List getDefinedFilters ()

Package Attributes

final Logger logger

Private Attributes

NodeMap filtersNodeMap = null
List filtersList = null
final List EMPTY_LIST = new java.util.ArrayList()

Constructor & Destructor Documentation

cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::CreatedFiltersNodeManager ( List  filters  )  [inline]

Constructor

Parameters:
filters list with FiltersItemBean

References filtersList.


Member Function Documentation

void cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::addFilter ( FilterItemBean  filter  )  throws IntrospectionException [inline]

This method adds filter to filter list

Parameters:
filter FilterItemBean object

References cern::gp::nodes::children::NodeMap::addNode(), and filtersNodeMap.

Referenced by cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::addFilter().

java.util.Comparator cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::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.

List cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::getDefinedFilters (  )  [inline]

This method returns all List with all defined filters or empty list

Returns:
Collection with Filter objects or empty list

References EMPTY_LIST, filtersNodeMap, cern::gp::nodes::children::NodeMap::getNode(), and cern::gp::nodes::children::NodeMap::keySet().

Referenced by cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::getDefinedFilters().

void cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::initChildrenMap ( cern.gp.nodes.children.NodeMap  nodeMap  )  [inline]
void cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::removeAllFilters (  )  [inline]
void cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::removeFilter ( Filter  filter  )  [inline]
void cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::removeFilter ( String  name,
String  operator,
String  value 
) [inline]

This method deletes filter from list

Parameters:
name name
operator operator (i.e. like, contains, etc)
value value

References filtersNodeMap, cern::gp::nodes::GPNode::getPeerNode(), logger, and cern::gp::nodes::children::NodeMap::removeNode().

void cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::CreatedFiltersNodeManager::removeFilter ( GPNode  node  )  [inline]

Member Data Documentation

empty list

Referenced by getDefinedFilters().

list with defined filters, this list should contain FilterItemBean

Referenced by CreatedFiltersNodeManager(), and initChildrenMap().

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

Referenced by initChildrenMap(), removeAllFilters(), and removeFilter().


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

Generated by  doxygen 1.6.2