Easiest way would be to define a doEdit(String data) method in your 
presenter interface (or in an extra "delegate" interface) and pass the 
presenter/the delegate interface to your view (via setData or an extra 
method)

setData would then do something like:

final String data = data.get(i);
Button editButton = new Button("Edit");
editButton.addClickHandler(new ClickHandler() { delegate.doEdit(data); });
contentsTable.setWidget(i, 1, editButton);

So you are basically forwarding your click events to the 
presenter/delegate. 

-- 
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.

Reply via email to