Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
authorBen Konrath <ben@bagu.org>
Tue, 21 Jun 2011 13:27:58 +0000 (15:27 +0200)
committerBen Konrath <ben@bagu.org>
Tue, 21 Jun 2011 13:27:58 +0000 (15:27 +0200)
commit5b4f6f7335830a7cd5a0917e56ae5fc509850345
treee7849a91f1cfc021d37fa7798cf2b1a8788948e7
parent3252eb7408a565227fde41139c106e8d12341796
Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.

This makes things more inline with how libglom works and reduces code
duplication. This refactor lays the groundwork for adding the primary key to
the LayoutGroup object.

* src/main/java/org/glom/web/client/OnlineGlomService.java:
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Change method names to getListLayout and getDefaultListLayout for
consistency. Use LayoutGroup as the DTO for the list layout instead of
ColumnInfo and LayoutListTable.
* src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
new method names along with the LayoutGroup object for transferring the
list layout.
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/ListViewImpl.java:
Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
* src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
with LayoutGroup.
* src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
Replaced with LayoutGroup.
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
expectedResultSize and defaultTableName fields which are needed for
the list layout.
* src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
type field which is needed for the list layout but will also be
useful for the details layout as things progress.
* src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
Make class abstract. Remove the unnecessary
getFormattingHorizontalAlignment method. Add setFormatting method.
12 files changed:
ChangeLog
src/main/java/org/glom/web/client/OnlineGlomService.java
src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
src/main/java/org/glom/web/client/activity/ListActivity.java
src/main/java/org/glom/web/client/ui/ListView.java
src/main/java/org/glom/web/client/ui/ListViewImpl.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/java/org/glom/web/shared/ColumnInfo.java [deleted file]
src/main/java/org/glom/web/shared/LayoutListTable.java [deleted file]
src/main/java/org/glom/web/shared/layout/LayoutGroup.java
src/main/java/org/glom/web/shared/layout/LayoutItemField.java
src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java