Class EnumerationValuePropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jdesktop.beans.editors.EnumerationValuePropertyEditor
- All Implemented Interfaces:
PropertyEditor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EnumerationValueprivate String[]private Map<Object, EnumerationValue> -
Constructor Summary
ConstructorsConstructorDescriptionEnumerationValuePropertyEditor(EnumerationValue defaultEnum, EnumerationValue... enums) Creates a new instance of EnumerationValuePropertyEditor -
Method Summary
Modifier and TypeMethodDescriptionString[]getTags()private EnumerationValuegetValueByName(String name) voidMethods inherited from class PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Field Details
-
tags
-
values
-
defaultValue
-
-
Constructor Details
-
EnumerationValuePropertyEditor
Creates a new instance of EnumerationValuePropertyEditor
-
-
Method Details
-
getJavaInitializationString
- Specified by:
getJavaInitializationStringin interfacePropertyEditor- Overrides:
getJavaInitializationStringin classPropertyEditorSupport
-
getTags
- Specified by:
getTagsin interfacePropertyEditor- Overrides:
getTagsin classPropertyEditorSupport
-
getAsText
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-
getValueByName
-