|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.AbstractConnector
com.vaadin.client.ui.AbstractComponentConnector
com.vaadin.client.ui.calendar.CalendarConnector
public class CalendarConnector
Handles communication between Calendar on the server side and
VCalendar on the client side.
| Constructor Summary | |
|---|---|
CalendarConnector()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getActionCaption(java.lang.String actionKey)
Get the text that is displayed for a context menu item |
java.util.Date |
getActionEndDate(java.lang.String actionKey)
Get the end date for an action item |
java.lang.String |
getActionIcon(java.lang.String actionKey)
Get the icon url for a context menu item |
java.lang.String |
getActionID(java.lang.String actionKey)
Get the original action ID that was passed in from the shared state |
Action[] |
getActions()
Returns ALL currently registered events. |
java.util.Date |
getActionStartDate(java.lang.String actionKey)
Get the start date for an action item |
ApplicationConnection |
getClient()
Returns the ApplicationConnection used to connect to the server side |
java.lang.String |
getPaintableId()
|
com.vaadin.shared.ui.calendar.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)
|
| Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector |
|---|
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNames |
| 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.client.ComponentConnector |
|---|
delegateCaptionHandling, flush, getLayoutManager, isReadOnly, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled |
| Methods inherited from interface com.vaadin.client.ServerConnector |
|---|
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledState |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public CalendarConnector()
| Method Detail |
|---|
protected void init()
AbstractConnector
init in class AbstractConnectorpublic void onUnregister()
ServerConnector
onUnregister in interface ServerConnectoronUnregister in class AbstractComponentConnectorpublic VCalendar getWidget()
AbstractComponentConnector
getWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorpublic com.vaadin.shared.ui.calendar.CalendarState getState()
AbstractConnector
getState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorprotected void registerListeners()
public void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandler
onStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractComponentConnectorstateChangeEvent - the state change event with details about the change
public 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 for
public 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 java.lang.String getActionID(java.lang.String actionKey)
actionKey - the unique action key
public java.lang.String getActionCaption(java.lang.String actionKey)
actionKey - The unique action key
public java.lang.String getActionIcon(java.lang.String actionKey)
actionKey - The unique action key
public java.util.Date getActionStartDate(java.lang.String actionKey)
throws java.text.ParseException
actionKey - The unique action key
java.text.ParseException
public java.util.Date getActionEndDate(java.lang.String actionKey)
throws java.text.ParseException
actionKey - The unique action key
java.text.ParseExceptionpublic Action[] getActions()
#getActions(Date) to
get the actions for a specific date
getActions in interface ActionOwnerpublic java.lang.String getPaintableId()
getPaintableId in interface ActionOwnerpublic void layout()
layout in interface SimpleManagedLayout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||