Interface DropdownButtonComponent
- All Superinterfaces:
HasSubParts
- All Known Implementing Classes:
AbstractDropdownButton
,ComboButton
,DropdownButton
-
Method Summary
Modifier and TypeMethodDescriptionaddItem
(String id, com.vaadin.flow.component.Component component, Consumer<DropdownButtonItem.ClickEvent> componentEventListener) addItem
(String id, com.vaadin.flow.component.Component component, Consumer<DropdownButtonItem.ClickEvent> componentEventListener, int index) addItem
(String id, String text, Consumer<DropdownButtonItem.ClickEvent> componentEventListener) addItem
(String id, String text, Consumer<DropdownButtonItem.ClickEvent> componentEventListener, int index) void
void
addSeparatorAtIndex
(int index) com.vaadin.flow.component.icon.Icon
getIcon()
getItems()
default Object
getSubPart
(String name) boolean
void
remove
(DropdownButtonItem item) void
remove
(DropdownButtonItem... items) void
void
void
setIcon
(com.vaadin.flow.component.icon.Icon icon) void
setOpenOnHover
(boolean openOnHover)
-
Method Details
-
addItem
-
addItem
-
addItem
-
addItem
-
addItem
DropdownButtonItem addItem(String id, String text, Consumer<DropdownButtonItem.ClickEvent> componentEventListener) -
addItem
DropdownButtonItem addItem(String id, String text, Consumer<DropdownButtonItem.ClickEvent> componentEventListener, int index) -
addItem
-
addItem
-
addItem
DropdownButtonItem addItem(String id, com.vaadin.flow.component.Component component, Consumer<DropdownButtonItem.ClickEvent> componentEventListener) -
addItem
DropdownButtonItem addItem(String id, com.vaadin.flow.component.Component component, Consumer<DropdownButtonItem.ClickEvent> componentEventListener, int index) -
getItem
-
getItems
List<DropdownButtonItem> getItems() -
remove
-
remove
-
remove
-
removeAll
void removeAll() -
addSeparator
void addSeparator() -
addSeparatorAtIndex
void addSeparatorAtIndex(int index) -
setOpenOnHover
void setOpenOnHover(boolean openOnHover) -
isOpenOnHover
boolean isOpenOnHover() -
setIcon
void setIcon(@Nullable com.vaadin.flow.component.icon.Icon icon) -
getIcon
@Nullable com.vaadin.flow.component.icon.Icon getIcon() -
getSubPart
- Specified by:
getSubPart
in interfaceHasSubParts
-