OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.automation
Class AdfAutomationHelper

Warning:

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.


Field Summary

public static Object
CONFIG
public static Object
WAIT_REASONS

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

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfAutomationHelper()
This is a singleton that encapsulates automation related behavior for AdfDhtmlPage.

Method Summary

public static String
errorToString(Object e)
Util method to convert js error object into a string
public static Object
getInstance()
public static Object
getWaitReason(Object code)
Returns a safely modifiable copy of the wait reason object corresponding to the code (if any).
private static Object
_listSynchronousTimers(Object timers)
Used in whyIsNotSynchronizedWithServer to collect information about synchronous timers Data structure returned is of the form:
public Object
whyIsNotSynchronizedWithServer(Object config)
This is called by isSynchronizedWithServer() so that the logic only exists in one place.

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

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

Field Detail


CONFIG

public static Object CONFIG

WAIT_REASONS

public static Object WAIT_REASONS

Constructor Detail


AdfAutomationHelper

public AdfAutomationHelper()

This is a singleton that encapsulates automation related behavior for AdfDhtmlPage.

Method Detail


errorToString

public static String errorToString(Object e)

Util method to convert js error object into a string

Parameters:
e  
Return:
String - form of the object

getInstance

public static Object getInstance()

Return:
Object

getWaitReason

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"

_listSynchronousTimers

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:
timers  
Return:
Object - array of timer records that are synchronous

whyIsNotSynchronizedWithServer

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 restDataService | AdfRestDataService object 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) }

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

 

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.