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

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

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

    return newRowData;
  }
Example #3
0
 private void initRows() {
   int rowCount = model.getRowCount();
   if (rowCount != -1) {
     this.rows = new Integer[rowCount];
     for (int i = 0; i < rowCount; ++i) {
       rows[i] = i;
     }
   }
 }
Example #4
0
 @Override
 public Object getWrappedData() {
   return model.getWrappedData();
 }
Example #5
0
 @Override
 public int getRowIndex() {
   return model.getRowIndex();
 }
Example #6
0
 @Override
 public T getRowData() {
   return model.getRowData();
 }
Example #7
0
 @Override
 public int getRowCount() {
   return model.getRowCount();
 }
Example #8
0
 @Override
 public boolean isRowAvailable() {
   return model.isRowAvailable();
 }