PANEL - Subclass of VAbstractCalendarPanel specific for the implementationR - the resolution type which the field is based on (day, month, ...)public abstract class TextualDateConnector<PANEL extends VAbstractCalendarPanel<R>,R extends Enum<R>> extends AbstractTextualDateConnector<R>
AbstractTextualDateConnector functionality with widget that shows
date/time chooser as a popup panel.SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
TextualDateConnector() |
| Modifier and Type | Method and Description |
|---|---|
TextualDateFieldState |
getState()
Returns the shared state object for this connector.
|
VAbstractPopupCalendar<PANEL,R> |
getWidget()
Returns the widget associated with this paintable.
|
protected void |
init()
Called when the connector has been initialized.
|
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 |
setWidgetStyleName(String styleName,
boolean add)
This is used to add / remove state related style names from the widget.
|
protected void |
setWidgetStyleNameWithPrefix(String prefix,
String styleName,
boolean add)
This is used to add / remove state related prefixed style names from the
widget.
|
protected void |
updateListeners()
Updates listeners registered (or register them) for the widget based on
the current resolution.
|
flush, getDefaultValues, setAndUpdateAssistiveLabelsisReadOnly, isRequiredIndicatorVisible, updateWidgetStyleNamescreateWidget, delegateCaptionHandling, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, 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 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.
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 monthpublic VAbstractPopupCalendar<PANEL,R> getWidget()
AbstractComponentConnectorgetWidget in interface ComponentConnectorgetWidget in class AbstractTextualDateConnector<R extends Enum<R>>public TextualDateFieldState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractTextualDateConnector<R extends Enum<R>>public void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandleronStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractTextualDateConnector<R extends Enum<R>>stateChangeEvent - the state change event with details about the changeprotected void setWidgetStyleName(String styleName, boolean add)
AbstractComponentConnector
Override this method for example if the style name given here should be
updated in another widget in addition to the one returned by the
AbstractComponentConnector.getWidget().
setWidgetStyleName in class AbstractComponentConnectorstyleName - the style name to be added or removedadd - true to add the given style, false
to remove itprotected void setWidgetStyleNameWithPrefix(String prefix, String styleName, boolean add)
AbstractComponentConnector
Override this method if the prefixed style name given here should be
updated in another widget in addition to the one returned by the
Connector's AbstractComponentConnector.getWidget(), or if the prefix should be
different. For example see
setWidgetStyleNameWithPrefix(String, String, boolean)
setWidgetStyleNameWithPrefix in class AbstractComponentConnectorstyleName - the style name to be added or removedadd - true to add the given style, false
to remove itCopyright © 2018 Vaadin Ltd. All rights reserved.