Package com.google.gwt.resources.client
Interface ResourceCallback<R extends ResourcePrototype>
- Type Parameters:
R- the type of resource
public interface ResourceCallback<R extends ResourcePrototype>
A callback interface for asynchronous operations on resources.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked if the asynchronous operation failed.voidInvoked if the asynchronous operation was successfully completed.
-
Method Details
-
onError
Invoked if the asynchronous operation failed.- Parameters:
e- an exception describing the failure
-
onSuccess
Invoked if the asynchronous operation was successfully completed.- Parameters:
resource- the resource on which the operation was performed
-