public class MenuItem extends MenuItemBase<ContextMenu,MenuItem,SubMenu> implements ClickNotifier<MenuItem>
ContextMenu
and SubMenu
. This
component can be created and added to a menu overlay with
HasMenuItems.addItem(String, ComponentEventListener)
and similar
methods.Constructor and Description |
---|
MenuItem(ContextMenu contextMenu,
SerializableRunnable contentReset) |
Modifier and Type | Method and Description |
---|---|
protected SubMenu |
createSubMenu() |
getContextMenu, getSubMenu, isCheckable, isChecked, isParentItem, setCheckable, setChecked
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClickListener, addClickShortcut
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
isEnabled, setEnabled
getElement
addAttachListener
addDetachListener
public MenuItem(ContextMenu contextMenu, SerializableRunnable contentReset)
protected SubMenu createSubMenu()
createSubMenu
in class MenuItemBase<ContextMenu,MenuItem,SubMenu>
Copyright © 2020. All rights reserved.