|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.WebWindowImpl
public abstract class WebWindowImpl
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Base class for common WebWindow functionality. While public, this class is not
exposed in any other places of the API. Internally we can cast to this class
when we need access to functionality that is not present in WebWindow
Constructor Summary | |
---|---|
WebWindowImpl(WebClient webClient)
Creates a window and associates it with the client |
Method Summary | |
---|---|
void |
addChildWindow(FrameWindow child)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
Page |
getEnclosedPage()
Return the currently loaded page or null if no page has been loaded. |
java.lang.String |
getName()
Return the name of this window. |
java.lang.Object |
getScriptObject()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
ThreadManager |
getThreadManager()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
WebClient |
getWebClient()
Return the web client that "owns" this window. |
void |
setEnclosedPage(Page page)
Set the currently loaded page. |
void |
setName(java.lang.String name)
Set the name of this window. |
void |
setScriptObject(java.lang.Object scriptObject)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.gargoylesoftware.htmlunit.WebWindow |
---|
getParentWindow, getTopWindow |
Constructor Detail |
---|
public WebWindowImpl(WebClient webClient)
webClient
- The web client that "owns" this window.Method Detail |
---|
public void addChildWindow(FrameWindow child)
child
- The child window to associate with this window.public Page getEnclosedPage()
getEnclosedPage
in interface WebWindow
public java.lang.String getName()
getName
in interface WebWindow
public java.lang.Object getScriptObject()
getScriptObject
in interface WebWindow
public ThreadManager getThreadManager()
getThreadManager
in interface WebWindow
public WebClient getWebClient()
getWebClient
in interface WebWindow
public void setEnclosedPage(Page page)
setEnclosedPage
in interface WebWindow
page
- The new page or null if there is no page (ie empty window)public void setName(java.lang.String name)
setName
in interface WebWindow
name
- The new window name.public void setScriptObject(java.lang.Object scriptObject)
setScriptObject
in interface WebWindow
scriptObject
- The javascript object.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |