Interface DateTagDeclaration
- All Superinterfaces:
HasAccessKey, HasAutoSpacing, HasBinding, HasConverter, HasConverterMessage, HasDecorationPosition, HasHelp, HasId, HasIdBindingAndRendered, HasLabel, HasLabelLayout, HasPlaceholder, HasRequiredMessage, HasTabIndex, HasTip, HasValidator, HasValidatorMessage, HasValue, HasValueChangeListener, IsDisabled, IsFocus, IsReadonly, IsRendered, IsRequired, IsVisual
public interface DateTagDeclaration
extends HasAccessKey, HasValidator, HasValue, HasValueChangeListener, HasTabIndex, IsFocus, IsVisual, HasValidatorMessage, HasConverterMessage, HasRequiredMessage, HasIdBindingAndRendered, IsReadonly, IsDisabled, HasConverter, HasLabel, HasHelp, HasLabelLayout, HasDecorationPosition, HasTip, IsRequired, HasPlaceholder, HasAutoSpacing
Renders a date input field.
For a time input field set you'll need to set the <f:convertDateTime type="time"> inside the <tc:date>.
If there is no converter given, a default instance of DateTimeConverter will be used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSets the maximum value of the date.voidSets the minimum value of the date.voidSets the step of a date or time picker.voidsetTodayButton(String required) If true, a today- or now-button is displayed.voidType of the date/time input.voidSets the minimum value of the date.Methods inherited from interface HasAccessKey
setAccessKeyMethods inherited from interface HasAutoSpacing
setAutoSpacingMethods inherited from interface HasBinding
setBindingMethods inherited from interface HasConverter
setConverterMethods inherited from interface HasConverterMessage
setConverterMessageMethods inherited from interface HasDecorationPosition
setHelpPosition, setMessagePositionMethods inherited from interface HasLabelLayout
setLabelLayoutMethods inherited from interface HasPlaceholder
setPlaceholderMethods inherited from interface HasRequiredMessage
setRequiredMessageMethods inherited from interface HasTabIndex
setTabIndexMethods inherited from interface HasValidator
setValidatorMethods inherited from interface HasValidatorMessage
setValidatorMessageMethods inherited from interface HasValueChangeListener
setValueChangeListenerMethods inherited from interface IsDisabled
setDisabledMethods inherited from interface IsReadonly
setReadonlyMethods inherited from interface IsRendered
setRenderedMethods inherited from interface IsRequired
setRequiredMethods inherited from interface IsVisual
setCustomClass, setMarkup
-
Method Details
-
setTodayButton
If true, a today- or now-button is displayed. -
setValue
-
setMin
Sets the minimum value of the date. -
setMax
Sets the maximum value of the date. -
setStep
Sets the step of a date or time picker. Value is in seconds. Reasonable values are e.g. 0.001, 1, 5, 10, 60, 300, 3600. If not set, browsers drop the seconds, so it's the same as the value of 60. To show seconds use 1. To show milliseconds use 0.001. Browser support is in progress. -
setType
Type of the date/time input. Warning: month and week currently not supported.
-