In the activity, a place with information is launched, but the mapper (CachingActivityMapper) needs to put other information, then I tried this code in the Mapper:
this.eventBus.addHandler( PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler() {
@Override
public void onPlaceChange( PlaceChangeEvent event ) {
Place newPlace = event.getNewPlace();
if ( newPlace instanceof PlaceTrace ) {
((PlaceTrace)newPlace).setPosition( CachingCenterActivityMapper.getKeyPosition() );
}
}
} );
Any suggestions?
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/-/2nJFN_3V4BIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment