JIDE 3.5.15

com.jidesoft.grid
Interface ColumnTableModelWrapper

All Superinterfaces:
TableModelWrapper
All Known Implementing Classes:
AggregateTableModel, CalculatedTableModel, DefaultColumnTableModelWrapper, DefaultGroupTableModel

public interface ColumnTableModelWrapper
extends TableModelWrapper

ColumnTableModelWrapper is a wrapper around table model which is referred as the actual table model or underlying table model. It can be used to provide a different column mapping to create a different view to the actual model. A typical use case is SortableTableModel.

Comparing to RowTableModelWrapper which wraps around the row index, ColumnTableModelWrapper wraps around column index.

See Also:
RowTableModelWrapper, TableModelWrapper

Method Summary
 int getActualColumnAt(int column)
          Gets the actual column index in the underlying table that corresponds the specified column index.
 int getVisualColumnAt(int actualColumn)
          Gets the visual column index representing the specified actual column.
 
Methods inherited from interface com.jidesoft.grid.TableModelWrapper
getActualModel
 

Method Detail

getActualColumnAt

int getActualColumnAt(int column)
Gets the actual column index in the underlying table that corresponds the specified column index.

Parameters:
column -
Returns:
the actual column. If the actual column doesn't exist, return -1.

getVisualColumnAt

int getVisualColumnAt(int actualColumn)
Gets the visual column index representing the specified actual column.

Parameters:
actualColumn -
Returns:
the visual column index. -1 if there is no visual column representing it.

JIDE 3.5.15