|
||||||||||
| 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.JsUtil
public class JsUtil
JavaScript related methods.
| Constructor Summary | |
|---|---|
JsUtil()
|
|
| Method Summary | ||
|---|---|---|
static JavaScriptObject |
eval(String code)
Creates a new javascript object from the JSON text. |
|
static boolean |
isInteger(String value)
Returns true if the value is a integer. |
|
static
|
subList(List<X> list,
int start,
int end)
Returns a section of the given list. |
|
static Element[] |
toElementArray(JavaScriptObject jsArray)
Converts a native javascript array to an element array. |
|
static JavaScriptObject |
toJavaScriptArray(Object[] array)
Converts a object array to a javascript array. |
|
static
|
toJavaScriptObject(Map<String,V> params)
Converts a map into a javascript object, setting all values as properties. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsUtil()
| Method Detail |
|---|
public static JavaScriptObject eval(String code)
code - the JSON text
public static boolean isInteger(String value)
true if the value is a integer.
value - the value to test
public static <X> List<X> subList(List<X> list,
int start,
int end)
list - the liststart - the start indexend - the end index
public static Element[] toElementArray(JavaScriptObject jsArray)
jsArray - the array to be converted
public static JavaScriptObject toJavaScriptArray(Object[] array)
array - the java array
public static <V> JavaScriptObject toJavaScriptObject(Map<String,V> params)
params - the parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||