JIDE 3.5.15

com.jidesoft.grid
Interface ITreeTableModel<T extends Row>

All Known Implementing Classes:
AbstractGroupTableModel, AbstractPropertyTableModel, CalculatedTableModel, DefaultColumnTableModelWrapper, DefaultGanttTreeTableModel, DefaultGroupTableModel, DefaultPageTableModel, FilterableTreeTableModel, PropertyTableModel, SortableTreeTableModel, TreeTableModel

public interface ITreeTableModel<T extends Row>


Method Summary
 Object getRoot()
          Gets the root expandable row which has the original rows as children.
 Row getRowAt(int rowIndex)
          Returns the row at row specified by row.
 int getRowIndex(T row)
          Gets the index of the row.
 

Method Detail

getRowAt

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

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

getRowIndex

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

Parameters:
row - 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.

getRoot

Object getRoot()
Gets the root expandable row which has the original rows as children.

Returns:
the root expandable row.

JIDE 3.5.15