Interface ComponentUserMenuItem
- All Superinterfaces:
HasContent,com.vaadin.flow.component.HasElement,HasSubParts,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<UserMenuItemVariant>,Serializable,UserMenuItem,UserMenuItem.HasClickListener<ComponentUserMenuItem>,UserMenuItem.HasSubMenu
- All Known Implementing Classes:
JmixUserMenu.ComponentUserMenuItemImpl
public interface ComponentUserMenuItem
extends UserMenuItem, UserMenuItem.HasSubMenu, UserMenuItem.HasClickListener<ComponentUserMenuItem>, HasContent
Represents a user menu item that can contain a custom UI
Component as its content.-
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.HasClickListener
UserMenuItem.HasClickListener.ClickEvent<ITEM extends UserMenuItem>Nested classes/interfaces inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem.HasSubMenu
UserMenuItem.HasSubMenu.SubMenu -
Field Summary
Fields inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem
PROP_CHECKABLE, PROP_CHECKED, PROP_ENABLED, PROP_VISIBLE -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentReturns the content component associated with this menu item.voidsetContent(com.vaadin.flow.component.Component content) Sets the content component for the menu item.Methods 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, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem.HasClickListener
addClickListenerMethods inherited from interface io.jmix.flowui.kit.component.usermenu.UserMenuItem.HasSubMenu
getSubMenu
-
Method Details
-
getContent
com.vaadin.flow.component.Component getContent()Returns the content component associated with this menu item.- Specified by:
getContentin interfaceHasContent- Returns:
- the
Componentcurrently set as the content
-
setContent
void setContent(com.vaadin.flow.component.Component content) Sets the content component for the menu item.- Parameters:
content- theComponentto be set as the content
-