Make ListViewTable and RelatedListTable a consistent height.
authorBen Konrath <ben@bagu.org>
Thu, 1 Dec 2011 12:02:55 +0000 (13:02 +0100)
committerBen Konrath <ben@bagu.org>
Thu, 1 Dec 2011 12:02:55 +0000 (13:02 +0100)
commit077af553d5ade348c6e1bec404327498bd8449b3
treeb6636cdd442da1a54cff577aee0561bf11e5dfe8
parent5983cdf89784ebfd8a5ca3a339edb2eb20193bf3
Make ListViewTable and RelatedListTable a consistent height.

The tables are now a consistent height regardless of the contents of
the table. A hidden button is added to empty rows to ensure that the
height of these rows will match the height of rows with data.

A navigation button column is now added to every table. The width of
the navigation column is set to 0px when a RelatedListTable shouldn't
have navigation buttons. This maintains the a consistent row height in
tables that don't show the navigation buttons.

* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
navigation column when not needed.
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
arguments for navigation button to constructor of ListViewTable.
* src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
hidden button for empty data rows.
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
arguments for navigation button to constructor.
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
create navigation buttons. Add hideNavigationButtons() method.
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
arguments for navigation button to constructor.
ChangeLog
src/main/java/org/glom/web/client/activity/DetailsActivity.java
src/main/java/org/glom/web/client/ui/ListViewImpl.java
src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java
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