Class HorizontalMenu.AbstractContentMenuItem<T extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractMenuItem<T>
io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractContentMenuItem<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,com.vaadin.flow.component.shared.HasPrefix,com.vaadin.flow.component.shared.HasSuffix,com.vaadin.flow.component.shared.HasTooltip,MenuItem,Serializable
- Direct Known Subclasses:
HorizontalMenu.MenuItem,HorizontalMenu.ParentMenuItem
- Enclosing class:
- HorizontalMenu
public abstract static class HorizontalMenu.AbstractContentMenuItem<T extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
extends HorizontalMenu.AbstractMenuItem<T>
implements com.vaadin.flow.component.shared.HasTooltip, com.vaadin.flow.component.shared.HasPrefix, com.vaadin.flow.component.shared.HasSuffix
Provides base functionality for items that contain text with suffix and prefix components
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected com.vaadin.flow.component.Componentprotected static final Stringprotected static final Stringprotected com.vaadin.flow.component.Componentprotected static final Stringprotected static final Stringprotected com.vaadin.flow.component.html.Spanprotected com.vaadin.flow.component.shared.TooltipFields inherited from class io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractMenuItem
menu, menuItemWrapper, parentMenuItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.Componentcom.vaadin.flow.component.ComponentgetTitle()com.vaadin.flow.component.shared.Tooltipprotected com.vaadin.flow.component.shared.Tooltipprotected TvoidsetPrefixComponent(com.vaadin.flow.component.Component component) protected voidsetPrefixComponentInternal(com.vaadin.flow.component.Component prefixComponent) protected voidsetPrefixedAttribute(boolean prefixed) voidsetSuffixComponent(com.vaadin.flow.component.Component component) protected voidsetSuffixComponentInternal(com.vaadin.flow.component.Component suffixComponent) protected voidsetSuffixedAttribute(boolean suffixed) protected voidsetTextComponentInternal(String title) voidSets menu item text.com.vaadin.flow.component.shared.TooltipsetTooltipText(String text) protected voidupdateContent(com.vaadin.flow.component.Component prefixComponent, String title, com.vaadin.flow.component.Component suffixComponent) Methods inherited from class io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractMenuItem
getMenu, getMenuItemWrapper, getParentMenuItem, isAttachedToMenu, isMenu, isSeparator, setMenu, setMenuItemWrapper, setParentMenuItemMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
CONTENT_ITEM_CLASS_NAME
- See Also:
-
PREFIX_COMPONENT_CLASS_NAME
- See Also:
-
TEXT_COMPONENT_CLASS_NAME
- See Also:
-
SUFFIX_COMPONENT_CLASS_NAME
- See Also:
-
PREFIXED_ATTRIBUTE_NAME
- See Also:
-
SUFFIXED_ATTRIBUTE_NAME
- See Also:
-
prefixComponent
protected com.vaadin.flow.component.Component prefixComponent -
textComponent
protected com.vaadin.flow.component.html.Span textComponent -
suffixComponent
protected com.vaadin.flow.component.Component suffixComponent -
tooltip
protected com.vaadin.flow.component.shared.Tooltip tooltip
-
-
Constructor Details
-
AbstractContentMenuItem
public AbstractContentMenuItem() -
AbstractContentMenuItem
-
-
Method Details
-
initContent
- Overrides:
initContentin classcom.vaadin.flow.component.Composite<T extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
-
setTitle
Sets menu item text.- Parameters:
title- item text
-
updateContent
protected void updateContent(@Nullable com.vaadin.flow.component.Component prefixComponent, @Nullable String title, @Nullable com.vaadin.flow.component.Component suffixComponent) -
setPrefixComponentInternal
protected void setPrefixComponentInternal(@Nullable com.vaadin.flow.component.Component prefixComponent) -
setPrefixedAttribute
protected void setPrefixedAttribute(boolean prefixed) -
setTextComponentInternal
-
setSuffixComponentInternal
protected void setSuffixComponentInternal(@Nullable com.vaadin.flow.component.Component suffixComponent) -
setSuffixedAttribute
protected void setSuffixedAttribute(boolean suffixed) -
setPrefixComponent
public void setPrefixComponent(@Nullable com.vaadin.flow.component.Component component) - Specified by:
setPrefixComponentin interfacecom.vaadin.flow.component.shared.HasPrefix
-
getPrefixComponent
@Nullable public com.vaadin.flow.component.Component getPrefixComponent()- Specified by:
getPrefixComponentin interfacecom.vaadin.flow.component.shared.HasPrefix
-
setSuffixComponent
public void setSuffixComponent(@Nullable com.vaadin.flow.component.Component component) - Specified by:
setSuffixComponentin interfacecom.vaadin.flow.component.shared.HasSuffix
-
getSuffixComponent
@Nullable public com.vaadin.flow.component.Component getSuffixComponent()- Specified by:
getSuffixComponentin interfacecom.vaadin.flow.component.shared.HasSuffix
-
getTitle
-
setTooltipText
- Specified by:
setTooltipTextin interfacecom.vaadin.flow.component.shared.HasTooltip
-
getTooltipInternal
protected com.vaadin.flow.component.shared.Tooltip getTooltipInternal() -
getTooltip
public com.vaadin.flow.component.shared.Tooltip getTooltip()- Specified by:
getTooltipin interfacecom.vaadin.flow.component.shared.HasTooltip
-