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
FieldsModifier and TypeFieldDescriptionprotected UiComponentPropertiesprotected Iconsprotected LoaderSupportprotected MessageToolsprotected ThemeConstantsManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()protected StringgetIconPath(ComponentLoader.ComponentContext context, String icon) protected ActionsAwareDialogFacet.DialogActionloadAction(org.dom4j.Element element, ComponentLoader.ComponentContext context) protected voidloadActions(ActionsAwareDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected voidloadCaption(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected voidloadContentMode(OptionDialogFacet facet, org.dom4j.Element element) voidloadFromXml(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) Loads properties of the facet from XML.protected voidloadHeight(OptionDialogFacet facet, org.dom4j.Element element) protected voidloadHtmlSanitizerEnabled(OptionDialogFacet facet, org.dom4j.Element element) protected voidloadId(OptionDialogFacet facet, org.dom4j.Element element) protected voidloadMessage(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected StringloadResourceString(ComponentLoader.ComponentContext context, String caption) protected voidloadStyleName(OptionDialogFacet facet, org.dom4j.Element element) protected voidloadTarget(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected StringloadThemeString(String value) protected voidloadWidth(OptionDialogFacet facet, org.dom4j.Element element)
-
Field Details
-
messageTools
-
icons
-
themeConstantsManager
-
componentProperties
-
loaderSupport
-
-
Constructor Details
-
OptionDialogFacetProvider
public OptionDialogFacetProvider()
-
-
Method Details
-
getFacetClass
- Specified by:
getFacetClassin interfaceFacetProvider<OptionDialogFacet>- Returns:
- facet interface
-
create
- Specified by:
createin interfaceFacetProvider<OptionDialogFacet>- Returns:
- new instance of the facet class
-
getFacetTag
- Specified by:
getFacetTagin interfaceFacetProvider<OptionDialogFacet>- Returns:
- facet XML tag
-
loadFromXml
public void loadFromXml(OptionDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) Description copied from interface:FacetProviderLoads properties of the facet from XML.- Specified by:
loadFromXmlin 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
-