Add support for colour text and colour backgrounds to the layout list cells.
authorBen Konrath <ben@bagu.org>
Thu, 3 Mar 2011 09:05:19 +0000 (10:05 +0100)
committerBen Konrath <ben@bagu.org>
Thu, 3 Mar 2011 09:05:19 +0000 (10:05 +0100)
commit74c5662a9aaa3a2f51045e5d1fa022339827c362
tree62fb1699de1b6a91b59b6691064d564208748a60
parent97e0b91a83235dfa42dabfc891a2e7340143411e
Add support for colour text and colour backgrounds to the layout list cells.

Only the cell backgrounds are coloured which leaves a gap between the
cells that isn't coloured. I need to figure out a way to set
'style=background-colour:' on the whole column rather than just the
cell.

* TODO: Add a note about colouring the background of the whole column.
* src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
render the coloured text and backgrounds. Use GlomField[] for the row type.
* src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
for the row type.
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
GlomField[] for the row type.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
GlomField[] for the row type. Set the text, text colour and background
colour in the GlomField objects as specified in the glom document. Add
method to convert from Gdk::Color to HTML colour string. Cleanup comments.
* src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
the glom field text, foreground colour and background colour.
TODO
src/main/java/org/glom/web/client/LayoutListView.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/GlomField.java [new file with mode: 0644]