Monday, December 30, 2013

Re: Capturing “Cancel” selection from GWT Activity.mayStop() response

I've detailed my solution here: http://stackoverflow.com/a/20848504/633107

It uses both the AbstractCell#handlesSelection override suggested by Jens and the CellPreviewEvent.Handler suggested by Thomas.

Thank you!

Michael Prentice
GDG Space Coast

On Friday, December 27, 2013 3:17:22 PM UTC-5, Michael Prentice wrote:
I'm running into this same situation today when using a DataGrid (each row mapping to a Place). I think that I'll try out the SelectionModel approach and try to set the selection myself on place changes.

I think that Thomas was trying to refer to this StackOverflow question as the one posted doesn't seem to be related:


On Tuesday, January 31, 2012 7:06:59 AM UTC-5, Thomas Broyer wrote:
With a CellTable, you can also use a CellPreviewEvent.Handler instead of a custom cell (or you can use a custom SelectionModel that won't update from methods called by the CellTable, and you'll update it "manually" using another specific method, in response to a PlaceChangeEvent).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment