buttonAdd.setEnabled(true);
}
public void addEntry() {
DcField field = (DcField) comboFields.getSelectedItem();
Operator operator = (Operator) comboOperators.getSelectedItem();
Object value = ComponentFactory.getValue(c);
if (field.getValueType() == DcRepository.ValueTypes._DCOBJECTCOLLECTION) {
Collection<Object> c = new ArrayList<Object>();
c.add(value);
value = c;
}
if (operator.needsValue() && (value == null || value.equals(""))) {
DcSwingUtilities.displayMessage("msgEnterFilterValue");
return;
}
DataFilterEntry entry =
new DataFilterEntry((String) comboAndOr.getSelectedItem(),
field.getModule(), field.getIndex(), operator,
operator.needsValue() ? value : null);
list.add(entry);
setFields(module);
if (comboFields.getItemCount() > 0) {