org.apache.wicket.behavior
Class AbstractHeaderContributor

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.behavior.AbstractHeaderContributor
All Implemented Interfaces:
java.io.Serializable, IBehavior, IClusterable, IHeaderContributor
Direct Known Subclasses:
AbstractAjaxBehavior, AjaxIndicatorAppender, CssHeaderContributor, CssLocationHeaderContributor, CssReferenceHeaderContributor, JavascriptHeaderContributor, JavascriptLocationHeaderContributor, JavascriptReferenceHeaderContributor, StringHeaderContributor

public abstract class AbstractHeaderContributor
extends AbstractBehavior
implements IHeaderContributor

Behavior that delegates header contribution to a number of other contributors. It checks the contributions that were made in the same request to avoid double contributions.

Author:
Eelco Hillenius
See Also:
Serialized Form

Constructor Summary
AbstractHeaderContributor()
          Construct.
 
Method Summary
abstract  void renderHead(IHeaderResponse response)
          Render to the web response whatever the component wants to contribute to the head section.
protected  java.lang.String returnRelativePath(java.lang.String location)
           
 
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

AbstractHeaderContributor

public AbstractHeaderContributor()
Construct.

Method Detail

renderHead

public abstract 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
Parameters:
response - Response object
See Also:
IHeaderContributor.renderHead(org.apache.wicket.markup.html.IHeaderResponse)

returnRelativePath

protected final java.lang.String returnRelativePath(java.lang.String location)
Parameters:
location -
Returns:
relative path


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