public abstract class AbstractJavaScriptReferenceHeaderItem extends JavaScriptHeaderItem
HeaderItem
that supports async,
defer and charset attributesModifier | Constructor and Description |
---|---|
protected |
AbstractJavaScriptReferenceHeaderItem(String condition,
boolean defer,
String charset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCharset() |
boolean |
isAsync() |
boolean |
isDefer() |
AbstractJavaScriptReferenceHeaderItem |
setAsync(boolean async) |
AbstractJavaScriptReferenceHeaderItem |
setCharset(String charset) |
AbstractJavaScriptReferenceHeaderItem |
setDefer(boolean defer) |
forReference, forReference, forReference, forReference, forReference, forReference, forReference, forReference, forScript, forScript, forUrl, forUrl, forUrl, forUrl, forUrl, getCondition, getId, internalRenderJavaScriptReference, setId
getDependencies, getProvidedResources, getRenderTokens, render
protected AbstractJavaScriptReferenceHeaderItem(String condition, boolean defer, String charset)
condition
- The condition to use for Internet Explorer conditional comments. E.g. "IE 7".
null
or empty string for no condition.defer
- a flag indicating whether the execution of a script should be deferred (delayed)
until after the page has been loaded.charset
- the charset to use when reading the script contentpublic boolean isAsync()
public AbstractJavaScriptReferenceHeaderItem setAsync(boolean async)
public boolean isDefer()
public AbstractJavaScriptReferenceHeaderItem setDefer(boolean defer)
public String getCharset()
public AbstractJavaScriptReferenceHeaderItem setCharset(String charset)
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.