Interface UIDateTime
- All Superinterfaces:
UIAtomicWidget,UIWidget
Date/time field.
JavaScript type
The JavaScript type for this widget is Date.
If all fields are empty, the value will be null.
If an afterValueChanged action
has been set on this widget,
the JavaScript type of the value will be the same.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetDatePickerButtonDisplayable(boolean isDisplayable) Defines whether the date selection button should be displayed when the underlying node is of typeTypeDateorTypeDateTime.voidsetNowButtonDisplayed(boolean isDisplayed) Defines whether the "now" button must be displayed or not.Methods inherited from interface com.orchestranetworks.ui.form.widget.UIAtomicWidget
getActionOnAfterValueChanged, isAjaxPrevalidationEnabled, isAjaxValueSynchEnabled, setActionOnAfterValueChanged, setAjaxPrevalidationEnabled, setAjaxValueSynchEnabledMethods inherited from interface com.orchestranetworks.ui.form.widget.UIWidget
isEditorDisabled, setEditorDisabled
-
Method Details
-
isDatePickerButtonDisplayable
boolean isDatePickerButtonDisplayable()- Returns:
trueif the date picker button is required,falseif the date picker button must be hidden.- See Also:
-
setDatePickerButtonDisplayable
void setDatePickerButtonDisplayable(boolean isDisplayable) Defines whether the date selection button should be displayed when the underlying node is of typeTypeDateorTypeDateTime.The date selection button can be hidden completely by setting
false.The date selection button is placed to the right of the date/time fields.
By clicking on the date selection button, the date selection pane is displayed under the date fields.
Default value is
true.- Parameters:
isDisplayable-falseto hide the date picker button,trueto reset to the default behavior.
-
isNowButtonDisplayed
boolean isNowButtonDisplayed()- Returns:
trueif the "now" button is to be displayed,falseif the "now" button is to be hidden.- See Also:
-
setNowButtonDisplayed
void setNowButtonDisplayed(boolean isDisplayed) Defines whether the "now" button must be displayed or not.By a click on the "now" button, the date/time fields are filled with the current date and time of the web browser.
Default value is
true.- Parameters:
isDisplayed-falseto hide the "now" button,trueto reset to the default behavior.
-