Class DurationPropEditor

    • Constructor Detail

      • DurationPropEditor

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

      • create

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

        protected void setColors​(org.eclipse.swt.widgets.Control... additional)
        Sets the colors for the controls depending on error, focus and define state.
        setColors in class BaseEditor<LongProp,​java.lang.Long>
      • onMore

        public void onMore()
        Called when the "more..." button is pressed. Override to display drop-down menu.
        onMore in class BaseEditor<LongProp,​java.lang.Long>
      • onUpdate

        public void onUpdate​(java.lang.Long value)
        Called when a property event has been fired and the edited entry needs to be updated. This method is also called when setting up the edited entry the first time.
        Specified by:
        onUpdate in interface IEditedPropControllerOwner<LongProp,​java.lang.Long>
        onUpdate in class BaseEditor<LongProp,​java.lang.Long>
      • 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<LongProp,​java.lang.Long>
      • getValue

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