001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.wicket.markup.renderStrategy; 018 019import org.apache.wicket.Component; 020import org.apache.wicket.markup.html.internal.HtmlHeaderContainer; 021import org.apache.wicket.markup.html.internal.HtmlHeaderContainer.HeaderStreamState; 022 023/** 024 * Allows for different header render strategies. The difference per strategy will be order in which 025 * components are asked to add to the markup header section. Before 1.5 it was 026 * page->container->child. Since 1.5 it has been changed to child->container->parent (see <a 027 * href="http://issues.apache.org/jira/browse/WICKET-2693 ">WICKET-2693</a>) 028 * 029 * @author Juergen Donnerstag 030 */ 031public interface IHeaderRenderStrategy 032{ 033 /** 034 * Implements the render strategy 035 * 036 * @param headerContainer 037 * The HeaderContainer associated to the response 038 * @param headerStreamState 039 * the header section of the page, when null, this section will not be rendered 040 * @param component 041 * The root component (e.g. Page) to start the render process 042 */ 043 void renderHeader(HtmlHeaderContainer headerContainer, HeaderStreamState headerStreamState, 044 Component component); 045}