org.broadleafcommerce.core.web.processor
Class HeadProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementProcessor
org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor
org.broadleafcommerce.core.web.processor.HeadProcessor
- All Implemented Interfaces:
- Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor
public class HeadProcessor
- extends org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor
A Thymeleaf processor that will include the standard head element. It will also set the
following variables for use by the head fragment.
- pageTitle - The title of the page
- additionalCss - An additional, page specific CSS file to include
- Author:
- apazzolini
|
Constructor Summary |
HeadProcessor()
Sets the name of this processor to be used in Thymeleaf template |
|
Method Summary |
protected org.thymeleaf.fragment.FragmentAndTarget |
getFragmentAndTarget(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
boolean substituteInclusionNode)
|
int |
getPrecedence()
|
protected boolean |
getSubstituteInclusionNode(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
|
| Methods inherited from class org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor |
doAdditionalElementProcessing, processElement |
| Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor |
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 |
FRAGMENT_ATTR_NAME
public static final String FRAGMENT_ATTR_NAME
- See Also:
- Constant Field Values
HEAD_PARTIAL_PATH
protected String HEAD_PARTIAL_PATH
HeadProcessor
public HeadProcessor()
- Sets the name of this processor to be used in Thymeleaf template
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor
getSubstituteInclusionNode
protected boolean getSubstituteInclusionNode(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
- Specified by:
getSubstituteInclusionNode in class org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor
getFragmentAndTarget
protected org.thymeleaf.fragment.FragmentAndTarget getFragmentAndTarget(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
boolean substituteInclusionNode)
- Specified by:
getFragmentAndTarget in class org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor
Copyright © 2013. All Rights Reserved.