public interface UIDateTime extends UIAtomicWidget
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.
Modifier and Type | Method and Description |
---|---|
boolean |
isDatePickerButtonDisplayable() |
boolean |
isNowButtonDisplayed() |
void |
setDatePickerButtonDisplayable(boolean isDisplayable)
Defines whether the date selection button should be displayed
when the underlying node is of type
TypeDate or TypeDateTime . |
void |
setNowButtonDisplayed(boolean isDisplayed)
Defines whether the "now" button must be displayed or not.
|
getActionOnAfterValueChanged, isAjaxPrevalidationEnabled, isAjaxValueSynchEnabled, setActionOnAfterValueChanged, setAjaxPrevalidationEnabled, setAjaxValueSynchEnabled
isEditorDisabled, setEditorDisabled
boolean isDatePickerButtonDisplayable()
true
if the date picker button is required,
false
if the date picker button must be hidden.setDatePickerButtonDisplayable(boolean)
void setDatePickerButtonDisplayable(boolean isDisplayable)
TypeDate
or TypeDateTime
.
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
.
isDisplayable
- false
to hide the date picker button,
true
to reset to the default behavior.boolean isNowButtonDisplayed()
true
if the "now" button is to be displayed,
false
if the "now" button is to be hidden.setNowButtonDisplayed(boolean)
void setNowButtonDisplayed(boolean isDisplayed)
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
.
isDisplayed
- false
to hide the "now" button,
true
to reset to the default behavior.