Class CallbackProxy<T>
- java.lang.Object
-
- org.pepstock.charba.client.commons.CallbackProxy<T>
-
@JsType(isNative=true, namespace="<global>", name="CharbaCallbackProxy") public final class CallbackProxy<T> extends Object
This is a native object which wraps a java script object created byJsHelper
.
This object is used to get a proxy instance which is able to call a java script function passing alsothis
java script value, to maintain the environment when required.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CallbackProxy.Proxy
It's a java script function which maps the functionproxy
implemented in the additional java script source.
-
Constructor Summary
Constructors Constructor Description CallbackProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCallback()
Returns the functioncallback
implemented in the additional java script source.CallbackProxy.Proxy
getProxy()
Returns the functionproxy
implemented in the additional java script source.boolean
isIgnoreFunctionContext()
Returnstrue
if the functional context must be ignored as argument to pass to callback.void
setCallback(T callback)
Sets the functioncallback
implemented in the additional java script source.void
setIgnoreFunctionContext(boolean ignore)
Setstrue
if the functional context must be ignored as argument to pass to callback.
-
-
-
Method Detail
-
getProxy
@JsProperty public CallbackProxy.Proxy getProxy()
Returns the functionproxy
implemented in the additional java script source.- Returns:
- the proxy function
proxy
implemented in the additional java script source
-
getCallback
@JsProperty public T getCallback()
Returns the functioncallback
implemented in the additional java script source.- Returns:
- the function
callback
implemented in the additional java script source
-
setIgnoreFunctionContext
@JsProperty public void setIgnoreFunctionContext(boolean ignore)
Setstrue
if the functional context must be ignored as argument to pass to callback.- Parameters:
ignore
-true
if the functional context must be ignored as argument to pass to callback
-
isIgnoreFunctionContext
@JsProperty public boolean isIgnoreFunctionContext()
Returnstrue
if the functional context must be ignored as argument to pass to callback.- Returns:
true
if the functional context must be ignored as argument to pass to callback
-
setCallback
@JsProperty public void setCallback(T callback)
Sets the functioncallback
implemented in the additional java script source.- Parameters:
callback
- the functioncallback
implemented in the additional java script source
-
-