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
Constructors Constructor Description TimeElement(java.lang.String variableName, UC4ObjectName reference)Creates a newTimeElement.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetCaption()UC4ObjectNamegetDataReference()java.lang.StringgetMaximumValue()Deprecated.use getMaxValue insteadTimegetMaxValue()java.lang.StringgetMinimumValue()Deprecated.use getMinValue insteadTimegetMinValue()protected java.lang.StringgetTagName()booleanhasFocus()Returnstrueif the focus is set.booleanisLocked()Returnstrueif this Prompt Element is locked.protected java.lang.StringlistParam()voidsetCaption(java.lang.String caption)Sets the caption of this prompt element.voidsetDataReference(UC4ObjectName vara)Sets a VARA Object which contains a list of valid entries for this prompt element.voidsetFocus(boolean value)Sets the cursor focus: The cursor is placed at this control if the value istrue.voidsetLocked(boolean locked)Lock or unlocks this element.voidsetMaximumValue(java.lang.String value)Deprecated.use setMaxValue insteadvoidsetMaxValue(Time maxValue)voidsetMinimumValue(java.lang.String value)Deprecated.use setMinValue insteadvoidsetMinValue(Time minValue)protected voidvalidateForExecute(java.lang.String value)Sub classes implement this method-
Methods 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 Detail
-
TimeElement
public TimeElement(java.lang.String variableName, UC4ObjectName reference)Creates a newTimeElement.- Parameters:
variableName- Name of the script variablereference- Reference
-
-
Method Detail
-
listParam
protected java.lang.String listParam()
- Overrides:
listParamin classPromptElement
-
isLocked
public boolean isLocked()
Returnstrueif this Prompt Element is locked. In this case a user cannot change the default value in the Prompt-Screen.- Specified by:
isLockedin interfacePromptInterfaces.Locked- Overrides:
isLockedin 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:
setLockedin interfacePromptInterfaces.Locked- Overrides:
setLockedin classPromptElement- Parameters:
locked- true if locked, false if the user can change the value of the Prompt Element
-
hasFocus
public boolean hasFocus()
Returnstrueif 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:
hasFocusin 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:
setFocusin interfacePromptInterfaces.Focus- Parameters:
value- true if the cursor should be set in this Prompt Element, false otherwise
-
getCaption
public java.lang.String getCaption()
- Specified by:
getCaptionin interfacePromptInterfaces.Caption- Returns:
- Caption of this prompt element
-
setCaption
public void setCaption(java.lang.String caption)
Sets the caption of this prompt element.- Specified by:
setCaptionin interfacePromptInterfaces.Caption- Parameters:
caption- Caption
-
setDataReference
public void setDataReference(UC4ObjectName vara)
Sets a VARA Object which contains a list of valid entries for this prompt element.- Specified by:
setDataReferencein interfacePromptInterfaces.DataReference- Parameters:
vara- Name of a Variable Object
-
getDataReference
public UC4ObjectName getDataReference()
- Specified by:
getDataReferencein interfacePromptInterfaces.DataReference- Returns:
- Name of a Variable Object
-
setMinimumValue
@Deprecated public void setMinimumValue(java.lang.String value)
Deprecated.use setMinValue insteadSets the minimum value.- Parameters:
value- Min value
-
getMinimumValue
@Deprecated public java.lang.String getMinimumValue()
Deprecated.use getMinValue insteadReturns the minimum value.- Returns:
- Min value
-
setMaximumValue
@Deprecated public void setMaximumValue(java.lang.String value)
Deprecated.use setMaxValue insteadSets the maximum value.- Parameters:
value- Max value
-
getMaximumValue
@Deprecated public java.lang.String getMaximumValue()
Deprecated.use getMaxValue insteadReturns the maximum value.- Returns:
- Max value
-
validateForExecute
protected void validateForExecute(java.lang.String value)
Description copied from class:PromptElementSub classes implement this method- Overrides:
validateForExecutein classPromptElement- Parameters:
value- Value
-
getTagName
protected java.lang.String getTagName()
- Specified by:
getTagNamein classPromptElement
-
getMaxValue
public Time getMaxValue()
- Specified by:
getMaxValuein interfacePromptInterfaces.Constraints<Time>- Returns:
- maximum value @nullable
-
setMaxValue
public void setMaxValue(Time maxValue)
- Specified by:
setMaxValuein interfacePromptInterfaces.Constraints<Time>- Parameters:
maxValue- set maximum value @nullable
-
getMinValue
public Time getMinValue()
- Specified by:
getMinValuein interfacePromptInterfaces.Constraints<Time>- Returns:
- minimum value @nullable
-
setMinValue
public void setMinValue(Time minValue)
- Specified by:
setMinValuein interfacePromptInterfaces.Constraints<Time>- Parameters:
minValue- set minimum value @nullable
-
-