Class JmixMenuManager<C extends com.vaadin.flow.component.Component,I extends com.vaadin.flow.component.contextmenu.MenuItemBase<?,I,S>,S extends com.vaadin.flow.component.contextmenu.SubMenuBase<?,I,S>>

java.lang.Object
com.vaadin.flow.component.contextmenu.MenuManager<C,I,S>
io.jmix.flowui.kit.component.contextmenu.JmixMenuManager<C,I,S>
All Implemented Interfaces:
Serializable

public class JmixMenuManager<C extends com.vaadin.flow.component.Component,I extends com.vaadin.flow.component.contextmenu.MenuItemBase<?,I,S>,S extends com.vaadin.flow.component.contextmenu.SubMenuBase<?,I,S>> extends com.vaadin.flow.component.contextmenu.MenuManager<C,I,S>
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.vaadin.flow.function.SerializableBiFunction<C,com.vaadin.flow.function.SerializableRunnable,I>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixMenuManager(C menu, com.vaadin.flow.function.SerializableRunnable contentReset, com.vaadin.flow.function.SerializableBiFunction<C,com.vaadin.flow.function.SerializableRunnable,I> itemGenerator, Class<I> itemType, I parentMenuItem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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<I>> clickListener)
     
    addItemAtIndex(int index, String text)
     
    addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<I>> clickListener)
     

    Methods inherited from class com.vaadin.flow.component.contextmenu.MenuManager

    add, addComponentAtIndex, addItem, addItem, addItem, addItem, getChildren, getItems, remove, removeAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • itemGenerator

      protected final com.vaadin.flow.function.SerializableBiFunction<C extends com.vaadin.flow.component.Component,com.vaadin.flow.function.SerializableRunnable,I extends com.vaadin.flow.component.contextmenu.MenuItemBase<?,I,S>> itemGenerator
  • Constructor Details

    • JmixMenuManager

      public JmixMenuManager(C menu, com.vaadin.flow.function.SerializableRunnable contentReset, com.vaadin.flow.function.SerializableBiFunction<C,com.vaadin.flow.function.SerializableRunnable,I> itemGenerator, Class<I> itemType, @Nullable I parentMenuItem)
  • Method Details

    • addItemAtIndex

      public I addItemAtIndex(int index, String text)
    • addItemAtIndex

      public I addItemAtIndex(int index, com.vaadin.flow.component.Component component)
    • addItemAtIndex

      public I addItemAtIndex(int index, String text, @Nullable com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<I>> clickListener)
    • addItemAtIndex

      public I addItemAtIndex(int index, com.vaadin.flow.component.Component component, @Nullable com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<I>> clickListener)