Beispiel #1
0
  @Override
  public void setRowIndex(int rowIndex) {

    if ((0 <= rowIndex) && (rowIndex < rows.length)) {
      model.setRowIndex(rows[rowIndex]);
    } else {
      model.setRowIndex(rowIndex);
    }
  }
Beispiel #2
0
  private T getData(int row) {
    int baseRowIndex = model.getRowIndex();

    model.setRowIndex(row);
    T newRowData = model.getRowData();
    model.setRowIndex(baseRowIndex);

    return newRowData;
  }