Package org.apache.wicket.markup.html
Interface IComponentAwareHeaderContributor
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable,java.io.Serializable
- All Known Implementing Classes:
AbstractAjaxBehavior,AbstractAjaxTimerBehavior,AbstractDefaultAjaxBehavior,AbstractFormValidator,AbstractRangeValidator,AbstractTransformerBehavior,AjaxCallListener,AjaxClientInfoBehavior,AjaxEventBehavior,AjaxFormChoiceComponentUpdatingBehavior,AjaxFormComponentUpdatingBehavior,AjaxFormSubmitBehavior,AjaxFormValidatingBehavior,AjaxNewWindowNotifyingBehavior,AjaxPagingNavigationBehavior,AjaxPreventSubmitBehavior,AjaxSelfUpdatingTimerBehavior,AttributeAppender,AttributeModifier,Behavior,BorderBehavior,CancelEventIfAjaxListener,ClassAttributeModifier,CompoundValidator,ContextPathGenerator,DateValidator,DisabledAttributeLinkBehavior,EqualInputValidator,EqualPasswordInputValidator,FormComponentUpdatingBehavior,FormValidatorAdapter,HTML5Attributes,OnChangeAjaxBehavior,RangeValidator,StringValidator,StyleAttributeModifier,ValidatorAdapter,WicketMessageTagHandler.AttributeLocalizer,XsltTransformerBehavior
public interface IComponentAwareHeaderContributor extends org.apache.wicket.util.io.IClusterableAn interface to be implemented byBehaviors,IAjaxCallListeners. Example:class MyAjaxCallDecorator implements IAjaxCallListener, IComponentAwareHeaderContributor { // IAjaxCallListener methods omitted for brevity public void renderHead(Component component, IHeaderResponse response) { response.render(new OnLoadJavaScriptHeaderItem("alert('page loaded!');")); } }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrenderHead(Component component, IHeaderResponse response)Render to the web response whatever the component-aware wants to contribute to the head section.
-
-
-
Method Detail
-
renderHead
void renderHead(Component component, IHeaderResponse response)
Render to the web response whatever the component-aware wants to contribute to the head section.- Parameters:
component- component which is contributing to the response. This parameter is here to give the component as the context for component-awares implementing this interfaceresponse- Response object
-
-