Add a "Back to List" link when at the DetailsPlace.
authorBen Konrath <ben@bagu.org>
Thu, 19 May 2011 13:49:43 +0000 (15:49 +0200)
committerBen Konrath <ben@bagu.org>
Thu, 19 May 2011 13:49:43 +0000 (15:49 +0200)
commit71c3651fed8b2645a093b28c5d42f50453370286
tree4433ded90b7622fdd4005342464e269cf99262ee
parentcc7c5e28ec44476e36296678a2809fa25514a864
Add a "Back to List" link when at the DetailsPlace.

* src/main/java/org/glom/web/client/activity/ListActivity.java:
Populate the CellTable based on the selected table of the ListBox if
it's set otherwise use the default table. This allows the "Back to
List" link to work.
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
Remove Place from constructors. Add a setPlace() method. Add
goToPlace() method. Set class as presenter for TableSelectionView.
* src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
Use the same TableSelectionActivity when switching between the List and
Details Places.
* src/main/java/org/glom/web/client/place/DetailsPlace.java:
Subclass the new HasSelectableTablePlace. This removes some duplicate
code.
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
New class to represent Places that display the TableSelectionView.
* src/main/java/org/glom/web/client/place/ListPlace.java:
Subclass the new HasSelectableTablePlace. This removes some duplicate
code.
* src/main/java/org/glom/web/client/ui/TableSelectionView.java:
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Add Presenter interface. Add setBackLinkVisible() method. Add
setBackLink() method.
ChangeLog
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/mvp/TableSelectionActivityMapper.java
src/main/java/org/glom/web/client/place/DetailsPlace.java
src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java [new file with mode: 0644]
src/main/java/org/glom/web/client/place/ListPlace.java
src/main/java/org/glom/web/client/ui/TableSelectionView.java
src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java