OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.laf.dhtml.scriptLoading
Class AdfLoadableScript

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adfinternal.view.js.laf.dhtml.scriptLoading.AdfLoadableScript
Direct Known Subclasses:
AdfCallbackLoadableScript, AdfDomLibraryLoadableScript, AdfInlineLoadableScript, AdfXmlHttpLibraryLoadableScript

public class AdfLoadableScript
extends AdfObject
Contract for scripts that are capable of loading themselves on demand.



Field Summary

private Object
_domWindow


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfLoadableScript(Object domWindow)
Contract for scripts that are capable of loading themselves on demand.


Method Summary

protected Object
ExecScript(Object content, Object name)
Executes the specified script content.
public Object
getLoadMethod()
Returns the loading method used to load this script.
protected Object
Init(Object domWindow)
Initializes the AdfLoadableScript.
public Object
load(Object loadCallback)
Loads this script.


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_domWindow

private Object _domWindow

Constructor Detail


AdfLoadableScript

public AdfLoadableScript(Object domWindow)

Contract for scripts that are capable of loading themselves on demand.

Parameters:
domWindow    

Method Detail


ExecScript

protected Object ExecScript(Object content,
                            Object name)

Executes the specified script content.

Parameters:
content  -  the script content to execute
name  -  an optional identifier (eg. a library source uri) that is used for error reporting purposes.
Return:
Object

getLoadMethod

public Object getLoadMethod()

Returns the loading method used to load this script.

Return:
Object - One of the concrete AdfScriptLoadingService loading methods: METHOD_SYNCHRONOUS, METHOD_ASYNCHRONOUS or METHOD_BACKGROUND.

Init

protected Object Init(Object domWindow)

Initializes the AdfLoadableScript.

Parameters:
domWindow    
Return:
Object
Overrides:
AdfObject.Init()

load

public Object load(Object loadCallback)

Loads this script.

Parameters:
loadCallback  -  a function that is called when the script finishes loading. If the script has loaded an exernal library, the source uri of the library is passed into the callback as the first (and only) argument.
Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.