Module org.apache.wicket.core
Package org.apache.wicket.markup.html
Interface IComponentAwareHeaderContributor
- All Superinterfaces:
IClusterable
,Serializable
- All Known Implementing Classes:
AbstractAjaxBehavior
,AbstractAjaxTimerBehavior
,AbstractAutoCompleteBehavior
,AbstractDefaultAjaxBehavior
,AbstractFormValidator
,AbstractRangeValidator
,AbstractTransformerBehavior
,AjaxCallListener
,AjaxClientInfoBehavior
,AjaxDisableComponentListener
,AjaxDownloadBehavior
,AjaxEditableLabel.EditorAjaxBehavior
,AjaxEditableLabel.LabelAjaxBehavior
,AjaxEventBehavior
,AjaxFileDropBehavior
,AjaxFormChoiceComponentUpdatingBehavior
,AjaxFormComponentUpdatingBehavior
,AjaxFormSubmitBehavior
,AjaxFormValidatingBehavior
,AjaxIndicatorAppender
,AjaxLazyLoadPanel.AjaxLazyLoadTimer
,AjaxNewWindowNotifyingBehavior
,AjaxOnDomReadyClientInfoBehavior
,AjaxPagingNavigationBehavior
,AjaxPreventSubmitBehavior
,AjaxSelfUpdatingTimerBehavior
,AttributeAppender
,AttributeModifier
,AutoCompleteBehavior
,BaseWebSocketBehavior
,Behavior
,BorderBehavior
,CancelEventIfAjaxListener
,ClassAttributeModifier
,CompoundValidator
,ContextPathGenerator
,DateValidator
,DefaultTheme
,DefaultTheme
,DisabledAttributeLinkBehavior
,EqualInputValidator
,EqualPasswordInputValidator
,FilesSelectedBehavior
,FormComponentUpdatingBehavior
,FormValidatorAdapter
,HTML5Attributes
,HumanTheme
,NodeBorder
,OnChangeAjaxBehavior
,OutputMarkupContainerClassNameBehavior
,PropertyValidator
,RangeValidator
,StringValidator
,StyleAttributeModifier
,TrapFocusBehavior
,ValidatorAdapter
,VelocityContributor
,VelocityJavaScriptContributor
,WebSocketBehavior
,WicketMessageTagHandler.AttributeLocalizer
,WindowsTheme
,XsltTransformerBehavior
An interface to be implemented by
Behavior
s,
IAjaxCallListener
s.
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
Modifier and TypeMethodDescriptionvoid
renderHead
(Component component, IHeaderResponse response) Render to the web response whatever the component-aware wants to contribute to the head section.
-
Method Details
-
renderHead
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
-