public class JavaScriptContentHeaderItem extends JavaScriptHeaderItem
HeaderItem
for internal (embedded in the header) javascript content.Constructor and Description |
---|
JavaScriptContentHeaderItem(CharSequence javaScript,
String id,
String condition)
Creates a new
JavaScriptContentHeaderItem . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CharSequence |
getJavaScript() |
Iterable<?> |
getRenderTokens() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
forReference, forReference, forReference, forReference, forReference, forReference, forReference, forReference, forScript, forScript, forUrl, forUrl, forUrl, forUrl, forUrl, getCondition, getId, internalRenderJavaScriptReference, setId
getDependencies, getProvidedResources
public JavaScriptContentHeaderItem(CharSequence javaScript, String id, String condition)
JavaScriptContentHeaderItem
.javaScript
- javascript content to be rendered.id
- unique id for the javascript element. This can be null, however in that case the
ajax header contribution can't detect duplicate script fragments.condition
- the condition to use for Internet Explorer conditional comments. E.g. "IE 7".public CharSequence getJavaScript()
public void render(Response response)
HeaderItem
HeaderItem
to the response.render
in class HeaderItem
public Iterable<?> getRenderTokens()
getRenderTokens
in class HeaderItem
HeaderItem
can be identified by. If any of the tokens has
already been rendered, this HeaderItem
will not be rendered.Copyright © 2006–2016 Apache Software Foundation. All rights reserved.