org.apache.wicket.behavior
Class CssHeaderContributor

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.behavior.AbstractHeaderContributor
          extended by org.apache.wicket.behavior.CssHeaderContributor
All Implemented Interfaces:
java.io.Serializable, IBehavior, IClusterable, IHeaderContributor

public class CssHeaderContributor
extends AbstractHeaderContributor

Author:
Juergen Donnerstag
See Also:
Serialized Form

Constructor Summary
CssHeaderContributor(java.lang.Class<?> scope, java.lang.String path)
          Construct.
CssHeaderContributor(java.lang.Class<?> scope, java.lang.String path, java.lang.String media)
          Construct.
 
Method Summary
 void renderHead(IHeaderResponse response)
          Render to the web response whatever the component wants to contribute to the head section.
 
Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor
returnRelativePath
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detach, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssHeaderContributor

public CssHeaderContributor(java.lang.Class<?> scope,
                            java.lang.String path)
Construct.

Parameters:
scope - The scope of the package resource (typically the class of the caller, or a class that lives in the package where the resource lives).
path - The path

CssHeaderContributor

public CssHeaderContributor(java.lang.Class<?> scope,
                            java.lang.String path,
                            java.lang.String media)
Construct.

Parameters:
scope - The scope of the package resource (typically the class of the caller, or a class that lives in the package where the resource lives).
path - The path
media - The media type for this CSS ("print", "screen", etc.)
Method Detail

renderHead

public void renderHead(IHeaderResponse response)
Description copied from interface: IHeaderContributor
Render to the web response whatever the component wants to contribute to the head section. TODO: Post 1.3, add component parameter, so that the behaviors dont' have to track component instances

Specified by:
renderHead in interface IHeaderContributor
Specified by:
renderHead in class AbstractHeaderContributor
Parameters:
response - Response object
See Also:
AbstractHeaderContributor.renderHead(org.apache.wicket.markup.html.IHeaderResponse)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.