Class DropdownButton
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<JmixMenuBar>
io.jmix.flowui.kit.component.dropdownbutton.AbstractDropdownButton
io.jmix.flowui.kit.component.dropdownbutton.DropdownButton
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<AbstractDropdownButton>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<AbstractDropdownButton>,com.vaadin.flow.component.FocusNotifier<AbstractDropdownButton>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<DropdownButtonVariant>,DropdownButtonComponent,HasSubParts,HasTitle,Serializable
public class DropdownButton
extends AbstractDropdownButton
implements com.vaadin.flow.component.shared.HasThemeVariant<DropdownButtonVariant>
Represents a dropdown button component. This class is used as a customizable
button with an associated dropdown menu.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.kit.component.dropdownbutton.AbstractDropdownButton
AbstractDropdownButton.AbstractDropdownButtonItem, AbstractDropdownButton.ActionItemImpl, AbstractDropdownButton.ComponentItemImpl, AbstractDropdownButton.HasMenuItem, AbstractDropdownButton.MenuItemProvider<T>, AbstractDropdownButton.SeparatorUserMenuItem, AbstractDropdownButton.TextItemImplNested 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>Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpace -
Field Summary
FieldsFields inherited from class io.jmix.flowui.kit.component.dropdownbutton.AbstractDropdownButton
ATTRIBUTE_JMIX_ROLE_NAME, dropdownItem, iconComponent, items -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JmixMenuItemprotected JmixMenuItemgetText()com.vaadin.flow.component.HasText.WhiteSpaceprotected JmixMenuBarbooleanDeprecated, for removal: This API element is subject to removal in a future version.voidsetDropdownIndicatorVisible(boolean dropdownIndicatorVisible) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIconComponent(@Nullable com.vaadin.flow.component.Component icon) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidsetWhiteSpace(com.vaadin.flow.component.HasText.WhiteSpace value) protected voidupdateDropdownIndicator(JmixMenuBar content) protected voidMethods inherited from class io.jmix.flowui.kit.component.dropdownbutton.AbstractDropdownButton
addAttachListener, addClassName, addClassNames, addDetachListener, addFocusShortcut, addItem, addItem, addItem, addItem, addItem, addItem, addItem, addItem, addItem, addItem, addItemInternal, addSeparator, addSeparatorAtIndex, addThemeName, addThemeNames, blur, createComponentMenuItem, createTextMenuItem, focus, getClassName, getClassNames, getHeight, getHeightUnit, getIcon, getIconComponent, getItem, getItems, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getTabIndex, getThemeName, getThemeNames, getWidth, getWidthUnit, hasClassName, hasThemeName, isAttached, isEnabled, isOpenOnHover, remove, remove, remove, removeAll, removeClassName, removeClassNames, removeThemeName, removeThemeNames, setClassName, setClassName, setEnabled, setHeight, setHeight, setHeightFull, setIcon, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpenOnHover, setSizeFull, setSizeUndefined, setTabIndex, setThemeName, setThemeName, setWidth, setWidth, setWidthFullMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, 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.BlurNotifier
addBlurListenerMethods inherited from interface io.jmix.flowui.kit.component.dropdownbutton.DropdownButtonComponent
getSubPartMethods inherited from interface com.vaadin.flow.component.Focusable
focusMethods 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
bindEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidthMethods inherited from interface com.vaadin.flow.component.HasStyle
bindClassName, bindClassNames, getStyleMethods inherited from interface com.vaadin.flow.component.HasText
bindTextMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, bindThemeVariant, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariants
-
Field Details
-
ATTRIBUTE_JMIX_ROLE_VALUE
- See Also:
-
dropdownIndicatorVisible
protected boolean dropdownIndicatorVisible
-
-
Constructor Details
-
DropdownButton
public DropdownButton()
-
-
Method Details
-
createDropdownItem
-
initContent
- Overrides:
initContentin classAbstractDropdownButton
-
getDropdownItem
- Specified by:
getDropdownItemin classAbstractDropdownButton
-
setText
- Specified by:
setTextin interfacecom.vaadin.flow.component.HasText
-
getText
- Specified by:
getTextin interfacecom.vaadin.flow.component.HasText
-
setWhiteSpace
public void setWhiteSpace(com.vaadin.flow.component.HasText.WhiteSpace value) - Specified by:
setWhiteSpacein interfacecom.vaadin.flow.component.HasText
-
getWhiteSpace
public com.vaadin.flow.component.HasText.WhiteSpace getWhiteSpace()- Specified by:
getWhiteSpacein interfacecom.vaadin.flow.component.HasText
-
setIconComponent
@Deprecated(since="3.0", forRemoval=true) public void setIconComponent(@Nullable com.vaadin.flow.component.Component icon) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DropdownButtonComponentSets the icon for the component.- Specified by:
setIconComponentin interfaceDropdownButtonComponent- Parameters:
icon- the icon to set. Can benullto clear the current icon.
-
isDropdownIndicatorVisible
Deprecated, for removal: This API element is subject to removal in a future version.Returns whether if the dropdown indicator is currently visible.- Returns:
trueif the dropdown indicator is visible,falseotherwise
-
setDropdownIndicatorVisible
@Deprecated(since="3.0", forRemoval=true) public void setDropdownIndicatorVisible(boolean dropdownIndicatorVisible) Deprecated, for removal: This API element is subject to removal in a future version.Sets the visibility of the dropdown indicator.- Parameters:
dropdownIndicatorVisible-trueto display the indicator, orfalseto hide it.
-
updateIconSlot
protected void updateIconSlot()
-
DropdownButtonVariant.LUMO_DROPDOWN_INDICATORSandDropdownButtonVariant.AURA_NO_DROPDOWN_INDICATORSinstead