org.apache.wicket.behavior
Class CssLocationHeaderContributor

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

public class CssLocationHeaderContributor
extends AbstractHeaderContributor

Returns a new instance of a header contributor referencing a CSS file using one of the following schemes:

Author:
Juergen Donnerstag
See Also:
Serialized Form

Constructor Summary
CssLocationHeaderContributor(java.lang.String location)
          Construct.
CssLocationHeaderContributor(java.lang.String location, 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

CssLocationHeaderContributor

public CssLocationHeaderContributor(java.lang.String location)
Construct.

Parameters:
location - The location of the css file.

CssLocationHeaderContributor

public CssLocationHeaderContributor(java.lang.String location,
                                    java.lang.String media)
Construct.

Parameters:
location - The location of the css file.
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.