Classes | Public Member Functions | Protected Member Functions

cern.gp.explorer.ListExplorer Class Reference

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

List of all members.

Classes

class  GPListView

Public Member Functions

 ListExplorer ()
 ListExplorer (GPNode[] nodes)
ListViewListAccess getListAccess ()
final void setListNodes (GPNode[] nodes)

Protected Member Functions

 ListExplorer (ListViewListAccess view)

Detailed Description

An Explorer GUI Component that displays Children of a root node as a List. It is recommended that the developer uses the NodeFactory and ChildrenListManager or ChildrenMapManager to create the Node hierarchy to be explored.

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

Constructor & Destructor Documentation

cern.gp.explorer.ListExplorer.ListExplorer (  ) 

Creates an explorer with the default model and the default view

cern.gp.explorer.ListExplorer.ListExplorer ( GPNode[]  nodes  ) 

create a ListExplorer and set the nodes to display

Parameters:
nodes the nodes to display

References cern.gp.explorer.ListExplorer.setListNodes().

cern.gp.explorer.ListExplorer.ListExplorer ( ListViewListAccess  view  )  [protected]

Creates an explorer with the specified view

Parameters:
view the ListView to be used in this explorer

References cern.gp.explorer.ListViewListAccess.getListView().


Member Function Documentation

ListViewListAccess cern.gp.explorer.ListExplorer.getListAccess (  ) 

getter method

Returns:
the ListView instance used in this explorer
final void cern.gp.explorer.ListExplorer.setListNodes ( GPNode[]  nodes  ) 

Set the list of nodes to be displayed. This method first checks whether all nodes have a common parent and calls the method setRootNode(GPNode) (with you should have called instead of this one). If not, it creates a root node and creates a ChildrenManager for the nodes. In other words, you cannot use this method if you want to use your own ChildrenManager implementation to control the displayed list of nodes. Use this method preferably if you have an array of nodes without a common parent, and if you do not need to use your own ChildrenManager.

Note that you can still get hold of the siblings of one of your GPNode object with the GPNode#getNodeCollection method.

Parameters:
nodes the array nodes to be displayed in the ListExplorer

References cern.gp.explorer.GPListExplorerPanel.createRootNode(), cern.gp.explorer.GPListExplorerPanel.setRootBean(), and cern.gp.explorer.GPListExplorerPanel.setRootNode().

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


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