Package 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:
Serializable
- Direct Known Subclasses:
AbstractTextualDateFieldState
public class AbstractDateFieldState extends AbstractFieldState
Shared state for the AbstractDateField component.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractDateFieldState.AccessibleElementNavigation elements that have assistive label.
-
Field Summary
Fields Modifier and Type Field Description Map<AbstractDateFieldState.AccessibleElement,String>assistiveLabelsMap of elements and their corresponding assistive labels.Map<String,String>dateStylesMap of custom style names that correspond with given dates.StringformatOverridden date format string, can benullif default formatting of the components locale is used.booleanlenientWhether the date/time interpretation is lenient.StringlocaleThe used Locale, can benull.booleanparsableWas the last entered string parsable?StringrangeEndEnd range that has been cleared, depending on the resolution of the date field.StringrangeStartStart range that has been cleared, depending on the resolution of the date field.Map<String,Integer>resolutionsThe map ofResolutions which are currently used by the component.booleanshowISOWeekNumbersDetermines if week numbers are shown in the date selector.StringtimeZoneJSONThe JSON used to construct a TimeZone on the client side, can benull.-
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:
com.vaadin.ui.AbstractDateField#RANGE_FORMATTER
-
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:
com.vaadin.ui.AbstractDateField#RANGE_FORMATTER
-
timeZoneJSON
public String timeZoneJSON
The JSON used to construct a TimeZone on the client side, can benull.- Since:
- 8.2
-
locale
public String locale
The used Locale, can benull.- Since:
- 8.2
-
format
public String format
Overridden date format string, can benullif 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 ofResolutions 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
-
-