addEditor();
} else {
removeEditor();
}
} else if (StringConstants.MODEL_PROPERTY_CHANGED.equals(event.getPropertyName())) {
ComboBoxModel newModel = (ComboBoxModel)event.getNewValue();
listBox.setModel(newModel);
comboBox.configureEditor(comboBox.getEditor(), newModel.getSelectedItem());
ComboBoxModel oldModel = (ComboBoxModel)event.getOldValue();
oldModel.removeListDataListener(listDataListener);
newModel.addListDataListener(listDataListener);
} else if (StringConstants.COMPONENT_ORIENTATION.equals(event.getPropertyName())) {
listBox.setComponentOrientation((ComponentOrientation)event.getNewValue());
} else if (StringConstants.IS_TABLE_EDITOR.equals(event.getPropertyName())) {
isTableEditor = ((Boolean)event.getNewValue()).booleanValue();