ggeorg / gwt-mosaic

Automatically exported from code.google.com/p/gwt-mosaic
1 stars 0 forks source link

Is there any plan to implement DefaultColumnDefinition.setHorizontalAlignment()? #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a LiveTable
2. Create DefaultTableDefinition for the LiveTable.
3. Add columns(by extending DefaultColumnDefinition) to
DefaultTableDefinition.  Set the horizontal alignment on the columns.

What is the expected output? What do you see instead?

Alignment setting for the column is not honored.  All columns seem to be
aligned to the left.

What version of the product are you using? On what operating system?

gwt-mosaic-0.3.0-rc1 and gwt-1.7 on Linux(Fedora 9)

Please provide any additional information below.

When I looked at the source file DefaultColumnDefinition.java(in gwt-mosaic
source distribution,) the method setHorizontalAlignment has not yet been
implemented.

By the way, gwt-mosaic is great.  Thanks for the good work!

Original issue reported on code.google.com by maso...@gmail.com on 4 Dec 2009 at 1:44

GoogleCodeExporter commented 9 years ago
I found a way to get around this problem.  I am defining my own implementation 
of
CellRenderer interface for the columns.  I can align the columns by invoking
setHorizontalAlignment() in the AbstractCellView object passed to the
renderRowValue() method in CellRenderer.

Original comment by maso...@gmail.com on 8 Dec 2009 at 3:53

GoogleCodeExporter commented 9 years ago
Hi,

have a look also at the code for PagingScrollTable2 demo:

http://code.google.com/p/gwt-mosaic/source/browse/branches/GWT-1.7/src/org/gwt/m
osaic/showcase/client/content/tables/CwPagingScrollTable2.java

(demo: 
http://69.20.122.77/gwt-mosaic-current/Showcase.html#CwPagingScrollTable2)

Thanks,
George.

Original comment by georgopo...@gmail.com on 8 Dec 2009 at 6:26

GoogleCodeExporter commented 9 years ago
George,
    Thanks for the prompt reply.  I looked at PagingScrollTable2 and decided to use
it instead of LiveTable since LiveTable was very slow.

Original comment by maso...@gmail.com on 15 Dec 2009 at 3:40