Section 25.191. JSObject.setSlot( ): set an array element of a JavaScript object


25.191. JSObject.setSlot( ): set an array element of a JavaScript object

Java method in Java plug-in

25.191.1. Synopsis

 public void setSlot(int index, Object value) 

25.191.1.1. Arguments

index

The index of the array element to be set in the JSObject.


value

The value to which the specified array element should be set.

25.191.2. Description

The setSlot( ) method of the Java JSObject class sets the value of a numbered array element of a JavaScript object from Java. The specified value may be any Java Object. Primitive Java values may not be passed to this method. In JavaScript, the specified value is accessible as a JavaObject object.




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