OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.automation
Class AdfDhtmlRichDialogService

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adfinternal.view.js.automation.AdfDhtmlRichDialogService

public class AdfDhtmlRichDialogService
extends Object
Counterpart of AdfDhtmlPage.whyIsNotSynchronizedWithServer This method reaches out to the dialog with return id passed and executes AdfPage.PAGE.whyIsNotSynchronizedWithServer on the dialog's ADF page.


Field Summary

private static Object
_OP_CODE
Enumeration for operations on dialog

Fields inherited from org.ecmascript.object.Object

constructor, prototype

Constructor Summary

public
AdfDhtmlRichDialogService()
Counterpart of AdfDhtmlPage.whyIsNotSynchronizedWithServer This method reaches out to the dialog with return id passed and executes AdfPage.PAGE.whyIsNotSynchronizedWithServer on the dialog's ADF page.

Method Summary

public static Object
getAndClearBusyState()
This method returns the information about dialogs launched / closed from the time this method was called last.
public static Object
getWindowNameByReturnId(Object rtnId)
This method is used by WebDriver to figure out a stable window name for a window dialog.
private Object
_isBusyForAutomation()
private Object
_trackBusyState(Object isBusy, Object op)
public static Object
whyIsNotDialogSynchronizedWithServer(Object rtnId)
Counterpart of AdfDhtmlPage.whyIsNotSynchronizedWithServer This method reaches out to the dialog with return id passed and executes AdfPage.PAGE.whyIsNotSynchronizedWithServer on the dialog's ADF page.

Field Detail


_OP_CODE

private static Object _OP_CODE

Enumeration for operations on dialog

Constructor Detail


AdfDhtmlRichDialogService

public AdfDhtmlRichDialogService()

Counterpart of AdfDhtmlPage.whyIsNotSynchronizedWithServer This method reaches out to the dialog with return id passed and executes AdfPage.PAGE.whyIsNotSynchronizedWithServer on the dialog's ADF page.

Method Detail


getAndClearBusyState

public static Object getAndClearBusyState()

This method returns the information about dialogs launched / closed from the time this method was called last. Data structure returned is of the form: [ { "operation": "LAUNCHING_WINDOW_DIALOG", "dialogInfo": { "launchSourceId": launchSourceId, "modal": modal, "windowName": windowName, "rtnId": rtnId } }, { "operation": "LAUNCHING_INLINE_DIALOG", "dialogInfo": { "launchSourceId": launchSourceId, "popupId": popupId, "frameName": inlineFrameId, "panelWindowId": panelWindowId, "rtnId": rtnId} }, ... ] "operation" is defined by AdfDhtmlRichDialogService._OP_CODE

Return:
Object - null if there are no saved states, or an array containing details of dialogs launched / closed

getWindowNameByReturnId

public static Object getWindowNameByReturnId(Object rtnId)

This method is used by WebDriver to figure out a stable window name for a window dialog. Because of some logic in dialog framework, the window dialog's "window.name" changes after it is created. So the "windowName" returned from StateMap does not hold good for WebDriver to address the window. This method is used to work around that. WebDriver will invoke this method on a timeout until either (1) window name until it has a "$" or (2) a "null" returned from this method (in case dialog closed in between). This workaround can be removed once there is a direct way to obtain the stable window name.

Parameters:
rtnId  
Return:
Object
See also:
"AdfDhtmlRichDialogService.getAndClearBusyState"
"AdfDhtmlRichDialogService.launchWindow"

_isBusyForAutomation

private Object _isBusyForAutomation()

Return:
Object

_trackBusyState

private Object _trackBusyState(Object isBusy,
                               Object op)

Parameters:
isBusy  
op  
Return:
Object

whyIsNotDialogSynchronizedWithServer

public static Object whyIsNotDialogSynchronizedWithServer(Object rtnId)

Counterpart of AdfDhtmlPage.whyIsNotSynchronizedWithServer This method reaches out to the dialog with return id passed and executes AdfPage.PAGE.whyIsNotSynchronizedWithServer on the dialog's ADF page.

Parameters:
rtnId - {String} - return id of dialog which we want to sync
Return:
Object - null if dialog's ADF page is synced else an object of the form: { "reason": reason, "message": humanReadableMessageForReason, "details": [arrayContainingOptionalDetails], "nested": if any reason is returned by the dialog's ADF page }

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

 

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