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:
Serializable, IBehavior, IComponentConfigurationBehavior, IClusterable, IHeaderContributor
Direct Known Subclasses:
HeaderContributor, StringHeaderContributor, VelocityHeaderContributor

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  IHeaderContributor[] getHeaderContributors()
          Gets the header contributors for this behavior.
 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.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onException, onRendered, rendered
 
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

getHeaderContributors

public abstract IHeaderContributor[] getHeaderContributors()
Gets the header contributors for this behavior.

Returns:
the header contributors; may return null if there are none

renderHead

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


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