Package org.jdesktop.swingx.editors
Class EnumerationValuePropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jdesktop.swingx.editors.EnumerationValuePropertyEditor
-
- All Implemented Interfaces:
PropertyEditor
public abstract class EnumerationValuePropertyEditor extends PropertyEditorSupport
- Author:
- Richard
-
-
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 String
getAsText()
String
getJavaInitializationString()
String[]
getTags()
void
setAsText(String text)
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
-
-
-
Constructor Detail
-
EnumerationValuePropertyEditor
public EnumerationValuePropertyEditor(EnumerationValue defaultEnum, EnumerationValue... enums)
Creates a new instance of EnumerationValuePropertyEditor
-
-
Method Detail
-
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacePropertyEditor
- Overrides:
getJavaInitializationString
in classPropertyEditorSupport
-
getTags
public String[] getTags()
- Specified by:
getTags
in interfacePropertyEditor
- Overrides:
getTags
in classPropertyEditorSupport
-
getAsText
public String getAsText()
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
-