Package com.uc4.api.prompt
Class TimeElement
java.lang.Object
com.uc4.api.objects.PromptElement
com.uc4.api.prompt.TimeElement
- All Implemented Interfaces:
PromptInterfaces.Caption
,PromptInterfaces.Constraints<Time>
,PromptInterfaces.DataReference
,PromptInterfaces.Focus
,PromptInterfaces.Locked
public class TimeElement
extends PromptElement
implements PromptInterfaces.Caption, PromptInterfaces.DataReference, PromptInterfaces.Focus, PromptInterfaces.Locked, PromptInterfaces.Constraints<Time>
This class represents a time prompt element.
-
Field Summary
Fields inherited from class com.uc4.api.objects.PromptElement
aliasMap, list, properties
-
Constructor Summary
ConstructorsConstructorDescriptionTimeElement
(String variableName, UC4ObjectName reference) Creates a newTimeElement
. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.use getMaxValue insteadDeprecated.use getMinValue insteadprotected String
boolean
hasFocus()
Returnstrue
if the focus is set.boolean
isLocked()
Returnstrue
if this Prompt Element is locked.protected String
void
setCaption
(String caption) Sets the caption of this prompt element.void
Sets a VARA Object which contains a list of valid entries for this prompt element.void
setFocus
(boolean value) Sets the cursor focus: The cursor is placed at this control if the value istrue
.void
setLocked
(boolean locked) Lock or unlocks this element.void
setMaximumValue
(String value) Deprecated.use setMaxValue insteadvoid
setMaxValue
(Time maxValue) void
setMinimumValue
(String value) Deprecated.use setMinValue insteadvoid
setMinValue
(Time minValue) protected void
validateForExecute
(String value) Sub classes implement this methodMethods inherited from class com.uc4.api.objects.PromptElement
getCustomField, getMessageInsert, getMessageNumber, getMode, getProperty, getTooltip, getValue, getValues, getVariable, hasList, isAltView, setAltView, setCustomField, setRawValue, setTooltip, setValue, setValues, setVariable, store, storeAdditionalPromptData, storeDefaultValues, toString, updateDefaultValue, validateId
-
Constructor Details
-
TimeElement
Creates a newTimeElement
.- Parameters:
variableName
- Name of the script variablereference
- Reference
-
-
Method Details
-
listParam
- Overrides:
listParam
in classPromptElement
-
isLocked
public boolean isLocked()Returnstrue
if this Prompt Element is locked. In this case a user cannot change the default value in the Prompt-Screen.- Specified by:
isLocked
in interfacePromptInterfaces.Locked
- Overrides:
isLocked
in classPromptElement
- 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 interfacePromptInterfaces.Locked
- Overrides:
setLocked
in classPromptElement
- Parameters:
locked
- true if locked, false if the user can change the value of the Prompt Element
-
hasFocus
public boolean hasFocus()Returnstrue
if the focus is set. The cursor is placed at this control if the value istrue
. 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 interfacePromptInterfaces.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 istrue
. 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 interfacePromptInterfaces.Focus
- Parameters:
value
- true if the cursor should be set in this Prompt Element, false otherwise
-
getCaption
- Specified by:
getCaption
in interfacePromptInterfaces.Caption
- Returns:
- Caption of this prompt element
-
setCaption
Sets the caption of this prompt element.- Specified by:
setCaption
in interfacePromptInterfaces.Caption
- Parameters:
caption
- Caption
-
setDataReference
Sets a VARA Object which contains a list of valid entries for this prompt element.- Specified by:
setDataReference
in interfacePromptInterfaces.DataReference
- Parameters:
vara
- Name of a Variable Object
-
getDataReference
- Specified by:
getDataReference
in interfacePromptInterfaces.DataReference
- Returns:
- Name of a Variable Object
-
setMinimumValue
Deprecated.use setMinValue insteadSets the minimum value.- Parameters:
value
- Min value
-
getMinimumValue
Deprecated.use getMinValue insteadReturns the minimum value.- Returns:
- Min value
-
setMaximumValue
Deprecated.use setMaxValue insteadSets the maximum value.- Parameters:
value
- Max value
-
getMaximumValue
Deprecated.use getMaxValue insteadReturns the maximum value.- Returns:
- Max value
-
validateForExecute
Description copied from class:PromptElement
Sub classes implement this method- Overrides:
validateForExecute
in classPromptElement
- Parameters:
value
- Value
-
getTagName
- Specified by:
getTagName
in classPromptElement
-
getMaxValue
- Specified by:
getMaxValue
in interfacePromptInterfaces.Constraints<Time>
- Returns:
- maximum value @nullable
-
setMaxValue
- Specified by:
setMaxValue
in interfacePromptInterfaces.Constraints<Time>
- Parameters:
maxValue
- set maximum value @nullable
-
getMinValue
- Specified by:
getMinValue
in interfacePromptInterfaces.Constraints<Time>
- Returns:
- minimum value @nullable
-
setMinValue
- Specified by:
setMinValue
in interfacePromptInterfaces.Constraints<Time>
- Parameters:
minValue
- set minimum value @nullable
-