|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.filtering.OppositeHeaderResponseFilter
public class OppositeHeaderResponseFilter
A filter that takes another filter and always returns the opposite of another filter. This is useful where you have two filters (i.e. one for header and one for footer) and want to ensure that nothing ever has false returned for both cases.
Constructor Summary | |
---|---|
OppositeHeaderResponseFilter(String name,
HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter other)
Construct. |
Method Summary | |
---|---|
boolean |
acceptOtherCss()
Whenever a renderCSS* method on IHeaderResponse is called that is not a ResourceReference (i.e. |
boolean |
acceptOtherJavaScript()
Whenever a render*JavaScript method on IHeaderResponse is called that is not a ResourceReference (i.e. |
boolean |
acceptReference(ResourceReference ref)
Determines whether a given ResourceReference should be rendered in the bucket represented by this filter. |
String |
getName()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OppositeHeaderResponseFilter(String name, HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter other)
name
- the name used by this filter for its bucket o' stuffother
- the other filter to return the opposite ofMethod Detail |
---|
public String getName()
getName
in interface HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
public boolean acceptReference(ResourceReference ref)
HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
acceptReference
in interface HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
ref
- the reference to be rendered
public boolean acceptOtherJavaScript()
HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
IHeaderResponse.renderOnDomReadyJavaScript(String)
), this
method determines if the script should be bucketed with other things in this filter.
Note that calls to IHeaderResponse.renderJavaScriptReference(String url) are also
filtered with this method since there is no actual ResourceReference to pass
acceptOtherJavaScript
in interface HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
public boolean acceptOtherCss()
HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
IHeaderResponse.renderCSSReference(String)
, or
IHeaderResponse.renderCSSReference(String, String)
), this method determines if
the CSS reference should be bucketed with other things in this filter.
acceptOtherCss
in interface HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |