org.ajax4jsf.framework.renderer.HeaderResourceProducer Maven / Gradle / Ivy
/**
* Licensed under the Common Development and Distribution License,
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.sun.com/cddl/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package org.ajax4jsf.framework.renderer;
import java.util.LinkedHashSet;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
/**
* Interface for renderers, for wich nessesary insert script or style resource in header.
* @author [email protected] (latest modification by $Author: sergeysmirnov $)
* @version $Revision: 1.1 $ $Date: 2006/04/28 02:03:11 $
*
*/
public interface HeaderResourceProducer {
/**
* Return set of strings with URI's of nessesary scripts.
* Use linked set to preserve insertion order
* @param context - current faces context.
* @param component TODO
* @return - set of URI's or null
*/
public LinkedHashSet getHeaderScripts(FacesContext context, UIComponent component);
/**
* Return set of strings with URI's of nessesary CSS styles.
* Use linked set to preserve insertion order.
* @param context - current faces context.
* @param component TODO
* @return - set of URI's or null
*/
public LinkedHashSet getHeaderStyles(FacesContext context, UIComponent component);
}