In Listing 11, the abstract base class implements an interface AsyncCallback.
在清单11中,抽象类实现AsyncCallback接口。
As I probably mentioned before, you'll frequently see AsyncCallback classes defined as anonymous inner classes.
我以前可能提到过,您将经常看到定义为匿名内部类的asynccallback类。
They all have an AsyncCallback that allows GWT to invoke the callback once the server-side implementation of the interface finishes processing the request made to it.
它们都拥有一个AsyncCallback,这使GWT能够在接口服务器端实现处理完收到的请求后,调用回调函数。
Every method of the main interface has a matching entry in the asynchronous interface, but with a return type of void and an additional argument of class AsyncCallback.
主接口的每种方法在异步接口中都有相匹配的条目,但是附带了void返回类型和asynccallback类的附加参数。
For each method in your original interface, the asynchronous version must have a matching method with the return type changed to void and an additional parameter of type AsyncCallback.
对于初始接口中的每个方法,异步版本必须有一个返回类型更改为void的匹配方法和一个asynccallback类型的附加参数。
For each method in your original interface, the asynchronous version must have a matching method with the return type changed to void and an additional parameter of type AsyncCallback.
对于初始接口中的每个方法,异步版本必须有一个返回类型更改为void的匹配方法和一个asynccallback类型的附加参数。
应用推荐