JavaScript API Reference for Oracle ADF Faces
oracle.adfinternal.view.js.automation
Class AdfAutomationHelper
Warning:
- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.
org.ecmascript.object.Object
|
+--oracle.adf.view.js.base.AdfObject
|
+--oracle.adfinternal.view.js.automation.AdfAutomationHelper
public class AdfAutomationHelper
extends AdfObject
This is a singleton that encapsulates automation related behavior for AdfDhtmlPage.
Constructor Summary
|
public |
AdfAutomationHelper()
-
This is a singleton that encapsulates automation related behavior for AdfDhtmlPage.
|
Methods inherited from oracle.adf.view.js.base.AdfObject
|
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, Init, toDebugString, toString |
public static Object CONFIG
public static Object WAIT_REASONS
public AdfAutomationHelper()
This is a singleton that encapsulates automation related behavior for AdfDhtmlPage.
public static String errorToString(Object e)
Util method to convert js error object into a string
- Parameters:
-
- Return:
String
- form of the object
public static Object getInstance()
- Return:
Object
public static Object getWaitReason(Object code)
Returns a safely modifiable copy of the wait reason object corresponding to the code (if any).
- Parameters:
-
code |
- |
- corresponding to the wait reason requested |
- Return:
Object
- object , representing the wait reason code empty object, if no corresponding wait reason for code
- See also:
- "AdfAutomationHelper.WAIT_REASONS"
private static Object _listSynchronousTimers(Object timers)
Used in whyIsNotSynchronizedWithServer to collect information about synchronous timers Data structure returned is of the form: [ { "timerId": timerId, "callback": callbackFnString }, ... ]
- Parameters:
-
- Return:
Object
- array of timer records that are synchronous
public Object whyIsNotSynchronizedWithServer(Object config)
This is called by isSynchronizedWithServer() so that the logic only exists in one place. We want this method per ADFPage instance, so this method cannot be static
- Parameters:
-
config |
- |
object containing all relevant information needed to check for ADF page synchronization Key | Meaning automationEnabled | If automation is enabled or not dts | Data transfer service object phase | Current phase of ADF page eventQueueLength | Length of event queue isAttachmentMode | If ADF page is in attachment mode or not initializationComplete | If ADF page initialization is complete or not partialTargets | If ADF page has any partial targets or not startADSClientIdCount | ADS client Id count windowEventHeaderMap | Window header map inHandleRichResponse | If ADF page is handling rich response or not partialRequestRedirect | If ADF page is handling partial redirect request inDeliverQueuedServerEvents | If ADF page has queued server events inDeliverQueuedEvents | If ADF page has queued events waitingForDocumentUnload | If ADF page is waiting for document unload areComponentsLoaded | If all components in ADF page are loaded waitingForDescendantResize | If ADF page is waiting for resize waitingForIncompleteImages | If ADF page is waiting for any images to download hasEventsToDeliver | If ADF page is delivering queued events waitingForAnimation | If ADF page is waiting for animation to complete areSynchronousTimersCleared | If ADF page is running any synchronous timers inGetRequestNavigation | If ADF page is doing any get request navigation timers | Handle to the timers set on ADF page |
- Return:
Object
- null if ADF page is synced else an object of the form: { "reason": reason, "message": humanReadableMessageForReason, "details": [arrayContainingOptionalDetails] (if any), "nested": (if any) (typically returns busy status of dialog's ADF page) }
Generated on 2015.07.15 10:12 UTC
Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.