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

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

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

    return newRowData;
  }
Exemple #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;
     }
   }
 }
Exemple #4
0
 @Override
 public Object getWrappedData() {
   return model.getWrappedData();
 }
Exemple #5
0
 @Override
 public int getRowIndex() {
   return model.getRowIndex();
 }
Exemple #6
0
 @Override
 public T getRowData() {
   return model.getRowData();
 }
Exemple #7
0
 @Override
 public int getRowCount() {
   return model.getRowCount();
 }
Exemple #8
0
 @Override
 public boolean isRowAvailable() {
   return model.isRowAvailable();
 }