Add support for horizontal alignment in the LayoutList columns.
authorBen Konrath <ben@bagu.org>
Mon, 7 Mar 2011 15:36:48 +0000 (16:36 +0100)
committerBen Konrath <ben@bagu.org>
Mon, 7 Mar 2011 15:36:48 +0000 (16:36 +0100)
commit7a3bfdc81f80df873ebff30735926308c0cbeb24
tree3d10fe35a19f4efb0e3d29d170fddd9ffe943dd8
parent5fb7960412ae626e7355ad8021a2f67282394bfa
Add support for horizontal alignment in the LayoutList columns.

* TODO: Remove item about horizontal alignment. Add item about
improvements to ColumnInfo.
* src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
alignment on the columns. Use ColumnInfo RPC object get the column
title and horizontal alignment.
* src/main/java/org/glom/web/client/OnlineGlom.java: Update
LayoutListView creation with ColumnInfo RPC object.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
a ColumnInfo object for every LayoutList columnn. Convert the
FieldFormatting.HorizontalAlignment to the correct
ColumnnInfo.HorizontatlAlignment with the new
getColumnInfoHorizontalAlignment helper method.
* src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
to encapsulate column information like alignment and title. This
could be used to set the colour instead of on a per cell field basis.
* src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
column title storage and retrieval with ColumnInfo.
ChangeLog
TODO
src/main/java/org/glom/web/client/LayoutListView.java
src/main/java/org/glom/web/client/OnlineGlom.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/java/org/glom/web/shared/ColumnInfo.java [new file with mode: 0644]
src/main/java/org/glom/web/shared/LayoutListTable.java