if (refill)
selectAndFillCard();
}
protected void doSave() {
ArrayList defaultValues = new ArrayList();
int type = typeFromWidgets();
int arity = arityFromWidgets();
// Create list of new default values.
switch (arity) {
case Parameter.ARITY_ONE:
switch (type) {
case Parameter.TYPE_BOOLEAN:
defaultValues.add(Boolean.valueOf(boolYesRButton.isSelected()));
case Parameter.TYPE_DATE:
break;
default:
defaultValues.add(singleField.getText());
break;
}
break;
case Parameter.ARITY_RANGE:
defaultValues.add(rangeFromField.getText());
defaultValues.add(rangeToField.getText());
break;
case Parameter.ARITY_LIST_SINGLE:
case Parameter.ARITY_LIST_MULTIPLE:
DefaultListModel model = (DefaultListModel)list.getModel();
for (Enumeration e = model.elements(); e.hasMoreElements(); )
defaultValues.add(e.nextElement());
break;
}
ParamEditCommand cmd =
new ParamEditCommand(param, nameField.getText(),