Class IntChoicePropEditor

    • Constructor Detail

      • IntChoicePropEditor

        public IntChoicePropEditor()
        Default constructor called before createControls.
    • Method Detail

      • create

        protected void create()
        Creates the property editor controls.
        Specified by:
        create in class BaseEditor<IntProp,​java.lang.Integer>
      • getToolTipText

        protected java.lang.String getToolTipText()
        Gets the tooltip text to display in the entry fields (not the one for property errors or validator).
        Specified by:
        getToolTipText in class BaseEditor<IntProp,​java.lang.Integer>
      • getValue

        protected java.lang.Integer getValue​(java.lang.String input)
                                      throws java.lang.Exception
        Gets the property value for a user input.
        Specified by:
        getValue in class BaseEditor<IntProp,​java.lang.Integer>
        Parameters:
        input - The current user input.
        Returns:
        The property value for the input, or null to un-define the property.
        Throws:
        java.lang.Exception - For validation errors.
      • setInputValue

        protected void setInputValue​(java.lang.Integer value)
        Sets the input value when editing, when formatting the value from a string. If the input is null, it means the same as setting an empty value.
        Overrides:
        setInputValue in class BaseEditor<IntProp,​java.lang.Integer>
        Parameters:
        value - The value to set, null for empty.