Class 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 Detail

      • AppendingStrategy

        public AppendingStrategy()
    • Method Detail

      • findPositionForModel

        public int findPositionForModel​(IModel headModel,
                                        IModel childModel)
        Returns the position at the end of the <head> section.
        Specified by:
        findPositionForModel in interface SortingStrategy
        Parameters:
        headModel -
        childModel - A model that can be found in a <head> element.
        Returns:
        The end of the head model.