com.jidesoft.grid
Interface ColumnIdentifierTableModel
- All Known Implementing Classes:
- AggregateTableModel, AutoFilterUtils.AutoFilterRowTableModel, BatchedCrudTableModelWrapper, CachedTableModel, CalculatedHeaderTableModel, CalculatedTableModel, CrudTableModelAdapter, DataTableModel, DefaultColumnTableModelWrapper, DefaultGroupTableModel, DefaultPageTableModel, DefaultTableModelWrapper, FilterableAggregateTableModel, FilterableTableModel, FilterableTreeTableModel, HeaderTableModel, JoinTableModel, LuceneFilterableTableModel, SortableAggregateTableModel, SortableTableModel, SortableTreeTableModel, TableModelWrapperImpl, TransposeTableModel
public interface ColumnIdentifierTableModel
ColumnIdentifierTableModel
provides a way to let TableModel define an unique identifier for each table
column. As long as JideTable
is used, the TableColumn.getIdentifier()
will
return the correct identifier returned from getColumnIdentifier(int)
method, even when the TableColumnModel
is recreated.
There are two use cases that this interface could be used. One is you need to localize the column names. You can
return identifiers that are not localized for each column, while localizes getColumnName to return whatever localized
string you want. The other case is you have duplicated column names. Several TableUtils's load/save methods and
TableColumnChooser will use this feature to make sure the columns are uniquely identified.
getColumnIdentifier
Object getColumnIdentifier(int columnIndex)
- Returns the identifier of the column in the model. A
JideTable
uses this method to get the unique
identifier of this column.
- Parameters:
columnIndex
- the index of the column
- Returns:
- the unique identifier of the column.