Package io.jmix.ui.facet
Class InputDialogFacetProvider
java.lang.Object
io.jmix.ui.facet.InputDialogFacetProvider
- All Implemented Interfaces:
FacetProvider<InputDialogFacet>
@Component("ui_InputDialogFacetProvider")
public class InputDialogFacetProvider
extends Object
implements FacetProvider<InputDialogFacet>
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected DatatypeRegistry
protected Icons
protected MessageTools
protected Metadata
protected static final Pattern
protected ThemeConstantsManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
protected String
getIconPath
(ComponentLoader.ComponentContext context, String icon) protected LayoutLoader
getLayoutLoader
(ComponentLoader.Context context) loadAction
(org.dom4j.Element element, ComponentLoader.ComponentContext context) protected void
loadActions
(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected void
loadCaption
(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected Datatype
loadDatatype
(org.dom4j.Element element, ComponentLoader.ComponentContext context) protected Object
loadDefaultValue
(org.dom4j.Element paramEl, Datatype datatype, ComponentLoader.ComponentContext context) protected void
loadDialogActions
(InputDialogFacet facet, org.dom4j.Element element) protected void
loadDialogActions
(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected InputParameter
loadEntityParameter
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected InputParameter
loadEnumParameter
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected Field<?>
loadField
(String paramId, org.dom4j.Element element, ComponentLoader.ComponentContext context) void
loadFromXml
(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) Loads properties of the facet from XML.protected void
loadHeight
(InputDialogFacet facet, org.dom4j.Element element) protected void
loadId
(InputDialogFacet facet, org.dom4j.Element element) protected InputParameter
loadInputParameter
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected void
loadInputParameters
(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected String
loadParamCaption
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected Class
loadParamClass
(org.dom4j.Element paramEl, String classFqn, ComponentLoader.ComponentContext context) protected boolean
loadParamRequired
(org.dom4j.Element paramEl) protected InputParameter
loadPrimitiveParameter
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected String
loadRequiredMessage
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected String
loadResourceString
(ComponentLoader.ComponentContext context, String caption) protected void
loadTarget
(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) protected String
loadThemeString
(String value) protected TimeZone
loadTimeZone
(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) protected Boolean
loadUseUserTimeZone
(org.dom4j.Element paramEl) protected void
loadWidth
(InputDialogFacet facet, org.dom4j.Element element)
-
Field Details
-
PARAM_TYPE_REGEX
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
messageTools
-
metadata
-
datatypeRegistry
-
icons
-
themeConstantsManager
-
-
Constructor Details
-
InputDialogFacetProvider
public InputDialogFacetProvider()
-
-
Method Details
-
getFacetClass
- Specified by:
getFacetClass
in interfaceFacetProvider<InputDialogFacet>
- Returns:
- facet interface
-
create
- Specified by:
create
in interfaceFacetProvider<InputDialogFacet>
- Returns:
- new instance of the facet class
-
getFacetTag
- Specified by:
getFacetTag
in interfaceFacetProvider<InputDialogFacet>
- Returns:
- facet XML tag
-
loadFromXml
public void loadFromXml(InputDialogFacet 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<InputDialogFacet>
- Parameters:
facet
- facetelement
- XML elementcontext
- loading context
-
loadId
-
loadCaption
protected void loadCaption(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadWidth
-
loadHeight
-
loadTarget
protected void loadTarget(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadDialogActions
protected void loadDialogActions(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadActions
protected void loadActions(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadAction
protected ActionsAwareDialogFacet.DialogAction<InputDialogFacet> loadAction(org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadDialogActions
-
loadInputParameters
protected void loadInputParameters(InputDialogFacet facet, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadInputParameter
protected InputParameter loadInputParameter(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadPrimitiveParameter
protected InputParameter loadPrimitiveParameter(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadEntityParameter
protected InputParameter loadEntityParameter(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadEnumParameter
protected InputParameter loadEnumParameter(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadField
@Nullable protected Field<?> loadField(String paramId, org.dom4j.Element element, ComponentLoader.ComponentContext context) -
getLayoutLoader
-
loadDatatype
protected Datatype loadDatatype(org.dom4j.Element element, ComponentLoader.ComponentContext context) -
loadParamCaption
@Nullable protected String loadParamCaption(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadParamRequired
protected boolean loadParamRequired(org.dom4j.Element paramEl) -
loadRequiredMessage
@Nullable protected String loadRequiredMessage(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadDefaultValue
@Nullable protected Object loadDefaultValue(org.dom4j.Element paramEl, Datatype datatype, ComponentLoader.ComponentContext context) -
loadParamClass
protected Class loadParamClass(org.dom4j.Element paramEl, String classFqn, ComponentLoader.ComponentContext context) -
loadUseUserTimeZone
-
loadTimeZone
@Nullable protected TimeZone loadTimeZone(org.dom4j.Element paramEl, ComponentLoader.ComponentContext context) -
loadResourceString
@Nullable protected String loadResourceString(ComponentLoader.ComponentContext context, @Nullable String caption) -
getIconPath
@Nullable protected String getIconPath(ComponentLoader.ComponentContext context, @Nullable String icon) -
loadThemeString
-