Public Member Functions | Static Public Member Functions | Protected Member Functions

cern.gp.explorer.GPListExplorerPanel Class Reference

Inheritance diagram for cern.gp.explorer.GPListExplorerPanel:
cern.gp.explorer.ListExplorer cern.gp.explorer.ListTableExplorer

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)

Detailed Description

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

Constructor & Destructor Documentation

cern.gp.explorer.GPListExplorerPanel.GPListExplorerPanel (  )  [protected]

do not instantiate directly


Member Function Documentation

static GPNode cern.gp.explorer.GPListExplorerPanel.createRootNode ( Object  rootBean,
GPNode[]  nodes 
) throws IntrospectionException [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

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

GPNode [] cern.gp.explorer.GPListExplorerPanel.getListNodes (  ) 

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(), and cern.gp.nodes.children.NodeMap.keySet().

final Object cern.gp.explorer.GPListExplorerPanel.getRootBean (  )  [protected]

accessor method, can be un-finaled

Returns:
GPNode cern.gp.explorer.GPListExplorerPanel.getRootNode (  ) 

accessor method

Returns:
the node at the root of the explored hierarchy
abstract void cern.gp.explorer.GPListExplorerPanel.setListNodes ( final GPNode[]  nodes  )  [pure virtual]
void cern.gp.explorer.GPListExplorerPanel.setName ( String  name  ) 

Implementation to set the name of the explorer in the Title

Since:
2.0.6
See also:
java.awt.Component.setName(java.lang.String)
final void cern.gp.explorer.GPListExplorerPanel.setRootBean ( Object  newRootBean  )  [protected]

accessor method, can be un-finaled

Parameters:
newRootBean 

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

void cern.gp.explorer.GPListExplorerPanel.setRootNode ( GPNode  parentNode  ) 

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().

Referenced by cern.gp.explorer.ListExplorer.setListNodes().


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