1 package org.simantics.district.network.ui.table;
3 import java.util.Collection;
5 import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
7 public class TableDataProvider implements IDataProvider {
9 private String[][] data = null;
12 public Object getDataValue(int columnIndex, int rowIndex) {
16 return data[rowIndex][columnIndex];
21 public void setDataValue(int columnIndex, int rowIndex, Object newValue) {
26 public int getColumnCount() {
30 return data[0].length;
35 public int getRowCount() {
43 public boolean isEditable(int columnIndex, int rowIndex) {
47 public void setDataValues(Collection<Integer> pasteColumn, int pasteRow, String[][] fullData) {
48 // start always from row index 0 and column index 0
52 public String[][] getCurrentData() {