Class PanelAnimationPropEditor

    • Constructor Detail

      • PanelAnimationPropEditor

        public PanelAnimationPropEditor()
    • Method Detail

      • create

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

        protected void onDoubleClick​(org.eclipse.swt.widgets.Event e)
        Called when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.
        Overrides:
        onDoubleClick in class BaseEditor<IntProp,​java.lang.Integer>
      • onMore

        public void onMore()
        Display the dialog box.
        Overrides:
        onMore 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>
      • 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.
      • validate

        protected java.lang.Integer validate​(java.lang.String input,
                                             boolean focusLost)
        Always validated.
        Overrides:
        validate in class BaseEditor<IntProp,​java.lang.Integer>
        Parameters:
        input - The user input.
        focusLost - Flag for validation at focus lost resulting in e.g. removal of value for empty strings.
        Returns:
        The value object or null to remove or un-define it.
      • getValue

        protected java.lang.Integer getValue​(java.lang.String input)
                                      throws java.lang.Exception
        Never called.
        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.