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

Represents a user menu item that can contain a custom UI Component as its content.
  • Method Details

    • getContent

      com.vaadin.flow.component.Component getContent()
      Returns the content component associated with this menu item.
      Specified by:
      getContent in interface HasContent
      Returns:
      the Component currently set as the content
    • setContent

      void setContent(com.vaadin.flow.component.Component content)
      Sets the content component for the menu item.
      Parameters:
      content - the Component to be set as the content