public class Callbacks extends Object
AsyncCallback and our various callback-related helper
classes.| Constructor and Description |
|---|
Callbacks() |
| Modifier and Type | Method and Description |
|---|---|
static <T> AsyncCallback<T> |
before(AsyncCallback<T> target,
Function<T,Void> preOp)
Creates a chained callback that calls the supplied pre-operation before passing the result
on to the supplied target callback.
|
static <T> AsyncCallback<T> |
disabler(AsyncCallback<T> callback,
HasEnabled... disablees)
Immediately disables the specified widgets, and wraps the supplied callback in one that will
reenable those widgets when the callback returns successfully or with failure.
|
static <T,P> AsyncCallback<T> |
map(AsyncCallback<P> target,
Function<T,P> f)
Creates a chained callback that maps the result using the supplied function and passes the
mapped result to the target callback.
|
public static <T,P> AsyncCallback<T> map(AsyncCallback<P> target, Function<T,P> f)
public static <T> AsyncCallback<T> before(AsyncCallback<T> target, Function<T,Void> preOp)
public static <T> AsyncCallback<T> disabler(AsyncCallback<T> callback, HasEnabled... disablees)
Copyright © 2013. All Rights Reserved.