setEnabledComponets();
}
};
model.setObject(details);
FilteredComboBoxModel filteredModel = new FilteredComboBoxModel(cbInsurer, new FilteredComboBoxModel.MaskChecker(), true) {
@Override
public Object addItem(String txt) {
System.out.println("addItem: " + txt);
int res = MessageBox.showConfirmYesNo(MessageBox.C_ADD_INSURER_ANOTHER_REGION);
if (res == MessageBox.ANSWER_YES) {
try {
DirectoryInsurerItem insurerItem = dirInsurer.initNewItem(txt);
dirInsurer.getItems().append(insurerItem);
return insurerItem;
} catch (ClipsException ex) {
MessageBox.showException(ex);
return null;
}
} else {
return null;
}
}
};
filteredModel.setContainModel(model);
}