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 EnumerationValuedefaultValueprivate java.lang.String[]tagsprivate 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.StringgetAsText()java.lang.StringgetJavaInitializationString()java.lang.String[]getTags()private EnumerationValuegetValueByName(java.lang.String name)voidsetAsText(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:
getJavaInitializationStringin interfacejava.beans.PropertyEditor- Overrides:
getJavaInitializationStringin classjava.beans.PropertyEditorSupport
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTagsin interfacejava.beans.PropertyEditor- Overrides:
getTagsin classjava.beans.PropertyEditorSupport
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport- Throws:
java.lang.IllegalArgumentException
-
getValueByName
private EnumerationValue getValueByName(java.lang.String name)
-
-