com.jniwrapper.win32.ie.event
Class NewWindowEventHandler.NewWindowAction

java.lang.Object
  extended by com.jniwrapper.win32.ie.event.NewWindowEventHandler.NewWindowAction
Enclosing interface:
NewWindowEventHandler

public static class NewWindowEventHandler.NewWindowAction
extends java.lang.Object

This class describes action to perform when user tries to open link in a new window.


Field Summary
static int ACTION_CANCEL
          Don't perform any actions.
static int ACTION_CREATE
          Web browser creates new window and loads page to the new window.
static int ACTION_REPLACE_BROWSER
          Web browser don't create new window but loads to page to the browser provided by user.
 
Constructor Summary
NewWindowEventHandler.NewWindowAction()
          Creates new window action with type ACTION_CREATE.
NewWindowEventHandler.NewWindowAction(int type)
          Creates new window action.
 
Method Summary
 WebBrowser getBrowser()
          Returns browser object.
 int getType()
          Returns type of action.
 void setBrowser(WebBrowser browser)
          Sets browser objects.
 void setType(int type)
          Sets type of action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_CREATE

public static int ACTION_CREATE
Web browser creates new window and loads page to the new window.

Note: In case of using this flag will be created a new native Internet Explorer instance in the separate iexplore.exe process. And in this case there is no WebBrowser instance will be created and passed to the NewWindowListener.windowOpened event.


ACTION_CANCEL

public static int ACTION_CANCEL
Don't perform any actions.


ACTION_REPLACE_BROWSER

public static int ACTION_REPLACE_BROWSER
Web browser don't create new window but loads to page to the browser provided by user. User provides the browser object calling setBrowser() method.

Constructor Detail

NewWindowEventHandler.NewWindowAction

public NewWindowEventHandler.NewWindowAction()
Creates new window action with type ACTION_CREATE.


NewWindowEventHandler.NewWindowAction

public NewWindowEventHandler.NewWindowAction(int type)
Creates new window action.

Parameters:
type - type of action, one of ACTION_ constants.
Method Detail

getType

public int getType()
Returns type of action.

Returns:
type of action, one of ACTION_ constants

setType

public void setType(int type)
Sets type of action.

Parameters:
type - type of action, one of ACTION_ constants

getBrowser

public WebBrowser getBrowser()
Returns browser object.

Returns:
browser object.

setBrowser

public void setBrowser(WebBrowser browser)
Sets browser objects.

Parameters:
browser - browser object