Package io.jmix.ui.xml.layout
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Class<? extends FragmentLoader>protected Class<? extends WindowLoader>Fields inherited from class io.jmix.ui.xml.layout.BaseLoaderConfig
loaders -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ComponentLoader>getFragmentLoader(org.dom4j.Element root) Class<? extends ComponentLoader>Class<? extends ComponentLoader>getLoader(org.dom4j.Element element) protected org.dom4j.ElementgetRootElement(String rootName, org.dom4j.Element child) Class<? extends ComponentLoader>Class<? extends ComponentLoader>getWindowLoader(org.dom4j.Element root) booleansupports(org.dom4j.Element element) Checks whether the config contains a loader that supports the givenelement.Methods inherited from class io.jmix.ui.xml.layout.BaseLoaderConfig
initStandardLoaders
-
Field Details
-
windowLoader
-
fragmentLoader
-
-
Constructor Details
-
LayoutLoaderConfig
public LayoutLoaderConfig()
-
-
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
-
getWindowLoader
-
getWindowLoader
- Specified by:
getWindowLoaderin interfaceLoaderConfig- Parameters:
root- window's root element- Returns:
- loader class for window or
nullif config does not support givenroot
-
getFragmentLoader
- Specified by:
getFragmentLoaderin interfaceLoaderConfig- Parameters:
root- fragment's root element- Returns:
- loader class for fragment or
nullif config does not support givenroot
-
getLoader
-
getRootElement
-