当前页面:
在线文档首页 >
JDK 5 Documentation v6.0, Java 2 SDK 英文文档
jlist - JDK 5 Documentation v6.0, Java 2 SDK 英文文档
Class jlist
Object
|
+--jlist
- class
jlist
Defined in init.js
Constructor Summary |
jlist
(list)
Creates a convenient script object to deal with java.util.List instances.
|
jlist
jlist(list)
Creates a convenient script object to deal with java.util.List instances.
The result script object behaves like an array. For example,
scriptObj[index] syntax can be used to access values in the List instance.
'length' field gives size of the List.
Example:
var x = new java.util.ArrayList(4);
x.add('Java');
x.add('JavaScript');
x.add('SQL');
x.add('XML');
var y = jlist(x);
print(y[2]); // prints third element of list
print(y.length); // prints size of the list
Parameters:
map
- java.util.List instance that will be wrapped
Documentation generated by
JSDoc on Wed Jun 8 13:29:43 2005