Class AppendingStrategy
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.decorators.strategies.AppendingStrategy
-
- All Implemented Interfaces:
SortingStrategy
public class AppendingStrategy extends Object implements SortingStrategy
The standard<head>
merging strategy, which simply appends the content elements to the layout ones.- Since:
- 2.4.0
- Author:
- zhanhb, Emanuel Rabina
-
-
Constructor Summary
Constructors Constructor Description AppendingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
findPositionForModel(IModel headModel, IModel childModel)
Returns the position at the end of the<head>
section.
-
-
-
Method Detail
-
findPositionForModel
public int findPositionForModel(IModel headModel, IModel childModel)
Returns the position at the end of the<head>
section.- Specified by:
findPositionForModel
in interfaceSortingStrategy
- Parameters:
headModel
-childModel
- A model that can be found in a<head>
element.- Returns:
- The end of the head model.
-
-