258259260261262263264265266267268
WindowWrapper ww = (WindowWrapper)thisObj; Window window = ww.window; if (len >= 1) { String message = (String)NativeJavaObject.coerceType(String.class, args[0]); window.alert(message); } } /** * Wraps the 'confirm' method of the Window interface.
272273274275276277278279280281282
171172173174175176177178179180181
224225226227228229230231232233234
302303304305306307308309310311312
int len = args.length; Window window = ((RhinoInterpreter.ExtendedContext)cx).getWindow(); if (len >= 1) { String message = (String)Context.toType(args[0], String.class); window.alert(message); } } /** * Wraps the 'confirm' method of the Window interface.
307308309310311312313314315316317
WindowWrapper ww = (WindowWrapper)thisObj; Window window = ww.window; if (len >= 1) { String message = (String)Context.jsToJava(args[0], String.class); window.alert(message); } } /** * Wraps the 'confirm' method of the Window interface.
234235236237238239240241242243244
273274275276277278279280281282283