public class VContextMenu
extends com.vaadin.client.ui.VMenuBar
com.vaadin.client.ui.VMenuBar.CustomMenuItem
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
ContextMenuConnector |
connector |
CLASSNAME, client, collapsedRootItems, containerElement, emptyCommand, enabled, hostReference, htmlContentAllowed, items, menuVisible, moreItem, mouseDownPressed, openRootOnHover, parentMenu, popup, selected, subMenu, SUBMENU_CLASSNAME_PREFIX, uidlId, visibleChildMenu
Constructor and Description |
---|
VContextMenu() |
VContextMenu(boolean subMenu,
com.vaadin.client.ui.VMenuBar parentMenu) |
Modifier and Type | Method and Description |
---|---|
String |
buildItemHTML(boolean separator,
boolean subMenu,
String iconUrl,
String text) |
protected com.vaadin.client.ui.VOverlay |
createOverlay() |
protected com.vaadin.client.ui.VMenuBar |
getRoot() |
boolean |
handleNavigation(int keycode,
boolean ctrl,
boolean shift) |
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event) |
void |
onMenuClick(int clickedItemId) |
void |
showRootMenu(int x,
int y) |
addItem, addItem, addItem, addTrigger, buildItemHTML, clearItems, close, getCloseMenuKey, getItems, getMenuItemWithElement, getMenuItemWithElement, getNavigationDownKey, getNavigationLeftKey, getNavigationRightKey, getNavigationSelectKey, getNavigationUpKey, getParentMenu, getSelected, getSubPartElement, getSubPartName, hideChildMenu, hideChildren, hideChildren, hideParents, hideParents, iLayout, iLayout, isNavigationSelectKey, itemClick, itemOut, itemOver, onBrowserEvent, onDetach, onFocus, onKeyDown, onKeyPress, onMouseOut, onMouseOver, onShow, removeItem, setParentMenu, setSelected, setStyleName, setStylePrimaryName, showChildMenu, showChildMenuAt, updateStyleNames
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, focus, setFocus
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
forEach, spliterator
public ContextMenuConnector connector
public VContextMenu(boolean subMenu, com.vaadin.client.ui.VMenuBar parentMenu)
public VContextMenu()
public void showRootMenu(int x, int y)
public void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
onClose
in interface com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
onClose
in class com.vaadin.client.ui.VMenuBar
protected com.vaadin.client.ui.VOverlay createOverlay()
createOverlay
in class com.vaadin.client.ui.VMenuBar
public boolean handleNavigation(int keycode, boolean ctrl, boolean shift)
handleNavigation
in class com.vaadin.client.ui.VMenuBar
public void onMenuClick(int clickedItemId)
onMenuClick
in class com.vaadin.client.ui.VMenuBar
protected com.vaadin.client.ui.VMenuBar getRoot()
getRoot
in class com.vaadin.client.ui.VMenuBar
Copyright © 2020 Magnolia International Ltd.. All rights reserved.