It looks like a design problem .
Le jeudi 26 mars 2015 11:35:42 UTC+1, Anton Mityagin a écrit :
-- But if you really want to continue in this way , start by reading :
http://www.gwtproject.org/javadoc/latest/com/google/gwt/place/shared/PlaceChangeEvent.html
http://www.gwtproject.org/javadoc/latest/com/google/gwt/place/shared/PlaceChangeEvent.Handler.html
http://www.gwtproject.org/javadoc/latest/com/google/gwt/place/shared/PlaceChangeRequestEvent.html
http://www.gwtproject.org/javadoc/latest/com/google/gwt/place/shared/PlaceChangeRequestEvent.Handler.html
Regards
Le jeudi 26 mars 2015 11:35:42 UTC+1, Anton Mityagin a écrit :
HiThere is need to filter some places in onPlaceChangeRequest in ActivityManager to prevent call mayStop of currentActivity.for example, I have ListEditActivity where I can edit list items. This activity managed by ActivityManager this CachingActivityMapper and FilteredActivityMapper.Also I have ListSelectionItemPlace which indicates currently selected item in the listAfter a list item has been edited and selected another item in the list, there is an attempt to change the place to ListSelectionItemPlaceand fired event PlaceChangeRequestEvent. Handler onPlaceChangeRequest in ActivityManager calls mayStop method of ListEditActivity it is returns some messagebecause item has been edited.I need to ignore such places change, but I cannot to do it.method mayStop has no any parameters.Handle PlaceChangeRequestEvent in ListEditActivity gets no result because event handler is still called in ActivityManager before.I can subclass ActivityManager for ListEditActivity and override onPlaceChangeRequest method, but I have no access to currentActivity to ask it ignor or not this call.Have any ideas?
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/d/optout.
No comments:
Post a Comment