Class GridMenuItemActionSupport

java.lang.Object
io.jmix.flowui.kit.component.grid.GridMenuItemActionSupport
Direct Known Subclasses:
DataGridMenuItemActionSupport

public class GridMenuItemActionSupport extends Object
A helper class that enhances the behavior of a menu item in the context of a grid or data table by associating it with an Action. It synchronizes the properties and behavior of the menu item with the associated action and handles user interactions through action listeners.
  • 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()
    • setAction

      public void setAction(@Nullable Action action)
      Sets the Action for this menu item and optionally configures it to override the component properties such as text, tooltip, enabled state, and icon.
      Parameters:
      action - the action to set, or null to remove the current action
    • setAction

      public void setAction(@Nullable Action action, boolean overrideComponentProperties)
      Sets the Action for this menu item and optionally configures it to override the component properties such as text, tooltip, enabled state, and icon.
      Parameters:
      action - the action to set, or null to remove the current action
      overrideComponentProperties - whether the action should override the component's properties
    • 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)