Class MainTabSheetMenuItemActionSupport
java.lang.Object
io.jmix.tabbedmode.component.tabsheet.contextmenu.MainTabSheetMenuItemActionSupport
This class is responsible for connecting an
Action
to menu items,
handling property changes for actions, and updating the visual or functional
components of the menu item according to the action's state.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Action
protected com.vaadin.flow.shared.Registration
protected final MainTabSheetMenuItemActionWrapper
protected boolean
protected com.vaadin.flow.shared.Registration
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Component
createShortcutComponent
(KeyCombination keyCombination) Returns the currentAction
associated with the menu item.protected boolean
protected boolean
protected void
protected void
void
Sets the givenAction
to the menu item.void
Sets the givenAction
to the menu item.protected void
-
Field Details
-
action
-
overrideComponentProperties
protected boolean overrideComponentProperties -
registration
protected com.vaadin.flow.shared.Registration registration -
actionPropertyChangeRegistration
protected com.vaadin.flow.shared.Registration actionPropertyChangeRegistration
-
Constructor Details
-
Method Details
-
getAction
Returns the currentAction
associated with the menu item.- Returns:
- the current
Action
ornull
if no action is set
-
setAction
Sets the givenAction
to the menu item.- Parameters:
action
- an action to set, ornull
to remove the current action
-
setAction
Sets the givenAction
to the menu item.- Parameters:
action
- an action to set, ornull
to remove the current actionoverrideComponentProperties
- whether to override the menu item's properties with values of the passed action
-
isShowActionIconEnabled
protected boolean isShowActionIconEnabled() -
isShowActionShortcutEnabled
protected boolean isShowActionShortcutEnabled() -
createShortcutComponent
@Nullable protected com.vaadin.flow.component.Component createShortcutComponent(@Nullable KeyCombination keyCombination) -
updateVisible
protected void updateVisible() -
removeRegistrations
protected void removeRegistrations() -
propertyChangeEventListener
-