org.broadleafcommerce.core.web.processor
Class PaginationSizeLinkProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.attr.AbstractAttrProcessor
org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
org.broadleafcommerce.core.web.processor.PaginationSizeLinkProcessor
- All Implemented Interfaces:
- Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor
public class PaginationSizeLinkProcessor
- extends org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
Thymeleaf Processor that replaces the "href" attribute on an element, maintaining the current search criteria
of the request and adding (or replacing, if it exists) the page size parameter on the request.
- Author:
- Joseph Fridye (jfridye)
| Nested classes/interfaces inherited from class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor |
org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType |
|
Method Summary |
protected org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType |
getModificationType(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName)
|
protected Map<String,String> |
getModifiedAttributeValues(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
|
int |
getPrecedence()
|
protected boolean |
recomputeProcessorsAfterExecution(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
|
protected boolean |
removeAttributeIfEmpty(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName)
|
| Methods inherited from class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor |
doAdditionalProcess, processAttribute, shouldRemoveAttribute |
| Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor |
doProcess, getMatcher |
| Methods inherited from class org.thymeleaf.processor.AbstractProcessor |
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaginationSizeLinkProcessor
public PaginationSizeLinkProcessor()
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor
getModifiedAttributeValues
protected Map<String,String> getModifiedAttributeValues(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
- Specified by:
getModifiedAttributeValues in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
getModificationType
protected org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName)
- Specified by:
getModificationType in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
removeAttributeIfEmpty
protected boolean removeAttributeIfEmpty(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName)
- Specified by:
removeAttributeIfEmpty in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
recomputeProcessorsAfterExecution
protected boolean recomputeProcessorsAfterExecution(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
- Specified by:
recomputeProcessorsAfterExecution in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
Copyright © 2013. All Rights Reserved.