Class LayoutLoaderConfig

java.lang.Object
io.jmix.ui.xml.layout.BaseLoaderConfig
io.jmix.ui.xml.layout.LayoutLoaderConfig
All Implemented Interfaces:
LoaderConfig

@Order(990) @Component("ui_LayoutLoaderConfig") public class LayoutLoaderConfig extends BaseLoaderConfig implements LoaderConfig
  • Field Details

  • Constructor Details

    • LayoutLoaderConfig

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

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

      public Class<? extends ComponentLoader> getWindowLoader()
    • getWindowLoader

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

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

      @Nullable public Class<? extends ComponentLoader> getLoader(String name)
    • getRootElement

      @Nullable protected org.dom4j.Element getRootElement(String rootName, org.dom4j.Element child)