org.apache.wicket.behavior
Class JavascriptLocationHeaderContributor

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

public class JavascriptLocationHeaderContributor
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
JavascriptLocationHeaderContributor(java.lang.String location)
          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

JavascriptLocationHeaderContributor

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

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