This is a singleton that is a client counterpart to the RichDialogService. This client service manages dialogs launched as browser windows or inline popups.
Method Summary
|
private static String |
_buildFeatureString(Object features)
|
private static void |
_cancel(Number rtnId)
-
Cancels an inline or browser dialog window by return id.
|
public void |
cancelAll()
-
Called by the parent page when unloading.
|
private static void |
_cancelPopup(Object state)
-
Cancels an inline popup dialog window.
|
private static void |
_checkForIframeTitleChangeWithPPRNavOn(Number rtnId)
-
This static function is called when we are opening a popup style of dialog and we detect that PPR navigation is enabled.
|
public void |
checkForWindowCanceled(Number rtnId)
-
Only used by browser window dialogs.
|
private static Boolean |
_closeWindow(Object state)
-
Closes a dependent browser window using the window reference passed in the state object.
|
public static boolean |
dialogExists(Object rtnId)
|
private static String |
_encodeURL(String srcURL, Number rtnId)
|
private static Number |
_generateRtnId()
|
public static Object |
getAndClearBusyState()
-
This method returns the information about dialogs launched / closed from the time this method was called last.
|
private static Object |
_getDialogStateToken(Number rtnId)
|
public static AdfDhtmlRichDialogService |
getInstance()
|
private static Number |
_getOpenDialogCount()
|
public static Object |
getWindowNameByReturnId(Object rtnId)
-
This method is used by WebDriver to figure out a stable window name for a window dialog.
|
public static boolean |
hasModalDialogsOpen()
-
Checks to see if there are any open "modal" dialogs.
|
private static void |
_hideModalGlass()
-
Remvoes the modal glass pane over the parent window.
|
private static void |
_hidePopup(Object state)
-
Hides an inline popup dialog window.
|
private static void |
_iframeLoadHandler(DomEvent event)
-
Invoked when on load of the iframe.
|
public static boolean |
isBusy()
|
private Object |
_isBusyForAutomation()
|
public void |
launchInline(String popupId)
-
Called by the RichDialogService to launch a dialog in an inline popup.
|
public void |
launchWindow(String srcURL, String windowName, Object features, String dialogSourceClientId)
-
Used to launch a dialog as a browser window.
|
private static String |
_normalizeLaunchSourceId(Object dialogSourceClientId)
-
Removes the currency from the client id if the command is in a collection type component.
|
private static void |
_notifyWindowClosed(Object returnId)
-
Notify server that a dialog window is closed.
|
private static Window |
_openWindow(String srcURL, String windowName, Object features, Number rtnId)
-
Opens a new browser window.
|
private static void |
_popupClosedHandler(AdfPopupClosedEvent event)
-
Popup closed event handler.
|
private static void |
_popupOpenedHandler(AdfPopupOpenedEvent event)
-
At this point, the dom has been delivered to the client.
|
private static void |
_queueReturnEvent(Object state)
-
Queues the AdfReturnEvent on the launcher component if if can be found on the page.
|
private static void |
_removeDialogStateToken(Number rtnId)
-
Removes the state of a dialog that has been dismissed.
|
public void |
returnFrom(Number rtnId)
-
Cleans up the state of an open dialog, inline or browser window.
|
private static void |
_setBusy(boolean isBusy, String op)
|
private static Object |
_setDialogStateToken(Number rtnId, Object state)
|
private static void |
_setWindowFocus(Number rtnId)
-
Cancels an inline or browser dialog window by return id.
|
private static void |
_showModalGlass()
-
Shows the modal glass pane over the parent window.
|
private Object |
_trackBusyState(Object isBusy, Object op)
|
static void |
__unloadDocument(AdfRichPopup popup)
-
Force the iframe in the popup to unload its document to prevent additional GET requests when the visibility of the iframe is toggled in FF and Safari and also when the iframe is reparented in the dom.
|
public void |
unsetWindowDialogCanceled(Number rtnId)
-
Only used by browser window dialogs.
|
void |
__visitWindows(Function callback)
-
Visits all the open dialogs passing the state token to the callback function
|
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.
|