Use a LayoutPanel with multiple display areas for main layout.
authorBen Konrath <ben@bagu.org>
Thu, 12 May 2011 16:06:20 +0000 (18:06 +0200)
committerBen Konrath <ben@bagu.org>
Thu, 12 May 2011 16:06:20 +0000 (18:06 +0200)
commit8c56e90cdd33bce7d0a0a185ccee14c729c41aad
tree2ecf008e0885b3a01d8c9eaf39ee1c4e0b7b14e5
parent76005bdbb5ea769a96dfb702adb35db3df244575
Use a LayoutPanel with multiple display areas for main layout.

This is mostly a refactor in that there are no changes from the user
point of view. These changes are required so that we can swap out the list view
with the details view when the user clicks the "Details" button.

* src/main/java/org/glom/web/client/ClientFactory.java:
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
OnlineGlomView. Add TableSelectionView, ListView and
AuthenticationPopup.
* src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
for main layout. Add display regions for main activities. Add
activity manager for for main activities.
* src/main/java/org/glom/web/client/activity/ListActivity.java: New
file from parts of the deleted OnlineGlomActivity.
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
New file from parts of the deleted OnlineGlomActivity.
* src/main/java/org/glom/web/client/event/TableChangeEvent.java:
* src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
New files for app wide table change event.
* src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
* src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
* src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
Activity mappers for the main activities replace the deleted app-wide
AppActivityMapper.
* src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
Fix a spelling error in he comment.
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/ListViewImpl.java:
Renamed from LayoutListView and modified for MVP. This still not a
proper dumb view as prescribed by the MVP pattern but it works for now.
* src/main/java/org/glom/web/client/ui/TableSelectionView.java:
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
New widget stripped out of the deleted OnlineGlomView.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Remove hack that is fixed by this patch.
22 files changed:
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/ListActivity.java [new file with mode: 0644]
src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java [deleted file]
src/main/java/org/glom/web/client/activity/TableSelectionActivity.java [new file with mode: 0644]
src/main/java/org/glom/web/client/event/TableChangeEvent.java [new file with mode: 0644]
src/main/java/org/glom/web/client/event/TableChangeEventHandler.java [new file with mode: 0644]
src/main/java/org/glom/web/client/mvp/AppActivityMapper.java [deleted file]
src/main/java/org/glom/web/client/mvp/DataActivityMapper.java [new file with mode: 0644]
src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java [new file with mode: 0644]
src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java [new file with mode: 0644]
src/main/java/org/glom/web/client/ui/AuthenticationPopup.java
src/main/java/org/glom/web/client/ui/LayoutListView.java [deleted file]
src/main/java/org/glom/web/client/ui/ListView.java [new file with mode: 0644]
src/main/java/org/glom/web/client/ui/ListViewImpl.java [new file with mode: 0644]
src/main/java/org/glom/web/client/ui/OnlineGlomView.java [deleted file]
src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java [deleted file]
src/main/java/org/glom/web/client/ui/TableSelectionView.java [new file with mode: 0644]
src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java [new file with mode: 0644]
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java