|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.WebWindowImpl
com.gargoylesoftware.htmlunit.html.FrameWindow
public class FrameWindow
The web window for a frame or iframe.
| Method Summary | |
|---|---|
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. |
WebWindow |
getParentWindow()
Returns the window that contains this window. |
WebWindow |
getTopWindow()
Returns the top level window that contains this window. |
protected boolean |
isJavaScriptInitializationNeeded()
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. |
String |
toString()
Gives a basic representation for debugging purposes. |
| Methods inherited from class com.gargoylesoftware.htmlunit.WebWindowImpl |
|---|
addChildWindow, getEnclosedPage, getHistory, getInnerHeight, getInnerWidth, getJobManager, getOuterHeight, getOuterWidth, getScriptObject, getWebClient, isClosed, performRegistration, setClosed, setInnerHeight, setInnerWidth, setJobManager, setOuterHeight, setOuterWidth, setScriptObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getName()
getName in interface WebWindowgetName in class WebWindowImplpublic void setName(String name)
setName in interface WebWindowsetName in class WebWindowImplname - the new window namepublic WebWindow getParentWindow()
public WebWindow getTopWindow()
protected boolean isJavaScriptInitializationNeeded()
isJavaScriptInitializationNeeded in class WebWindowImplpublic HtmlPage getEnclosingPage()
(HtmlPage) (getParentWindow().getEnclosedPage()).
public void setEnclosedPage(Page page)
setEnclosedPage in interface WebWindowsetEnclosedPage in class WebWindowImplpage - the new page or null if there is no page (ie empty window)public BaseFrameElement getFrameElement()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||