Display the correct number of data items in the pager.
authorBen Konrath <ben@bagu.org>
Wed, 26 Oct 2011 15:31:34 +0000 (17:31 +0200)
committerBen Konrath <ben@bagu.org>
Wed, 26 Oct 2011 15:32:23 +0000 (17:32 +0200)
commit3614364747bff9d02954bad404b485dc676b5814
tree39d2c42262f988bf8060d471598e0cda462e2ad7
parentd2abdb62eb13823ab545a37c58d01dcc607bb541
Display the correct number of data items in the pager.

This commit fixes:

https://bugzilla.gnome.org/show_bug.cgi?id=661441

* src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
The implementation is the same for both tables: Keep track of the
number of non-empty rows and fire and RowCountChangeEvent after the data has
been updated.
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
custom Pager class that subclasses SimplePager to handle displaying
the correct number when empty rows have been added.
ChangeLog
src/main/java/org/glom/web/client/ui/details/RelatedListTable.java
src/main/java/org/glom/web/client/ui/list/ListTable.java
src/main/java/org/glom/web/client/ui/list/ListViewTable.java