Class StudioGroupGridPreviewLoader

java.lang.Object
io.jmix.groupgridflowui.kit.meta.StudioGroupGridPreviewLoader
All Implemented Interfaces:
StudioPreviewComponentLoader

public class StudioGroupGridPreviewLoader extends Object implements StudioPreviewComponentLoader
Preview loader used in Studio. For internal use only.

Source loader io.jmix.groupgridflowui.component.loader.GroupDataGridLoader.

Columns and rows are deliberately left to Studio: JmixGroupGrid extends a forked io.jmix.groupgridflowui.kit.vaadin.grid.Grid, so its columns are not com.vaadin.flow.component.grid.Grid.Column and the preview column-binding protocol cannot carry them. This loader exists so the tag is owned by the framework rather than by Studio's reflection fallback; the resulting preview matches what that fallback produced.

  • Field Details

  • Constructor Details

    • StudioGroupGridPreviewLoader

      public StudioGroupGridPreviewLoader()
  • Method Details

    • isSupported

      public boolean isSupported(org.dom4j.Element element)
      Description copied from interface: StudioPreviewComponentLoader
      Define the element that this loader can load.
      Specified by:
      isSupported in interface StudioPreviewComponentLoader
    • load

      public @Nullable com.vaadin.flow.component.Component load(org.dom4j.Element componentElement, org.dom4j.Element viewElement)
      Description copied from interface: StudioPreviewComponentLoader
      Create vaadin component from component xml element.
      Specified by:
      load in interface StudioPreviewComponentLoader
      Parameters:
      componentElement - xml element of component
      viewElement - xml element of view containing componentElement
      See Also:
      • Element