|
||||||||||
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.DialogWindow
public class DialogWindow
A window opened in JavaScript via either window.showModalDialog or window.showModelessDialog.
Constructor Summary | |
---|---|
protected |
DialogWindow(WebClient webClient,
Object arguments)
Creates a new instance. |
Method Summary | |
---|---|
void |
close()
Closes 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 |
setScriptObject(Object scriptObject)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Sets the JavaScript object that corresponds to this element. |
Methods inherited from class com.gargoylesoftware.htmlunit.WebWindowImpl |
---|
addChildWindow, getEnclosedPage, getHistory, getJobManager, getName, getScriptObject, getWebClient, isClosed, performRegistration, setClosed, setEnclosedPage, setJobManager, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DialogWindow(WebClient webClient, Object arguments)
webClient
- the web client that "owns" this windowarguments
- the arguments object exposed via the dialogArguments JavaScript propertyMethod Detail |
---|
protected boolean isJavaScriptInitializationNeeded()
isJavaScriptInitializationNeeded
in class WebWindowImpl
public WebWindow getParentWindow()
public WebWindow getTopWindow()
public void setScriptObject(Object scriptObject)
setScriptObject
in interface WebWindow
setScriptObject
in class WebWindowImpl
scriptObject
- the JavaScript objectpublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |