/**
* Display an alert when any row is clicked
*/
public GridRowDecorator getRowDecorator() {
return new GridRowDecorator() {
public void decorate(Element element, Object rowValue, int rowIndex) {
Item item = (Item) rowValue;
String script = String.format("alert('value=%s, rowIndex=%s')", item.value, rowIndex);
element.attribute("onclick", script);
}