public final class StandardAttrprependAttrProcessor extends AbstractStandardAttributeModifierAttrProcessor
<input type="button" value="Do it!" class="btn" th:attrappend="class=${cssStyle + ' '}" />
If you process this template with the cssStyle variable set to "warning", you will get:
<input type="button" value="Do it!" class="warning btn" />
AbstractAttributeModifierAttrProcessor.ModificationType| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
| Constructor and Description |
|---|
StandardAttrprependAttrProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractAttributeModifierAttrProcessor.ModificationType |
getModificationType(Arguments arguments,
Element element,
String attributeName,
String newAttributeName) |
int |
getPrecedence() |
protected boolean |
removeAttributeIfEmpty(Arguments arguments,
Element element,
String attributeName,
String newAttributeName) |
getModifiedAttributeValues, recomputeProcessorsAfterExecutiondoAdditionalProcess, processAttribute, shouldRemoveAttributedoProcess, getMatchercompareTo, getMessage, getMessageForProcessor, getMessageForTemplate, processpublic static final int ATTR_PRECEDENCE
public static final String ATTR_NAME
public int getPrecedence()
getPrecedence in class AbstractProcessorprotected AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(Arguments arguments, Element element, String attributeName, String newAttributeName)
getModificationType in class AbstractAttributeModifierAttrProcessorprotected boolean removeAttributeIfEmpty(Arguments arguments, Element element, String attributeName, String newAttributeName)
removeAttributeIfEmpty in class AbstractAttributeModifierAttrProcessorCopyright © 2016 The THYMELEAF team. All rights reserved.