Package io.jmix.ui.menu
Class MenuItem
java.lang.Object
io.jmix.ui.menu.MenuItem
Main menu item descriptor
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Children itemsorg.dom4j.Element
getIcon()
getId()
Menu item ID as defined inmenu-config.xml
Parent item.boolean
boolean
isMenu()
boolean
void
void
setBeanMethod
(String beanMethod) void
setCaption
(String caption) Sets the givencaption
to menu item.void
setDescription
(String description) Sets the givendescription
to menu item.void
setDescriptor
(org.dom4j.Element descriptor) void
setExpanded
(boolean expanded) void
void
setMenu
(boolean isMenu) void
setProperties
(List<MenuItem.MenuItemProperty> properties) void
setRunnableClass
(String runnableClass) void
void
setSeparator
(boolean separator) void
setShortcut
(KeyCombination shortcut) void
setStylename
(String stylename)
-
Field Details
-
properties
-
-
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) -
getCaption
- Returns:
- a raw string from menu XML config, can be a reference to localization message, e.g.
mainMsg://menuitem.caption
- See Also:
-
setCaption
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
-
getStylename
-
setStylename
-
getShortcut
-
setShortcut
-
isSeparator
public boolean isSeparator() -
setSeparator
public void setSeparator(boolean separator) -
getIcon
-
setIcon
-
isExpanded
public boolean isExpanded() -
setExpanded
public void setExpanded(boolean expanded) -
getScreen
-
setScreen
-
getRunnableClass
-
setRunnableClass
-
getBean
-
setBean
-
getBeanMethod
-
setBeanMethod
-
getProperties
-
setProperties
-