Use Presenter for app navigation.
authorBen Konrath <ben@bagu.org>
Fri, 6 May 2011 14:25:41 +0000 (16:25 +0200)
committerBen Konrath <ben@bagu.org>
Fri, 6 May 2011 14:25:41 +0000 (16:25 +0200)
commit2a3025c8337577ea6d187fd0839f493813e3f6e1
treed927b86fcfee757aa2376e68f194d57a244a1632
parent2bf8b83c9e69f286b1a2c188885a1163f1fd96f2
Use Presenter for app navigation.

This is the proper way to deal with Place (URL) changes with the MVP
framework.

* src/main/java/org/glom/web/client/ClientFactory.java:
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
PlaceHistoryMapper and PlaceHistoryHandler.
* src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
PlaceHistoryMapper and PlaceHistoryHandler.
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
Add Presenter interface and setPresenter methods. Rename addHyperLink
to addDocumentLink taking only the document title as a parameter.
ChangeLog
src/main/java/org/glom/web/client/ClientFactory.java
src/main/java/org/glom/web/client/ClientFactoryImpl.java
src/main/java/org/glom/web/client/OnlineGlom.java
src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java