

Classes | |
| class | GPTreeTableView |
Public Member Functions | |
| TreeTableExplorer () | |
| TreeTableExplorer (Class viewableBeanClass) | |
| TreeTableExplorer (Class[] viewableBeanClasses) | |
| TreeTableViewTableAccess | getTreeTableAccess () |
| void | setPreferredSize (java.awt.Dimension dim) |
| void | setTreePreferredWidth (int width) |
| void | setTableColumnPreferredWidth (int colIndex, int width) |
| void | setTableColumns (Class beanClass) throws IntrospectionException |
| void | setTableColumns (Class beanClass, String[] propNames) throws IntrospectionException |
| void | setTableColumns (Class[] propTypes, String[] propNames) |
| void | setTableColumns (Object bean, String[] propNames) throws IntrospectionException |
| void | setTableColumns (Object bean) throws IntrospectionException |
| void | setTableColumns (GPNode node, String[] propNames) |
| void | setProperties (Node.Property[] props, boolean[] sortable) |
| void | setRowHeigth (int rowHeight) |
| int | getRowHeight () |
Private Attributes | |
| final TableHolder | tableHolder |
A GUI component that combines a Tree with a Table, whith a Tree on the left side and a table on the right. Each node of the tree 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 Tree contain JavaBeans-compliant objects, and the rows in the Table display the properties of these objects. 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 and ChildrenListManager or ChildrenMapManager to create the Node hierarchy to be explored.
| cern::gp::explorer::TreeTableExplorer::TreeTableExplorer | ( | ) | [inline] |
create an TreeTableExplorer with the default view and model.
References tableHolder.
| cern::gp::explorer::TreeTableExplorer::TreeTableExplorer | ( | Class | viewableBeanClass | ) | [inline] |
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.
| viewableBeanClass | the bean class whose properties shall be displayed in the Table |
| cern::gp::explorer::TreeTableExplorer::TreeTableExplorer | ( | Class[] | viewableBeanClasses | ) | [inline] |
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.
| viewableBeanClass | the bean classes whose properties shall be displayed in the Table |
References tableHolder.
| int cern::gp::explorer::TreeTableExplorer::getRowHeight | ( | ) | [inline] |
Reimplemented from cern::gp::explorer::TreeExplorer.
References cern::gp::explorer::TreeTableViewTableAccess::getTable(), and getTreeTableAccess().
| TreeTableViewTableAccess cern::gp::explorer::TreeTableExplorer::getTreeTableAccess | ( | ) | [inline] |
Getter Method
References cern::gp::explorer::TreeExplorer::getTreeAccess().
Referenced by getRowHeight(), setPreferredSize(), setProperties(), setRowHeigth(), setTableColumnPreferredWidth(), and setTreePreferredWidth().
| void cern::gp::explorer::TreeTableExplorer::setPreferredSize | ( | java.awt.Dimension | dim | ) | [inline] |
set the preferred size of the whole explorer + table
References getTreeTableAccess(), and cern::gp::explorer::TreeTableViewTableAccess::getTreeTableView().
| void cern::gp::explorer::TreeTableExplorer::setProperties | ( | Node.Property[] | props, | |
| boolean[] | sortable | |||
| ) | [inline] |
Implements cern::gp::explorer::TablePropertyHolder.
References getTreeTableAccess(), and cern::gp::explorer::TreeTableViewTableAccess::getTreeTableView().
| void cern::gp::explorer::TreeTableExplorer::setRowHeigth | ( | int | rowHeight | ) | [inline] |
set the height of the rows as in JTree#setRowHeight(int) or javax.swing.JTable#setRowHeight(int)
| rowHeight |
Reimplemented from cern::gp::explorer::TreeExplorer.
References cern::gp::explorer::TreeTableViewTableAccess::getTable(), and getTreeTableAccess().
| void cern::gp::explorer::TreeTableExplorer::setTableColumnPreferredWidth | ( | int | colIndex, | |
| int | width | |||
| ) | [inline] |
set the width of a column
| colIndex | the index of the column (starting from left with index 0) | |
| width | the width of this column |
References getTreeTableAccess(), and cern::gp::explorer::TreeTableViewTableAccess::getTreeTableView().
| void cern::gp::explorer::TreeTableExplorer::setTableColumns | ( | GPNode | node, | |
| String[] | propNames | |||
| ) | [inline] |
References cern::gp::explorer::TableHolder::setTableColumns(), and tableHolder.
| void cern::gp::explorer::TreeTableExplorer::setTableColumns | ( | Object | bean | ) | throws IntrospectionException [inline] |
References setTableColumns().
| void cern::gp::explorer::TreeTableExplorer::setTableColumns | ( | Object | bean, | |
| String[] | propNames | |||
| ) | throws IntrospectionException [inline] |
References cern::gp::explorer::TableHolder::setTableColumns(), and tableHolder.
| void cern::gp::explorer::TreeTableExplorer::setTableColumns | ( | Class[] | propTypes, | |
| String[] | propNames | |||
| ) | [inline] |
References cern::gp::explorer::TableHolder::setTableColumns(), and tableHolder.
| void cern::gp::explorer::TreeTableExplorer::setTableColumns | ( | Class | beanClass, | |
| String[] | propNames | |||
| ) | throws IntrospectionException [inline] |
References cern::gp::explorer::TableHolder::setTableColumns(), and tableHolder.
| void cern::gp::explorer::TreeTableExplorer::setTableColumns | ( | Class | beanClass | ) | throws IntrospectionException [inline] |
| void cern::gp::explorer::TreeTableExplorer::setTreePreferredWidth | ( | int | width | ) | [inline] |
set the width of the Tree part of the TreeTableExplorer
| width | the preferred width |
References getTreeTableAccess(), and cern::gp::explorer::TreeTableViewTableAccess::getTreeTableView().
final TableHolder cern::gp::explorer::TreeTableExplorer::tableHolder [private] |
Referenced by setTableColumns(), and TreeTableExplorer().
1.6.2