Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
authorBen Konrath <ben@bagu.org>
Fri, 24 Jun 2011 09:31:09 +0000 (11:31 +0200)
committerBen Konrath <ben@bagu.org>
Fri, 24 Jun 2011 09:31:09 +0000 (11:31 +0200)
commit4ecd3e0dbbd2d3399b68b5e06583a309d11b4702
treeb5da2544c3a37834e466fe3d3c57a29ff9dcc9f7
parent5b8af45cff780997bf240ef7631474abe058060b
Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.

This allows the primary key to be retrieved by the Details button. This
functionality has not been implemented yet but it's in the works.

* src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
the LayoutGroup result to ListView.setCellTable instead of all of its
fields individually.
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
get the primary key for the table.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
index of the primary key in the LayoutGroup accounting for hidden
primary keys. Rename getJavaNumberFormat() to
convertToJavaNumberFormat() for consistency. Cleanup / add some
comments.
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
field for primary key index and a field to indicate whether the
primary key is hidden or not.
ChangeLog
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/layout/LayoutGroup.java