Class NamedComponentDefinition


  • public final class NamedComponentDefinition
    extends Object
    • Method Detail

      • getName

        public String getName()
        Returns the name of the component (e.g. panel)
        Returns:
        Component name
      • setName

        public void setName​(String name)
        Sets the name of the component (e.g. panel). This will be uses as the selector in the html file like.
        Parameters:
        name - Component name
      • getFragmentTemplate

        public String getFragmentTemplate()
        Returns the thymeleaf fragment template
        Returns:
        Fragment template
      • getSelectionExpression

        public Optional<org.thymeleaf.standard.expression.VariableExpression> getSelectionExpression()
      • getParameters

        public List<String> getParameters()
      • getFrag

        public String getFrag()
      • setFragmentTemplate

        public void setFragmentTemplate​(String fragmentTemplate)
        Sets the thymeleaf fragment template (e.g components/panel :: panel). The pattern is without the fragments parameters, so 'components/panel :: panel(title)' will throw an error.
        Parameters:
        fragmentTemplate - Fragment template