public final class ScriptResult extends Object
Constructor and Description |
---|
ScriptResult(Object javaScriptResult,
Page newPage)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static ScriptResult |
combine(ScriptResult newResult,
ScriptResult originalResult,
boolean ie)
Creates and returns a composite
ScriptResult based on the two input ScriptResult s. |
Object |
getJavaScriptResult()
Returns the object that was the output of the script engine.
|
Page |
getNewPage()
Returns the page that is loaded at the end of the script execution.
|
static boolean |
isFalse(ScriptResult scriptResult)
Utility method testing if a script result is
false . |
static boolean |
isUndefined(ScriptResult scriptResult)
Utility method testing if a script result is undefined (there was no return value).
|
String |
toString() |
public Object getJavaScriptResult()
public Page getNewPage()
public static boolean isFalse(ScriptResult scriptResult)
false
.scriptResult
- a script result (may be null
)true
if scriptResult is false
public static boolean isUndefined(ScriptResult scriptResult)
scriptResult
- a script result (may be null
)true
if scriptResult is undefined (there was no return value)public static ScriptResult combine(ScriptResult newResult, ScriptResult originalResult, boolean ie)
ScriptResult
based on the two input ScriptResult
s. This
method defines how the return values for multiple event handlers are combined during event capturing and
bubbling. The behavior of this method varies based on whether or not we are emulating IE.newResult
- the new ScriptResult
(may be null
)originalResult
- the original ScriptResult
(may be null
)ie
- whether or not we are emulating IEScriptResult
, based on the two input ScriptResult
sCopyright © 2002–2018 Gargoyle Software Inc.. All rights reserved.