Package com.vaadin.v7.client.ui.calendar
Class CalendarConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.ui.AbstractComponentConnector
-
- com.vaadin.v7.client.ui.AbstractLegacyComponentConnector
-
- com.vaadin.v7.client.ui.calendar.CalendarConnector
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,StateChangeEvent.StateChangeHandler,ComponentConnector,HasWidget,Paintable,ServerConnector,ActionOwner,HasErrorIndicator,ManagedLayout,SimpleManagedLayout,com.vaadin.shared.Connector,ComponentConnector,Serializable
public class CalendarConnector extends AbstractLegacyComponentConnector implements ActionOwner, SimpleManagedLayout, Paintable
Handles communication between Calendar on the server side andVCalendaron the client side.- Since:
- 7.1
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description CalendarConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionCaption(String actionKey)Get the text that is displayed for a context menu item.DategetActionEndDate(String actionKey)Get the end date for an action item.StringgetActionIcon(String actionKey)Get the icon url for a context menu item.StringgetActionID(String actionKey)Get the original action ID that was passed in from the shared state.Action[]getActions()Returns ALL currently registered events.DategetActionStartDate(String actionKey)Get the start date for an action item.ApplicationConnectiongetClient()Returns the ApplicationConnection used to connect to the server side.StringgetPaintableId()CalendarStategetState()TooltipInfogetTooltipInfo(com.google.gwt.dom.client.Element element)VCalendargetWidget()booleanhasTooltip()protected voidinit()voidlayout()voidonStateChanged(StateChangeEvent stateChangeEvent)voidonUnregister()protected voidregisterListeners()Registers listeners on the calendar so server can be notified of the events.voidupdateFromUIDL(UIDL uidl, ApplicationConnection client)-
Methods inherited from class com.vaadin.v7.client.ui.AbstractLegacyComponentConnector
getRpcProxy, isReadOnly, updateWidgetStyleNames
-
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, 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, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, 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.client.ComponentConnector
delegateCaptionHandling, flush, getLayoutManager, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled
-
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
-
-
-
-
Method Detail
-
init
protected void init()
- Overrides:
initin classAbstractConnector
-
onUnregister
public void onUnregister()
- Specified by:
onUnregisterin interfaceServerConnector- Overrides:
onUnregisterin classAbstractComponentConnector
-
getWidget
public VCalendar getWidget()
- Specified by:
getWidgetin interfaceHasWidget- Overrides:
getWidgetin classAbstractComponentConnector
-
getState
public CalendarState getState()
- Specified by:
getStatein interfaceComponentConnector- Specified by:
getStatein interfaceServerConnector- Overrides:
getStatein classAbstractLegacyComponentConnector
-
registerListeners
protected void registerListeners()
Registers listeners on the calendar so server can be notified of the events.
-
onStateChanged
public void onStateChanged(StateChangeEvent stateChangeEvent)
- Specified by:
onStateChangedin interfaceStateChangeEvent.StateChangeHandler- Overrides:
onStateChangedin classAbstractComponentConnector
-
updateFromUIDL
public void updateFromUIDL(UIDL uidl, ApplicationConnection client)
- Specified by:
updateFromUIDLin interfacePaintable
-
getClient
public ApplicationConnection getClient()
Returns the ApplicationConnection used to connect to the server side.- Specified by:
getClientin interfaceActionOwner
-
getTooltipInfo
public TooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element)
- Specified by:
getTooltipInfoin interfaceComponentConnector- Overrides:
getTooltipInfoin classAbstractComponentConnector
-
hasTooltip
public boolean hasTooltip()
- Specified by:
hasTooltipin interfaceComponentConnector- Overrides:
hasTooltipin classAbstractComponentConnector
-
getActionID
public String getActionID(String actionKey)
Get the original action ID that was passed in from the shared state.- Parameters:
actionKey- the unique action key- Returns:
- Since:
- 7.1.2
-
getActionCaption
public String getActionCaption(String actionKey)
Get the text that is displayed for a context menu item.- Parameters:
actionKey- The unique action key- Returns:
-
getActionIcon
public String getActionIcon(String actionKey)
Get the icon url for a context menu item.- Parameters:
actionKey- The unique action key- Returns:
-
getActionStartDate
public Date getActionStartDate(String actionKey) throws ParseException
Get the start date for an action item.- Parameters:
actionKey- The unique action key- Returns:
- Throws:
ParseException
-
getActionEndDate
public Date getActionEndDate(String actionKey) throws ParseException
Get the end date for an action item.- Parameters:
actionKey- The unique action key- Returns:
- Throws:
ParseException
-
getActions
public Action[] getActions()
Returns ALL currently registered events. Use#getActions(Date)to get the actions for a specific date- Specified by:
getActionsin interfaceActionOwner
-
getPaintableId
public String getPaintableId()
- Specified by:
getPaintableIdin interfaceActionOwner
-
layout
public void layout()
- Specified by:
layoutin interfaceSimpleManagedLayout
-
-