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.
|
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client) |
protected void |
updateListeners()
Updates listeners registered (or register them) for the widget based on
the current resolution.
|
getTimeValuesisReadOnly, isRequiredIndicatorVisible, updateWidgetStyleNamescreateWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, 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, hasEventListener, init, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisErrorIndicatorVisibledelegateCaptionHandling, flush, getLayoutManager, getTooltipInfo, hasTooltip, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabledaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledStategetConnectorIdpublic void updateFromUIDL(UIDL uidl, ApplicationConnection client)
updateFromUIDL in interface PaintableupdateFromUIDL in class AbstractDateFieldConnector<R extends Enum<R>>protected 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 AbstractComponentConnectorstateChangeEvent - the state change event with details about the changepublic VAbstractDateFieldCalendar<PANEL,R> getWidget()
AbstractComponentConnectorgetWidget in interface ComponentConnectorgetWidget in class AbstractDateFieldConnector<R extends Enum<R>>public InlineDateFieldState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractFieldConnectorprotected 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 © 2017 Vaadin Ltd. All rights reserved.