Ejemplo n.º 1
0
 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;
   }
 }
Ejemplo n.º 2
0
 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;
   }
 }
Ejemplo n.º 3
0
 public TextWithImports getExpressionAt(int row) {
   return (row >= 0 && row < myData.size()) ? myData.get(row).value : null;
 }
Ejemplo n.º 4
0
 public String getNameAt(int row) {
   return (row >= 0 && row < myData.size()) ? myData.get(row).name : null;
 }