|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
An opaque handle to a native JavaScript object. A
JavaScriptObject
cannot be created directly.
JavaScriptObject
should be declared as the return type of a
JSNI method that returns native (non-Java) objects. A
JavaScriptObject
passed back into JSNI from Java becomes the
original object, and can be accessed in JavaScript as expected.
SUBCLASSING IS NOT SUPPORTED EXCEPT FOR THE EXISTING SUBCLASSES.
Field Summary | |
protected java.lang.Object |
hostedModeReference
The underlying JavaScript object. |
Constructor Summary | |
protected |
JavaScriptObject()
Not directly instantiable. |
Method Summary | |
static JavaScriptObject |
createArray()
Returns a new array. |
static JavaScriptObject |
createFunction()
Returns an empty function. |
static JavaScriptObject |
createObject()
Returns a new object. |
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object hostedModeReference
Constructor Detail |
protected JavaScriptObject()
Method Detail |
public static JavaScriptObject createArray()
public static JavaScriptObject createFunction()
public static JavaScriptObject createObject()
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |