Move the *View::Presenter types, and some API into one base View.
authorMurray Cumming <murrayc@murrayc.com>
Mon, 2 Jan 2012 20:40:11 +0000 (21:40 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 2 Jan 2012 20:40:11 +0000 (21:40 +0100)
commit7628b732cb90cbc6d5635420a75568504e8b3655
treef4b5e919dd5dd9f3625859572af123ea9f2365a9
parent62ade1de5d9c396839480bc55662d31b1127df9c
Move the *View::Presenter types, and some API into one base View.

* src/main/java/org/glom/web/client/ui/DetailsView.java:
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
Presenter, setPresenter() and clear() into a shared base interface,
to avoid the unnecessary duplicate Presenter types and to more clearly
show how the *Views share the same structure, even if they are not
used polymorphically.

* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
va:
* src/main/java/org/glom/web/client/activity/DetailsActivity.java:
* src/main/java/org/glom/web/client/activity/ListActivity.java:
* src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
ity.java:
* src/main/java/org/glom/web/client/activity/TableSelectionActivity
.java: Adapt.

Feel free to revert this if there is a good reason for the duplicate
types.
12 files changed:
ChangeLog
src/main/java/org/glom/web/client/activity/DetailsActivity.java
src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
src/main/java/org/glom/web/client/activity/ListActivity.java
src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
src/main/java/org/glom/web/client/ui/DetailsView.java
src/main/java/org/glom/web/client/ui/DetailsViewImpl.java
src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java
src/main/java/org/glom/web/client/ui/ListView.java
src/main/java/org/glom/web/client/ui/TableSelectionView.java
src/main/java/org/glom/web/client/ui/View.java [new file with mode: 0644]