Class AbstractDropdownButton.AbstractDropdownButtonItem
java.lang.Object
io.jmix.flowui.kit.component.dropdownbutton.AbstractDropdownButton.AbstractDropdownButtonItem
- All Implemented Interfaces:
AbstractDropdownButton.HasMenuItem
,DropdownButtonItem
- Direct Known Subclasses:
AbstractDropdownButton.ActionItemImpl
,AbstractDropdownButton.ComponentItemImpl
,AbstractDropdownButton.TextItemImpl
- Enclosing class:
- AbstractDropdownButton
protected abstract static class AbstractDropdownButton.AbstractDropdownButtonItem
extends Object
implements AbstractDropdownButton.HasMenuItem, DropdownButtonItem
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.kit.component.dropdownbutton.DropdownButtonItem
DropdownButtonItem.ClickEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected com.vaadin.flow.component.contextmenu.MenuItem
protected com.vaadin.flow.shared.Registration
protected DropdownButtonComponent
-
Constructor Summary
ConstructorDescriptionAbstractDropdownButtonItem
(String id, com.vaadin.flow.component.contextmenu.MenuItem item, DropdownButtonComponent parent) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
protected EventBus
getId()
com.vaadin.flow.component.contextmenu.MenuItem
getItem()
protected void
boolean
boolean
void
setEnabled
(boolean enabled) void
setItem
(com.vaadin.flow.component.contextmenu.MenuItem item) void
setVisible
(boolean visible)
-
Field Details
-
id
-
item
protected com.vaadin.flow.component.contextmenu.MenuItem item -
parent
-
-
Constructor Details
-
Method Details
-
getId
- Specified by:
getId
in interfaceDropdownButtonItem
-
getItem
public com.vaadin.flow.component.contextmenu.MenuItem getItem()- Specified by:
getItem
in interfaceAbstractDropdownButton.HasMenuItem
-
getParent
- Specified by:
getParent
in interfaceDropdownButtonItem
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceDropdownButtonItem
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfaceDropdownButtonItem
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceDropdownButtonItem
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceDropdownButtonItem
-
addClickListener
public com.vaadin.flow.shared.Registration addClickListener(Consumer<DropdownButtonItem.ClickEvent> listener) - Specified by:
addClickListener
in interfaceDropdownButtonItem
-
internalRemoveDropdownButtonItemClickListener
protected void internalRemoveDropdownButtonItemClickListener(Consumer<DropdownButtonItem.ClickEvent> listener) -
getEventBus
-