Package io.jmix.flowui.menu
Class ListMenuBuilder
java.lang.Object
io.jmix.flowui.menu.ListMenuBuilder
@Component("flowui_ListMenuBuilder")
@Scope("prototype")
public class ListMenuBuilder
extends Object
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected MenuConfig
protected MenuItemCommands
protected MessageTools
protected UiAccessChecker
protected UiComponents
protected ViewRegistry
-
Constructor Summary
ConstructorDescriptionListMenuBuilder
(MenuConfig menuConfig, ViewRegistry viewRegistry, UiComponents uiComponents, MessageTools messageTools, UiAccessChecker uiAccessChecker, MenuItemCommands menuItemCommands) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
void
build
(JmixListMenu listMenu) protected ListMenu.MenuItem
createBeanMenuItem
(MenuItem menuItem) createListMenu
(MenuItem menuItem) protected ListMenu.MenuBarItem
createMenuBar
(MenuItem menuItem) protected ListMenu.MenuItem
createMenuItem
(MenuItem menuItem) protected ListMenu.MenuItem
protected ListMenu.MenuItem
createViewMenuItem
(MenuItem menuItem) protected String
protected String[]
getClassNames
(MenuItem menuItem) getControllerClass
(MenuItem menuItem) protected String
getDescription
(MenuItem menuItem) protected com.vaadin.flow.component.icon.VaadinIcon
getVaadinIcon
(String iconString) protected boolean
isPermitted
(MenuItem menuItem) protected void
removeTrailingChildSeparators
(ListMenu.MenuBarItem menuBarItem) Removes trailing child separators.protected void
setIcon
(MenuItem menuItem, ListMenu.MenuItem listMenuItem)
-
Field Details
-
GENERATED_SEPARATOR_ID_PREFIX
- See Also:
-
viewRegistry
-
uiComponents
-
messageTools
-
uiAccessChecker
-
-
Constructor Details
-
Method Details
-
build
-
build
-
getVaadinIcon
-
removeTrailingChildSeparators
Removes trailing child separators.- Parameters:
menuBarItem
- parent menu item to trim
-
createMenuSeparator
-
generateSeparatorId
-