JIDE 3.5.15

com.jidesoft.grid
Interface ContextSensitiveTableModel

All Superinterfaces:
TableModel
All Known Subinterfaces:
MultiTableModel
All Known Implementing Classes:
AbstractGroupTableModel, AbstractMultiTableModel, AbstractPageTableModel, AbstractPropertyTableModel, AdvancePageTableModel, AggregateTableModel, AutoFilterUtils.AutoFilterRowTableModel, BasicTableModel, BatchedCrudTableModelWrapper, BeanTableModel, CachedTableModel, CalculatedHeaderTableModel, CalculatedTableModel, CrudDatabaseTableModel, CrudTableModelAdapter, DatabaseTableModel, DataTableModel, DefaultColumnTableModelWrapper, DefaultContextSensitiveTableModel, DefaultGanttTreeTableModel, DefaultGroupableTableModel, DefaultGroupTableModel, DefaultMultiTableModel, DefaultPageTableModel, DefaultTableModelWrapper, FeedItemTableModel, FilterableAggregateTableModel, FilterableTableModel, FilterableTreeTableModel, HeaderTableModel, HibernatePageTableModel, HibernateTableModel, JoinTableModel, ListTableModelAdapter, LuceneFilterableTableModel, PropertyTableModel, SortableAggregateTableModel, SortableTableModel, SortableTreeTableModel, TableModelWrapperImpl, TransposeTableModel, TreeTableModel

public interface ContextSensitiveTableModel
extends TableModel

This interface should be used along with TableModel class. Combining with TableModel, it will be able to get converter context, editor context and type of each cell.

The cellClassAt and the converterContextAt will provide the key to look up for the ObjectConverter from ObjectConverterManager. The cellClassAt and the editorContextAt will provide the key to look up for the TableCellRenderer and TableCellEditorfrom CellRendererManager and CellEditorManager respectively.


Method Summary
 Class<?> getCellClassAt(int rowIndex, int columnIndex)
          Gets the type at cell (row, column).
 ConverterContext getConverterContextAt(int rowIndex, int columnIndex)
          Gets the converter context at cell (row, column).
 EditorContext getEditorContextAt(int rowIndex, int columnIndex)
          Gets the editor context at cell (row, column).
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getConverterContextAt

ConverterContext getConverterContextAt(int rowIndex,
                                       int columnIndex)
Gets the converter context at cell (row, column).

For a special row index like -1, please return the default converter context for the entire column if there is any.

Parameters:
rowIndex - the row index
columnIndex - the column index
Returns:
converter context

getEditorContextAt

EditorContext getEditorContextAt(int rowIndex,
                                 int columnIndex)
Gets the editor context at cell (row, column).

For a special row index like -1, please return the default editor context for the entire column if there is any.

Parameters:
rowIndex - the row index
columnIndex - the column index
Returns:
editor context

getCellClassAt

Class<?> getCellClassAt(int rowIndex,
                        int columnIndex)
Gets the type at cell (row, column).

For a special row index like -1, please return the default column class for the entire column if there is any.

Parameters:
rowIndex - the row index
columnIndex - the column index
Returns:
type

JIDE 3.5.15