org.sgx.j2s.js
Class NativeWrapper
java.lang.Object
org.sgx.j2s.js.NativeWrapper
- Direct Known Subclasses:
- YUINativeWrapper
public class NativeWrapper
- extends java.lang.Object
Field Summary |
protected java.lang.Object |
_data
native object wrapped into this java object |
protected static java.lang.Object[] |
_EMPTYPARAMS
|
Method Summary |
protected java.lang.Object |
_call(java.lang.String name,
java.lang.Object[] params)
apply this. |
protected java.lang.Object |
_get(java.lang.String name)
|
java.lang.Object |
_getData()
|
static NativeWrapper |
create(java.lang.Object _data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_EMPTYPARAMS
protected static java.lang.Object[] _EMPTYPARAMS
_data
protected java.lang.Object _data
- native object wrapped into this java object
NativeWrapper
public NativeWrapper()
create
public static NativeWrapper create(java.lang.Object _data)
_get
protected java.lang.Object _get(java.lang.String name)
_call
protected java.lang.Object _call(java.lang.String name,
java.lang.Object[] params)
- apply this._data[name] javascript function to this context passing params
native parameter array, Java objects like java.lang.Boolean, Object[],
org.sgx.j2s.js.NativeWrapper willl be converted to their javascript native
object equivalent. @see org.sgx.j2s.js.JsUtils.NATIVE(Object)
_getData
public java.lang.Object _getData()