|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.util.Util
public class Util
Various utility functions.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static int |
constrain(int value,
int min,
int max)
Constrains the value by a min and max value. |
static Component[] |
createArray(java.util.List list)
Creates a Component[] from a list of Component's. |
static java.util.List |
createList(java.lang.Object... element)
Creates a new list and adds the element(s). |
static void |
fill(java.util.List list,
java.lang.Object[] elements)
Populates a list with an array of elements. |
static com.google.gwt.core.client.JavaScriptObject |
getJsObject(ModelData model)
Returns the model's data as a javascript object. |
static int |
indexOf(java.lang.Object[] elements,
java.lang.Object elem)
Returns the index of a object in an array. |
static boolean |
isImagePath(java.lang.String style)
Returns true if the style ends with .jpg, .gif, or .png. |
static boolean |
isInteger(java.lang.String value)
Tests if the value is an integer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static int constrain(int value,
int min,
int max)
value - the valuemin - the minimummax - the maximum
public static Component[] createArray(java.util.List list)
list - the list
public static java.util.List createList(java.lang.Object... element)
element - the item to add to the list
public static void fill(java.util.List list,
java.lang.Object[] elements)
list - the listelements - the elements to be added to the listpublic static com.google.gwt.core.client.JavaScriptObject getJsObject(ModelData model)
model - the model
public static int indexOf(java.lang.Object[] elements,
java.lang.Object elem)
elements - the arrayelem - the elemnt
public static boolean isImagePath(java.lang.String style)
style - the style
public static boolean isInteger(java.lang.String value)
value - the value to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||