public class GenericJavaScriptObject
extends com.google.gwt.core.client.JavaScriptObject
JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
GenericJavaScriptObject()
Needed for GWT injection
|
Modifier and Type | Method and Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
protected boolean |
contains(java.lang.String key)
Returns true if this object contains the specified element.
|
||||||||||||||||
protected boolean |
getBoolean(java.lang.String key)
Returns the element (boolean) stored in this object at specific key.
|
||||||||||||||||
protected double |
getDouble(java.lang.String key)
Returns the element (double) stored in this object at specific key.
|
||||||||||||||||
protected JsDoubleArrayList |
getDoubleArray(java.lang.String key)
Returns an array list (doubles) from the JavaScript object.
|
||||||||||||||||
protected int |
getInt(java.lang.String key)
Returns the element (int) stored in this object at specific key.
|
||||||||||||||||
protected JsIntegerArrayList |
getIntegerArray(java.lang.String key)
Returns an array list (integers) from the JavaScript object.
|
||||||||||||||||
protected com.google.gwt.core.client.JavaScriptObject |
getJavaScriptObject(java.lang.String key)
Returns the element (javaScript object instance) stored in this object at specific key.
|
||||||||||||||||
protected <T extends GenericJavaScriptObject> |
getObjectArray(java.lang.String key)
Returns an array list (generic JavaScript objects) from the JavaScript object.
|
||||||||||||||||
protected java.lang.String |
getString(java.lang.String key)
Returns the element (string) stored in this object at specific key.
|
||||||||||||||||
protected JsStringArrayList |
getStringArray(java.lang.String key)
Returns an array list (strings) from the JavaScript object.
|
||||||||||||||||
protected boolean |
isArray(java.lang.String key)
Returns true if this object is an array.
For further information, refer to this JavaScript documentation: https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray |
||||||||||||||||
protected boolean |
isEmpty()
Returns true if this object contains no elements.
|
||||||||||||||||
protected java.lang.String[] |
keys()
Returns the list of elements names of the object.
|
||||||||||||||||
protected void |
remove(java.lang.String key)
Removes the occurrence of the specified element from this object by its property name, if it is present.
|
||||||||||||||||
protected void |
setBoolean(java.lang.String key,
boolean value)
Sets an element (boolean) in this object by key.
|
||||||||||||||||
protected void |
setDouble(java.lang.String key,
double value)
Sets an element (double) in this object by key.
|
||||||||||||||||
protected void |
setDoubleArray(java.lang.String key,
JsDoubleArrayList list)
Stores an array list (doubles) into the JavaScript object.
|
||||||||||||||||
protected void |
setInt(java.lang.String key,
int value)
Sets an element (int) in this object by key.
|
||||||||||||||||
protected void |
setIntegerArray(java.lang.String key,
JsIntegerArrayList list)
Stores an array list (integers) into the JavaScript object.
|
||||||||||||||||
protected void |
setJavaScriptObject(java.lang.String key,
com.google.gwt.core.client.JavaScriptObject value)
Sets an element (javaScript object instance) in this object by key.
|
||||||||||||||||
protected <T extends GenericJavaScriptObject> |
setObjectArray(java.lang.String key,
JsObjectArrayList<T> list)
Stores an array list (generic JavaScript objects) into the JavaScript object.
|
||||||||||||||||
protected void |
setString(java.lang.String key,
java.lang.String value)
Sets an element (string) in this object by key.
|
||||||||||||||||
protected void |
setStringArray(java.lang.String key,
JsStringArrayList list)
Stores an array list (strings) into the JavaScript object.
|
||||||||||||||||
protected int |
size()
Returns the number of elements in this object.
|
||||||||||||||||
java.lang.String |
toJSON()
Returns a JSON representation of this object.
|
||||||||||||||||
protected java.lang.String |
typeOf(java.lang.String key)
Returns the type of element in this object.
|