cern::gp::explorer::GPListExplorerPanel Class Reference

Inheritance diagram for cern::gp::explorer::GPListExplorerPanel:
Inheritance graph
[legend]
Collaboration diagram for cern::gp::explorer::GPListExplorerPanel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setRootNode (GPNode parentNode)
GPNode getRootNode ()
void setName (String name)
GPNode[] getListNodes ()
abstract void setListNodes (final GPNode[] nodes)

Static Public Member Functions

static GPNode createRootNode (Object rootBean, GPNode[] nodes) throws IntrospectionException

Protected Member Functions

 GPListExplorerPanel ()
final Object getRootBean ()
final void setRootBean (Object newRootBean)

Private Attributes

GPNode rootNode
Object rootBean

Detailed Description

Author:
Vito Baggiolini
Version:
Revision
1.2
Date
2006/09/25 08:52:36

Constructor & Destructor Documentation

cern::gp::explorer::GPListExplorerPanel::GPListExplorerPanel (  )  [inline, protected]

do not instantiate directly


Member Function Documentation

static GPNode cern::gp::explorer::GPListExplorerPanel::createRootNode ( Object  rootBean,
GPNode[]  nodes 
) throws IntrospectionException [inline, static]

Utility method, takes an array of Nodes and creates a RootNode with a default ChildrenListManager for it

Parameters:
rootBean the Bean to use int he RootNode
nodes the children nodes of the rootNode
Returns:
a rootNode representing the rootBean and with the children nodes
Exceptions:
IntrospectionException 
Since:
2.0.6

References rootBean.

Referenced by cern::gp::explorer::ListTableExplorer::setListNodes(), and cern::gp::explorer::ListExplorer::setListNodes().

GPNode [] cern::gp::explorer::GPListExplorerPanel::getListNodes (  )  [inline]

accessor method, returns the nodes set with the setListNodes(GPNode[]) method. Attention: this implementation returns the order the nodes had when they were set with the setListNodes() method, it not reflect the order of the nodes as they are displayed in the Explorer

Returns:
the nodes displayed in this explorer

References cern::gp::nodes::children::NodeMap::getNode(), cern::gp::nodes::GPNode::getNodeCollection(), cern::gp::nodes::children::NodeCollection::getNodesCount(), cern::gp::nodes::children::NodeMap::keySet(), and rootNode.

final Object cern::gp::explorer::GPListExplorerPanel::getRootBean (  )  [inline, protected]

accessor method, can be un-finaled

Returns:

References rootBean.

GPNode cern::gp::explorer::GPListExplorerPanel::getRootNode (  )  [inline]

accessor method

Returns:
the node at the root of the explored hierarchy

References rootNode.

abstract void cern::gp::explorer::GPListExplorerPanel::setListNodes ( final GPNode[]  nodes  )  [pure virtual]
void cern::gp::explorer::GPListExplorerPanel::setName ( String  name  )  [inline]

Implementation to set the name of the explorer in the Title

Since:
2.0.6
See also:
java.awt.Component::setName(java.lang.String)

References rootBean.

Referenced by cern::laser::guiplatform::windows::alarms::AlarmInfoExplorer::AlarmInfoExplorer().

final void cern::gp::explorer::GPListExplorerPanel::setRootBean ( Object  newRootBean  )  [inline, protected]

accessor method, can be un-finaled

Parameters:
newRootBean 

References rootBean.

Referenced by cern::gp::explorer::ListTableExplorer::setListNodes(), and cern::gp::explorer::ListExplorer::setListNodes().

void cern::gp::explorer::GPListExplorerPanel::setRootNode ( GPNode  parentNode  )  [inline]

set the parent node of the list of nodes to be explored. The parent node is not displayed, only its children nodes. Use this method

  • if you already have a root node whose children you want to display
  • if you want to control the nodes with your own ChildrenManager as shown below
Parameters:
parentNode the parent of the nodes to be displayed in the List

Reimplemented in cern::gp::explorer::ListTableExplorer.

References cern::gp::nodes::GPNode::getPeerNode(), and rootNode.

Referenced by cern::laser::guiplatform::windows::category::ChoosenCategoryExplorer::ChoosenCategoryExplorer(), cern::laser::guiplatform::windows::DisplayableColumnExplorer::initNodeManager(), and cern::gp::explorer::ListExplorer::setListNodes().


Member Data Documentation


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

Generated by  doxygen 1.6.2