Interface StudioPreviewTabProcessor

All Superinterfaces:
StudioPreviewComponentProcessor
All Known Implementing Classes:
StudioTabComponentProcessor

public interface StudioPreviewTabProcessor extends StudioPreviewComponentProcessor
Attaches/detaches a tab (paired with its content) to/from a TabSheet-like container.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab, com.vaadin.flow.component.Component content, int index)
    Attaches tab (paired with content) to parent.
    boolean
    removeTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab)
    Detaches tab (and its paired content) from parent.
  • Method Details

    • addTab

      boolean addTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab, com.vaadin.flow.component.Component content, int index)
      Attaches tab (paired with content) to parent.
      Parameters:
      index - target index, or a negative value to append
      Returns:
      true if handled
    • removeTab

      boolean removeTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab)
      Detaches tab (and its paired content) from parent.
      Returns:
      true if handled