org.vaadin.peter.contextmenu.client
Class ContextMenuWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by org.vaadin.peter.contextmenu.client.ContextMenuWidget
All Implemented Interfaces:
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.HasVisibility, com.google.gwt.user.client.ui.IsWidget

public class ContextMenuWidget
extends com.google.gwt.user.client.ui.Widget

Client side implementation for ContextMenu component

Author:
Peter Lehto / Vaadin Ltd

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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ContextMenuWidget()
           
 
Method Summary
 void addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> popupCloseHandler)
           
 void addRootMenuItem(ContextMenuState.ContextMenuItemState rootItem, com.vaadin.client.extensions.AbstractExtensionConnector connector)
          Adds new item as context menu root item.
 void clearItems()
           
protected  boolean eventTargetContextMenu(com.google.gwt.user.client.Event nativeEvent)
           
 void hide()
           
protected  boolean isShowing()
           
 void showContextMenu(int rootMenuX, int rootMenuY)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextMenuWidget

public ContextMenuWidget()
Method Detail

eventTargetContextMenu

protected boolean eventTargetContextMenu(com.google.gwt.user.client.Event nativeEvent)

isShowing

protected boolean isShowing()

hide

public void hide()

addRootMenuItem

public void addRootMenuItem(ContextMenuState.ContextMenuItemState rootItem,
                            com.vaadin.client.extensions.AbstractExtensionConnector connector)
Adds new item as context menu root item.

Parameters:
rootItem -
connector -

clearItems

public void clearItems()

showContextMenu

public void showContextMenu(int rootMenuX,
                            int rootMenuY)

addCloseHandler

public void addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> popupCloseHandler)


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.