Class StudioLayoutComponentProcessor

java.lang.Object
io.jmix.flowui.kit.meta.component.preview.processor.StudioLayoutComponentProcessor
All Implemented Interfaces:
StudioPreviewChildProcessor, StudioPreviewComponentProcessor

public class StudioLayoutComponentProcessor extends Object implements StudioPreviewChildProcessor
Studio preview processor for generic layout containers: Scroller, SplitLayout, Accordion, Tabs, and any other HasComponents.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StudioLayoutComponentProcessor

      public StudioLayoutComponentProcessor()
  • Method Details

    • isSupported

      public boolean isSupported(com.vaadin.flow.component.Component parent)
      Description copied from interface: StudioPreviewChildProcessor
      Whether this processor knows how to attach/detach children of parent.
      Specified by:
      isSupported in interface StudioPreviewChildProcessor
    • addChild

      public boolean addChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index)
      Description copied from interface: StudioPreviewChildProcessor
      Attaches child to parent.
      Specified by:
      addChild in interface StudioPreviewChildProcessor
      Parameters:
      index - target index, or a negative value to append
      Returns:
      true if handled
    • removeChild

      public boolean removeChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child)
      Description copied from interface: StudioPreviewChildProcessor
      Detaches child from parent.
      Specified by:
      removeChild in interface StudioPreviewChildProcessor
      Returns:
      true if handled