JIDE 3.5.15

com.jidesoft.grid
Interface RowTableModelWrapper

All Superinterfaces:
TableModelWrapper
All Known Subinterfaces:
IndexedRowTableModelWrapper
All Known Implementing Classes:
AggregateTableModel, CachedTableModel, DefaultGroupTableModel, DefaultPageTableModel, DefaultTableModelWrapper, FilterableAggregateTableModel, FilterableTableModel, FilterableTreeTableModel, LuceneFilterableTableModel, SortableAggregateTableModel, SortableTableModel, SortableTreeTableModel

public interface RowTableModelWrapper
extends TableModelWrapper

RowTableModelWrapper 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 row mapping to create a different view to the actual model. A typical use case is SortableTableModel.

Just so you know, there are several useful methods at TableModelWrapperUtils which allows you to do the row index conversion from view index to model index and vice versa.

See Also:
TableModelWrapperUtils

Method Summary
 int getActualRowAt(int visualRow)
          Gets the actual row index in the underlying table that corresponds the specified row index.
 int getVisualRowAt(int actualRow)
          Gets the visual row index representing the specified actual row.
 
Methods inherited from interface com.jidesoft.grid.TableModelWrapper
getActualModel
 

Method Detail

getActualRowAt

int getActualRowAt(int visualRow)
Gets the actual row index in the underlying table that corresponds the specified row index.

Parameters:
visualRow - the visual row index.
Returns:
the actual row. If the actual row doesn't exist, return -1.

getVisualRowAt

int getVisualRowAt(int actualRow)
Gets the visual row index representing the specified actual row.

Parameters:
actualRow - the actual row index.
Returns:
the visual row index. -1 if there is no visual row representing it.

JIDE 3.5.15