public class UserMenuConnector
extends com.vaadin.client.extensions.AbstractExtensionConnector
UserMenuConnector
. Registers UserMenuClientRpc
and calculates the coordinates of the widget based
on extensionTarget
s position.
It does not register a ContextMenuHandler
. To open the widget you will have to open
it from server side using UserMenuClientRpc.showContextMenu()
.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
UserMenuConnector() |
Modifier and Type | Method and Description |
---|---|
protected void |
extend(com.vaadin.client.ServerConnector extensionTarget) |
ContextMenuState |
getState() |
protected void |
init() |
void |
onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent) |
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, unregisterRpc, updateEnabledState
protected ContextMenuWidget widget
protected com.google.gwt.user.client.ui.Widget extensionTarget
protected ContextMenuServerRpc clientToServerRPC
protected com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> contextMenuCloseHandler
protected UserMenuClientRpc serverToClientRPC
protected void init()
init
in class com.vaadin.client.ui.AbstractConnector
public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
onStateChanged
in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
onStateChanged
in class com.vaadin.client.ui.AbstractConnector
public ContextMenuState getState()
getState
in interface com.vaadin.client.ServerConnector
getState
in class com.vaadin.client.ui.AbstractConnector
protected void extend(com.vaadin.client.ServerConnector extensionTarget)
extend
in class com.vaadin.client.extensions.AbstractExtensionConnector
Copyright © 2015 Magnolia International Ltd.. All rights reserved.