swingx
Version 2009-07-31

org.jdesktop.swingx.editors
Class EnumPropertyEditor<E extends Enum<E>>

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by 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


Constructor Summary
EnumPropertyEditor(Class<E> en)
          Creates a new instance of EnumPropertyEditor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumPropertyEditor

public EnumPropertyEditor(Class<E> en)
Creates a new instance of EnumPropertyEditor

Method Detail

getTags

public String[] getTags()
Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class PropertyEditorSupport

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getJavaInitializationString

public String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport

swingx
Version 2009-07-31