|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.ScriptInjector.FromString
public static class ScriptInjector.FromString
Builder for directly injecting a script body into the DOM.
Constructor Summary | |
---|---|
ScriptInjector.FromString(java.lang.String scriptBody)
|
Method Summary | |
---|---|
JavaScriptObject |
inject()
Injects a script into the DOM. |
ScriptInjector.FromString |
setRemoveTag(boolean removeTag)
|
ScriptInjector.FromString |
setWindow(JavaScriptObject window)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptInjector.FromString(java.lang.String scriptBody)
scriptBody
- The script text to install into the document.Method Detail |
---|
public JavaScriptObject inject()
public ScriptInjector.FromString setRemoveTag(boolean removeTag)
removeTag
- If true, remove the tag immediately after injecting the
source. This shrinks the DOM, possibly at the expense of
readability if you are debugging javaScript.
Default value is true
.public ScriptInjector.FromString setWindow(JavaScriptObject window)
window
- Specify which window to use to install the script. If not
specified, the top current window GWT is loaded in is used.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |