Java representation of a JavaScript object.
Platform Support
IE | Mozilla | Netscape | Opera | Safari | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
JSObject Constructor() : JSObject
Creates a new instance of a JSObject.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||
JSObject() : JSObjectCreates a new instance of a JSObject. Returns
|
Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
call(String methodName, Array args) : Object
Invokes the specified method of the JavaScript object.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
eval(String s) : Object
Evaluates a piece of JavaScript code.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
getMember(String name) : String
Gets the value of a JavaScript property.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
getSlot(int index) : Object
Gets the value of an element in a JavaScript array.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
getWindow(java.applet.Applet applet) : Object
Gets a JSObject for a browser window.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
removeMember(String name) : Object
Deletes a property from a JavaScript object.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
setMember(String name, Object value) : Object
Sets the value of a property for a JavaScript object.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
setSlot(int index, Object value) : Object
Sets the value of an array element for a JavaScript object.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Parameters
Returns
|
||||||||||||||
toString() : String
Calls toString on a JavaScript object.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | ||||||||
Returns
|