Package org.jdesktop.beans.editors
Class EnumerationValuePropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jdesktop.beans.editors.EnumerationValuePropertyEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public abstract class EnumerationValuePropertyEditor extends java.beans.PropertyEditorSupport
-
-
Field Summary
Fields Modifier and Type Field Description private EnumerationValue
defaultValue
private java.lang.String[]
tags
private java.util.Map<java.lang.Object,EnumerationValue>
values
-
Constructor Summary
Constructors Constructor Description EnumerationValuePropertyEditor(EnumerationValue defaultEnum, EnumerationValue... enums)
Creates a new instance of EnumerationValuePropertyEditor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAsText()
java.lang.String
getJavaInitializationString()
java.lang.String[]
getTags()
private EnumerationValue
getValueByName(java.lang.String name)
void
setAsText(java.lang.String text)
-
-
-
Field Detail
-
tags
private java.lang.String[] tags
-
values
private java.util.Map<java.lang.Object,EnumerationValue> values
-
defaultValue
private EnumerationValue defaultValue
-
-
Constructor Detail
-
EnumerationValuePropertyEditor
public EnumerationValuePropertyEditor(EnumerationValue defaultEnum, EnumerationValue... enums)
Creates a new instance of EnumerationValuePropertyEditor
-
-
Method Detail
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacejava.beans.PropertyEditor
- Overrides:
getJavaInitializationString
in classjava.beans.PropertyEditorSupport
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTags
in interfacejava.beans.PropertyEditor
- Overrides:
getTags
in classjava.beans.PropertyEditorSupport
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
- Specified by:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
- Throws:
java.lang.IllegalArgumentException
-
getValueByName
private EnumerationValue getValueByName(java.lang.String name)
-
-