Class TimeElement

    • Constructor Detail

      • TimeElement

        public TimeElement​(java.lang.String variableName,
                           UC4ObjectName reference)
        Creates a new TimeElement.
        Parameters:
        variableName - Name of the script variable
        reference - Reference
    • Method Detail

      • isLocked

        public boolean isLocked()
        Returns true if this Prompt Element is locked. In this case a user cannot change the default value in the Prompt-Screen.
        Specified by:
        isLocked in interface PromptInterfaces.Locked
        Overrides:
        isLocked in class PromptElement
        Returns:
        true if locked, false if the user can change the value of the Prompt Element
      • setLocked

        public void setLocked​(boolean locked)
        Lock or unlocks this element. A user cannot change the default value in the Prompt-Screen if a control is locked.
        Specified by:
        setLocked in interface PromptInterfaces.Locked
        Overrides:
        setLocked in class PromptElement
        Parameters:
        locked - true if locked, false if the user can change the value of the Prompt Element
      • hasFocus

        public boolean hasFocus()
        Returns true if the focus is set. The cursor is placed at this control if the value is true. It may only be defined for one control in the PromptSet. If this flag is defined for several Controls of a PromptSet the last Control that got the flag wins.
        Specified by:
        hasFocus in interface PromptInterfaces.Focus
        Returns:
        true if the cursor should be set in this Prompt Element, false otherwise
      • setFocus

        public void setFocus​(boolean value)
        Sets the cursor focus: The cursor is placed at this control if the value is true. It may only be defined for one control in the PromptSet. If this flag is defined for several Controls of a PromptSet the last Control that got the flag wins.
        Specified by:
        setFocus in interface PromptInterfaces.Focus
        Parameters:
        value - true if the cursor should be set in this Prompt Element, false otherwise
      • setCaption

        public void setCaption​(java.lang.String caption)
        Sets the caption of this prompt element.
        Specified by:
        setCaption in interface PromptInterfaces.Caption
        Parameters:
        caption - Caption
      • setMinimumValue

        @Deprecated
        public void setMinimumValue​(java.lang.String value)
        Deprecated.
        use setMinValue instead
        Sets the minimum value.
        Parameters:
        value - Min value
      • getMinimumValue

        @Deprecated
        public java.lang.String getMinimumValue()
        Deprecated.
        use getMinValue instead
        Returns the minimum value.
        Returns:
        Min value
      • setMaximumValue

        @Deprecated
        public void setMaximumValue​(java.lang.String value)
        Deprecated.
        use setMaxValue instead
        Sets the maximum value.
        Parameters:
        value - Max value
      • getMaximumValue

        @Deprecated
        public java.lang.String getMaximumValue()
        Deprecated.
        use getMaxValue instead
        Returns the maximum value.
        Returns:
        Max value
      • validateForExecute

        protected void validateForExecute​(java.lang.String value)
        Description copied from class: PromptElement
        Sub classes implement this method
        Overrides:
        validateForExecute in class PromptElement
        Parameters:
        value - Value