// CHECKSTYLE:ON
public void itemStateChanged(ItemEvent e) {
if (!filterPredicatesLoading) {
CriterionFieldEnum deSelectedItem = null;
if (e.getStateChange() == e.DESELECTED) {
deSelectedItem = (CriterionFieldEnum) e.getItem();
}
Component comp = null;
int selectedRow = filterTable.getSelectedRow();
// Get the source combo, and corresponding option combo and
// textbox and button references.
JComboBox sourceCombo = (JComboBox) e.getSource();
// find what is selected.
CriterionFieldEnum selectedItem = (CriterionFieldEnum) sourceCombo.getSelectedItem();
if (selectedItem != null) {
// get Metadata Object from the selected string.
GenericMetadata metadata = filterDomain.getMetaDataFromFieldType(selectedItem);
if (metadata instanceof LastModifiedDateMetadata) {