public interface ScriptTagDeclaration extends HasIdBindingAndRendered
| Modifier and Type | Method and Description |
|---|---|
void |
setFile(String file)
File name to include into the rendered page.
|
void |
setOnexit(String onexit)
Deprecated.
Since 2.0.0. Please include a custom script file via the file attribute and use
Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT); |
void |
setOnload(String onload)
Deprecated.
Since 2.0.0. Please include a custom script file via the file attribute and use
Tobago.registerListener(myFunction, Tobago.Phase.DOCUMENT_READY); or
Tobago.registerListener(myFunction, Tobago.Phase.WINDOW_LOAD); |
void |
setOnsubmit(String onsubmit)
Deprecated.
Since 2.0.0. Please include a custom script file via the file attribute and use
Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT); |
void |
setOnunload(String onunload)
Deprecated.
Since 2.0.0. Please include a custom script file via the file attribute and use
Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD); |
void |
setScript(String script)
Deprecated.
Since 2.0.0. Please include a custom script file via the file attribute.
|
setBindingsetRenderedvoid setFile(String file)
file - A JavaScript file.@Deprecated void setOnload(String onload)
Tobago.registerListener(myFunction, Tobago.Phase.DOCUMENT_READY); or
Tobago.registerListener(myFunction, Tobago.Phase.WINDOW_LOAD);@Deprecated void setOnunload(String onunload)
Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD);@Deprecated void setOnexit(String onexit)
Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT);@Deprecated void setOnsubmit(String onsubmit)
Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT);@Deprecated void setScript(String script)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.