Package io.jmix.flowui.component.main
Class JmixListMenu.BeanMenuItem
java.lang.Object
io.jmix.flowui.kit.component.main.ListMenu.MenuItem
io.jmix.flowui.component.main.JmixListMenu.BeanMenuItem
- Enclosing class:
- JmixListMenu
-
Field Summary
Fields inherited from class io.jmix.flowui.kit.component.main.ListMenu.MenuItem
classNames, clickHandler, description, icon, id, menuComponent, propertyChangeSupport, shortcutCombination, title -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JmixListMenu.BeanMenuItemwithClassNames(List<String> classNames) Sets class names that should be added to the menu item.withDescription(String description) Sets menu item description that should be shown when the user moves cursor on item.withIcon(com.vaadin.flow.component.icon.VaadinIcon icon) Sets icon that should be displayed to the left of theListMenu.MenuItem.getTitle().withShortcutCombination(KeyCombination shortcutCombination) Sets displayed menu item text.Methods inherited from class io.jmix.flowui.kit.component.main.ListMenu.MenuItem
addClassNames, addPropertyChangeListener, createMenuBar, equals, getClassNames, getClickHandler, getDescription, getIcon, getId, getMenuComponent, getShortcutCombination, getTitle, hashCode, isAttachedToMenu, isMenu, isSeparator, removePropertyChangeListener, setMenuComponent, toString, withClickHandler
-
Constructor Details
-
BeanMenuItem
-
-
Method Details
-
create
-
withTitle
Description copied from class:ListMenu.MenuItemSets displayed menu item text.- Overrides:
withTitlein classListMenu.MenuItem- Parameters:
title- displayed text- Returns:
- current menu instance
-
withDescription
Description copied from class:ListMenu.MenuItemSets menu item description that should be shown when the user moves cursor on item.- Overrides:
withDescriptionin classListMenu.MenuItem- Parameters:
description- description to set- Returns:
- current menu instance
-
withIcon
Description copied from class:ListMenu.MenuItemSets icon that should be displayed to the left of theListMenu.MenuItem.getTitle().- Overrides:
withIconin classListMenu.MenuItem- Parameters:
icon- icon to set- Returns:
- current menu instance
-
withClassNames
Description copied from class:ListMenu.MenuItemSets class names that should be added to the menu item.- Overrides:
withClassNamesin classListMenu.MenuItem- Parameters:
classNames- class names to add- Returns:
- current menu instance
-
withShortcutCombination
public JmixListMenu.BeanMenuItem withShortcutCombination(@Nullable KeyCombination shortcutCombination) - Overrides:
withShortcutCombinationin classListMenu.MenuItem
-