try also GQuery for GWT. This is Java code:
public void onModuleLoad() {
$("div").css("color", "red").click(new Function() {
public void f(Element e) {
Window.alert("Hello");
$(e).as(Effects).fadeOut();
}
});
}
Being Java code resulting in somewhat expensive compile-time (Java->JavaScript) optimizations and easier refactoring.
Nice, it isn't?