@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; }