|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.js.JsArray
public class JsArray
Wraps a native javascript array.
| Field Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
jsArray
The wrapped javascript object. |
| Constructor Summary | |
|---|---|
JsArray()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(boolean value)
Adds a boolean value to the array. |
void |
add(byte value)
Adds a byte value to the array. |
void |
add(char value)
Adds a char value to the array. |
void |
add(double value)
Adds a double value to the array. |
void |
add(float value)
Adds a float value to the array. |
void |
add(int value)
Adds a int value to the array. |
void |
add(com.google.gwt.core.client.JavaScriptObject object)
Adds a native javascript object to the array. |
void |
add(java.lang.Object value)
|
void |
add(short value)
Adds a short value to the array. |
void |
add(java.lang.String value)
Adds a string value to the array. |
protected com.google.gwt.core.client.JavaScriptObject |
create()
|
static com.google.gwt.core.client.JavaScriptObject |
eval(java.lang.String code)
|
java.lang.Object |
get(int index)
Returns a property value. |
boolean |
getBoolean(int index)
|
byte |
getByte(int index)
|
char |
getChar(int index)
|
double |
getDouble(int index)
|
float |
getFloat(int index)
|
int |
getInt(int index)
Returns a property value. |
com.google.gwt.core.client.JavaScriptObject |
getJsObject()
Returns the javscript object. |
short |
getShort(int index)
|
java.lang.String |
getString(int index)
Returns a property value. |
int |
size()
Returns the size of the array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject jsArray
| Constructor Detail |
|---|
public JsArray()
| Method Detail |
|---|
public static com.google.gwt.core.client.JavaScriptObject eval(java.lang.String code)
public void add(boolean value)
value - the value to addpublic void add(byte value)
value - the value to addpublic void add(char value)
value - the value to addpublic void add(double value)
value - the value to addpublic void add(float value)
value - the value to addpublic void add(int value)
value - the value to addpublic void add(com.google.gwt.core.client.JavaScriptObject object)
object - the object to addpublic void add(java.lang.Object value)
public void add(short value)
value - the value to addpublic void add(java.lang.String value)
value - the value to addpublic java.lang.Object get(int index)
index - the index
public boolean getBoolean(int index)
public byte getByte(int index)
public char getChar(int index)
public double getDouble(int index)
public float getFloat(int index)
public int getInt(int index)
index - the index
public com.google.gwt.core.client.JavaScriptObject getJsObject()
JsWrapper
getJsObject in interface JsWrapperpublic short getShort(int index)
public java.lang.String getString(int index)
index - the index
public int size()
protected com.google.gwt.core.client.JavaScriptObject create()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||