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

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jdesktop.swingx.editors.EnumPropertyEditor<E>
All Implemented Interfaces:
java.beans.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 java.lang.Enum<E>>
extends java.beans.PropertyEditorSupport


Constructor Summary
EnumPropertyEditor(java.lang.Class<E> en)
          Creates a new instance of EnumPropertyEditor
 
Method Summary
 java.lang.String getAsText()
           
 java.lang.String getJavaInitializationString()
           
 java.lang.String[] getTags()
           
 void setAsText(java.lang.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(java.lang.Class<E> en)
Creates a new instance of EnumPropertyEditor

Method Detail

getTags

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

getAsText

public java.lang.String getAsText()
Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport

setAsText

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

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor
Overrides:
getJavaInitializationString in class java.beans.PropertyEditorSupport