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() |
addThemeNames, executeJsWhenAttached, getContextMenu, getSubMenu, hasThemeName, isCheckable, isChecked, isParentItem, removeThemeNames, setCheckable, setCheckedaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClickListener, addClickShortcutadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllisEnabled, setEnabledgetElementaddAttachListeneraddDetachListenerpublic MenuItem(ContextMenu contextMenu, SerializableRunnable contentReset)
protected SubMenu createSubMenu()
createSubMenu in class MenuItemBase<ContextMenu,MenuItem,SubMenu>Copyright © 2025. All rights reserved.