|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PromptService
Represents service that allows handling browser dialogs such as JavaScript alert, confirmation, prompt, error dialogs and other.
ThePromptService can be registered using the
BrowserServices.setPromptService(PromptService)
method.
DefaultPromptService,
SilentPromptService,
BrowserServices.setPromptService(PromptService),
BrowserServices.getPromptService()| Method Summary | |
|---|---|
void |
alertRequested(DialogParams params)
Invoked when browser requests the JavaScript alert dialog. |
CloseStatus |
badCertificateRequested(DialogParams params)
Invoked when the loaded web page contains bad certificate and a confirmation dialog is required to accept or decline the received certificate. |
CloseStatus |
confirmationRequested(DialogParams params)
Invoked when browser request the JavaScript confirmation dialog. |
CloseStatus |
loginRequested(LoginParams info)
Invoked when browser request the authentication dialog. |
CloseStatus |
promptRequested(PromptDialogParams params)
Invoked when browser requests the JavaScript prompt dialog. |
CloseStatus |
scriptErrorRequested(ScriptErrorParams info)
Invoked when browser requests the JavaScript error dialog. |
| Method Detail |
|---|
void alertRequested(DialogParams params)
params - the alert dialog parameters.CloseStatus promptRequested(PromptDialogParams params)
params - the prompt dialog parameters.
CloseStatus.OK when the dialog was closed by
pressing OK button, the CloseStatus.CANCEL otherwise.CloseStatus confirmationRequested(DialogParams params)
params - the confirmation dialog parameters.
CloseStatus.OK when the dialog was closed by
pressing OK button, the CloseStatus.CANCEL otherwise.CloseStatus loginRequested(LoginParams info)
info - the authentication dialog parameters.
CloseStatus.OK when the dialog was closed by
pressing OK button, the CloseStatus.CANCEL otherwise.CloseStatus badCertificateRequested(DialogParams params)
params - the dialog information.
CloseStatus.OK when the dialog was closed by
pressing OK button, the CloseStatus.CANCEL otherwise.CloseStatus scriptErrorRequested(ScriptErrorParams info)
info - the JavaScript error dialog information.
CloseStatus.OK when the dialog was closed by
pressing OK button, the CloseStatus.CANCEL otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||