A JSObject is an opaque handle to a JavaScript object. Like it's parent it cannot be created directly. A JSObject has to be created via JSNI or via the static factory method createJSObject. It expands upon it's parent by offering several convenience functions, such as setter and getter methods to set properties on the JSObject. A property can be a number, boolean or string, but also another JSObject or a DOM Element. To set a function on a JSObject, it can be created via JSNI, returned as a JSObject and set as property.
The purpose of the setter and getter methods is to reduce the amount of JSNI code necessary for working with JavaScript objects.
@author Erdem Gunay @author Edwin Commandeur - Atlis EJS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|