Classes | Public Member Functions | Protected Member Functions

cern.gp.explorer.ListTableExplorer Class Reference

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

List of all members.

Classes

class  GPTreeTableView

Public Member Functions

 ListTableExplorer ()
 ListTableExplorer (GPNode[] nodes)
 ListTableExplorer (Class viewableBeanClass)
 ListTableExplorer (Class[] viewableBeanClasses)
TreeTableViewTableAccess getTreeTableAccess ()
final void setListNodes (final GPNode[] nodes)
void setRootNode (GPNode node)
void setPreferredSize (java.awt.Dimension dim)
void setTreePreferredWidth (int width)
void setTableColumnPreferredWidth (int index, int width)
void setTableColumns (String[] propNames) throws IntrospectionException
String[] getTableColumnNames ()
void setTableColumns (GPNode node, String[] propNames)
void setTableColumns (Object bean) throws IntrospectionException
void setTableColumns (Object bean, String[] propNames) throws IntrospectionException
void setTableColumns (Class[] propTypes, String[] propNames)
void setTableColumns (Class[] propTypes, String[] propNames, boolean[] sortable)
void setTableColumns (GPNode node, String[] propNames, boolean[] sortable)
void setTableColumns (Object bean, String[] propNames, boolean[] sortable) throws IntrospectionException
void setTableColumns (Class beanClass) throws IntrospectionException
void setTableColumns (Class beanClass, String[] propNames) throws IntrospectionException
void setProperties (Node.Property[] props, boolean[] sortable)

Protected Member Functions

 ListTableExplorer (TreeTableViewTableAccess view)

Detailed Description

A GUI component that combines a List with a Table, with the List on the left side and the Table on the right. Each node of the list corresponds to a row in the table. It can be used to explore JavaBeans in the Tree and show ther properties in the Table. This class shall simplify the task of creating and parametrizing this type of explorer. As the other Explorers provided by the GP project, it is strongly based on JavaBeans: The nodes in the List contain JavaBeans-compliant objects ("domain beans"), and the rows in the Table display the properties of these domain beans.

The implementation enables the developer to create a Explorer that s/he can easily place into a NetBeans Mode. It has methods to easily configure the colums of the Table. It is recommended that the developer uses the NodeFactory to create the Node hierarchy to be explored.

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

Constructor & Destructor Documentation

cern.gp.explorer.ListTableExplorer.ListTableExplorer (  ) 

create a ListTableExplorer with the default view and model.

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

create a ListTableExplorer and set the nodes to display

Parameters:
nodes the nodes to display

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

cern.gp.explorer.ListTableExplorer.ListTableExplorer ( TreeTableViewTableAccess  view  )  [protected]
cern.gp.explorer.ListTableExplorer.ListTableExplorer ( Class  viewableBeanClass  ) 

create a TreeTableExplorer and specify the class of the bean from which the Table rows shall be inferred. This constructor works if you want to display the properties of only one Bean in the Table. Otherwise use another constructor.

Parameters:
viewableBeanClass the bean class whose properties shall be displayed in the Table
Deprecated:
this method is only used for a real SortableTreeTableExplorer
cern.gp.explorer.ListTableExplorer.ListTableExplorer ( Class[]  viewableBeanClasses  ) 

create a TreeTableExplorer and specify which beans shall be visible in the Table part of the TreeTable. Only Bean classes that equal or inherit from one of the classes passed to this constructor will have their properties displayed in the Table. The others table cells will be empty.

Parameters:
viewableBeanClass the bean classes whose properties shall be displayed in the Table
Deprecated:
this method is only used for a real SortableTreeTableExplorer

Member Function Documentation

String [] cern.gp.explorer.ListTableExplorer.getTableColumnNames (  ) 

Accessor method, the counterpart to setTableColumns(String[])

Returns:
the names of the currently accessed table colums
final void cern.gp.explorer.ListTableExplorer.setListNodes ( final GPNode[]  nodes  )  [virtual]
void cern.gp.explorer.ListTableExplorer.setPreferredSize ( java.awt.Dimension  dim  ) 
void cern.gp.explorer.ListTableExplorer.setProperties ( Node.Property[]  props,
boolean[]  sortable 
)
void cern.gp.explorer.ListTableExplorer.setRootNode ( GPNode  node  ) 

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

Otherwise, you should use setListNodes(GPNode[])

Parameters:
parentNode the parent of the nodes to be displayed in the List

Reimplemented from cern.gp.explorer.GPListExplorerPanel.

References cern.gp.explorer.ListTableExplorer.getTreeTableAccess(), cern.gp.explorer.TreeTableViewTableAccess.getTreeTableView(), and cern.gp.explorer.ListTableExplorer.setTableColumns().

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

void cern.gp.explorer.ListTableExplorer.setTableColumnPreferredWidth ( int  index,
int  width 
)
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Class[]  propTypes,
String[]  propNames 
)
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Object  bean,
String[]  propNames 
) throws IntrospectionException
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Object  bean,
String[]  propNames,
boolean[]  sortable 
) throws IntrospectionException
Since:
2.0.6
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Class  beanClass,
String[]  propNames 
) throws IntrospectionException
Deprecated:
use setTableColumns(Object, String[]) or setTableColumns(GPBean, String[]) instead
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Class  beanClass  )  throws IntrospectionException
Deprecated:
use setTableColumns(Object) or setTableColumns(GPBean, String[]) instead
void cern.gp.explorer.ListTableExplorer.setTableColumns ( String[]  propNames  )  throws IntrospectionException

set the columns to be displayed. Note that before this method is called you must have called setListNodes(GPNode[])

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

void cern.gp.explorer.ListTableExplorer.setTableColumns ( GPNode  node,
String[]  propNames,
boolean[]  sortable 
)
Since:
2.0.6
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Object  bean  )  throws IntrospectionException
void cern.gp.explorer.ListTableExplorer.setTableColumns ( GPNode  node,
String[]  propNames 
)
void cern.gp.explorer.ListTableExplorer.setTableColumns ( Class[]  propTypes,
String[]  propNames,
boolean[]  sortable 
)
Since:
2.0.6
void cern.gp.explorer.ListTableExplorer.setTreePreferredWidth ( int  width  ) 

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