Class StudioTabbedModeMainViewPreviewLoader

java.lang.Object
io.jmix.tabbedmode.kit.meta.loader.StudioTabbedModeMainViewPreviewLoader
All Implemented Interfaces:
StudioPreviewComponentLoader

public class StudioTabbedModeMainViewPreviewLoader extends Object implements StudioPreviewComponentLoader
Studio preview loader for the tabbed-mode main-view structural elements workArea and mainTabSheet.

The real WorkArea/MainTabSheet are Spring-managed, out of reach for this spring-free kit loader, so plain-Vaadin stubs are used instead.

  • Field Details

    • FACTORIES

      protected static final Map<String,Supplier<com.vaadin.flow.component.Component>> FACTORIES
  • Constructor Details

    • StudioTabbedModeMainViewPreviewLoader

      public StudioTabbedModeMainViewPreviewLoader()
  • 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