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
- All Implemented Interfaces:
- MenuItem
- Enclosing class:
- JmixListMenu
- 
Field SummaryFields inherited from class io.jmix.flowui.kit.component.main.ListMenu.MenuItemclassNames, clickHandler, description, icon, id, MENU_ITEM_CLASS_NAME, MENU_ITEM_PREFIX_COMPONENT, MENU_ITEM_SUFFIX_COMPONENT, menuComponent, openedChangeHandler, prefixComponent, propertyChangeSupport, shortcutCombination, suffixComponent, title
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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) Deprecated, for removal: This API element is subject to removal in a future version.withPrefixComponent(com.vaadin.flow.component.Component prefixComponent) Sets prefix component of the item.withShortcutCombination(KeyCombination shortcutCombination) withSuffixComponent(com.vaadin.flow.component.Component suffixComponent) Sets suffix component of the item.Sets displayed menu item text.Methods inherited from class io.jmix.flowui.kit.component.main.ListMenu.MenuItemaddClassNames, addPropertyChangeListener, createMenuBar, equals, getClassNames, getClickHandler, getDescription, getIcon, getId, getMenuComponent, getOpenedChangeHandler, getPrefixComponent, getShortcutCombination, getSuffixComponent, getTitle, hashCode, isAttachedToMenu, isMenu, isSeparator, removePropertyChangeListener, setMenuComponent, setPrefixComponent, setSuffixComponent, toString, withClickHandler, withOpenedChangeHandler
- 
Constructor Details- 
BeanMenuItem
 
- 
- 
Method Details- 
create
- 
withTitleDescription copied from class:ListMenu.MenuItemSets displayed menu item text.- Overrides:
- withTitlein class- ListMenu.MenuItem
- Parameters:
- title- displayed text
- Returns:
- current menu instance
 
- 
withDescriptionDescription copied from class:ListMenu.MenuItemSets menu item description that should be shown when the user moves cursor on item.- Overrides:
- withDescriptionin class- ListMenu.MenuItem
- Parameters:
- description- description to set
- Returns:
- current menu instance
 
- 
withIcon@Deprecated(since="2.2", forRemoval=true) public JmixListMenu.BeanMenuItem withIcon(@Nullable com.vaadin.flow.component.icon.VaadinIcon icon) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ListMenu.MenuItemSets icon that should be displayed to the left of theListMenu.MenuItem.getTitle().- Overrides:
- withIconin class- ListMenu.MenuItem
- Parameters:
- icon- icon to set
- Returns:
- current menu instance
 
- 
withClassNamesDescription copied from class:ListMenu.MenuItemSets class names that should be added to the menu item.- Overrides:
- withClassNamesin class- ListMenu.MenuItem
- Parameters:
- classNames- class names to add
- Returns:
- current menu instance
 
- 
withSuffixComponentpublic JmixListMenu.BeanMenuItem withSuffixComponent(com.vaadin.flow.component.Component suffixComponent) Description copied from class:ListMenu.MenuItemSets suffix component of the item.- Overrides:
- withSuffixComponentin class- ListMenu.MenuItem
- Parameters:
- suffixComponent- component to set
- Returns:
- current menu item instance
 
- 
withPrefixComponentpublic JmixListMenu.BeanMenuItem withPrefixComponent(com.vaadin.flow.component.Component prefixComponent) Description copied from class:ListMenu.MenuItemSets prefix component of the item.- Overrides:
- withPrefixComponentin class- ListMenu.MenuItem
- Parameters:
- prefixComponent- component to set
- Returns:
- current menu item instance
 
- 
withShortcutCombinationpublic JmixListMenu.BeanMenuItem withShortcutCombination(@Nullable KeyCombination shortcutCombination) - Overrides:
- withShortcutCombinationin class- ListMenu.MenuItem
 
 
-