Package io.jmix.flowui.menu
Class MenuItem
java.lang.Object
io.jmix.flowui.menu.MenuItem
Main menu item descriptor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<MenuItem.MenuItemProperty>
protected List<MenuItem.MenuItemParameter>
protected List<MenuItem.MenuItemParameter>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Children itemsorg.dom4j.Element
getIcon()
getId()
Menu item ID as defined inmenu-config.xml
Parent item.getTitle()
getView()
boolean
isMenu()
boolean
isOpened()
boolean
void
void
setBeanMethod
(String beanMethod) void
setClassNames
(String classNames) void
setDescription
(String description) Sets the givendescription
to menu item.void
setDescriptor
(org.dom4j.Element descriptor) void
void
setMenu
(boolean isMenu) void
setOpened
(boolean expanded) void
setProperties
(List<MenuItem.MenuItemProperty> properties) void
setQueryParameters
(List<MenuItem.MenuItemParameter> queryParameters) void
setRouteParameters
(List<MenuItem.MenuItemParameter> routeParameters) void
setSeparator
(boolean separator) void
setShortcutCombination
(KeyCombination shortcutCombination) void
Sets the givencaption
to menu item.void
-
Field Details
-
properties
-
queryParameters
-
routeParameters
-
-
Constructor Details
-
MenuItem
-
Method Details
-
isMenu
public boolean isMenu() -
setMenu
public void setMenu(boolean isMenu) -
getParent
Parent item. Null if this is root item. -
getChildren
Children items -
getId
Menu item ID as defined inmenu-config.xml
-
getDescriptor
public org.dom4j.Element getDescriptor() -
setDescriptor
public void setDescriptor(org.dom4j.Element descriptor) -
getTitle
- Returns:
- a raw string from menu XML config, can be a reference to localization message, e.g.
mainMsg://menuitem.title
- See Also:
-
setTitle
Sets the givencaption
to menu item.- Parameters:
caption
- menu item caption- See Also:
-
getDescription
- Returns:
- a raw string from menu XML config, can be a reference to localization message, e.g.
mainMsg://menuitem.description
-
setDescription
Sets the givendescription
to menu item.- Parameters:
description
- menu item description
-
getClassNames
-
setClassNames
-
getShortcutCombination
-
setShortcutCombination
-
isSeparator
public boolean isSeparator() -
setSeparator
public void setSeparator(boolean separator) -
getIcon
-
setIcon
-
isOpened
public boolean isOpened() -
setOpened
public void setOpened(boolean expanded) -
getView
-
setView
-
getBean
-
setBean
-
getBeanMethod
-
setBeanMethod
-
getProperties
-
setProperties
-
getQueryParameters
-
setQueryParameters
-
getRouteParameters
-
setRouteParameters
-