info.magnolia.ui.vaadin.gwt.client.usermenu
Class UserMenuConnector

java.lang.Object
  extended by com.vaadin.client.ui.AbstractConnector
      extended by com.vaadin.client.extensions.AbstractExtensionConnector
          extended by info.magnolia.ui.vaadin.gwt.client.usermenu.UserMenuConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ServerConnector, com.vaadin.shared.Connector, Serializable

public class UserMenuConnector
extends com.vaadin.client.extensions.AbstractExtensionConnector

Replaces UserMenuConnector. Registers UserMenuClientRpc and calculates the coordinates of the widget based on extensionTargets position. It does not register a ContextMenuHandler. To open the widget you will have to open it from server side using UserMenuClientRpc.showContextMenu().

See Also:
Serialized Form

Field Summary
protected  ContextMenuServerRpc clientToServerRPC
           
protected  com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> contextMenuCloseHandler
           
protected  com.google.gwt.user.client.ui.Widget extensionTarget
           
protected  UserMenuClientRpc serverToClientRPC
           
protected  ContextMenuWidget widget
           
 
Constructor Summary
UserMenuConnector()
           
 
Method Summary
protected  void extend(com.vaadin.client.ServerConnector extensionTarget)
           
 ContextMenuState getState()
           
protected  void init()
           
 void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
           
 
Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector
setParent
 
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, unregisterRpc, updateEnabledState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

widget

protected ContextMenuWidget widget

extensionTarget

protected com.google.gwt.user.client.ui.Widget extensionTarget

clientToServerRPC

protected ContextMenuServerRpc clientToServerRPC

contextMenuCloseHandler

protected com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> contextMenuCloseHandler

serverToClientRPC

protected UserMenuClientRpc serverToClientRPC
Constructor Detail

UserMenuConnector

public UserMenuConnector()
Method Detail

init

protected void init()
Overrides:
init in class com.vaadin.client.ui.AbstractConnector

onStateChanged

public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
Specified by:
onStateChanged in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
Overrides:
onStateChanged in class com.vaadin.client.ui.AbstractConnector

getState

public ContextMenuState getState()
Specified by:
getState in interface com.vaadin.client.ServerConnector
Overrides:
getState in class com.vaadin.client.ui.AbstractConnector

extend

protected void extend(com.vaadin.client.ServerConnector extensionTarget)
Specified by:
extend in class com.vaadin.client.extensions.AbstractExtensionConnector


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.