com.jniwrapper.win32.ie.event
Interface NewWindowEventHandlerExt2

All Superinterfaces:
NewWindowEventHandler

public interface NewWindowEventHandlerExt2
extends NewWindowEventHandler

Exposes a method that determines whether a window that is launched by another window should be displayed or blocked, allowing control of pop-up windows.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jniwrapper.win32.ie.event.NewWindowEventHandler
NewWindowEventHandler.NewWindowAction
 
Method Summary
 boolean evaluateNewWindow(java.lang.String url, java.lang.String name, java.lang.String urlContext, java.lang.String features, boolean replace, long flags, long userActionTime)
          Accepts data about a new window that is attempting to display and determines whether that window should be allowed to open.
 
Methods inherited from interface com.jniwrapper.win32.ie.event.NewWindowEventHandler
newWindow
 

Method Detail

evaluateNewWindow

boolean evaluateNewWindow(java.lang.String url,
                          java.lang.String name,
                          java.lang.String urlContext,
                          java.lang.String features,
                          boolean replace,
                          long flags,
                          long userActionTime)
Accepts data about a new window that is attempting to display and determines whether that window should be allowed to open.

Parameters:
url - the URL of the content that will be displayed in the new window.
name - the name of the new window.
urlContext - the URL that has issued the command to open the new window.
features - the feature string for the new window.
replace - a boolean value used when the new content specified in url is loaded into the existing window instead of creating a new one. true if the new document should replace the current document in the history list; false if the new document should be given a new entry.
flags - a flag or flags from the NewWindowEventHandlerExt.NewWindowManagerFlags enumeration that provide situational information about the call to open the new window. This value can be 0 if no flags are needed.
userActionTime - the tick count when the last user action occurred.
Returns:
true if allow display of the window, otherwise block display of the window.