Package com.vaadin.client.ui.datefield
Class DateFieldConnector
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,StateChangeEvent.StateChangeHandler,ComponentConnector,Paintable,ServerConnector,Connector,Serializable
- Direct Known Subclasses:
PopupDateFieldConnector
public class DateFieldConnector extends TextualDateConnector
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description DateFieldConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PopupDateFieldStategetState()Returns the shared state object for this connector.VPopupCalendargetWidget()Returns the widget associated with this paintable.protected voidinit()Called when the connector has been initialized.voidonStateChanged(StateChangeEvent stateChangeEvent)Notifies the event handler that the state has changed.protected voidsetWidgetStyleName(String styleName, boolean add)This is used to add / remove state related style names from the widget.protected voidsetWidgetStyleNameWithPrefix(String prefix, String styleName, boolean add)This is used to add / remove state related prefixed style names from the widget.voidupdateFromUIDL(UIDL uidl, ApplicationConnection client)-
Methods inherited from class com.vaadin.client.ui.AbstractFieldConnector
isModified, isReadOnly, isRequired, updateWidgetStyleNames
-
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent
-
-
-
-
Method Detail
-
init
protected void init()
Description copied from class:AbstractConnectorCalled when the connector has been initialized. Override this method to perform initialization of the connector.- Overrides:
initin classAbstractConnector
-
updateFromUIDL
public void updateFromUIDL(UIDL uidl, ApplicationConnection client)
- Specified by:
updateFromUIDLin interfacePaintable- Overrides:
updateFromUIDLin classTextualDateConnector
-
getWidget
public VPopupCalendar getWidget()
Description copied from class:AbstractComponentConnectorReturns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.- Specified by:
getWidgetin interfaceComponentConnector- Overrides:
getWidgetin classTextualDateConnector- Returns:
- The widget associated with this paintable
-
getState
public PopupDateFieldState getState()
Description copied from class:AbstractConnectorReturns the shared state object for this connector. Override this method to define the shared state type for your connector.- Specified by:
getStatein interfaceComponentConnector- Specified by:
getStatein interfaceServerConnector- Overrides:
getStatein classTextualDateConnector- Returns:
- the current shared state (never null)
-
onStateChanged
public void onStateChanged(StateChangeEvent stateChangeEvent)
Description copied from interface:StateChangeEvent.StateChangeHandlerNotifies the event handler that the state has changed.- Specified by:
onStateChangedin interfaceStateChangeEvent.StateChangeHandler- Overrides:
onStateChangedin classAbstractComponentConnector- Parameters:
stateChangeEvent- the state change event with details about the change
-
setWidgetStyleName
protected void setWidgetStyleName(String styleName, boolean add)
Description copied from class:AbstractComponentConnectorThis is used to add / remove state related style names from the widget.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().- Overrides:
setWidgetStyleNamein classAbstractComponentConnector- Parameters:
styleName- the style name to be added or removedadd-trueto add the given style,falseto remove it
-
setWidgetStyleNameWithPrefix
protected void setWidgetStyleNameWithPrefix(String prefix, String styleName, boolean add)
Description copied from class:AbstractComponentConnectorThis is used to add / remove state related prefixed style names from the widget.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'sAbstractComponentConnector.getWidget(), or if the prefix should be different. For example seesetWidgetStyleNameWithPrefix(String, String, boolean)- Overrides:
setWidgetStyleNameWithPrefixin classAbstractComponentConnectorstyleName- the style name to be added or removedadd-trueto add the given style,falseto remove it
-
-