Class WebBrowser.EvaluateFunction
java.lang.Object
org.eclipse.swt.browser.BrowserFunction
org.eclipse.swt.browser.WebBrowser.EvaluateFunction
- Enclosing class:
WebBrowser
-
Field Summary
Fields inherited from class BrowserFunction
browser, frameNames, functionString, index, isEvaluate, name, token, top -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BrowserFunction
dispose, dispose, getBrowser, getName, isDisposed
-
Constructor Details
-
EvaluateFunction
-
-
Method Details
-
function
Description copied from class:BrowserFunctionSubclasses should override this method. This method is invoked when the receiver's function is called from javascript. If all of the arguments that are passed to the javascript function call are of supported types then this method is invoked with the argument values converted as follows: javascript null or undefined ->nulljavascript number ->java.lang.Doublejavascript string ->java.lang.Stringjavascript boolean ->java.lang.Booleanjavascript array whose elements are all of supported types ->java.lang.Object[]If any of the javascript arguments are of unsupported types then the function invocation will fail and this method will not be called. This method must return a value with one of these supported java types to the javascript caller. Note thatnullvalues are converted to javascript'snullvalue (notundefined), and instances of anyjava.lang.Numbersubclass will be converted to a javascript number.- Overrides:
functionin classBrowserFunction- Parameters:
arguments- the javascript arguments converted to java equivalents- Returns:
- the value to return to the javascript caller
-