Class HorizontalMenu.AbstractMenuItem<T extends com.vaadin.flow.component.Component>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractMenuItem<T>
- Type Parameters:
T
- root component type
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,MenuItem
,Serializable
- Direct Known Subclasses:
HorizontalMenu.AbstractContentMenuItem
,HorizontalMenu.SeparatorMenuItem
- Enclosing class:
- HorizontalMenu
public abstract static class HorizontalMenu.AbstractMenuItem<T extends com.vaadin.flow.component.Component>
extends com.vaadin.flow.component.Composite<T>
implements MenuItem
Provides base functionality for horizontal menu items
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected HorizontalMenu
protected JmixMenuItem
protected HorizontalMenu.ParentMenuItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMenu()
protected JmixMenuItem
boolean
boolean
isMenu()
boolean
protected void
setMenu
(HorizontalMenu menu) protected void
setMenuItemWrapper
(JmixMenuItem menuItemWrapper) protected void
setParentMenuItem
(HorizontalMenu.ParentMenuItem parentMenuItem) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContent
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
parentMenuItem
-
Constructor Details
-
AbstractMenuItem
public AbstractMenuItem() -
AbstractMenuItem
-
-
Method Details
-
getMenu
- Returns:
- menu component that contains this item
-
getMenuItemWrapper
-
getParentMenuItem
- Returns:
- parent menu item of this item or null if no parent has been set.
-
isMenu
public boolean isMenu()- Returns:
- true if the item can contain other items, false otherwise
- See Also:
-
isSeparator
public boolean isSeparator()- Returns:
- true if the item is a separator, false otherwise
- See Also:
-
isAttachedToMenu
public boolean isAttachedToMenu()- Returns:
- true if the item is attached to menu component, false otherwise
-