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