Interface ComponentItem
- All Superinterfaces:
DropdownButtonItem,HasContent
- All Known Implementing Classes:
AbstractDropdownButton.ComponentItemImpl
Represents an item in a dropdown button that can display a custom component.
The
ComponentItem interface allows associating a UI component with
the dropdown item and provides methods to manage its content.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.kit.component.dropdownbutton.DropdownButtonItem
DropdownButtonItem.ClickEvent -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentReturns the content component associated with this dropdown item.voidsetContent(com.vaadin.flow.component.Component content) Sets the content component for the dropdown item.Methods inherited from interface io.jmix.flowui.kit.component.dropdownbutton.DropdownButtonItem
addClickListener, getId, getParent, isEnabled, isVisible, setEnabled, setVisible
-
Method Details
-
setContent
void setContent(com.vaadin.flow.component.Component content) Sets the content component for the dropdown item.- Parameters:
content- theComponentto be set as the content
-
getContent
com.vaadin.flow.component.Component getContent()Returns the content component associated with this dropdown item.- Specified by:
getContentin interfaceHasContent- Returns:
- the
Componentcurrently set as the content
-