Package org.jdesktop.beans.editors
Class EnumerationValuePropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jdesktop.beans.editors.EnumerationValuePropertyEditor
- All Implemented Interfaces:
PropertyEditor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EnumerationValue
private 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 EnumerationValue
getValueByName
(String name) void
Methods inherited from class java.beans.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:
getJavaInitializationString
in interfacePropertyEditor
- Overrides:
getJavaInitializationString
in classPropertyEditorSupport
-
getTags
- Specified by:
getTags
in interfacePropertyEditor
- Overrides:
getTags
in classPropertyEditorSupport
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
getValueByName
-