Package io.jmix.flowui.menu
Class MenuConfig
java.lang.Object
io.jmix.flowui.menu.MenuConfig
GenericUI class holding information about the main menu structure.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Dom4jTools
protected org.springframework.core.env.Environment
protected FlowuiProperties
protected boolean
protected ReadWriteLock
static final String
protected Messages
protected MessageTools
protected JmixModules
protected Resources
-
Constructor Summary
ConstructorDescriptionMenuConfig
(Resources resources, Messages messages, MessageTools messageTools, Dom4jTools dom4JTools, org.springframework.core.env.Environment environment, FlowuiProperties flowuiProperties, JmixModules modules) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
checkDuplicateAction
(String menuItemId, String... actionDefinition) protected void
protected MenuItem
createMenuItem
(org.dom4j.Element element, MenuItem currentParentItem) getItemTitle
(MenuItem menuItem) getItemTitle
(String id) Main menu root itemsprotected void
init()
protected void
loadClassName
(org.dom4j.Element element, MenuItem menuItem) protected void
loadDescription
(org.dom4j.Element element, MenuItem menuItem) protected void
protected void
loadMenuItems
(org.dom4j.Element parentElement, MenuItem parentItem) protected void
loadOpened
(org.dom4j.Element element, MenuItem menuItem) protected String
loadResourceString
(String ref) protected void
void
reset()
Make the config to reload screens on next request.
-
Field Details
-
MENU_CONFIG_XML_PROP
- See Also:
-
rootItems
-
resources
-
messages
-
messageTools
-
dom4JTools
-
environment
protected org.springframework.core.env.Environment environment -
flowuiProperties
-
modules
-
initialized
protected volatile boolean initialized -
lock
-
-
Constructor Details
-
MenuConfig
public MenuConfig(Resources resources, Messages messages, MessageTools messageTools, Dom4jTools dom4JTools, org.springframework.core.env.Environment environment, FlowuiProperties flowuiProperties, JmixModules modules)
-
-
Method Details
-
getItemTitle
-
checkInitialized
protected void checkInitialized() -
init
protected void init() -
reset
public void reset()Make the config to reload screens on next request. -
getRootItems
Main menu root items -
checkDuplicateAction
-
loadResourceString
-