Package org.apache.wicket.markup.head.ResourceAggregator

Examples of org.apache.wicket.markup.head.ResourceAggregator.RecordedHeaderItemLocation


   * @param o2
   * @return -1, 0 or 1 if o1 needs to be rendered before, unchanged or after o2.
   */
  protected int inversedComponentOrder(RecordedHeaderItem o1, RecordedHeaderItem o2)
  {
    RecordedHeaderItemLocation lastO1Location = o1.getLocations().get(
      o1.getLocations().size() - 1);
    RecordedHeaderItemLocation lastO2Location = o2.getLocations().get(
      o2.getLocations().size() - 1);

    // within a component, preserve order
    if (lastO1Location.getRenderBase() == lastO2Location.getRenderBase())
      return 0;

    return lastO1Location.getIndexInRequest() < lastO2Location.getIndexInRequest() ? 1 : -1;
  }
View Full Code Here


   * @param o2
   * @return -1, 0 or 1 if o1 needs to be rendered before, unchanged or after o2.
   */
  protected int inversedComponentOrder(RecordedHeaderItem o1, RecordedHeaderItem o2)
  {
    RecordedHeaderItemLocation lastO1Location = o1.getLocations().get(
      o1.getLocations().size() - 1);
    RecordedHeaderItemLocation lastO2Location = o2.getLocations().get(
      o2.getLocations().size() - 1);

    // within a component, preserve order
    if (lastO1Location.getRenderBase() == lastO2Location.getRenderBase())
      return 0;

    return lastO1Location.getIndexInRequest() < lastO2Location.getIndexInRequest() ? 1 : -1;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.head.ResourceAggregator.RecordedHeaderItemLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.