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  trueif 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, setScriptableObjectpublic 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 WebWindowImplpage - 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–2025 Gargoyle Software Inc.. All rights reserved.