THIS - Self-referential generic THISFIELD - type of date (LocalDate or LocalDateTime).R - resolution enumeration typepublic interface FluentAbstractDateField<THIS extends FluentAbstractDateField<THIS,FIELD,R>,FIELD extends Temporal & TemporalAdjuster & Serializable & Comparable<? super FIELD>,R extends Enum<R>> extends FluentAbstractField<THIS,FIELD>, FluentFieldEvents.FluentFocusNotifier<THIS>, FluentFieldEvents.FluentBlurNotifier<THIS>
AbstractDateFieldAbstractDateFieldcom.vaadin.data.HasValue.ValueChangeEvent<V>, com.vaadin.data.HasValue.ValueChangeListener<V>FluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Method and Description |
|---|---|
default THIS |
withDateFormat(String dateFormat)
Sets formatting used by some component implementations.
|
default THIS |
withDateOutOfRangeMessage(String dateOutOfRangeMessage)
Sets the current error message if the range validation fails.
|
default THIS |
withDefaultValue(FIELD defaultValue)
Sets the default value for the field.
|
default THIS |
withLenient(boolean lenient)
Specifies whether or not date/time interpretation in component is to be
lenient.
|
default THIS |
withParseErrorMessage(String parsingErrorMessage)
Sets the default error message used if the DateField cannot parse the
text input by user to a Date field.
|
default THIS |
withRangeEnd(FIELD endDate)
Sets the end range for this component.
|
default THIS |
withRangeStart(FIELD startDate)
Sets the start range for this component.
|
default THIS |
withResolution(R resolution)
Sets the resolution of the DateField.
|
default THIS |
withShowISOWeekNumbers(boolean showWeekNumbers)
Sets the visibility of ISO 8601 week numbers in the date selector.
|
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleNamewithAttachListener, withDetachListenerwithContextClickListeneraddContextClickListener, removeContextClickListenerwithReadOnly, withRequiredIndicatorVisible, withValue, withValueChangeListeneraddValueChangeListener, clear, getDefaultValidator, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setValuewithTabIndexwithCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisibleaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerwithFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidthgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedwithFocusListenerwithBlurListenerdefault THIS withDateFormat(String dateFormat)
SimpleDateFormat for format details.dateFormat - the dateFormat to setAbstractDateField.setDateFormat(String)default THIS withDateOutOfRangeMessage(String dateOutOfRangeMessage)
dateOutOfRangeMessage - - Localizable message which is shown when value (the date) is
set outside allowed rangeAbstractDateField.setDateOutOfRangeMessage(String)default THIS withDefaultValue(FIELD defaultValue)
defaultValue - the field default temporal valueAbstractDateField.setDefaultValue(Temporal)default THIS withLenient(boolean lenient)
lenient - true if the lenient mode is to be turned on; false if it is to
be turned off.Calendar.setLenient(boolean),
AbstractDateField.setLenient(boolean)default THIS withParseErrorMessage(String parsingErrorMessage)
AbstractDateField.handleUnparsableDateString(String) method is overridden, the
localized message from its exception is used.parsingErrorMessage - the parsing error messageAbstractDateField.getParseErrorMessage(),
AbstractDateField.handleUnparsableDateString(String),
AbstractDateField.setParseErrorMessage(String)default THIS withRangeEnd(FIELD endDate)
endDate is set to null, any value
after startDate will be accepted by the range.endDate - - the allowed range's end date (inclusive, based on the
current resolution)AbstractDateField.setRangeEnd(Temporal)default THIS withRangeStart(FIELD startDate)
startDate is set to null, any
value before endDate will be accepted by the rangestartDate - - the allowed range's start dateAbstractDateField.setRangeStart(Temporal)default THIS withResolution(R resolution)
DateResolution.DAY since Vaadin 7.0.resolution - the resolution to set, not nullAbstractDateField.setResolution(Enum)default THIS withShowISOWeekNumbers(boolean showWeekNumbers)
showWeekNumbers - true if week numbers should be shown, false otherwise.AbstractDateField.setShowISOWeekNumbers(boolean)Copyright © 2017 Jean-Christophe Fortier. All rights reserved.