Package de.jaret.util.ui.table.model

This package contains the model and model listeners for the jaret table.

See:
          Description

Interface Summary
IColumn Interface for a column used in a jaret table model.
IColumnListener Interface for listening on value changes on a specific cell in a column.
IHierarchicalJaretTableModel Hierarchical model for the jaret table.
IHierarchicalTableViewState Interface describing a hierarchical table viewstate.
IHierarchicalTableViewStateListener Listener interface for listening on expanded/folded events.
IJaretTableCell Interface describing the location (in the data model) of a single cell.
IJaretTableModel Interface for the table model used by the jaret table.
IJaretTableModelListener Listener for listening to table model changes on a jaret table model.
IJaretTableSelection Interface describing the selection in a jaret table.
IJaretTableSelectionModel Selection model for the jaret table.
IJaretTableSelectionModelListener Listener for listening on selection changes on a jaret table selection.
IPropColAccessor Interface describing an accessor to be used together with the PropCol.
IRow Row interface for rows used with jaret table models.
IRowSorter A comparator for IRow to be set on the table.
ITableFocusListener Interface for listeners listening to the focus move on a jaret table.
ITableNode Interface describing a table row in a hierarchy of rows.
ITableNodeListener Interface for listening on jaret table nodes in a hierarchical model.
ITableViewState View state of a jaret table.
ITableViewStateListener Interface for listening to changes on the viewstate.
 

Class Summary
AbstractColumn Abstract base implemenation of an IColumn.
AbstractJaretTableModel Abstract base implementation of a JaretTableModel.
AbstractRowFilter Abstract base implementation of a RowFilter to allow easy anonymous inner classes to be constructed.
AbstractRowSorter Abstract RowSorter base for easy creating of anonymous inner classes.
AbstractTableNode Abstract base implementation of an ITableNode.
DefaultHierarchicalTableModel Default implementation of a hierarchical jaret table model.
DefaultHierarchicalTableViewState Default implementation of a hierarchical view state.
DefaultJaretTableModel Default Jaret table model.
DefaultTableViewState Default implementation of a TableViewState for the jaret table.
HierarchyColumn Dummy column for placement of the hierarchy.
IndexColumn A simple column displaying the row index.
JaretTableCellImpl Implementation of the IJaretTableCell.
JaretTableSelectionImpl Implementation of the JaretTableSelection.
JaretTableSelectionModelImpl Implementation of the JaretTableSelectionModel.
PropCol Column implementation for the jaret table using reflection (getPropName, setPropName) to retrieve the column value.
PropListeningTableModel Extension of the DefaultJaretTableModel registering itself as a property change listener on each row.
StdHierarchicalTableModel Implementation of a "normal" jaret table model based on a hierarchical jaret table model.
 

Enum Summary
ITableViewState.ColumnResizeMode Enumeration for the possible resize behaviours: NONE: resize will only have an effect on the resized column SUBSEQUENT: resize will take/give the space from the next visible column (unless minwidth is reached) ALLSUBSEQUENT: resize will take/give the space from all following visible columns (unless minwidth of those is reached) ALL: width is interpreted as a weight; all columns will be resized Recommended mode is NONE since the other modes result in heavy redraw activity.
ITableViewState.HAlignment  
ITableViewState.RowHeightMode Enumeration for the row height mode of a table row.
ITableViewState.VAlignment  
 

Package de.jaret.util.ui.table.model Description

This package contains the model and model listeners for the jaret table.

The JaretTableModel is a flat table model consisting of IRow and IColumn objects. There is an abstract base implementation AbstractJaretTableModel supplying the usual listener helper methods leaving a hole for the oncrete data supplying model. The DefaultTableModel is ready to use. As Rows any POJO can do. Combined with the PropCol implementation of IColumn properties of the POJO can easily projected to table columns.

The IHierarchicalTableModel is a hierarchy of ITableNodes (extends IRow) supplying the base for a hierarchy. The DefaultHierarchicalTableModel is a plain default implementation. The StdHierarchicalTableModel does the job of projecting the hierarchy to the flat model. It is specially handled by the jaret table in some aspects (folding and unfolding).

The TableViewState is the central interface for controlling visual representation. There is an extension handling the hierachical aspects of a hierarchical model.



Copyright © 2012. All Rights Reserved.