public class DateElement extends PromptElement implements PromptInterfaces.Caption, PromptInterfaces.Focus, PromptInterfaces.OutputFormat, PromptInterfaces.DataReference, PromptInterfaces.Locked, PromptInterfaces.Constraints<DateTime>
aliasMap, list, properties
Constructor and Description |
---|
DateElement(java.lang.String variableName,
UC4ObjectName reference)
Creates a new
DateElement . |
Modifier and Type | Method and Description |
---|---|
@Nullable CalendarCondition |
getCalendarCondition() |
java.lang.String |
getCaption() |
UC4ObjectName |
getDataReference() |
DateTime |
getMaximumValue()
Deprecated.
use getMaxValue instead
|
DateTime |
getMaxValue() |
DateTime |
getMinimumValue()
Deprecated.
use getMinValue instead
|
DateTime |
getMinValue() |
java.lang.String |
getOutputFormat() |
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 |
setCalendarCondition(@Nullable CalendarCondition cond)
Sets the calendar and keyword for valid inputs.
|
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(DateTime value)
Deprecated.
use setMaxValue instead
|
void |
setMaxValue(DateTime maxValue) |
void |
setMinimumValue(DateTime value)
Deprecated.
use setMinValue instead
|
void |
setMinValue(DateTime minValue) |
void |
setOutputFormat(@Nullable java.lang.String outputformat)
Sets the output format.
|
void |
setValue(DateTime value)
Sets the default value.
|
getCustomField, getMessageInsert, getMessageNumber, getMode, getProperty, getTooltip, getValue, getValues, getVariable, hasList, isAltView, setAltView, setCustomField, setRawValue, setTooltip, setValue, setValues, setVariable, store, storeAdditionalPromptData, storeDefaultValues, toString, updateDefaultValue, validateForExecute, validateId
public DateElement(java.lang.String variableName, UC4ObjectName reference)
DateElement
.variableName
- Name of the script variablereference
- Name of the reference variableprotected java.lang.String listParam()
listParam
in class PromptElement
public 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.Focus
public 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.Focus
value
- true if the cursor should be set in this Prompt Element, false otherwisepublic 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.Locked
isLocked
in class PromptElement
public void setLocked(boolean locked)
setLocked
in interface PromptInterfaces.Locked
setLocked
in class PromptElement
locked
- true if locked, false if the user can change the value of the Prompt Elementpublic java.lang.String getCaption()
getCaption
in interface PromptInterfaces.Caption
public void setCaption(java.lang.String caption)
setCaption
in interface PromptInterfaces.Caption
caption
- Captionpublic void setDataReference(UC4ObjectName vara)
setDataReference
in interface PromptInterfaces.DataReference
vara
- Name of a Variable Objectpublic UC4ObjectName getDataReference()
getDataReference
in interface PromptInterfaces.DataReference
@Deprecated public void setMinimumValue(DateTime value)
value
- Min value@Deprecated public DateTime getMinimumValue()
@Deprecated public void setMaximumValue(DateTime value)
value
- Max value@Deprecated public DateTime getMaximumValue()
public java.lang.String getOutputFormat()
getOutputFormat
in interface PromptInterfaces.OutputFormat
public void setOutputFormat(@Nullable java.lang.String outputformat)
setOutputFormat
in interface PromptInterfaces.OutputFormat
outputformat
- Output formatpublic void setCalendarCondition(@Nullable CalendarCondition cond)
cond
- the calendar condition, may be nullpublic @Nullable CalendarCondition getCalendarCondition()
public void setValue(DateTime value)
value
- Valueprotected java.lang.String getTagName()
getTagName
in class PromptElement
public void setMaxValue(DateTime maxValue)
setMaxValue
in interface PromptInterfaces.Constraints<DateTime>
maxValue
- set maximum value @nullablepublic void setMinValue(DateTime minValue)
setMinValue
in interface PromptInterfaces.Constraints<DateTime>
minValue
- set minimum value @nullablepublic DateTime getMaxValue()
getMaxValue
in interface PromptInterfaces.Constraints<DateTime>
public DateTime getMinValue()
getMinValue
in interface PromptInterfaces.Constraints<DateTime>