Package io.jmix.ui.facet
Class OptionDialogFacetProvider
java.lang.Object
io.jmix.ui.facet.OptionDialogFacetProvider
- All Implemented Interfaces:
FacetProvider<OptionDialogFacet>
@Component("ui_OptionDialogFacetProvider")
public class OptionDialogFacetProvider
extends Object
implements FacetProvider<OptionDialogFacet>
-
Field Summary
Modifier and TypeFieldDescriptionprotected UiComponentProperties
protected Icons
protected LoaderSupport
protected MessageTools
protected ThemeConstantsManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
protected String
getIconPath
(ComponentLoader.ComponentContext context, String icon) protected ActionsAwareDialogFacet.DialogAction
loadAction
(org.dom4j.Element element, ComponentLoader.ComponentContext context) protected void
loadActions
(ActionsAwareDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected void
loadCaption
(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected void
loadContentMode
(OptionDialogFacet facet, org.dom4j.Element element) void
loadFromXml
(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) Loads properties of the facet from XML.protected void
loadHeight
(OptionDialogFacet facet, org.dom4j.Element element) protected void
loadHtmlSanitizerEnabled
(OptionDialogFacet facet, org.dom4j.Element element) protected void
loadId
(OptionDialogFacet facet, org.dom4j.Element element) protected void
loadMessage
(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected String
loadResourceString
(ComponentLoader.ComponentContext context, String caption) protected void
loadStyleName
(OptionDialogFacet facet, org.dom4j.Element element) protected void
loadTarget
(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected String
loadThemeString
(String value) protected void
loadWidth
(OptionDialogFacet facet, org.dom4j.Element element)
-
Field Details
-
messageTools
-
icons
-
themeConstantsManager
-
componentProperties
-
loaderSupport
-
-
Constructor Details
-
OptionDialogFacetProvider
public OptionDialogFacetProvider()
-
-
Method Details
-
getFacetClass
- Specified by:
getFacetClass
in interfaceFacetProvider<OptionDialogFacet>
- Returns:
- facet interface
-
create
- Specified by:
create
in interfaceFacetProvider<OptionDialogFacet>
- Returns:
- new instance of the facet class
-
getFacetTag
- Specified by:
getFacetTag
in interfaceFacetProvider<OptionDialogFacet>
- Returns:
- facet XML tag
-
loadFromXml
public void loadFromXml(OptionDialogFacet 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<OptionDialogFacet>
- Parameters:
facet
- facetelement
- XML elementcontext
- loading context
-
loadId
-
loadCaption
protected void loadCaption(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadMessage
protected void loadMessage(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadWidth
-
loadHeight
-
loadContentMode
-
loadStyleName
-
loadTarget
protected void loadTarget(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadActions
protected void loadActions(ActionsAwareDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadAction
protected ActionsAwareDialogFacet.DialogAction loadAction(org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadHtmlSanitizerEnabled
-
loadResourceString
@Nullable protected String loadResourceString(ComponentLoader.ComponentContext context, @Nullable String caption) -
getIconPath
@Nullable protected String getIconPath(ComponentLoader.ComponentContext context, @Nullable String icon) -
loadThemeString
-