com.ebmwebsourcing.geasytools.geasyui.impl.contextualmenu
Class ContextualMenu

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.Composite
              extended by com.ebmwebsourcing.geasytools.geasyui.impl.contextualmenu.ContextualMenu
All Implemented Interfaces:
IContextualMenu, IHasContextualMenu, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
DragProxyContextualMenu

public abstract class ContextualMenu
extends com.google.gwt.user.client.ui.Composite
implements IContextualMenu


Nested Class Summary
 
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
protected  com.google.gwt.user.client.ui.AbsolutePanel mainPanel
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ContextualMenu(IHasContextualMenu hasContextualMenu)
           
ContextualMenu(IHasContextualMenu hasContextualMenu, IContextualMenu parentMenu)
           
ContextualMenu(IHasContextualMenu hasContextualMenu, IContextualMenuConfiguration config)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
           
 IContextualMenuConfiguration getConfiguration()
           
 IHasContextualMenu getHasContextualDragProxyMenu()
           
 float getHeight()
           
 Direction getMenuDirection()
          Where should the menu be positioned relatively to ui element
 IContextualMenu getParentMenu()
           
 float getWidth()
           
 void hide()
           
protected  void init()
           
 void show()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.contextualmenu.IHasContextualMenu
getAbsoluteLeft, getAbsoluteTop
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 

Field Detail

mainPanel

protected com.google.gwt.user.client.ui.AbsolutePanel mainPanel
Constructor Detail

ContextualMenu

public ContextualMenu(IHasContextualMenu hasContextualMenu)

ContextualMenu

public ContextualMenu(IHasContextualMenu hasContextualMenu,
                      IContextualMenu parentMenu)

ContextualMenu

public ContextualMenu(IHasContextualMenu hasContextualMenu,
                      IContextualMenuConfiguration config)
Method Detail

getConfiguration

public IContextualMenuConfiguration getConfiguration()
Specified by:
getConfiguration in interface IContextualMenu

getHasContextualDragProxyMenu

public IHasContextualMenu getHasContextualDragProxyMenu()
Specified by:
getHasContextualDragProxyMenu in interface IContextualMenu

init

protected void init()

addMouseDownHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
Specified by:
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlers

addMouseUpHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
Specified by:
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlers

addMouseOutHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
Specified by:
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlers

addMouseOverHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
Specified by:
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlers

addMouseMoveHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
Specified by:
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers

addMouseWheelHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
Specified by:
addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlers

addClickHandler

public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Specified by:
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers

addDoubleClickHandler

public com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)

show

public void show()
Specified by:
show in interface IContextualMenu

hide

public void hide()
Specified by:
hide in interface IContextualMenu

getHeight

public float getHeight()
Specified by:
getHeight in interface IHasContextualMenu

getMenuDirection

public Direction getMenuDirection()
Description copied from interface: IHasContextualMenu
Where should the menu be positioned relatively to ui element

Specified by:
getMenuDirection in interface IHasContextualMenu
Returns:

getWidth

public float getWidth()
Specified by:
getWidth in interface IHasContextualMenu

getParentMenu

public IContextualMenu getParentMenu()
Specified by:
getParentMenu in interface IContextualMenu


Copyright © 2010-2011 Petals Link. All Rights Reserved.