Package org.eclipse.rap.rwt.widgets
Class BrowserUtil
java.lang.Object
org.eclipse.rap.rwt.widgets.BrowserUtil
Deprecated.
Utility class to work with non-blocking browser script execution.
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
evaluate
(Browser browser, String script, BrowserCallback browserCallback) Deprecated.UseBrowser.evaluate( BrowserCallback )
instead
-
Method Details
-
evaluate
@Deprecated public static void evaluate(Browser browser, String script, BrowserCallback browserCallback) Deprecated.UseBrowser.evaluate( BrowserCallback )
insteadExecutes the given script in a non-blocking way. ThebrowserCallback
is notified when the result from the operation is available.Use this method instead of the
execute()
orevaluate()
methods from the respectiveBrowser
widget when running in JEE_COMPATIBILITY mode.This method will throw an IllegalStateException if called while another script is still pending to be executed.
- Parameters:
browser
- the browser to execute the script, must not benull
.script
- the script to execute, must not benull
.browserCallback
- the callback to be notified when the result from the script execution is available, must not benull
.- Throws:
IllegalStateException
- when another script is already being executed.- See Also:
-
Browser
instead