Class StringWithChoicesEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class StringWithChoicesEditor
    extends java.beans.PropertyEditorSupport
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsText()  
      java.lang.String[] getTags()  
      java.lang.Object getValue()  
      void setAsText​(java.lang.String s)  
      void setChoices​(java.lang.String[] choices)  
      void setValue​(java.lang.Object o)  
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringWithChoicesEditor

        public StringWithChoicesEditor​(java.lang.String[] choices)
      • StringWithChoicesEditor

        public StringWithChoicesEditor​(java.util.List<java.lang.String> choices)
    • Method Detail

      • setValue

        public void setValue​(java.lang.Object o)
        Specified by:
        setValue in interface java.beans.PropertyEditor
        Overrides:
        setValue in class java.beans.PropertyEditorSupport
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface java.beans.PropertyEditor
        Overrides:
        getValue in class java.beans.PropertyEditorSupport
      • 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 s)
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
      • setChoices

        public void setChoices​(java.lang.String[] choices)