|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.meterware.httpunit.javascript.ScriptingEngineImpl
com.meterware.httpunit.dom.AbstractDomComponent
com.meterware.httpunit.dom.DomWindow
public class DomWindow
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
DomWindow(DomWindowProxy implementation)
|
|
DomWindow(HTMLDocumentImpl document)
construct me from a document |
Method Summary | |
---|---|
void |
alert(java.lang.String message)
Displays an alert box with the specified message. |
void |
close()
Closes the current window. |
boolean |
confirm(java.lang.String prompt)
Displays a prompt, asking for a yes or no answer and returns the answer. |
protected void |
discardDocumentWriteBuffer()
|
void |
focus()
|
org.w3c.dom.html.HTMLDocument |
getDocument()
|
protected java.lang.String |
getDocumentWriteBuffer()
|
org.w3c.dom.html.HTMLDocument |
getOwnerDocument()
Returns the document associated with this window. |
DomWindow |
getSelf()
|
DomWindow |
getWindow()
|
void |
moveTo(int x,
int y)
|
DomWindow |
open(java.lang.String urlString,
java.lang.String name,
java.lang.String features,
boolean replace)
Opens a named window. |
java.lang.String |
prompt(java.lang.String message,
java.lang.String defaultResponse)
Displays a promptand returns the user's textual reply, which could be the default reply. |
void |
setProxy(DomWindowProxy proxy)
|
void |
setTimeout(int timeout)
|
Methods inherited from class com.meterware.httpunit.dom.AbstractDomComponent |
---|
clearCaches, createAnonymousFunctionName, get, getClassName, getJavaPropertyName, has, newScriptingEngine, put |
Methods inherited from class com.meterware.httpunit.javascript.ScriptingEngineImpl |
---|
clearErrorMessages, doEvent, doEventScript, evaluateExpression, getErrorMessages, handleEvent, handleScriptException, runScript, supportsScriptLanguage |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mozilla.javascript.Scriptable |
---|
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Constructor Detail |
---|
public DomWindow(HTMLDocumentImpl document)
document
- public DomWindow(DomWindowProxy implementation)
Method Detail |
---|
public void setProxy(DomWindowProxy proxy)
public DomWindow getWindow()
public DomWindow getSelf()
public org.w3c.dom.html.HTMLDocument getDocument()
public org.w3c.dom.html.HTMLDocument getOwnerDocument()
public DomWindow open(java.lang.String urlString, java.lang.String name, java.lang.String features, boolean replace)
urlString
- the location (relative to the current page) from which to populate the window.name
- the name of the window.features
- special features for the window.replace
- if true, replaces the contents of an existing window.
public void close()
public void alert(java.lang.String message)
message
- the message to displaypublic boolean confirm(java.lang.String prompt)
prompt
- the prompt text to display
public java.lang.String prompt(java.lang.String message, java.lang.String defaultResponse)
message
- the prompt text to displaydefaultResponse
- the response to return if the user doesn't enter anything
public void setTimeout(int timeout)
public void focus()
public void moveTo(int x, int y)
protected java.lang.String getDocumentWriteBuffer()
getDocumentWriteBuffer
in class ScriptingEngineImpl
protected void discardDocumentWriteBuffer()
discardDocumentWriteBuffer
in class ScriptingEngineImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |