JSObject.getSlot() (Java method)

A means of accessing elements within an array encapsulated in a JSObject.


JavaScript - 1.1
Netscape - 3.0
Property/method value type:Object object
Java syntax:myJSObject.getSlot(anIndex)
Argument list:anIndexThe array index equivalent to [anIndex].

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:

boolean primitivejava.lang.Boolean
number primitivejava.lang.Double
string primitivejava.lang.String
JavaObject objectThe encapsulated Java object unwrapped
all other JavaScript objectsnetscape.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