org.apache.wicket.velocity
Class VelocityHeaderContributor

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

public class VelocityHeaderContributor
extends AbstractHeaderContributor

a simple header contributor that delegates to a List of VelocityContributor

See Also:
Serialized Form

Constructor Summary
VelocityHeaderContributor()
           
 
Method Summary
 VelocityHeaderContributor add(VelocityContributor velocityContributor)
          Adds a contributor.
 void detach(Component component)
          Allows the behavior to detach any state it has attached during request processing.
 IHeaderContributor[] getHeaderContributors()
          Gets the header contributors for this behavior.
 
Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor
renderHead
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityHeaderContributor

public VelocityHeaderContributor()
Method Detail

add

public VelocityHeaderContributor add(VelocityContributor velocityContributor)
Adds a contributor.

Parameters:
velocityContributor -
Returns:
This for chaining

detach

public void detach(Component component)
Description copied from interface: IBehavior
Allows the behavior to detach any state it has attached during request processing.

Specified by:
detach in interface IBehavior
Overrides:
detach in class AbstractBehavior
Parameters:
component - the component that initiates the detachment of this behavior
See Also:
AbstractBehavior.detach(org.apache.wicket.Component)

getHeaderContributors

public IHeaderContributor[] getHeaderContributors()
Description copied from class: AbstractHeaderContributor
Gets the header contributors for this behavior.

Specified by:
getHeaderContributors in class AbstractHeaderContributor
Returns:
the header contributors; may return null if there are none
See Also:
AbstractHeaderContributor.getHeaderContributors()


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