Class CustomComponentsLoaderConfig

java.lang.Object
io.jmix.flowui.sys.registration.CustomComponentsLoaderConfig
All Implemented Interfaces:
LoaderConfig

@Order(110) @Component("flowui_CustomComponentsLoaderConfig") public class CustomComponentsLoaderConfig extends Object implements LoaderConfig
Contains UI component loaders from add-ons and project configurations.
See Also:
  • Field Details

  • Constructor Details

    • CustomComponentsLoaderConfig

      public CustomComponentsLoaderConfig()
  • Method Details

    • supports

      public boolean supports(org.dom4j.Element element)
      Description copied from interface: LoaderConfig
      Checks whether the config contains a loader that supports the given element.
      Specified by:
      supports in interface LoaderConfig
      Parameters:
      element - element
      Returns:
      true if the config contains suitable loader, of false otherwise
    • getScreenLoader

      @Nullable public Class<? extends ComponentLoader> getScreenLoader(org.dom4j.Element root)
      Specified by:
      getScreenLoader in interface LoaderConfig
      Parameters:
      root - window's root element
      Returns:
      loader class for window or null if config does not support given root
    • getLoader

      public Class<? extends ComponentLoader> getLoader(org.dom4j.Element element)
      Specified by:
      getLoader in interface LoaderConfig
      Parameters:
      element - element to load
      Returns:
      ComponentLoader instance
    • registerLoader

      protected void registerLoader(String tagName, Class<? extends ComponentLoader> loaderClass)