Class StudioColumnComponentProcessor

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

public class StudioColumnComponentProcessor extends Object implements StudioPreviewColumnProcessor
Studio preview processor for Grid columns.

Columns declared in the initial view XML are already materialized at load time by StudioGridPreviewLoader; addColumn(com.vaadin.flow.component.Component, java.lang.String, int) reuses that column (looked up by key) instead of creating a duplicate.

  • Constructor Details

    • StudioColumnComponentProcessor

      public StudioColumnComponentProcessor()
  • Method Details

    • addColumn

      public boolean addColumn(com.vaadin.flow.component.Component parent, String key, int index)
      Description copied from interface: StudioPreviewColumnProcessor
      Creates (or reuses, if already materialized) the column identified by key on parent.
      Specified by:
      addColumn in interface StudioPreviewColumnProcessor
      Parameters:
      index - target index, or a negative value to append
      Returns:
      true if handled
    • removeColumn

      public boolean removeColumn(com.vaadin.flow.component.Component parent, String key)
      Description copied from interface: StudioPreviewColumnProcessor
      Removes the column identified by key from parent.
      Specified by:
      removeColumn in interface StudioPreviewColumnProcessor
      Returns:
      true if handled