JavaScriptObject
cannot be created directly. JavaScriptObject
should be declared as the return type of a JSNI method that returns native (non-Java) objects. A JavaScriptObject
passed back into JSNI from Java becomes the original object, and can be accessed in JavaScript as expected. SUBCLASSING IS NOT SUPPORTED EXCEPT FOR THE EXISTING SUBCLASSES.
A JavascriptObject is tied to a specific object in a specific browser page. In this way the eval of a JavascriptObject is outside of the normal execution scoping provided by {@link org.directwebremoting.Browser}. @author Joe Walker [joe at getahead dot ltd dot uk]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|