R - the resolution type which the field is based on (day, month, ...)PANEL - Subclass of VAbstractCalendarPanel specific for the implementationpublic abstract class AbstractInlineDateFieldConnector<PANEL extends VAbstractCalendarPanel<R>,R extends Enum<R>> extends AbstractDateFieldConnector<R>
SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
AbstractInlineDateFieldConnector() |
| Modifier and Type | Method and Description |
|---|---|
InlineDateFieldState |
getState()
Returns the shared state object for this connector.
|
VAbstractDateFieldCalendar<PANEL,R> |
getWidget()
Returns the widget associated with this paintable.
|
protected abstract boolean |
isResolutionMonthOrHigher()
Returns
true is the current resolution of the widget is month or
less specific (e.g. |
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
protected void |
updateListeners()
Updates listeners registered (or register them) for the widget based on
the current resolution.
|
flush, getDefaultValues, init, setAndUpdateAssistiveLabelsisReadOnly, 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 updateListeners()
Subclasses may override this method to keep the common logic inside the
#updateFromUIDL(UIDL, ApplicationConnection) method as is and
customizing only listeners logic.
public void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandleronStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractDateFieldConnector<R extends Enum<R>>stateChangeEvent - the state change event with details about the changepublic VAbstractDateFieldCalendar<PANEL,R> getWidget()
AbstractComponentConnectorpublic InlineDateFieldState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractDateFieldConnector<R extends Enum<R>>protected abstract boolean isResolutionMonthOrHigher()
true is the current resolution of the widget is month or
less specific (e.g. month, year, quarter, etc).true if the current resolution is above monthCopyright © 2021 Vaadin Ltd. All rights reserved.