Class MainTabSheetMenuItemActionSupport

java.lang.Object
io.jmix.tabbedmode.component.tabsheet.contextmenu.MainTabSheetMenuItemActionSupport

public class MainTabSheetMenuItemActionSupport extends Object
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 Details

    • action

      protected Action 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

      @Nullable public Action getAction()
      Returns the current Action associated with the menu item.
      Returns:
      the current Action or null if no action is set
    • setAction

      public void setAction(@Nullable Action action)
      Sets the given Action to the menu item.
      Parameters:
      action - an action to set, or null to remove the current action
    • setAction

      public void setAction(@Nullable Action action, boolean overrideComponentProperties)
      Sets the given Action to the menu item.
      Parameters:
      action - an action to set, or null to remove the current action
      overrideComponentProperties - 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

      protected void propertyChangeEventListener(PropertyChangeEvent event)