public class DialogWindow extends WebWindowImpl
window.showModalDialog
or window.showModelessDialog
.Modifier | Constructor and Description |
---|---|
protected |
DialogWindow(WebClient webClient,
Object arguments)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
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(Page page)
Returns
true if this window needs JavaScript initialization to occur when the enclosed page is set. |
<T extends HtmlUnitScriptable> |
setScriptableObject(T scriptObject)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
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
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 WebWindow getParentWindow()
public WebWindow getTopWindow()
public <T extends HtmlUnitScriptable> void setScriptableObject(T scriptObject)
setScriptableObject
in interface WebWindow
setScriptableObject
in class WebWindowImpl
T
- the object typescriptObject
- the JavaScript objectpublic void close()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.