Class JmixMenuBar

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.menubar.MenuBar
io.jmix.flowui.kit.component.menubar.JmixMenuBar
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.contextmenu.HasMenuItems, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, HasMenuItemsEnhanced, Serializable

public class JmixMenuBar extends com.vaadin.flow.component.menubar.MenuBar implements HasMenuItemsEnhanced
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.menubar.MenuBar

    com.vaadin.flow.component.menubar.MenuBar.MenuBarI18n
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.vaadin.flow.component.contextmenu.MenuItemsArrayGenerator<com.vaadin.flow.component.contextmenu.MenuItem>
     
    protected JmixMenuManager<com.vaadin.flow.component.menubar.MenuBar,com.vaadin.flow.component.contextmenu.MenuItem,com.vaadin.flow.component.contextmenu.SubMenu>
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addItem(com.vaadin.flow.component.Component component)
     
    addItem(com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
     
     
    addItem(String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
     
    addItemAtIndex(int index, com.vaadin.flow.component.Component component)
     
    addItemAtIndex(int index, com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
     
    addItemAtIndex(int index, String text)
     
    addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
     
    protected void
    attachListener(com.vaadin.flow.component.AttachEvent attachEvent)
     
    Stream<com.vaadin.flow.component.Component>
     
    List<com.vaadin.flow.component.contextmenu.MenuItem>
     
    protected void
     
    void
    remove(com.vaadin.flow.component.contextmenu.MenuItem... items)
     
    void
     
    protected void
    runBeforeClientResponse(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command)
     

    Methods inherited from class com.vaadin.flow.component.menubar.MenuBar

    addThemeVariants, getI18n, isOpenOnHover, onAttach, removeThemeVariants, setI18n, setOpenOnHover

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
  • Field Details

    • updateScheduled

      protected boolean updateScheduled
  • Constructor Details

    • JmixMenuBar

      public JmixMenuBar()
  • Method Details

    • initComponent

      protected void initComponent()
    • addItem

      public JmixMenuItem addItem(String text)
      Specified by:
      addItem in interface HasMenuItemsEnhanced
      Overrides:
      addItem in class com.vaadin.flow.component.menubar.MenuBar
    • addItem

      public JmixMenuItem addItem(com.vaadin.flow.component.Component component)
      Specified by:
      addItem in interface HasMenuItemsEnhanced
      Overrides:
      addItem in class com.vaadin.flow.component.menubar.MenuBar
    • addItem

      public JmixMenuItem addItem(String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
      Specified by:
      addItem in interface com.vaadin.flow.component.contextmenu.HasMenuItems
      Specified by:
      addItem in interface HasMenuItemsEnhanced
      Overrides:
      addItem in class com.vaadin.flow.component.menubar.MenuBar
    • addItem

      public JmixMenuItem addItem(com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
      Specified by:
      addItem in interface com.vaadin.flow.component.contextmenu.HasMenuItems
      Specified by:
      addItem in interface HasMenuItemsEnhanced
      Overrides:
      addItem in class com.vaadin.flow.component.menubar.MenuBar
    • addItemAtIndex

      public JmixMenuItem addItemAtIndex(int index, String text)
      Specified by:
      addItemAtIndex in interface HasMenuItemsEnhanced
    • addItemAtIndex

      public JmixMenuItem addItemAtIndex(int index, com.vaadin.flow.component.Component component)
      Specified by:
      addItemAtIndex in interface HasMenuItemsEnhanced
    • addItemAtIndex

      public JmixMenuItem addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
      Specified by:
      addItemAtIndex in interface HasMenuItemsEnhanced
    • addItemAtIndex

      public JmixMenuItem addItemAtIndex(int index, com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener)
      Specified by:
      addItemAtIndex in interface HasMenuItemsEnhanced
    • getItems

      public List<com.vaadin.flow.component.contextmenu.MenuItem> getItems()
      Overrides:
      getItems in class com.vaadin.flow.component.menubar.MenuBar
    • remove

      public void remove(com.vaadin.flow.component.contextmenu.MenuItem... items)
      Overrides:
      remove in class com.vaadin.flow.component.menubar.MenuBar
    • removeAll

      public void removeAll()
      Overrides:
      removeAll in class com.vaadin.flow.component.menubar.MenuBar
    • getChildren

      public Stream<com.vaadin.flow.component.Component> getChildren()
      Overrides:
      getChildren in class com.vaadin.flow.component.menubar.MenuBar
    • attachListener

      protected void attachListener(com.vaadin.flow.component.AttachEvent attachEvent)
    • runBeforeClientResponse

      protected void runBeforeClientResponse(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command)