Improve performance of initial ListView load.
authorBen Konrath <ben@bagu.org>
Thu, 19 May 2011 14:39:31 +0000 (16:39 +0200)
committerBen Konrath <ben@bagu.org>
Thu, 19 May 2011 14:39:31 +0000 (16:39 +0200)
commit78b1f2611f962752fab07d8a400e9433fd9c43ce
tree3f0df95d0fc4b0bcd06fbbf0695662448309f597
parentafd43416f2f21b26ba4a5a5416ed0ab67c944ace
Improve performance of initial ListView load.

I removed a round trip to the server for getting the default table name
and then requesting information about that table. This also removes a potential
problem with the table change handler not being setup in time to receive the
table change event from the ListActivity.

* src/main/java/org/glom/web/client/OnlineGlomService.java:
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
getDefaultLayoutListTable() method. Improve comments.
* src/main/java/org/glom/web/client/activity/ListActivity.java: Use
getDefaultLayoutListTable() method instead of firing a table change
event to get the table to load.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
implementation of getDefaultLayoutListTable() method.
* src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
table name.
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/server/OnlineGlomServiceImpl.java
src/main/java/org/glom/web/shared/LayoutListTable.java