Interface ComponentItem
- All Superinterfaces:
DropdownButtonItem
- 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.Component
Returns the content component associated with this dropdown item.void
setContent
(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
- theComponent
to be set as the content
-
getContent
com.vaadin.flow.component.Component getContent()Returns the content component associated with this dropdown item.- Returns:
- the
Component
currently set as the content
-