Class HorizontalMenu.AbstractMenuItem<T extends com.vaadin.flow.component.Component>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractMenuItem<T>
Type Parameters:
T - root component type
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, MenuItem, Serializable
Direct Known Subclasses:
HorizontalMenu.AbstractContentMenuItem, HorizontalMenu.SeparatorMenuItem
Enclosing class:
HorizontalMenu

public abstract static class HorizontalMenu.AbstractMenuItem<T extends com.vaadin.flow.component.Component> extends com.vaadin.flow.component.Composite<T> implements MenuItem
Provides base functionality for horizontal menu items
See Also:
  • Field Details

  • Constructor Details

    • AbstractMenuItem

      public AbstractMenuItem()
    • AbstractMenuItem

      public AbstractMenuItem(String id)
  • Method Details

    • getMenu

      @Nullable public HorizontalMenu getMenu()
      Returns:
      menu component that contains this item
    • setMenu

      protected void setMenu(@Nullable HorizontalMenu menu)
    • getMenuItemWrapper

      @Nullable protected JmixMenuItem getMenuItemWrapper()
    • setMenuItemWrapper

      protected void setMenuItemWrapper(@Nullable JmixMenuItem menuItemWrapper)
    • getParentMenuItem

      @Nullable public HorizontalMenu.ParentMenuItem getParentMenuItem()
      Returns:
      parent menu item of this item or null if no parent has been set.
    • setParentMenuItem

      protected void setParentMenuItem(@Nullable HorizontalMenu.ParentMenuItem parentMenuItem)
    • isMenu

      public boolean isMenu()
      Returns:
      true if the item can contain other items, false otherwise
      See Also:
    • isSeparator

      public boolean isSeparator()
      Returns:
      true if the item is a separator, false otherwise
      See Also:
    • isAttachedToMenu

      public boolean isAttachedToMenu()
      Returns:
      true if the item is attached to menu component, false otherwise