Class VUiStandardDialect

java.lang.Object
org.thymeleaf.dialect.AbstractDialect
org.thymeleaf.dialect.AbstractProcessorDialect
io.vertigo.ui.impl.thymeleaf.VUiStandardDialect
All Implemented Interfaces:
org.thymeleaf.dialect.IDialect, org.thymeleaf.dialect.IExecutionAttributeDialect, org.thymeleaf.dialect.IPostProcessorDialect, org.thymeleaf.dialect.IProcessorDialect

public final class VUiStandardDialect extends org.thymeleaf.dialect.AbstractProcessorDialect implements org.thymeleaf.dialect.IPostProcessorDialect, org.thymeleaf.dialect.IExecutionAttributeDialect
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • PREFIX

      public static final String PREFIX
      See Also:
    • PROCESSOR_PRECEDENCE

      public static final int PROCESSOR_PRECEDENCE
      See Also:
    • DEFAULT_AUTO_CLOSE_TAGS_PREFIXES

      public static final Set<String> DEFAULT_AUTO_CLOSE_TAGS_PREFIXES
      Elements closed by the AutoCloseTagsPostProcessor when self-closed : quasar, vertigo-ui, vui and vue-dsfr components.
  • Constructor Details

    • VUiStandardDialect

      public VUiStandardDialect(Set<NamedComponentDefinition> components)
    • VUiStandardDialect

      public VUiStandardDialect(String prefix, Set<NamedComponentDefinition> components)
    • VUiStandardDialect

      public VUiStandardDialect(String prefix, Set<NamedComponentDefinition> components, Set<String> autoCloseTagsPrefixes)
      Parameters:
      prefix - Dialect prefix
      components - Named components
      autoCloseTagsPrefixes - Prefixes of the elements closed when self-closed (q-btn ... / becomes an open/close pair)
    • VUiStandardDialect

      public VUiStandardDialect(String prefix, Set<NamedComponentDefinition> components, Set<String> autoCloseTagsPrefixes, boolean devMode)
      Parameters:
      prefix - Dialect prefix
      components - Named components
      autoCloseTagsPrefixes - Prefixes of the elements closed when self-closed (q-btn ... / becomes an open/close pair)
      devMode - Dev mode : logs the vu: elements without component, checks the way the component attributes are written (at each rendering)
  • Method Details

    • getExecutionAttributes

      public Map<String,Object> getExecutionAttributes()
      Specified by:
      getExecutionAttributes in interface org.thymeleaf.dialect.IExecutionAttributeDialect
    • getProcessors

      public Set<org.thymeleaf.processor.IProcessor> getProcessors(String dialectPrefix)
      Specified by:
      getProcessors in interface org.thymeleaf.dialect.IProcessorDialect
    • getDialectPostProcessorPrecedence

      public int getDialectPostProcessorPrecedence()
      Specified by:
      getDialectPostProcessorPrecedence in interface org.thymeleaf.dialect.IPostProcessorDialect
    • getPostProcessors

      public Set<org.thymeleaf.postprocessor.IPostProcessor> getPostProcessors()
      Specified by:
      getPostProcessors in interface org.thymeleaf.dialect.IPostProcessorDialect