Class EnumEditor

    • Constructor Detail

      • EnumEditor

        public EnumEditor​(Class enumType)
        Creates a new EnumEditor instance
        Parameters:
        enumType - The type of Enum
    • Method Detail

      • toText

        protected String toText​(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 Object toValue​(String text)
        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