Interface StudioPreviewActionProcessor

All Superinterfaces:
StudioPreviewComponentProcessor
All Known Implementing Classes:
StudioActionComponentProcessor

public interface StudioPreviewActionProcessor extends StudioPreviewComponentProcessor
Attaches/detaches an Action to/from a keyed action container (e.g. HasActions).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addAction(com.vaadin.flow.component.Component parent, Action action, int index)
    Attaches action to parent.
    boolean
    removeAction(com.vaadin.flow.component.Component parent, Action action)
    Detaches action from parent.
  • Method Details

    • addAction

      boolean addAction(com.vaadin.flow.component.Component parent, Action action, int index)
      Attaches action to parent.
      Parameters:
      index - target index, or a negative value to append
      Returns:
      true if handled
    • removeAction

      boolean removeAction(com.vaadin.flow.component.Component parent, Action action)
      Detaches action from parent.
      Returns:
      true if handled