Interface StudioPreviewChildProcessor

All Superinterfaces:
StudioPreviewComponentProcessor
All Known Implementing Classes:
StudioLayoutComponentProcessor

public interface StudioPreviewChildProcessor extends StudioPreviewComponentProcessor
Attaches/detaches a generic child component to/from a parent in the live Vaadin preview tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index)
    Attaches child to parent.
    boolean
    isSupported(com.vaadin.flow.component.Component parent)
    Whether this processor knows how to attach/detach children of parent.
    boolean
    removeChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child)
    Detaches child from parent.
  • Method Details

    • isSupported

      boolean isSupported(com.vaadin.flow.component.Component parent)
      Whether this processor knows how to attach/detach children of parent.
    • addChild

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

      boolean removeChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child)
      Detaches child from parent.
      Returns:
      true if handled