Package io.jmix.flowui.menu
Class MenuConfig
java.lang.Object
io.jmix.flowui.menu.MenuConfig
Holds information about the main menu structure.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Dom4jTools
protected org.springframework.core.env.Environment
protected boolean
protected ReadWriteLock
static final String
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected JmixModules
protected Resources
protected UiProperties
-
Constructor Summary
ConstructorDescriptionMenuConfig
(Resources resources, Messages messages, MessageTools messageTools, Dom4jTools dom4JTools, org.springframework.core.env.Environment environment, UiProperties uiProperties, JmixModules modules, Metadata metadata, MetadataTools metadataTools) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkDuplicateAction
(String menuItemId, String... actionDefinition) protected void
protected void
checkValueOrEntityProvided
(org.dom4j.Element property) protected MenuItem
createMenuItem
(org.dom4j.Element element, MenuItem currentParentItem) getItemTitle
(MenuItem menuItem) getItemTitle
(String id) protected Object
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 String
loadEntityFetchPlan
(org.dom4j.Element propertyElement) protected void
protected MetaClass
loadItemPropertyEntityClass
(org.dom4j.Element property) protected Object
loadItemPropertyEntityId
(org.dom4j.Element property, MetaClass metaClass) protected List<MenuItem.MenuItemParameter>
loadMenuItemParameters
(org.dom4j.Element menuItem, String parametersElementName) protected List<MenuItem.MenuItemProperty>
loadMenuItemProperties
(org.dom4j.Element menuItem) protected Object
loadMenuItemPropertyValue
(org.dom4j.Element property) 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
loadShortcutCombination
(MenuItem menuItem, org.dom4j.Element element) protected void
protected Object
parseEntityId
(MetaClass entityMetaClass, String entityId) void
reset()
Make the config to reload view on next request.
-
Field Details
-
MENU_CONFIG_XML_PROP
- See Also:
-
rootItems
-
resources
-
messages
-
messageTools
-
dom4JTools
-
environment
protected org.springframework.core.env.Environment environment -
uiProperties
-
modules
-
metadata
-
metadataTools
-
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, UiProperties uiProperties, JmixModules modules, Metadata metadata, MetadataTools metadataTools)
-
-
Method Details
-
getItemTitle
-
checkInitialized
protected void checkInitialized() -
init
protected void init() -
reset
public void reset()Make the config to reload view on next request. -
getRootItems
Main menu root items -
checkValueOrEntityProvided
protected void checkValueOrEntityProvided(org.dom4j.Element property) -
checkDuplicateAction
-
loadResourceString
-
loadMenuItemProperties
-
loadMenuItemParameters
protected List<MenuItem.MenuItemParameter> loadMenuItemParameters(org.dom4j.Element menuItem, String parametersElementName) -
loadMenuItemPropertyValue
-
getMenuItemPropertyTypedValue
-
loadItemPropertyEntityClass
-
loadItemPropertyEntityId
-
loadEntityFetchPlan
-
parseEntityId
-