Class MenuConfig

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

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

  • Constructor Details

    • MenuConfig

      public MenuConfig()
  • Method Details

    • setMetadata

      @Autowired public void setMetadata(Metadata metadata)
    • setMetadataTools

      @Autowired public void setMetadataTools(MetadataTools metadataTools)
    • setFetchPlanRepository

      @Autowired public void setFetchPlanRepository(FetchPlanRepository fetchPlanRepository)
    • setDataManager

      @Autowired public void setDataManager(DataManager dataManager)
    • setResources

      @Autowired public void setResources(Resources resources)
    • setMessages

      @Autowired public void setMessages(Messages messages)
    • setMessageTools

      @Autowired public void setMessageTools(MessageTools messageTools)
    • setThemeConstantsManager

      @Autowired public void setThemeConstantsManager(ThemeConstantsManager themeConstantsManager)
    • setDom4JTools

      @Autowired public void setDom4JTools(Dom4jTools dom4JTools)
    • setEnvironment

      @Autowired public void setEnvironment(org.springframework.core.env.Environment environment)
    • setUiProperties

      @Autowired public void setUiProperties(UiProperties uiProperties)
    • setModules

      @Autowired public void setModules(JmixModules modules)
    • setIcons

      @Autowired public void setIcons(Icons icons)
    • getItemCaption

      public String getItemCaption(String id)
    • getItemCaption

      public String getItemCaption(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)
    • checkValueOrEntityProvided

      protected void checkValueOrEntityProvided(org.dom4j.Element property)
    • checkDuplicateAction

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

      protected void loadExpanded(org.dom4j.Element element, MenuItem menuItem)
    • loadCaption

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

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

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

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

      @Nullable protected String getIconPath(@Nullable String icon)
    • loadResourceString

      protected String loadResourceString(@Nullable String caption)
    • loadThemeString

      @Nullable protected String loadThemeString(@Nullable String value)
    • loadMenuItemProperties

      protected List<MenuItem.MenuItemProperty> loadMenuItemProperties(org.dom4j.Element menuItem)
    • loadMenuItemPropertyValue

      @Nullable protected Object loadMenuItemPropertyValue(org.dom4j.Element property)
    • getMenuItemPropertyTypedValue

      protected Object getMenuItemPropertyTypedValue(String value)
    • loadItemPropertyEntityClass

      protected MetaClass loadItemPropertyEntityClass(org.dom4j.Element property)
    • loadItemPropertyEntityId

      protected Object loadItemPropertyEntityId(org.dom4j.Element property, MetaClass metaClass)
    • loadEntityFetchPlan

      protected String loadEntityFetchPlan(org.dom4j.Element propertyElement)
    • parseEntityId

      @Nullable protected Object parseEntityId(MetaClass entityMetaClass, String entityId)
    • addItem

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

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

      protected void loadShortcut(MenuItem menuItem, org.dom4j.Element element)