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 Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • loaderSupport

      protected LoaderSupport loaderSupport
    • context

      protected ComponentLoader.Context context
    • FORMATTERS_MAP

      protected final Map<String,Function<org.dom4j.Element,? extends Formatter<?>>> FORMATTERS_MAP
  • Constructor Details

  • Method Details

    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • setLoaderSupport

      @Autowired public void setLoaderSupport(LoaderSupport loaderSupport)
    • createFormatter

      @Nullable public Formatter<?> createFormatter(org.dom4j.Element element)
      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:
      true if the element is formatter, false otherwise
    • loadCollectionFormatter

      protected CollectionFormatter loadCollectionFormatter(org.dom4j.Element element)
    • loadCustomFormatter

      protected Formatter<?> loadCustomFormatter(org.dom4j.Element element)
    • loadDateFormatter

      protected DateFormatter<?> loadDateFormatter(org.dom4j.Element element)
    • loadNumberFormatter

      protected NumberFormatter loadNumberFormatter(org.dom4j.Element element)