public class CalendarConnector extends AbstractComponentConnector implements ActionOwner, SimpleManagedLayout, Paintable
VCalendar on the client side.SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
CalendarConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionCaption(String actionKey)
Get the text that is displayed for a context menu item
|
Date |
getActionEndDate(String actionKey)
Get the end date for an action item
|
String |
getActionIcon(String actionKey)
Get the icon url for a context menu item
|
String |
getActionID(String actionKey)
Get the original action ID that was passed in from the shared state
|
Action[] |
getActions()
Returns ALL currently registered events.
|
Date |
getActionStartDate(String actionKey)
Get the start date for an action item
|
ApplicationConnection |
getClient()
Returns the ApplicationConnection used to connect to the server side
|
String |
getPaintableId() |
CalendarState |
getState()
Returns the shared state object for this connector.
|
TooltipInfo |
getTooltipInfo(com.google.gwt.dom.client.Element element)
Gets the tooltip info for the given element.
|
VCalendar |
getWidget()
Returns the widget associated with this paintable.
|
boolean |
hasTooltip()
Check whether there might be a tooltip for this component.
|
protected void |
init()
Called when the connector has been initialized.
|
void |
layout() |
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
void |
onUnregister()
Event called when connector has been unregistered.
|
protected void |
registerListeners()
Registers listeners on the calendar so server can be notified of the
events
|
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client) |
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNamesaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelegateCaptionHandling, flush, getLayoutManager, isReadOnly, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabledaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledStategetConnectorIdprotected void init()
AbstractConnectorinit in class AbstractConnectorpublic void onUnregister()
ServerConnectoronUnregister in interface ServerConnectoronUnregister in class AbstractComponentConnectorpublic VCalendar getWidget()
AbstractComponentConnectorgetWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorpublic CalendarState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorprotected void registerListeners()
public void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandleronStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractComponentConnectorstateChangeEvent - the state change event with details about the changepublic void updateFromUIDL(UIDL uidl, ApplicationConnection client)
updateFromUIDL in interface Paintablepublic ApplicationConnection getClient()
getClient in interface ActionOwnerpublic TooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element)
ComponentConnector
When overriding this method, ComponentConnector.hasTooltip() should also be
overridden to return true in all situations where this
method might return a non-empty result.
getTooltipInfo in interface ComponentConnectorgetTooltipInfo in class AbstractComponentConnectorelement - The element to lookup a tooltip forpublic boolean hasTooltip()
ComponentConnectorComponentConnector.getTooltipInfo(Element)) if this method returns true.
This is only done to optimize performance, so in cases where the status
is not known, it's safer to return true so that there will
be a tooltip handler even though it might not be needed in all cases.
hasTooltip in interface ComponentConnectorhasTooltip in class AbstractComponentConnectortrue if some part of the component might have a
tooltip, otherwise falsepublic String getActionID(String actionKey)
actionKey - the unique action keypublic String getActionCaption(String actionKey)
actionKey - The unique action keypublic String getActionIcon(String actionKey)
actionKey - The unique action keypublic Date getActionStartDate(String actionKey) throws ParseException
actionKey - The unique action keyParseExceptionpublic Date getActionEndDate(String actionKey) throws ParseException
actionKey - The unique action keyParseExceptionpublic Action[] getActions()
#getActions(Date) to
get the actions for a specific dategetActions in interface ActionOwnerpublic String getPaintableId()
getPaintableId in interface ActionOwnerpublic void layout()
layout in interface SimpleManagedLayoutCopyright © 2016 Vaadin Ltd. All rights reserved.