Class FormatterLoadFactory

java.lang.Object
io.jmix.ui.component.formatter.FormatterLoadFactory

@Component("ui_FormatterLoadFactory") public class FormatterLoadFactory extends Object
Specific bean for loading formatters.
  • Field Details

  • Constructor Details

    • FormatterLoadFactory

      public FormatterLoadFactory()
  • Method Details

    • setApplicationContext

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

      @Autowired public void setMessageTools(MessageTools messageTools)
    • createFormatter

      @Nullable public Formatter<?> createFormatter(org.dom4j.Element element, FormatterLoadFactory.Context context)
      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, FormatterLoadFactory.Context context)
    • loadCustomFormatter

      protected Formatter loadCustomFormatter(org.dom4j.Element element, FormatterLoadFactory.Context context)
    • loadDateFormatter

      protected DateFormatter loadDateFormatter(org.dom4j.Element element, FormatterLoadFactory.Context context)
    • loadNumberFormatter

      protected NumberFormatter loadNumberFormatter(org.dom4j.Element element, FormatterLoadFactory.Context context)
    • loadFormat

      protected String loadFormat(String format, @Nullable String messageGroup)