com.vaadin.terminal.gwt.client.ui
Class VContextMenu

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.google.gwt.user.client.ui.PopupPanel
                      extended by com.vaadin.terminal.gwt.client.ui.VOverlay
                          extended by com.vaadin.terminal.gwt.client.ui.VContextMenu
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesPopupEvents, SubPartAware, Iterable<com.google.gwt.user.client.ui.Widget>

public class VContextMenu
extends VOverlay
implements SubPartAware


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay
VOverlay.ShadowAnimation
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay
CLASSNAME_SHADOW, Z_INDEX
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VContextMenu()
          This method should be used only by Client object as only one per client should exists.
 
Method Summary
 void ensureHidden(ActionOwner actionOwner)
          Hides context menu if it is currently shown by given action owner.
 com.google.gwt.user.client.Element getSubPartElement(String subPart)
           
 String getSubPartName(com.google.gwt.user.client.Element subElement)
           
 void setActionOwner(ActionOwner ao)
          Sets the element from which to build menu
 void showAt(ActionOwner ao, int left, int top)
           
 void showAt(int left, int top)
          Shows context menu at given location.
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.VOverlay
hide, setHeight, setPopupPosition, setShadowStyle, setVisible, setWidth, setZIndex, show, updateShadowSizeAndPosition
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

VContextMenu

public VContextMenu()
This method should be used only by Client object as only one per client should exists. Request an instance via client.getContextMenu();

Parameters:
cli - to be set as an owner of menu
Method Detail

setActionOwner

public void setActionOwner(ActionOwner ao)
Sets the element from which to build menu

Parameters:
ao -

showAt

public void showAt(int left,
                   int top)
Shows context menu at given location.

Parameters:
left -
top -

showAt

public void showAt(ActionOwner ao,
                   int left,
                   int top)

getSubPartElement

public com.google.gwt.user.client.Element getSubPartElement(String subPart)
Specified by:
getSubPartElement in interface SubPartAware

getSubPartName

public String getSubPartName(com.google.gwt.user.client.Element subElement)
Specified by:
getSubPartName in interface SubPartAware

ensureHidden

public void ensureHidden(ActionOwner actionOwner)
Hides context menu if it is currently shown by given action owner.

Parameters:
actionOwner -


Copyright © 2000-2010 IT Mill Ltd. All Rights Reserved.