Class JmixListMenu

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.UnorderedList>
io.jmix.flowui.kit.component.main.ListMenu
io.jmix.flowui.component.main.JmixListMenu
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class JmixListMenu extends ListMenu implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
See Also:
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • uiComponents

      protected UiComponents uiComponents
    • screenRegistry

      protected ScreenRegistry screenRegistry
  • Constructor Details

    • JmixListMenu

      public JmixListMenu()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • autowireDependencies

      protected void autowireDependencies()
    • initComponent

      protected void initComponent()
    • loadMenuConfig

      public void loadMenuConfig()
      Loads menu items from MenuConfig.
    • createMenuItemComponent

      protected com.vaadin.flow.router.RouterLink createMenuItemComponent(ListMenu.MenuItem menuItem)
      Overrides:
      createMenuItemComponent in class ListMenu
    • addMenuItemClickListener

      protected void addMenuItemClickListener(com.vaadin.flow.router.RouterLink routerLink, ListMenu.MenuItem menuItem)
      Overrides:
      addMenuItemClickListener in class ListMenu
    • getControllerClass

      protected Class<? extends Screen<?>> getControllerClass(JmixListMenu.ScreenMenuItem menuItem)
    • isSupportedScreen

      protected boolean isSupportedScreen(Class<?> targetView)