public class FrameWindow extends WebWindowImpl
Modifier and Type | Class and Description |
---|---|
static class |
FrameWindow.PageDenied
The different deny states.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this frame window.
|
HtmlPage |
getEnclosingPage()
Returns the HTML page in which the <frame> or <iframe> tag is contained
for this frame window.
|
BaseFrameElement |
getFrameElement()
Gets the DOM node of the (i)frame containing this window.
|
String |
getName()
Returns the name of this window.
|
FrameWindow.PageDenied |
getPageDenied() |
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 |
setEnclosedPage(Page page)
Sets the currently loaded page.
|
void |
setName(String name)
Sets the name of this window.
|
void |
setPageDenied(FrameWindow.PageDenied pageDenied)
Marks that the page content as denied.
|
String |
toString()
Gives a basic representation for debugging purposes.
|
addChildWindow, destroyChildren, getComputedStyle, getEnclosedPage, getHistory, getInnerHeight, getInnerWidth, getJobManager, getOuterHeight, getOuterWidth, getScreen, getScriptableObject, getWebClient, isClosed, performRegistration, removeChildWindow, setClosed, setInnerHeight, setInnerWidth, setJobManager, setOuterHeight, setOuterWidth, setScriptableObject
public String getName()
getName
in interface WebWindow
getName
in class WebWindowImpl
public void setName(String name)
setName
in interface WebWindow
setName
in class WebWindowImpl
name
- the new window namepublic 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 HtmlPage getEnclosingPage()
(HtmlPage) (getParentWindow().getEnclosedPage())
.public void setEnclosedPage(Page page)
setEnclosedPage
in interface WebWindow
setEnclosedPage
in class WebWindowImpl
page
- the new page or null if there is no page (ie empty window)public BaseFrameElement getFrameElement()
public String toString()
public void close()
public void setPageDenied(FrameWindow.PageDenied pageDenied)
pageDenied
- the new statepublic FrameWindow.PageDenied getPageDenied()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.