Class StringToIntPropertyEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class StringToIntPropertyEditor
    extends java.beans.PropertyEditorSupport
    Generic property editor where values are integers, but should be edited as strings.
    • Constructor Summary

      Constructors 
      Constructor Description
      StringToIntPropertyEditor​(java.lang.String[] textValues, int[] intValues)  
    • Method Summary

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

        addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, 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

      • StringToIntPropertyEditor

        public StringToIntPropertyEditor​(java.lang.String[] textValues,
                                         int[] intValues)
    • Method Detail

      • getTags

        public java.lang.String[] getTags()
        Specified by:
        getTags in interface java.beans.PropertyEditor
        Overrides:
        getTags 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
      • getAsText

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