Class NamedComponentDefinition
- java.lang.Object
-
- io.vertigo.ui.impl.thymeleaf.components.NamedComponentDefinition
-
public final class NamedComponentDefinition extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFrag()StringgetFragmentTemplate()Returns the thymeleaf fragment templateStringgetName()Returns the name of the component (e.g. panel)List<String>getParameters()Optional<org.thymeleaf.standard.expression.VariableExpression>getSelectionExpression()voidsetFragmentTemplate(String fragmentTemplate)Sets the thymeleaf fragment template (e.g components/panel :: panel).voidsetName(String name)Sets the name of the component (e.g. panel).StringtoString()
-
-
-
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()
-
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
-
-