|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TBD
Bindings | |||
---|---|---|---|
filename
|
TBD |
String (get) |
|
language
|
TBD |
String (get) |
|
isSingleton
|
Only meaningful when not using scriptFile binding and the AWClientSideScript is used to render a script block. By default, the value of this binding is $true. If a reusable component uses an AWClientSideScript to define a block of inline script this binding should most likely be set binding to false or else only a single instance of the script block will be rendered per page. When this binding is set to $false, care should be taken with the declaration of global variables as the declaration may be rendered multiple times. |
boolean (get) |
|
scriptFile
|
TBD |
String (get) |
|
scriptString
|
TBD |
String (get) |
|
elementId
|
TBD |
String (set) |
|
invokeAction
|
TBD |
method (get) |
|
executeOnIncrementalUpdate
|
Indicates that this script should be executed on a full page refresh as well an incremental update of an AWRefreshRegion including this script. In the incremental update case, all DOM updates will be applied before AWClientSideScript's are executed. AWClientSideScript's are executed in the context of the main application window. In order to have a method execute on every refresh of a page, regardless of whether or not its containing AWRefreshRegion is rendered, use executeOnIncrementalUpdate=false and call the Event.registerRefreshCallback() to register the method to call, or use executeOn="onupdate". |
boolean (get) |
|
globalScope
|
Implies that the script should be run inline (immediately when encountered whether that is in the refresh frame or in the main document window). |
boolean (get) |
|
forceDirectInclude
|
Include file directly (instead of via async XMLHTTP). |
boolean (get) |
|
synchronous
|
Execute inline scripts synchronously (instead of after dom update complete). |
boolean (get) |
|
executeOn
|
If specified, then this script will be run upon the specified window / document event. Supported events include: "onfocusin", "onload" |
String (get) |
|
handle
|
If bound, will push a string that can be used in an event handler to invoke this code. E.g.
| String (set) |
|
RJSMayNotBeDefined
|
Option to encapsulate the JS function in RJS if defined, else create RJS function that evaluate the function right away. Creating RJS is fine because if Request.js is included later, it will overwrite this RJS function. |
boolean (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.aribaweb.html.AWClientSideScript
public final class AWClientSideScript
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
AWClientSideScript()
|
Method Summary | |
---|---|
boolean |
formatInPre()
|
boolean |
hasScriptBinding()
|
void |
renderResponse(AWRequestContext requestContext,
AWComponent component)
The receiver should render its content to the AWRequestContext.response() |
java.lang.String |
scriptFileUrl()
|
java.lang.String |
scriptString()
|
void |
setupSpanId()
|
java.lang.String[] |
supportedBindingNames()
|
boolean |
useDirectGlobalScript()
|
boolean |
useDirectInclude()
|
java.lang.String |
vbsFlag()
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Field Detail |
---|
public java.lang.String _filename
public boolean _isGlobalScope
public boolean _isVBScript
public AWEncodedString _spanId
public java.lang.String _executeOn
Constructor Detail |
---|
public AWClientSideScript()
Method Detail |
---|
public boolean useDirectInclude()
public boolean useDirectGlobalScript()
public boolean formatInPre()
public void renderResponse(AWRequestContext requestContext, AWComponent component)
AWCycleable
AWRequestContext.response()
renderResponse
in interface AWCycleable
renderResponse
in class AWComponent
requestContext
- the context for the current request.component
- the current parent componentpublic java.lang.String[] supportedBindingNames()
supportedBindingNames
in class AWComponent
public java.lang.String scriptFileUrl()
public boolean hasScriptBinding()
public java.lang.String scriptString()
public void setupSpanId()
public java.lang.String vbsFlag()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |