Jiffie: Java InterFace For Internet Explorer

net.sf.jiffie
Class NewWindowEventHandler

Package class diagram package NewWindowEventHandler
java.lang.Object
  extended by net.sf.jiffie.AbstractEventHandler
      extended by net.sf.jiffie.NewWindowEventHandler
All Implemented Interfaces:
EventHandler
Direct Known Subclasses:
FullEventHandler

public class NewWindowEventHandler
extends AbstractEventHandler

This class implements an event handler which receives the new window event generated by Internet Explore. Note that the non-standard capitalisation of the method name is necessary to ensure that it matches exactly the name used by Internet Explorer. Detailed documentation on the event can be found at: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reflist_vb.asp The following events are no implemented, as per the Microsoft documentation: NewWindow (Obsolete - use NewWindow2)


Field Summary
 
Fields inherited from class net.sf.jiffie.AbstractEventHandler
m_navigationListeners, m_parentBrowser, m_windowListeners
 
Constructor Summary
NewWindowEventHandler(InternetExplorer parentBrowser)
          Constructor.
 
Method Summary
 void NewWindow2(Variant[] args)
          NewWindow2 event handler.
 void NewWindow3(Variant[] args)
          NewWindow3 event handler.
 
Methods inherited from class net.sf.jiffie.AbstractEventHandler
addNavigationListener, addWindowListener, removeNavigationListener, removeWindowListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewWindowEventHandler

public NewWindowEventHandler(InternetExplorer parentBrowser)
Constructor.

Parameters:
parentBrowser - parent browser
Method Detail

NewWindow2

public void NewWindow2(Variant[] args)
NewWindow2 event handler. args[0] Object expression that, optionally, receives a new, hidden InternetExplorer object with no URL loaded. args[1] Boolean value to determine whether the current navigation should be cancelled.

Parameters:
args - event arguments

NewWindow3

public void NewWindow3(Variant[] args)
NewWindow3 event handler. args[0] Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded. args[1] Boolean value to determine whether the current navigation should be cancelled. args[2] Flags from the NWMF enumeration that pertain to the new window. args[3] URL of the page opening the new window. args[4] URL being opened in the new window.

Parameters:
args - event arguments


Copyright © 2004-2009 Packwood Software. All Rights Reserved.