One thing I've found that has been working really well for me is the 
following (And this way you don't have to do a lot of extending of classes).

I had a need for all my Columns to have Rightclick ability, so I wrote a 
ContextMenuCellDelegate, which takes a Cell and delegates all methods except 
consumesEvents() which I override to use my one Set<String> which has all 
the Strings of the column + contextmenu.

Then I extended column to do the same basic thing, delegating all methods to 
Column in my constructor with the exception of getCell() and onBrowserEvent

My ContextColumnDelegate delegates the onbrowser to the column then it 
checks to see if the event is of type "contextmenu" and if it is, it fires 
off the ColumnBrowserEventDelegate method that is also is passed in through 
the constructor. This allows me to use all the current functionality of 
existing columns without having to extend every one to add right click 
event. 

-- 
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/-/m9LtH7nsd_gJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to