com.jniwrapper.win32.ie.event
Class BrowserDialogEventHandler

java.lang.Object
  extended by com.jniwrapper.win32.ie.event.BrowserDialogEventHandler
All Implemented Interfaces:
DialogEventHandler, java.util.EventListener

public class BrowserDialogEventHandler
extends java.lang.Object
implements DialogEventHandler

Implementation of dialog event handler that displays system message box.


Constructor Summary
BrowserDialogEventHandler()
           
 
Method Summary
 int showDialog(com.jniwrapper.win32.ui.Wnd wnd, java.lang.String title, java.lang.String text, int type)
          Invoked when an Internet Explorer dialog is displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserDialogEventHandler

public BrowserDialogEventHandler()
Method Detail

showDialog

public int showDialog(com.jniwrapper.win32.ui.Wnd wnd,
                      java.lang.String title,
                      java.lang.String text,
                      int type)
Description copied from interface: DialogEventHandler
Invoked when an Internet Explorer dialog is displayed. If invoke window.alert() or window.confirm() JavaScript function then this event is occured.

Specified by:
showDialog in interface DialogEventHandler
Parameters:
wnd - parent window for dialog
title - dialog title
text - text for displaying in dialog
type - dialog type (see type constants in MessageBox class).
Returns:
type of key pressed in dialog (see IDxxx constants of MessageBox class).