Class JmixUserMenu.ActionUserMenuItemImpl
java.lang.Object
io.jmix.flowui.kit.component.usermenu.JmixUserMenu.AbstractUserMenuItem
io.jmix.flowui.kit.component.usermenu.JmixUserMenu.ActionUserMenuItemImpl
- All Implemented Interfaces:
com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<UserMenuItemVariant>,ActionHolder,HasSubParts,ActionUserMenuItem,JmixUserMenu.HasMenuItem,UserMenuItem,UserMenuItem.HasSubMenu,Serializable
- Enclosing class:
- JmixUserMenu<USER>
protected static class JmixUserMenu.ActionUserMenuItemImpl
extends JmixUserMenu.AbstractUserMenuItem
implements ActionUserMenuItem
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem
UserMenuItem.HasClickListener<ITEM extends UserMenuItem>, UserMenuItem.HasSubMenuNested classes/interfaces inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem.HasSubMenu
UserMenuItem.HasSubMenu.SubMenu -
Field Summary
FieldsFields inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenu.AbstractUserMenuItem
id, item, menuItemClickListenerRegistration, subMenu, userMenuFields inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem
PROP_CHECKABLE, PROP_CHECKED, PROP_ENABLED, PROP_VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionActionUserMenuItemImpl(String id, JmixUserMenu<?> userMenu, JmixMenuItem item, Action action) -
Method Summary
Modifier and TypeMethodDescriptionReturns theActionassociated with this item.Retrieves the submenu associated with this user menu item.protected voidprotected voidprotected voidonItemClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem> event) Methods inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenu.AbstractUserMenuItem
addClickListenerInternal, addPropertyChangeListener, createSubMenu, firePropertyChange, getElement, getEventBus, getId, getItem, getSubPart, hasListener, internalRemoveClickListener, isCheckable, isChecked, isEnabled, isVisible, setCheckable, setChecked, setEnabled, setVisible, toString, updateContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface io.jmix.flowui.kit.component.HasSubParts
getSubPartMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariantsMethods inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem
addPropertyChangeListener, getId, isCheckable, isChecked, isEnabled, isVisible, setCheckable, setChecked, setEnabled, setVisible
-
Field Details
-
action
-
-
Constructor Details
-
Method Details
-
initItem
-
onItemClick
protected void onItemClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem> event) -
onActionPropertyChange
-
getAction
Description copied from interface:ActionUserMenuItemReturns theActionassociated with this item.- Specified by:
getActionin interfaceActionHolder- Specified by:
getActionin interfaceActionUserMenuItem- Returns:
- the associated action
-
getSubMenu
Description copied from interface:UserMenuItem.HasSubMenuRetrieves the submenu associated with this user menu item. A submenu is a container for additional menu items, providing hierarchical structuring of user menu options.- Specified by:
getSubMenuin interfaceUserMenuItem.HasSubMenu- Overrides:
getSubMenuin classJmixUserMenu.AbstractUserMenuItem- Returns:
- the submenu associated with this user menu item
-