This is a simple GWT application using addClickHandler, addChangeHandler and Integrated Google Analytics.
Demo - http://gwtexample.appspot.com/ - This application demo is deployed on the Google App Engine. SVN Source - http://code.google.com/p/gwt-examples/source/browse/#svn/trunk/gwt_handler_example/src/com/gawkat/gwt/example_handler/client%3Fstate%3Dclosed Notes: (check out the svn source for more code) I really like the new event system. This simple example only uses a small potential of the event system. Its much easier to observe events. It was harder to understand at first, but its much easier to understand once learned. Its well worth the change from listeners! Something to note if you want to fire a change event. private void fireChange() { NativeEvent nativeEvent = Document.get().createChangeEvent(); ChangeEvent.fireNativeEvent(nativeEvent, this); } Instead of adding listeners you register handlers. /** * when firing a change event, this handler is used */ public HandlerRegistration addChangeHandler(ChangeHandler handler) { return addDomHandler(handler, ChangeEvent.getType()); } /** * allows for observing click events on the entire widget */ public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---