|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.legacy.client.core.js.JsArray
public class JsArray
Wraps a native javascript array.
| 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(JavaScriptObject object)
Adds a native javascript object to the array. |
void |
add(Object value)
|
void |
add(short value)
Adds a short value to the array. |
void |
add(String value)
Adds a string value to the array. |
static JavaScriptObject |
eval(String code)
|
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. |
JavaScriptObject |
getJsObject()
Returns the javscript object. |
short |
getShort(int index)
|
String |
getString(int index)
Returns a property value. |
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 |
|---|
public JsArray()
| Method Detail |
|---|
public static JavaScriptObject eval(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(JavaScriptObject object)
object - the object to addpublic void add(Object value)
public void add(short value)
value - the value to addpublic void add(String value)
value - the value to addpublic 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 JavaScriptObject getJsObject()
JsWrapper
getJsObject in interface JsWrapperpublic short getShort(int index)
public String getString(int index)
index - the index
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||