@Override public void setRowIndex(int rowIndex) { if ((0 <= rowIndex) && (rowIndex < rows.length)) { model.setRowIndex(rows[rowIndex]); } else { model.setRowIndex(rowIndex); } }
private T getData(int row) { int baseRowIndex = model.getRowIndex(); model.setRowIndex(row); T newRowData = model.getRowData(); model.setRowIndex(baseRowIndex); return newRowData; }
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; } } }
@Override public Object getWrappedData() { return model.getWrappedData(); }
@Override public int getRowIndex() { return model.getRowIndex(); }
@Override public T getRowData() { return model.getRowData(); }
@Override public int getRowCount() { return model.getRowCount(); }
@Override public boolean isRowAvailable() { return model.isRowAvailable(); }