Package io.jmix.ui.menu
Class MenuConfig
java.lang.Object
io.jmix.ui.menu.MenuConfig
GenericUI class holding information about the main menu structure.
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected Dom4jTools
protected org.springframework.core.env.Environment
protected FetchPlanRepository
protected Icons
protected boolean
protected ReadWriteLock
static final String
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected JmixModules
protected Resources
protected ThemeConstantsManager
protected UiProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
checkDuplicateAction
(String menuItemId, String... actionDefinition) protected void
protected void
checkValueOrEntityProvided
(org.dom4j.Element property) protected MenuItem
createMenuItem
(org.dom4j.Element element, MenuItem currentParentItem) protected String
getIconPath
(String icon) getItemCaption
(MenuItem menuItem) getItemCaption
(String id) protected Object
Main menu root itemsprotected void
init()
protected void
loadCaption
(org.dom4j.Element element, MenuItem menuItem) protected void
loadDescription
(org.dom4j.Element element, MenuItem menuItem) protected String
loadEntityFetchPlan
(org.dom4j.Element propertyElement) protected void
loadExpanded
(org.dom4j.Element element, MenuItem menuItem) protected void
protected MetaClass
loadItemPropertyEntityClass
(org.dom4j.Element property) protected Object
loadItemPropertyEntityId
(org.dom4j.Element property, MetaClass metaClass) 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 String
loadResourceString
(String caption) protected void
loadShortcut
(MenuItem menuItem, org.dom4j.Element element) protected void
loadStylename
(org.dom4j.Element element, MenuItem menuItem) protected String
loadThemeString
(String value) protected Object
parseEntityId
(MetaClass entityMetaClass, String entityId) void
reset()
Make the config to reload screens on next request.void
setDataManager
(DataManager dataManager) void
setDom4JTools
(Dom4jTools dom4JTools) void
setEnvironment
(org.springframework.core.env.Environment environment) void
setFetchPlanRepository
(FetchPlanRepository fetchPlanRepository) void
void
setMessages
(Messages messages) void
setMessageTools
(MessageTools messageTools) void
setMetadata
(Metadata metadata) void
setMetadataTools
(MetadataTools metadataTools) void
setModules
(JmixModules modules) void
setResources
(Resources resources) void
setThemeConstantsManager
(ThemeConstantsManager themeConstantsManager) void
setUiProperties
(UiProperties uiProperties)
-
Field Details
-
MENU_CONFIG_XML_PROP
- See Also:
-
rootItems
-
resources
-
messages
-
messageTools
-
themeConstantsManager
-
dom4JTools
-
environment
protected org.springframework.core.env.Environment environment -
uiProperties
-
modules
-
icons
-
metadata
-
metadataTools
-
fetchPlanRepository
-
dataManager
-
initialized
protected volatile boolean initialized -
lock
-
-
Constructor Details
-
MenuConfig
public MenuConfig()
-
-
Method Details
-
setMetadata
-
setMetadataTools
-
setFetchPlanRepository
-
setDataManager
-
setResources
-
setMessages
-
setMessageTools
-
setThemeConstantsManager
-
setDom4JTools
-
setEnvironment
@Autowired public void setEnvironment(org.springframework.core.env.Environment environment) -
setUiProperties
-
setModules
-
setIcons
-
getItemCaption
-
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 -
checkValueOrEntityProvided
protected void checkValueOrEntityProvided(org.dom4j.Element property) -
checkDuplicateAction
-
getIconPath
-
loadResourceString
-
loadThemeString
-
loadMenuItemProperties
-
loadMenuItemPropertyValue
-
getMenuItemPropertyTypedValue
-
loadItemPropertyEntityClass
-
loadItemPropertyEntityId
-
loadEntityFetchPlan
-
parseEntityId
-