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
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected com.vaadin.flow.component.Component
protected static final String
protected static final String
protected com.vaadin.flow.component.Component
protected static final String
protected static final String
protected com.vaadin.flow.component.html.Span
protected com.vaadin.flow.component.shared.Tooltip
Fields inherited from class io.jmix.flowui.component.horizontalmenu.HorizontalMenu.AbstractMenuItem
menu, menuItemWrapper, parentMenuItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.Component
com.vaadin.flow.component.Component
getTitle()
com.vaadin.flow.component.shared.Tooltip
protected com.vaadin.flow.component.shared.Tooltip
protected T
void
setPrefixComponent
(com.vaadin.flow.component.Component component) protected void
setPrefixComponentInternal
(com.vaadin.flow.component.Component prefixComponent) protected void
setPrefixedAttribute
(boolean prefixed) void
setSuffixComponent
(com.vaadin.flow.component.Component component) protected void
setSuffixComponentInternal
(com.vaadin.flow.component.Component suffixComponent) protected void
setSuffixedAttribute
(boolean suffixed) protected void
setTextComponentInternal
(String title) void
Sets menu item text.com.vaadin.flow.component.shared.Tooltip
setTooltipText
(String text) protected void
updateContent
(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, setParentMenuItem
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
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.HasElement
getElement
Methods 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:
initContent
in 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:
setPrefixComponent
in interfacecom.vaadin.flow.component.shared.HasPrefix
-
getPrefixComponent
@Nullable public com.vaadin.flow.component.Component getPrefixComponent()- Specified by:
getPrefixComponent
in interfacecom.vaadin.flow.component.shared.HasPrefix
-
setSuffixComponent
public void setSuffixComponent(@Nullable com.vaadin.flow.component.Component component) - Specified by:
setSuffixComponent
in interfacecom.vaadin.flow.component.shared.HasSuffix
-
getSuffixComponent
@Nullable public com.vaadin.flow.component.Component getSuffixComponent()- Specified by:
getSuffixComponent
in interfacecom.vaadin.flow.component.shared.HasSuffix
-
getTitle
-
setTooltipText
- Specified by:
setTooltipText
in 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:
getTooltip
in interfacecom.vaadin.flow.component.shared.HasTooltip
-