|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.html.DecoratingHeaderResponse
public abstract class DecoratingHeaderResponse
This is simply a helper implementation of IHeaderResponse that really delegates all of its method calls to the IHeaderResponse that is passed into the constructor. It is defined as abstract because it's only meant to be extended and not used a la carte. You can extend it and override only the methods that you want to change the functionality of.
IHeaderResponseDecorator,
IHeaderResponse| Constructor Summary | |
|---|---|
DecoratingHeaderResponse(IHeaderResponse real)
Create a header response that simply delegates all methods to the one that is passed in here. |
|
| Method Summary | |
|---|---|
void |
close()
Mark Header rendering is completed and subsequent usage will be ignored. |
protected IHeaderResponse |
getRealResponse()
Returns the actual response being decorated for subclasses to be able to pass it off to other objects if they need to do so. |
Response |
getResponse()
Returns the response that can be used to write arbitrary text to the head section. |
boolean |
isClosed()
|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecoratingHeaderResponse(IHeaderResponse real)
real - the actual response that this class delegates to by default| Method Detail |
|---|
protected final IHeaderResponse getRealResponse()
public void render(HeaderItem item)
IHeaderResponseHeaderItem to the response if none of the
tokens of the item has been rendered before.
render in interface IHeaderResponseitem - The item to render.public void markRendered(Object object)
IHeaderResponse
markRendered in interface IHeaderResponseobject - 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 IHeaderResponseobject - Object that is queried to be rendered
public Response getResponse()
IHeaderResponseNote: This method is kind of dangerous as users are able to write to the output whatever they like.
getResponse in interface IHeaderResponsepublic void close()
IHeaderResponse
close in interface Closeableclose in interface IHeaderResponsepublic boolean isClosed()
isClosed in interface IHeaderResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||