Class ConstructorConverter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Constructor constructor  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstructorConverter​(java.lang.Class type, java.lang.reflect.Constructor constructor)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ConstructorConverter editor​(java.lang.Class type)  
      protected java.lang.Object toObjectImpl​(java.lang.String text)
      Converts the supplied text in to an instance of the editor type.
      • 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
      • Methods inherited from interface java.beans.PropertyEditor

        addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
    • Field Detail

      • constructor

        private final java.lang.reflect.Constructor constructor
    • Constructor Detail

      • ConstructorConverter

        public ConstructorConverter​(java.lang.Class type,
                                    java.lang.reflect.Constructor constructor)
    • Method Detail

      • toObjectImpl

        protected java.lang.Object toObjectImpl​(java.lang.String text)
        Description copied from class: AbstractConverter
        Converts the supplied text in to an instance of the editor type. The text will never be null, and trim() will already have been called.
        Specified by:
        toObjectImpl in class AbstractConverter
        Parameters:
        text - the text to convert
        Returns:
        an instance of the editor type