public boolean isCellEditable(int rowIndex, int ColumnIndex) {
return true;
}
public void setValueAt(Object aValue, int rowIndex, int colIndex) {
Parameter parameter = _model.getFuzzParameter(rowIndex);
Object defValue = parameter.getValue();
int priority = _model.getFuzzParameterPriority(rowIndex);
FuzzSource source = _model.getParameterFuzzSource(rowIndex);
switch (colIndex) {
case 0: parameter = new Parameter((String) aValue, parameter.getName(), parameter.getType(), defValue); break;
case 1: parameter = new Parameter(parameter.getLocation(), (String) aValue, parameter.getType(), defValue); break;
case 2: parameter = new Parameter(parameter.getLocation(), parameter.getName(), (String) aValue, defValue); break;
case 3: parameter = new Parameter(parameter.getLocation(), parameter.getName(), parameter.getType(), aValue); break;
case 4: priority = Integer.parseInt(aValue.toString()); break;
case 5: source = _fuzzFactory.getSource((String) aValue); break;
}
_model.setFuzzParameter(rowIndex, parameter, source, priority);
}