Class MenuConfig

java.lang.Object
io.jmix.flowui.menu.MenuConfig

@Component("flowui_MenuConfig") public class MenuConfig extends Object
GenericUI class holding information about the main menu structure.
  • Field Details

    • rootItems

      protected List<MenuItem> rootItems
    • resources

      protected Resources resources
    • messages

      protected Messages messages
    • messageTools

      protected MessageTools messageTools
    • dom4JTools

      protected Dom4jTools dom4JTools
    • environment

      protected org.springframework.core.env.Environment environment
    • flowuiProperties

      protected FlowuiProperties flowuiProperties
    • modules

      protected JmixModules modules
    • initialized

      protected volatile boolean initialized
    • lock

      protected ReadWriteLock lock
  • Constructor Details

  • Method Details

    • getItemTitle

      public String getItemTitle(String id)
    • getItemTitle

      public String getItemTitle(MenuItem menuItem)
    • checkInitialized

      protected void checkInitialized()
    • init

      protected void init()
    • reset

      public void reset()
      Make the config to reload screens on next request.
    • getRootItems

      public List<MenuItem> getRootItems()
      Main menu root items
    • loadMenuItems

      protected void loadMenuItems(org.dom4j.Element parentElement, @Nullable MenuItem parentItem)
    • createMenuItem

      @Nullable protected MenuItem createMenuItem(org.dom4j.Element element, @Nullable MenuItem currentParentItem)
    • checkDuplicateAction

      protected void checkDuplicateAction(@Nullable String menuItemId, String... actionDefinition)
    • loadOpened

      protected void loadOpened(org.dom4j.Element element, MenuItem menuItem)
    • loadTitle

      protected void loadTitle(org.dom4j.Element element, MenuItem menuItem)
    • loadDescription

      protected void loadDescription(org.dom4j.Element element, MenuItem menuItem)
    • loadClassName

      protected void loadClassName(org.dom4j.Element element, MenuItem menuItem)
    • loadIcon

      protected void loadIcon(org.dom4j.Element element, MenuItem menuItem)
    • loadResourceString

      protected String loadResourceString(@Nullable String ref)
    • addItem

      protected void addItem(List<MenuItem> items, @Nullable MenuItem menuItem, @Nullable MenuItem beforeItem, boolean before)
    • findItem

      @Nullable public MenuItem findItem(String id, MenuItem item)