Class FormatterLoadFactory
java.lang.Object
io.jmix.flowui.component.formatter.FormatterLoadFactory
@Component("flowui_FormatterLoadFactory")
@Scope("prototype")
public class FormatterLoadFactory
extends Object
Specific bean for loading formatters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ComponentLoader.Contextprotected LoaderSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormatter<?>createFormatter(org.dom4j.Element element) Creates a formatter from XML element.booleanisFormatter(org.dom4j.Element element) Checks if XML element is a formatter.protected CollectionFormatterloadCollectionFormatter(org.dom4j.Element element) protected Formatter<?>loadCustomFormatter(org.dom4j.Element element) protected DateFormatter<?>loadDateFormatter(org.dom4j.Element element) protected NumberFormatterloadNumberFormatter(org.dom4j.Element element) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetLoaderSupport(LoaderSupport loaderSupport)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
loaderSupport
-
context
-
FORMATTERS_MAP
-
-
Constructor Details
-
FormatterLoadFactory
-
-
Method Details
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setLoaderSupport
-
createFormatter
Creates a formatter from XML element.- Parameters:
element- XML element- Returns:
- formatter or null if there is no such element
-
isFormatter
public boolean isFormatter(org.dom4j.Element element) Checks if XML element is a formatter.- Parameters:
element- XML element- Returns:
trueif the element is formatter,falseotherwise
-
loadCollectionFormatter
-
loadCustomFormatter
-
loadDateFormatter
-
loadNumberFormatter
-