public class TopLevelWindow extends WebWindowImpl
Modifier | Constructor and Description |
---|---|
protected |
TopLevelWindow(String name,
WebClient webClient)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this window.
|
void |
close(boolean ignoreOnbeforeunloadAccepted)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
WebWindow |
getOpener()
Returns the opener property.
|
WebWindow |
getParentWindow()
Returns the window that contains this window.
|
WebWindow |
getTopWindow()
Returns the top level window that contains this window.
|
protected boolean |
isJavaScriptInitializationNeeded(Page page)
Returns
true if this window needs JavaScript initialization to occur when the enclosed page is set. |
void |
setOpener(WebWindow opener)
Sets the opener property.
|
String |
toString()
Returns a string representation of this object.
|
addChildWindow, destroyChildren, getComputedStyle, getEnclosedPage, getHistory, getInnerHeight, getInnerWidth, getJobManager, getName, getOuterHeight, getOuterWidth, getScreen, getScriptableObject, getWebClient, isClosed, performRegistration, removeChildWindow, setClosed, setEnclosedPage, setInnerHeight, setInnerWidth, setJobManager, setName, setOuterHeight, setOuterWidth, setScriptableObject
public WebWindow getParentWindow()
public WebWindow getTopWindow()
protected boolean isJavaScriptInitializationNeeded(Page page)
true
if this window needs JavaScript initialization to occur when the enclosed page is set.isJavaScriptInitializationNeeded
in class WebWindowImpl
page
- the page that will become the enclosing pagetrue
if this window needs JavaScript initialization to occur when the enclosed page is setpublic String toString()
public void setOpener(WebWindow opener)
opener
- the new openerpublic WebWindow getOpener()
public void close()
public void close(boolean ignoreOnbeforeunloadAccepted)
ignoreOnbeforeunloadAccepted
- if true the result of triggering the OnbeforeunloadAccepted event
will be ignoredCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.