com.teamdev.jxbrowser
Class NewWindowParams

java.lang.Object
  extended by com.teamdev.jxbrowser.NewWindowParams

public class NewWindowParams
extends java.lang.Object

The information that can be used before creating a new browser window.


Constructor Summary
NewWindowParams(Browser parent, java.awt.Rectangle bounds, java.lang.String target, java.lang.String location)
          Construct a new NewWindowInfo instance.
 
Method Summary
 java.awt.Rectangle getBounds()
          Returns the initial popup window bounds.
 Browser getParent()
          Returns the parent for the current popup window.
 java.lang.String getTargetName()
          Returns the popup window target name that can be passed through window.open JavaScript function.
 java.lang.String getUrl()
          The URL of the page to open in the new window.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewWindowParams

public NewWindowParams(Browser parent,
                       java.awt.Rectangle bounds,
                       java.lang.String target,
                       java.lang.String location)
Construct a new NewWindowInfo instance.

Parameters:
parent - the parent of new window.
bounds - initial bounds of newly created window
target - target name of newly created window
location - initial location of newly created window
Method Detail

getParent

public Browser getParent()
Returns the parent for the current popup window.

Returns:
the parent for the current popup window.

getBounds

public java.awt.Rectangle getBounds()
Returns the initial popup window bounds.

Returns:
the initial popup window bounds.

getTargetName

public java.lang.String getTargetName()
Returns the popup window target name that can be passed through window.open JavaScript function. The name can be used to refer the window again in JavaScript.

Returns:
the popup window target name.

getUrl

public java.lang.String getUrl()
The URL of the page to open in the new window. This argument could be blank.

Returns:
the address of the page to open in the new window.