Friday, October 30, 2009

Section 25.187. JSObject.getSlot( ): read an array element of a JavaScript object










25.187. JSObject.getSlot( ): read an array element of a JavaScript object


Java method in Java plug-in



25.187.1. Synopsis



public Object getSlot(int index)




25.187.1.1. Arguments



index


The index of the array element to be read.





25.187.1.2. Returns

The value of the array element at the specified index of a JavaScript object.





25.187.2. Description


The getSlot( ) method of the Java JSObject class reads and returns to Java the value of an array element at the specified index of a JavaScript object. The return value may be another JSObject object or a Double, Boolean, or String object, but it is returned as a generic Object, which you must cast as necessary.













No comments: