com.extjs.gxt.ui.client.js
Class JsArray

java.lang.Object
  extended by com.extjs.gxt.ui.client.js.JsArray
All Implemented Interfaces:
JsWrapper

public class JsArray
extends java.lang.Object
implements JsWrapper

Wraps a native javascript array.


Constructor Summary
JsArray()
          Creates a new instance.
 
Method Summary
 void add(com.google.gwt.core.client.JavaScriptObject object)
          Adds a native javascript object to the array.
 void add(java.lang.Object value)
          Adds a object to the array.
 void add(java.lang.String value)
          Adds a string value to the array.
static com.google.gwt.core.client.JavaScriptObject eval(java.lang.String code)
           
 com.google.gwt.core.client.JavaScriptObject getJsObject()
          Returns the javscript object.
 int size()
          Returns the size of the array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsArray

public JsArray()
Creates a new instance.

Method Detail

getJsObject

public com.google.gwt.core.client.JavaScriptObject getJsObject()
Description copied from interface: JsWrapper
Returns the javscript object.

Specified by:
getJsObject in interface JsWrapper
Returns:
the object

add

public void add(java.lang.String value)
Adds a string value to the array.

Parameters:
value - the value to add

add

public void add(java.lang.Object value)
Adds a object to the array.

Parameters:
value - the object to add

add

public void add(com.google.gwt.core.client.JavaScriptObject object)
Adds a native javascript object to the array.

Parameters:
object - the object to add

size

public int size()
Returns the size of the array.

Returns:
the size

eval

public static com.google.gwt.core.client.JavaScriptObject eval(java.lang.String code)