Package io.jmix.flowui.menu
Class MenuItem
java.lang.Object
io.jmix.flowui.menu.MenuItem
Main menu item descriptor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionChildren itemsorg.dom4j.Element
getIcon()
getId()
Menu item ID as defined inmenu-config.xml
Parent item.getTitle()
getView()
boolean
isMenu()
boolean
isOpened()
void
setClassName
(String className) 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
Sets the givencaption
to menu item.void
-
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
-
getClassName
-
setClassName
-
getIcon
-
setIcon
-
isOpened
public boolean isOpened() -
setOpened
public void setOpened(boolean expanded) -
getView
-
setView
-