|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.client.ui.AbstractConnector com.vaadin.client.extensions.AbstractExtensionConnector info.magnolia.ui.vaadin.gwt.client.usermenu.UserMenuConnector
public class UserMenuConnector
Replaces 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()
.
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 |
---|
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
Constructor Detail |
---|
public UserMenuConnector()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |