Package io.jmix.ui.presentation.facet
Class PresentationsFacetProvider
java.lang.Object
io.jmix.ui.presentation.facet.PresentationsFacetProvider
- All Implemented Interfaces:
FacetProvider<PresentationsFacet>
@Component("ui_PresentationsFacetProvider")
public class PresentationsFacetProvider
extends Object
implements FacetProvider<PresentationsFacet>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
protected boolean
loadAuto
(org.dom4j.Element element) loadComponentIds
(ComponentLoader.ComponentContext context, org.dom4j.Element root) void
loadFromXml
(PresentationsFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) Loads properties of the facet from XML.loadId
(org.dom4j.Element element)
-
Field Details
-
presentationsManager
-
-
Constructor Details
-
PresentationsFacetProvider
public PresentationsFacetProvider(@Autowired(required=false) PresentationsManager presentationsManager)
-
-
Method Details
-
getFacetClass
- Specified by:
getFacetClass
in interfaceFacetProvider<PresentationsFacet>
- Returns:
- facet interface
-
create
- Specified by:
create
in interfaceFacetProvider<PresentationsFacet>
- Returns:
- new instance of the facet class
-
getFacetTag
- Specified by:
getFacetTag
in interfaceFacetProvider<PresentationsFacet>
- Returns:
- facet XML tag
-
loadFromXml
public void loadFromXml(PresentationsFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) Description copied from interface:FacetProvider
Loads properties of the facet from XML.- Specified by:
loadFromXml
in interfaceFacetProvider<PresentationsFacet>
- Parameters:
facet
- facetelement
- XML elementcontext
- loading context
-
loadId
-
loadAuto
-
loadComponentIds
protected List<String> loadComponentIds(ComponentLoader.ComponentContext context, org.dom4j.Element root) -
isPresentationsAvailable
protected boolean isPresentationsAvailable()
-