Class JmixMenuBar
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.menubar.MenuBar
io.jmix.flowui.kit.component.menubar.JmixMenuBar
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<JmixMenuBar>,com.vaadin.flow.component.contextmenu.HasMenuItems,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<JmixMenuBar>,com.vaadin.flow.component.FocusNotifier<JmixMenuBar>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasTooltip,HasMenuItemsEnhanced,Serializable
public class JmixMenuBar
extends com.vaadin.flow.component.menubar.MenuBar
implements HasMenuItemsEnhanced, com.vaadin.flow.component.Focusable<JmixMenuBar>, com.vaadin.flow.component.shared.HasTooltip
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.menubar.MenuBar
com.vaadin.flow.component.menubar.MenuBar.MenuBarI18nNested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.contextmenu.MenuItemsArrayGenerator<com.vaadin.flow.component.contextmenu.MenuItem>protected JmixMenuManager<com.vaadin.flow.component.menubar.MenuBar,com.vaadin.flow.component.contextmenu.MenuItem, com.vaadin.flow.component.contextmenu.SubMenu> protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItem(com.vaadin.flow.component.Component component) addItem(com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) addItem(String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) addItemAtIndex(int index, com.vaadin.flow.component.Component component) addItemAtIndex(int index, com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) addItemAtIndex(int index, String text) addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) protected voidattachListener(com.vaadin.flow.component.AttachEvent attachEvent) Stream<com.vaadin.flow.component.Component>List<com.vaadin.flow.component.contextmenu.MenuItem>getItems()protected voidvoidremove(com.vaadin.flow.component.contextmenu.MenuItem... items) voidprotected voidrunBeforeClientResponse(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command) Methods inherited from class com.vaadin.flow.component.menubar.MenuBar
addItem, addItem, addItem, addItem, addThemeVariants, getI18n, isOpenOnHover, onAttach, removeThemeVariants, setI18n, setOpenOnHoverMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
-
Field Details
-
updateScheduled
protected boolean updateScheduled
-
Constructor Details
-
JmixMenuBar
public JmixMenuBar()
-
-
Method Details
-
initComponent
protected void initComponent() -
addItem
- Specified by:
addItemin interfaceHasMenuItemsEnhanced- Overrides:
addItemin classcom.vaadin.flow.component.menubar.MenuBar
-
addItem
- Specified by:
addItemin interfaceHasMenuItemsEnhanced- Overrides:
addItemin classcom.vaadin.flow.component.menubar.MenuBar
-
addItem
public JmixMenuItem addItem(String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) - Specified by:
addItemin interfacecom.vaadin.flow.component.contextmenu.HasMenuItems- Specified by:
addItemin interfaceHasMenuItemsEnhanced- Overrides:
addItemin classcom.vaadin.flow.component.menubar.MenuBar
-
addItem
public JmixMenuItem addItem(com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) - Specified by:
addItemin interfacecom.vaadin.flow.component.contextmenu.HasMenuItems- Specified by:
addItemin interfaceHasMenuItemsEnhanced- Overrides:
addItemin classcom.vaadin.flow.component.menubar.MenuBar
-
addItemAtIndex
- Specified by:
addItemAtIndexin interfaceHasMenuItemsEnhanced
-
addItemAtIndex
- Specified by:
addItemAtIndexin interfaceHasMenuItemsEnhanced
-
addItemAtIndex
public JmixMenuItem addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) - Specified by:
addItemAtIndexin interfaceHasMenuItemsEnhanced
-
addItemAtIndex
public JmixMenuItem addItemAtIndex(int index, com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>> clickListener) - Specified by:
addItemAtIndexin interfaceHasMenuItemsEnhanced
-
getItems
- Overrides:
getItemsin classcom.vaadin.flow.component.menubar.MenuBar
-
removeAll
public void removeAll()- Overrides:
removeAllin classcom.vaadin.flow.component.menubar.MenuBar
-
getChildren
- Overrides:
getChildrenin classcom.vaadin.flow.component.menubar.MenuBar
-
attachListener
protected void attachListener(com.vaadin.flow.component.AttachEvent attachEvent) -
runBeforeClientResponse
protected void runBeforeClientResponse(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command)
-