Enable the CellTable Pager when more than 20 rows need to be viewed.
authorBen Konrath <ben@bagu.org>
Fri, 18 Feb 2011 15:02:34 +0000 (16:02 +0100)
committerBen Konrath <ben@bagu.org>
Fri, 18 Feb 2011 15:02:34 +0000 (16:02 +0100)
commit7b5e1cbc595266bf9631f9718c4534db565f1c9e
tree9a121e0026ea85c480a79dd1cf07cba9794a07da
parent186564f18995d28150c8382a6cce64b0706b7662
Enable the CellTable Pager when more than 20 rows need to be viewed.

The Pager will automatically become active when the results are larger
than the CellTable size which is currently set to 20 lines.

* src/main/java/org/glom/web/client/LayoutListView.java: Correct class
name on debug statment in RPC call in LayoutListDataProvider, add
numRows parameter to LayoutListView constructor, propperly set rowCount
in CellTable.
* src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
name on debug statment in RPC call, use LayoutListTable object in RPC
calls, pass rowCount to LayoutListView.
* src/main/java/org/glom/web/client/OnlineGlomService.java: Change
getLayoutListHeaders to getLayoutListTable and return LayoutListTable
object.
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
interface for changes in OnlineGlomService.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
getLayoutListHeaders() to getLayoutListTable() and return
LayoutListTable. Using this object allows me to pass other information
about the LayoutList like the expected number of rows in the result set.
The Connection object from the connection pool is now propperly closed.
Only the requested number of lines are returned to the client in
getTableData().
* src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
GlomTable and add columnTitles and numRows.
ChangeLog
src/main/java/org/glom/web/client/LayoutListView.java
src/main/java/org/glom/web/client/OnlineGlom.java
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
src/main/java/org/glom/web/shared/GlomTable.java [deleted file]
src/main/java/org/glom/web/shared/LayoutListTable.java [new file with mode: 0644]