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
FieldsModifier and TypeFieldDescriptionprotected HorizontalMenuprotected JmixMenuItemprotected HorizontalMenu.ParentMenuItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMenu()protected JmixMenuItembooleanbooleanisMenu()booleanprotected voidsetMenu(HorizontalMenu menu) protected voidsetMenuItemWrapper(JmixMenuItem menuItemWrapper) protected voidsetParentMenuItem(HorizontalMenu.ParentMenuItem parentMenuItem) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods 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, 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.DetachNotifier
addDetachListenerMethods 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
-