JIDE 3.5.15

com.jidesoft.grid
Interface RowModel

All Known Subinterfaces:
TableRowModel
All Known Implementing Classes:
TransposeTableModel

public interface RowModel

RowModel is a table model interface that supports row based on table model. The row object must implement Row interface.


Method Summary
 Row getRowAt(int rowIndex)
          /** Returns the Row at the row index specified by rowIndex.
 int getRowIndex(Row row)
          Gets the index of the Row.
 

Method Detail

getRowAt

Row getRowAt(int rowIndex)
/** Returns the Row at the row index specified by rowIndex.

Parameters:
rowIndex - the row whose row is to be queried
Returns:
the row at the specified row index

getRowIndex

int getRowIndex(Row row)
Gets the index of the Row.

Parameters:
row - the Row
Returns:
the index of the Row. If the row is displayed in the table, it will return the index. Otherwise, it will return -1. So -1 could mean two things - the row is not displayed or the row is not in the tree hierarchy at all.

JIDE 3.5.15