public class DateElement extends PromptElement
| Constructor and Description |
|---|
DateElement(java.lang.String variableName,
UC4ObjectName reference)
Creates a new
DateElement. |
| Modifier and Type | Method and Description |
|---|---|
CalendarCondition |
getCalendarCondition() |
java.lang.String |
getCaption() |
UC4ObjectName |
getDataReference() |
DateTime |
getMaximumValue()
Returns the maximum value.
|
DateTime |
getMinimumValue()
Returns the minimum value.
|
java.lang.String |
getOutputFormat() |
boolean |
hasFocus()
Returns
true if the focus is set. |
boolean |
isLocked()
Returns
true if this Prompt Element is locked. |
void |
setCalendarCondition(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)
Sets the maximum value.
|
void |
setMinimumValue(DateTime value)
Sets the minimum value.
|
void |
setOutputFormat(java.lang.String outputformat)
Sets the output format.
|
void |
setValue(DateTime value)
Sets the default value.
|
getCustomField, getMessageInsert, getMessageNumber, getProperty, getTooltip, getValue, getValues, getVariable, hasList, setCustomField, setTooltip, setValue, setValues, setVariable, toString, updateDefaultValuepublic DateElement(java.lang.String variableName,
UC4ObjectName reference)
DateElement.variableName - Name of the script variablereference - Name of the reference variablepublic 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.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.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.public void setLocked(boolean locked)
locked - true if locked, false if the user can change the value of the Prompt Elementpublic java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption - Captionpublic void setDataReference(UC4ObjectName vara)
vara - Name of a Variable Objectpublic UC4ObjectName getDataReference()
public void setMinimumValue(DateTime value)
value - Min valuepublic DateTime getMinimumValue()
public void setMaximumValue(DateTime value)
value - Max valuepublic DateTime getMaximumValue()
public java.lang.String getOutputFormat()
public void setOutputFormat(java.lang.String outputformat)
outputformat - Output formatpublic void setCalendarCondition(CalendarCondition cond)
cond - Calendar conditionpublic CalendarCondition getCalendarCondition()
public void setValue(DateTime value)
value - Value