R - the resolution type which this field is based on (day, month, ...)public abstract class AbstractDateFieldConnector<R extends Enum<R>> extends AbstractFieldConnector
SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
AbstractDateFieldConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Called for the active (focused) connector when a situation occurs that
the focused connector might have buffered changes which need to be
processed before other activity takes place.
|
protected Map<R,Integer> |
getDefaultValues()
Returns the default date (when no date is selected) components as a map
from Resolution to the corresponding value.
|
AbstractDateFieldState |
getState()
Returns the shared state object for this connector.
|
VDateField<R> |
getWidget()
Returns the widget associated with this paintable.
|
protected void |
init()
Called when the connector has been initialized.
|
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
protected void |
setAndUpdateAssistiveLabels(VAbstractCalendarPanel calendar)
Sets assistive labels for the calendar panel's navigation elements, and
updates these labels.
|
isReadOnly, isRequiredIndicatorVisible, updateWidgetStyleNamescreateWidget, delegateCaptionHandling, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSizeaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelegateCaptionHandling, getLayoutManager, getTooltipInfo, hasTooltip, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabledaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledStategetConnectorIdprotected void init()
AbstractConnectorinit in class AbstractConnectorprotected Map<R,Integer> getDefaultValues()
public VDateField<R> getWidget()
AbstractComponentConnectorgetWidget in interface HasWidgetgetWidget in class AbstractComponentConnectorpublic AbstractDateFieldState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractFieldConnectorpublic void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandleronStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractComponentConnectorstateChangeEvent - the state change event with details about the changeprotected void setAndUpdateAssistiveLabels(VAbstractCalendarPanel calendar)
calendar - the calendar panel for which to set the assistive labelspublic void flush()
ComponentConnectorThis is currently called when the user changes the fragment using the back/forward button in the browser and allows the focused field to submit its value to the server before the fragment change event takes place.
flush in interface ComponentConnectorflush in class AbstractComponentConnectorCopyright © 2023 Vaadin Ltd. All rights reserved.