@JsType(isNative=true, namespace="<global>", name="CharbaCallbackProxy") public final class CallbackProxy<T> extends Object
JsHelper
.this
java script value, to maintain the environment when
required.Modifier and Type | Class and Description |
---|---|
static interface |
CallbackProxy.Proxy
It's a java script function which maps the function
proxy implemented in the additional java script source. |
Constructor and Description |
---|
CallbackProxy() |
Modifier and Type | Method and Description |
---|---|
T |
getCallback()
Returns the function
callback implemented in the additional java script source. |
CallbackProxy.Proxy |
getProxy()
Returns the function
proxy implemented in the additional java script source. |
boolean |
isIgnoreFunctionContext()
Returns
true if the functional context must be ignored as argument to pass to callback. |
void |
setCallback(T callback)
Sets the function
callback implemented in the additional java script source. |
void |
setIgnoreFunctionContext(boolean ignore)
Sets
true if the functional context must be ignored as argument to pass to callback. |
@JsProperty public CallbackProxy.Proxy getProxy()
proxy
implemented in the additional java script source.proxy
implemented in the additional java script source@JsProperty public T getCallback()
callback
implemented in the additional java script source.callback
implemented in the additional java script source@JsProperty public void setIgnoreFunctionContext(boolean ignore)
true
if the functional context must be ignored as argument to pass to callback.ignore
- true
if the functional context must be ignored as argument to pass to callback@JsProperty public boolean isIgnoreFunctionContext()
true
if the functional context must be ignored as argument to pass to callback.true
if the functional context must be ignored as argument to pass to callback@JsProperty public void setCallback(T callback)
callback
implemented in the additional java script source.callback
- the function callback
implemented in the additional java script source