Class AbstractPropertyEditor

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String defaultText()  
      protected java.lang.Object defaultValue()  
      java.lang.String getAsText()
      java.lang.Object getValue()
      void setAsText​(java.lang.String text)
      protected void setTrimText​(boolean trimText)  
      void setValue​(java.lang.Object value)
      protected abstract java.lang.String toText​(java.lang.Object value)
      Returns a String representation of the given value
      protected abstract java.lang.Object toValue​(java.lang.String text)
      Returns an instance from a String representation of an object
      • Methods inherited from class java.beans.PropertyEditorSupport

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

      • AbstractPropertyEditor

        public AbstractPropertyEditor()
    • Method Detail

      • setTrimText

        protected void setTrimText​(boolean trimText)
      • getAsText

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

        public void setAsText​(java.lang.String text)
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
      • setValue

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

        protected java.lang.String defaultText()
        Returns:
        The default text
      • defaultValue

        protected java.lang.Object defaultValue()
        Returns:
        The default value
      • toText

        protected abstract java.lang.String toText​(java.lang.Object value)
        Returns a String representation of the given value
        Parameters:
        value - The value
        Returns:
        A String representation of the value
      • toValue

        protected abstract java.lang.Object toValue​(java.lang.String text)
        Returns an instance from a String representation of an object
        Parameters:
        text - The String representation to convert
        Returns:
        A instance of an object