org.odlabs.wiquery.core
Class WiQueryDecoratingHeaderResponse
java.lang.Object
org.apache.wicket.markup.html.DecoratingHeaderResponse
org.apache.wicket.resource.aggregation.AbstractResourceAggregatingHeaderResponse<R,K>
org.apache.wicket.resource.aggregation.AbstractDependencyRespectingResourceAggregatingHeaderResponse<org.apache.wicket.resource.aggregation.ResourceReferenceCollection,String>
org.odlabs.wiquery.core.AbstractWiQueryDecoratingHeaderResponse
org.odlabs.wiquery.core.WiQueryDecoratingHeaderResponse
- All Implemented Interfaces:
- Closeable, org.apache.wicket.markup.html.IHeaderResponse
public class WiQueryDecoratingHeaderResponse
- extends AbstractWiQueryDecoratingHeaderResponse
An implementation of AbstractDependencyRespectingResourceAggregatingHeaderResponse that
renders uses AbstractWiQueryDecoratingHeaderResponse
to render references in
the correct order.
Just before the response is closed we visit all implementations of
IWiQueryPlugin
that are present on the page or in the AjaxRequestTarget
and render their IWiQueryPlugin.statement()
results in a ondomready jquery
statement.
- Author:
- Hielke Hoeve
- See Also:
AbstractWiQueryDecoratingHeaderResponse
,
WiQuerySettings.getResourceGroupingKeys()
,
WiQuerySettings.findResourceGroupingKey(String)
Method Summary |
void |
close()
Perform a scan over all components so all components and listeners have contributed
their resources and WiQuery has generated the ondomready statement. |
protected void |
onAllCollectionsRendered(List<org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData> allTopLevelReferences)
Contribute the ondomready statement to the response. |
Methods inherited from class org.odlabs.wiquery.core.AbstractWiQueryDecoratingHeaderResponse |
addThingToBeRendered, getGroupingKeyComparator, isReferenceAllowed, newGroupingKey, renderCSS, renderCSSReference, renderCSSReference, renderCSSReference, renderCSSReference, renderJavaScript, renderJavaScriptReference, renderJavaScriptReference, renderJavaScriptReference, renderJavaScriptReference, renderJavaScriptReference, renderOnDomReadyJavaScript, renderOnEventJavaScript, renderOnLoadJavaScript |
Methods inherited from class org.apache.wicket.resource.aggregation.AbstractDependencyRespectingResourceAggregatingHeaderResponse |
renderCollection |
Methods inherited from class org.apache.wicket.resource.aggregation.AbstractResourceAggregatingHeaderResponse |
newResourceReferenceCollection, render, renderCSSReference, renderCSSReference, renderCSSReference, renderIfNotAlreadyRendered, renderJavaScriptReference, renderJavaScriptReference, renderJavaScriptReference, renderJavaScriptReference, renderString |
Methods inherited from class org.apache.wicket.markup.html.DecoratingHeaderResponse |
getRealResponse, getResponse, isClosed, markRendered, wasRendered |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WiQueryDecoratingHeaderResponse
public WiQueryDecoratingHeaderResponse(org.apache.wicket.markup.html.IHeaderResponse real)
close
public void close()
- Perform a scan over all components so all components and listeners have contributed
their resources and WiQuery has generated the ondomready statement.
- Specified by:
close
in interface Closeable
- Specified by:
close
in interface org.apache.wicket.markup.html.IHeaderResponse
- Overrides:
close
in class org.apache.wicket.resource.aggregation.AbstractResourceAggregatingHeaderResponse<org.apache.wicket.resource.aggregation.ResourceReferenceCollection,String>
onAllCollectionsRendered
protected void onAllCollectionsRendered(List<org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData> allTopLevelReferences)
- Contribute the ondomready statement to the response.
- Overrides:
onAllCollectionsRendered
in class AbstractWiQueryDecoratingHeaderResponse
Copyright © 2012. All Rights Reserved.