]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeColumnHeaderTableDataProvider.java
First testing version of TechTypeTable
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / techtype / table / TechTypeColumnHeaderTableDataProvider.java
1 package org.simantics.district.network.ui.techtype.table;
2
3 import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
4
5 public class TechTypeColumnHeaderTableDataProvider implements IDataProvider {
6
7         private TechTypeTableDataProvider bodyDataProvider;
8
9     public TechTypeColumnHeaderTableDataProvider(TechTypeTableDataProvider bodyDataProvider) {
10             this.bodyDataProvider = bodyDataProvider;
11     }
12
13     @Override
14         public Object getDataValue(int columnIndex, int rowIndex) {
15                 return bodyDataProvider.getHeaderValue(columnIndex);
16         }
17
18         @Override
19         public void setDataValue(int columnIndex, int rowIndex, Object newValue) {
20                 
21         }
22
23         @Override
24         public int getColumnCount() {
25                 return bodyDataProvider.getColumnCount();
26         }
27
28         @Override
29         public int getRowCount() {
30                 return 1;
31         }
32
33 }