Package org.jdesktop.swingx.editors
Class EnumPropertyEditor<E extends Enum<E>>
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jdesktop.swingx.editors.EnumPropertyEditor<E>
-
- All Implemented Interfaces:
PropertyEditor
- Direct Known Subclasses:
AbstractAreaPainterBeanInfo.StylePropertyEditor
,AbstractLayoutPainterBeanInfo.HorizontalAlignmentPropertyEditor
,AbstractLayoutPainterBeanInfo.VerticalAlignmentPropertyEditor
,AbstractPainterBeanInfo.InterpolationPropertyEditor
,GlossPainterBeanInfo.GlossPositionPropertyEditor
,ImagePainterBeanInfo.ScaleTypePropertyEditor
,JXCollapsiblePaneBeanInfo.DirectionPropertyEditor
,JXFrameBeanInfo.StartPositionPropertyEditor
,JXHeaderBeanInfo.IconPositionPropertyEditor
,NeonBorderEffectBeanInfo.BorderPositionPropertyEditor
public class EnumPropertyEditor<E extends Enum<E>> extends PropertyEditorSupport
- Author:
- joshy
-
-
Constructor Summary
Constructors Constructor Description EnumPropertyEditor(Class<E> en)
Creates a new instance of EnumPropertyEditor
-
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
-
-
-
-
Method Detail
-
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
-
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacePropertyEditor
- Overrides:
getJavaInitializationString
in classPropertyEditorSupport
-
-