public void setValueAt(Object aValue, int rowIndex, int columnIndex) { if (rowIndex >= getRowCount()) { return; } final Row row = myData.get(rowIndex); switch (columnIndex) { case NAME_TABLE_COLUMN: row.name = (String) aValue; break; case EXPRESSION_TABLE_COLUMN: row.value = (TextWithImports) aValue; break; } }
public Object getValueAt(int rowIndex, int columnIndex) { if (rowIndex >= getRowCount()) { return null; } final Row row = myData.get(rowIndex); switch (columnIndex) { case NAME_TABLE_COLUMN: return row.name; case EXPRESSION_TABLE_COLUMN: return row.value; default: return null; } }
public TextWithImports getExpressionAt(int row) { return (row >= 0 && row < myData.size()) ? myData.get(row).value : null; }
public String getNameAt(int row) { return (row >= 0 && row < myData.size()) ? myData.get(row).name : null; }