I finally got around to playing with Google Wave (wave me: email@example.com) and decided to build my own extension. Things got somewhat complex, so I made this into a multi-part tutorial. We are going to develop a gadget for Google Wave (in case you don’t have an invite yet, drop me a line) using Google Web Toolkit and wire it up to a robot that lives on the App Engine cloud.
In this part, we are going to develop a simple collaborative gadget that lives on a wave. You should be familiar with Google Wave and have some experience in developing applications using Google Web Toolkit.
- Click here to download the entire Eclipse project including all source code and required libraries
- Add the following URL as a gadget to a Google wave to see the gadget in action: http://pretty.latest.wavelistgadgetgwt.appspot.com/wavelistgadgetgwt/com.thezukunft.tutorials.client.WaveListGadgetGWT.gadget.xml
- If you’re on the wave sandbox, click here to join a public test wave
I just learned how to make custom widgets EventHandler-aware so that you can add EventHandlers to them. It turned out to be a little tricky so I thought I’d share that :) To make it more interesting, I’ll also make use of UiBinder and develop a particularly useful widget. The EditableLabel widget. It consists of a label, that becomes editable when clicked and can have attached ValueChangeHandlers (which a Label usually doesn’t have). For this tutorial I used GWT 2.0.