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

2013-12-30 Thread Michael Prentice
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,

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

2013-12-27 Thread Michael Prentice
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 do

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

2012-02-10 Thread Bong Munoz
As Jens suggested overriding AbstractCell#handlesSelection to handle revoking a selection works. I used this to revoke a selection in a CellTree. Thanks Jens. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the

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

2012-01-31 Thread Thomas Broyer
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). See also (for

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

2012-01-30 Thread Jens
I think you have to manage the selection in your CellTable by hand based on the place (you dont want to change the place based on SelectionModel changes). Never done it before (and maybe it doesn't work) but I think would create a custom cell that overwrites AbstractCell.handlesSelection() to r

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

2012-01-30 Thread Vincent Fazio
I have a GWT two column display. The left column contains a CellTable with a list of users in the application. When the user selects an user from the list, the right column displays the selected users details - which the user can edit. I have my Activity wired up to use the mayStop() method so tha