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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net