Class StudioSlotComponentProcessor

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

public class StudioSlotComponentProcessor extends Object implements StudioPreviewSlotProcessor
Studio preview processor for slot-hinted attachment points that a parent+child type pair alone cannot disambiguate: HasPrefix/HasSuffix single-component slots and AppLayout navbar/drawer/content slots.
  • Constructor Details

    • StudioSlotComponentProcessor

      public StudioSlotComponentProcessor()
  • Method Details

    • addToSlot

      public boolean addToSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index, String slotHint)
      Description copied from interface: StudioPreviewSlotProcessor
      Attaches child to parent's slotHint slot.
      Specified by:
      addToSlot in interface StudioPreviewSlotProcessor
      Parameters:
      index - target index, or a negative value to append
      Returns:
      true if handled
    • removeFromSlot

      public boolean removeFromSlot(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, String slotHint)
      Description copied from interface: StudioPreviewSlotProcessor
      Detaches child from parent's slotHint slot.
      Specified by:
      removeFromSlot in interface StudioPreviewSlotProcessor
      Returns:
      true if handled