public class TimeElement extends PromptElement implements PromptInterfaces.Caption, PromptInterfaces.DataReference, PromptInterfaces.Focus, PromptInterfaces.Locked, PromptInterfaces.Constraints<Time>
aliasMap, list, properties| Constructor and Description |
|---|
TimeElement(java.lang.String variableName,
UC4ObjectName reference)
Creates a new
TimeElement. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCaption() |
UC4ObjectName |
getDataReference() |
java.lang.String |
getMaximumValue()
Deprecated.
use getMaxValue instead
|
Time |
getMaxValue() |
java.lang.String |
getMinimumValue()
Deprecated.
use getMinValue instead
|
Time |
getMinValue() |
protected java.lang.String |
getTagName() |
boolean |
hasFocus()
Returns
true if the focus is set. |
boolean |
isLocked()
Returns
true if this Prompt Element is locked. |
protected java.lang.String |
listParam() |
void |
setCaption(java.lang.String caption)
Sets the caption of this prompt element.
|
void |
setDataReference(UC4ObjectName vara)
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 is
true. |
void |
setLocked(boolean locked)
Lock or unlocks this element.
|
void |
setMaximumValue(java.lang.String value)
Deprecated.
use setMaxValue instead
|
void |
setMaxValue(Time maxValue) |
void |
setMinimumValue(java.lang.String value)
Deprecated.
use setMinValue instead
|
void |
setMinValue(Time minValue) |
protected void |
validateForExecute(java.lang.String value)
Sub classes implement this method
|
getCustomField, getMessageInsert, getMessageNumber, getMode, getProperty, getTooltip, getValue, getValues, getVariable, hasList, isAltView, setAltView, setCustomField, setRawValue, setTooltip, setValue, setValues, setVariable, store, storeAdditionalPromptData, storeDefaultValues, toString, updateDefaultValue, validateIdpublic TimeElement(java.lang.String variableName,
UC4ObjectName reference)
TimeElement.variableName - Name of the script variablereference - Referenceprotected java.lang.String listParam()
listParam in class PromptElementpublic boolean isLocked()
true if this Prompt Element is locked.
In this case a user cannot change the default value in the Prompt-Screen.isLocked in interface PromptInterfaces.LockedisLocked in class PromptElementpublic void setLocked(boolean locked)
setLocked in interface PromptInterfaces.LockedsetLocked in class PromptElementlocked - true if locked, false if the user can change the value of the Prompt Elementpublic boolean hasFocus()
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.hasFocus in interface PromptInterfaces.Focuspublic void setFocus(boolean value)
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.setFocus in interface PromptInterfaces.Focusvalue - true if the cursor should be set in this Prompt Element, false otherwisepublic java.lang.String getCaption()
getCaption in interface PromptInterfaces.Captionpublic void setCaption(java.lang.String caption)
setCaption in interface PromptInterfaces.Captioncaption - Captionpublic void setDataReference(UC4ObjectName vara)
setDataReference in interface PromptInterfaces.DataReferencevara - Name of a Variable Objectpublic UC4ObjectName getDataReference()
getDataReference in interface PromptInterfaces.DataReference@Deprecated public void setMinimumValue(java.lang.String value)
value - Min value@Deprecated public java.lang.String getMinimumValue()
@Deprecated public void setMaximumValue(java.lang.String value)
value - Max value@Deprecated public java.lang.String getMaximumValue()
protected void validateForExecute(java.lang.String value)
PromptElementvalidateForExecute in class PromptElementvalue - Valueprotected java.lang.String getTagName()
getTagName in class PromptElementpublic Time getMaxValue()
getMaxValue in interface PromptInterfaces.Constraints<Time>public void setMaxValue(Time maxValue)
setMaxValue in interface PromptInterfaces.Constraints<Time>maxValue - set maximum value @nullablepublic Time getMinValue()
getMinValue in interface PromptInterfaces.Constraints<Time>public void setMinValue(Time minValue)
setMinValue in interface PromptInterfaces.Constraints<Time>minValue - set minimum value @nullable