ie
canvas.addGestureStartHandler(new GestureStartHandler() { public void onGestureStart(GestureStartEvent event) { event.preventDefault(); } });
to
canvas.addGestureStartHandler [ preventDefault ]
If you don't know the API for 'GestureStartEvent', you might spend 30 secs looking through the class to find the preventDefault class method. Meanwhile in the java code it is annoying to write, but it is extremely obvious to anybody coming in later about what it does, etc.
I do like it though, and I think I'll give it a try for my next small project.
On Wednesday, August 22, 2012 8:25:41 PM UTC+2, Sven Efftinge wrote:
Hi all,--Xtend (xtend-lang.org) is a "better Java" which gets compiled to readable Java code.The language is very Java-like but comes with less boilerplate and adds modern features like lambda expressions, operator overloading, etc.. Unlike Groovy it is still statically typed (including generics, etc.) and comes with advanced IDE support (in Eclipse). I think Xtend is a perfect fit for the asynchronous and event-based programming model of GWT.I've written a blog post on: http://blog.efftinge.de/2012/08/gwt-programming-with-xtend. html What do you think?Cheers,Sven
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/feIj0q233i4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment