com.itmill.toolkit.terminal.gwt.client.ui
Class IContextMenu

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.itmill.toolkit.terminal.gwt.client.ui.IToolkitOverlay
                          extended by com.itmill.toolkit.terminal.gwt.client.ui.IContextMenu
All Implemented Interfaces:
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, Iterable<com.google.gwt.user.client.ui.Widget>

public class IContextMenu
extends IToolkitOverlay


Nested Class Summary
 
Nested classes/interfaces inherited from class com.itmill.toolkit.terminal.gwt.client.ui.IToolkitOverlay
IToolkitOverlay.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.itmill.toolkit.terminal.gwt.client.ui.IToolkitOverlay
CLASSNAME_SHADOW, Z_INDEX
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
IContextMenu()
          This method should be used only by Client object as only one per client should exists.
 
Method Summary
 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.itmill.toolkit.terminal.gwt.client.ui.IToolkitOverlay
setHeight, setPopupPosition, setShadowStyle, setWidth, setZIndex, show, updateShadowSizeAndPosition
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, hide, isAnimationEnabled, onDetach, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setAnimationEnabled, setPopupPositionAndShow, setTitle, setWidget, setVisible
 
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, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IContextMenu

public IContextMenu()
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)


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