com.vaadin.shared.ui.datefield.
Class AbstractDateFieldState
- java.lang.Object
-
- com.vaadin.shared.communication.SharedState
-
- com.vaadin.shared.AbstractComponentState
-
- com.vaadin.shared.ui.TabIndexState
-
- com.vaadin.shared.AbstractFieldState
-
- com.vaadin.shared.ui.datefield.AbstractDateFieldState
-
All Implemented Interfaces:
Direct Known Subclasses:
public class AbstractDateFieldState extends AbstractFieldState
Shared state for the AbstractDateField component.
Since:
8.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractDateFieldState.AccessibleElement
Navigation elements that have assistive label.
-
Field Summary
Fields Modifier and Type Field Description Map<AbstractDateFieldState.AccessibleElement,String>
assistiveLabels
Map of elements and their corresponding assistive labels.
Map<String,String>
dateStyles
Map of custom style names that correspond with given dates.
String
format
Overridden date format string, can be
null
if default formatting of the components locale is used.boolean
lenient
Whether the date/time interpretation is lenient.
String
locale
The used Locale, can be
null
.boolean
parsable
Was the last entered string parsable? If this flag is false, datefields internal validator does not pass.
String
rangeEnd
End range that has been cleared, depending on the resolution of the date field.
String
rangeStart
Start range that has been cleared, depending on the resolution of the date field.
Map<String,Integer>
resolutions
The map of
Resolution
s which are currently used by the component.boolean
showISOWeekNumbers
Determines if week numbers are shown in the date selector.
String
timeZoneJSON
The JSON used to construct a TimeZone on the client side, can be
null
.-
Fields inherited from class com.vaadin.shared.AbstractFieldState
readOnly, required
-
Fields inherited from class com.vaadin.shared.ui.TabIndexState
tabIndex
-
Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, captionAsHtml, description, descriptionContentMode, errorLevel, errorMessage, height, id, primaryStyleName, styles, width
-
Fields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources
-
-
Constructor Summary
Constructors Constructor Description AbstractDateFieldState()
-
-
-
Field Detail
-
rangeStart
@NoLayout public String rangeStart
Start range that has been cleared, depending on the resolution of the date field. The format is "2018-05-27" or "2018-05-27 14:38:39"
See Also:
-
rangeEnd
@NoLayout public String rangeEnd
End range that has been cleared, depending on the resolution of the date field. The format is "2018-05-27" or "2018-05-27 14:38:39"
See Also:
-
timeZoneJSON
public String timeZoneJSON
The JSON used to construct a TimeZone on the client side, can be
null
.Since:
8.2
-
locale
public String locale
The used Locale, can be
null
.Since:
8.2
-
format
public String format
Overridden date format string, can be
null
if default formatting of the components locale is used.Since:
8.2
-
lenient
public boolean lenient
Whether the date/time interpretation is lenient.
Since:
8.2
-
resolutions
public Map<String,Integer> resolutions
The map of
Resolution
s which are currently used by the component. The key is the resolution name e.g. "HOUR", "MINUTE", with possibly prefixed by "default-". The value can benull
Since:
8.2
-
showISOWeekNumbers
public boolean showISOWeekNumbers
Determines if week numbers are shown in the date selector.
Since:
8.2
-
parsable
public boolean parsable
Was the last entered string parsable? If this flag is false, datefields internal validator does not pass.
Since:
8.2
-
dateStyles
public Map<String,String> dateStyles
Map of custom style names that correspond with given dates. Each date must be set to midnight for the handling logic to work correctly.
Since:
8.3
-
assistiveLabels
public Map<AbstractDateFieldState.AccessibleElement,String> assistiveLabels
Map of elements and their corresponding assistive labels.
Since:
8.4
-
-