Classes | |
class | GPListView |
Public Member Functions | |
ListExplorer () | |
ListExplorer (GPNode[] nodes) | |
ListViewListAccess | getListAccess () |
final void | setListNodes (GPNode[] nodes) |
Protected Member Functions | |
ListExplorer (ListViewListAccess view) |
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.
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
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
view | the ListView to be used in this explorer |
References cern.gp.explorer.ListViewListAccess.getListView().
ListViewListAccess cern.gp.explorer.ListExplorer.getListAccess | ( | ) |
getter method
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.
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().