1 package org.simantics.district.network.ui.table;
3 import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
5 public class RowHeaderTableDataProvider implements IDataProvider {
7 protected final IDataProvider bodyDataProvider;
9 public RowHeaderTableDataProvider(IDataProvider bodyDataProvider) {
10 this.bodyDataProvider = bodyDataProvider;
14 public int getColumnCount() {
19 public int getRowCount() {
20 return this.bodyDataProvider.getRowCount();
24 public Object getDataValue(int columnIndex, int rowIndex) {
25 return Integer.valueOf(rowIndex + 1);
29 public void setDataValue(int columnIndex, int rowIndex, Object newValue) {
30 throw new UnsupportedOperationException();