|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The listener interface for receiving Prompt events.
The class that is interested in processing a Prompt event implements this interface (and all the methods it contains).
The listener object created from that class is then registered with an
IBrowserCanvas using the addPromptListentener method.
This is used to stop showing browser dialogs. The following example shows how to block all dialogs using this listener:
browser.addPromptListener( new PromptListener() {
public void onPromptDialog( PromptEvent e ) {
System.out.println( "Blocking a dialog with type: " + e.getDialogType() );
e.blockPromptDialog(); //Stops the dialog from being shown
}
}
| Method Summary | |
void |
onPromptDialog(PromptEvent e)
Invoked when the browser is about to show a dialog. |
| Method Detail |
public void onPromptDialog(PromptEvent e)
IMozillaBrowserCanvas this applies to all dialogs.
IIEBrowserCanvas this only applies to javascript alert dialogs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||