请看这篇官方的介绍,里面有js将java的方法作为回调函数进行调用的示例。
http://code.google.com/intl/zh-CN/webtoolkit/doc/1.6/FAQ_Client.html