This is a means of accessing array elements in JavaScript arrays when they are encapsulated inside a JSObject.
The return values will conform to the following conversions as they are passed between the environments:
JavaScript | Java |
---|---|
boolean primitive | java.lang.Boolean |
number primitive | java.lang.Double |
string primitive | java.lang.String |
JavaObject object | The encapsulated Java object unwrapped |
all other JavaScript objects | netscape.javascript.JSObject |
The result of this method call will be the element of the array at the slot location returned as an Object object which needs to be cast to some other value.
See also: | JavaScript to Java values, JSObject object, LiveConnect |
Prev | Home | Next |
JSObject.getMember() | Up | JSObject.getWindow() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |