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 Actionprotected com.vaadin.flow.shared.Registrationprotected final MainTabSheetMenuItemActionWrapperprotected booleanprotected com.vaadin.flow.shared.Registration -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.ComponentcreateShortcutComponent(KeyCombination keyCombination) Returns the currentActionassociated with the menu item.protected booleanprotected booleanprotected voidprotected voidvoidSets the givenActionto the menu item.voidSets the givenActionto 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 currentActionassociated with the menu item.- Returns:
- the current
Actionornullif no action is set
-
setAction
Sets the givenActionto the menu item.- Parameters:
action- an action to set, ornullto remove the current action
-
setAction
Sets the givenActionto the menu item.- Parameters:
action- an action to set, ornullto 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
-