|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.html.DecoratingHeaderResponse
org.apache.wicket.markup.head.ResourceAggregator
public class ResourceAggregator
ResourceAggregator implements resource dependencies, resource bundles and sorting of
resources. During the rendering of components, all HeaderItems are
recorded and processed at the end.
| Nested Class Summary | |
|---|---|
static class |
ResourceAggregator.RecordedHeaderItem
Contains information about an HeaderItem that must be rendered. |
static class |
ResourceAggregator.RecordedHeaderItemLocation
The location in which a HeaderItem is added, consisting of the component/behavior
that added the item, the index in the list for that component/behavior at which the item was
added and the index in the request. |
| Constructor Summary | |
|---|---|
ResourceAggregator(IHeaderResponse real)
Construct. |
|
| Method Summary | |
|---|---|
void |
close()
Mark Header rendering is completed and subsequent usage will be ignored. |
void |
markRendered(Object object)
Marks the given object as rendered. |
void |
render(HeaderItem item)
Renders the given HeaderItem to the response if none of the
tokens of the item has been rendered before. |
boolean |
wasRendered(Object object)
Returns whether the given object has been marked as rendered. |
| Methods inherited from class org.apache.wicket.markup.html.DecoratingHeaderResponse |
|---|
getRealResponse, getResponse, isClosed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceAggregator(IHeaderResponse real)
real - | Method Detail |
|---|
public void markRendered(Object object)
IHeaderResponse
markRendered in interface IHeaderResponsemarkRendered in class DecoratingHeaderResponseobject - object to be marked as rendered.public boolean wasRendered(Object object)
IHeaderResponserenderJavaScriptReference and renderCSSReference mark
the specified ResourceReference as rendered.
renderJavaScript marks List of two elements (first is javascript body
CharSequence and second is id) as rendered.
renderString marks the whole string as rendered.
markRendered can be used to mark an arbitrary object as rendered
wasRendered in interface IHeaderResponsewasRendered in class DecoratingHeaderResponseobject - Object that is queried to be rendered
public void render(HeaderItem item)
IHeaderResponseHeaderItem to the response if none of the
tokens of the item has been rendered before.
render in interface IHeaderResponserender in class DecoratingHeaderResponseitem - The item to render.public void close()
IHeaderResponse
close in interface Closeableclose in interface IHeaderResponseclose in class DecoratingHeaderResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||