Class CollectionEditor

    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionEditor​(java.lang.Class<?> elementType)
      Creates a new CollectionEditor instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object defaultElement()  
      protected java.util.Collection<java.lang.Object> newCollection()  
      protected java.lang.String toText​(java.lang.Object value)
      Returns a String representation of the given value
      protected 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

      • CollectionEditor

        public CollectionEditor​(java.lang.Class<?> elementType)
        Creates a new CollectionEditor instance
        Parameters:
        elementType - The Element type
    • Method Detail

      • toText

        protected final java.lang.String toText​(java.lang.Object value)
        Returns a String representation of the given value
        Specified by:
        toText in class AbstractPropertyEditor
        Parameters:
        value - The value
        Returns:
        A String representation of the value
      • toValue

        protected final java.lang.Object toValue​(java.lang.String text)
                                          throws java.lang.IllegalArgumentException
        Returns an instance from a String representation of an object
        Specified by:
        toValue in class AbstractPropertyEditor
        Parameters:
        text - The String representation to convert
        Returns:
        A instance of an object
        Throws:
        java.lang.IllegalArgumentException
      • newCollection

        protected java.util.Collection<java.lang.Object> newCollection()
      • defaultElement

        protected java.lang.Object defaultElement()