Package io.jmix.ui.sys.registration
Class CustomComponentsLoaderConfig
java.lang.Object
io.jmix.ui.sys.registration.CustomComponentsLoaderConfig
- All Implemented Interfaces:
LoaderConfig
@Order(110)
@Component("ui_CustomComponentsLoaderConfig")
public class CustomComponentsLoaderConfig
extends Object
implements LoaderConfig
Contains UI component loaders from add-ons and project configurations.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ComponentLoader>getFragmentLoader(org.dom4j.Element root) Class<? extends ComponentLoader>getLoader(org.dom4j.Element element) Class<? extends ComponentLoader>getWindowLoader(org.dom4j.Element root) protected voidregisterLoader(String tagName, Class<? extends ComponentLoader> loaderClass) booleansupports(org.dom4j.Element element) Checks whether the config contains a loader that supports the givenelement.
-
Field Details
-
loaders
-
-
Constructor Details
-
CustomComponentsLoaderConfig
public CustomComponentsLoaderConfig()
-
-
Method Details
-
supports
public boolean supports(org.dom4j.Element element) Description copied from interface:LoaderConfigChecks whether the config contains a loader that supports the givenelement.- Specified by:
supportsin interfaceLoaderConfig- Parameters:
element- element- Returns:
- true if the config contains suitable loader, of false otherwise
-
getLoader
- Specified by:
getLoaderin interfaceLoaderConfig- Parameters:
element- element to load- Returns:
ComponentLoaderinstance
-
getFragmentLoader
- Specified by:
getFragmentLoaderin interfaceLoaderConfig- Parameters:
root- fragment's root element- Returns:
- loader class for fragment or
nullif config does not support givenroot
-
getWindowLoader
- Specified by:
getWindowLoaderin interfaceLoaderConfig- Parameters:
root- window's root element- Returns:
- loader class for window or
nullif config does not support givenroot
-
registerLoader
-