Package io.jmix.flowui.xml.facet.loader
Class AbstractFacetLoader<F extends Facet>
java.lang.Object
io.jmix.flowui.xml.facet.loader.AbstractFacetLoader<F>
- Type Parameters:
F- the type of facet being loaded
- All Implemented Interfaces:
FacetLoader<F>
- Direct Known Subclasses:
AbstractDataLoadCoordinatorFacetLoader,AbstractSettingsFacetLoader,DynAttrFacetLoader,TimerFacetLoader,UrlQueryParametersFacetLoader
Abstract class for
FacetLoader implementations.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ComponentLoader.Contextprotected org.dom4j.Elementprotected Facetsprotected LoaderSupportprotected F -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FReturns the context associated with the current facet loading and initialization process.org.dom4j.ElementvoidCreates result facet by XML-element.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Sets the application context for the current component loader.voidsetContext(ComponentLoader.Context context) Sets the context for loading and initializing facet components.voidsetElement(org.dom4j.Element element) Sets the specified XML element to be associated with the facet loader.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.xml.facet.loader.FacetLoader
loadFacet
-
Field Details
-
context
-
facets
-
loaderSupport
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
resultFacet
-
element
protected org.dom4j.Element element
-
-
Constructor Details
-
AbstractFacetLoader
public AbstractFacetLoader()
-
-
Method Details
-
createFacet
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) Description copied from interface:FacetLoaderSets the application context for the current component loader.- Specified by:
setApplicationContextin interfaceFacetLoader<F extends Facet>- Parameters:
applicationContext- theApplicationContextinstance to set
-
getElement
public org.dom4j.Element getElement()- Specified by:
getElementin interfaceFacetLoader<F extends Facet>- Returns:
- XML element associated with the facet loader
-
setElement
public void setElement(org.dom4j.Element element) Description copied from interface:FacetLoaderSets the specified XML element to be associated with the facet loader.- Specified by:
setElementin interfaceFacetLoader<F extends Facet>- Parameters:
element- theElementinstance representing the XML configuration for a facet component
-
getContext
Description copied from interface:FacetLoaderReturns the context associated with the current facet loading and initialization process.- Specified by:
getContextin interfaceFacetLoader<F extends Facet>- Returns:
- the
ComponentLoader.Contextinstance
-
setContext
Description copied from interface:FacetLoaderSets the context for loading and initializing facet components.- Specified by:
setContextin interfaceFacetLoader<F extends Facet>- Parameters:
context- theComponentLoader.Contextinstance to set
-
initFacet
public void initFacet()Description copied from interface:FacetLoaderCreates result facet by XML-element.- Specified by:
initFacetin interfaceFacetLoader<F extends Facet>
-
getResultFacet
- Specified by:
getResultFacetin interfaceFacetLoader<F extends Facet>- Returns:
- result facet
-