public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
runAfterBrowserEventLoopReturns(JavaScriptObject jsFunction)
Run some Javascript code after the browser event loop returns.
|
static void |
runAfterFixedDelay(JavaScriptObject jsFunction,
int delayMS)
Run some Javascript code after the browser event loop returns.
|
static void |
safeLog(java.lang.String msg)
console.log tested on Chrome with success On IE: the console is not
available unless debugger is on: causes an exception.
|
public static void runAfterBrowserEventLoopReturns(JavaScriptObject jsFunction)
jsFunction
- : a function defined in JavaScript such as :
function(){alert("DOM update finished")};public static void runAfterFixedDelay(JavaScriptObject jsFunction, int delayMS)
jsFunction
- : a function defined in JavaScript such as :
function(){alert("DOM update finished")};public static void safeLog(java.lang.String msg)
msg
-