Add more TODO information about CellTable pager positioning.
[online-glom:gwt-glom.git] / TODO
1 Here's a list of TODO items / ideas in no particular order.
2
3
4 Improvements to LayoutListView:
5
6 * Implement column width size as specified in the glom file.
7
8 * Add support for LayoutItem_Text, LayoutItem_Button and LayoutItem_Image items.
9
10 * Make width of the CellTable used for the LayoutList consistent between the
11   tables so that the UI doesn't appear to jump around. One way to do this is to
12   find the width of the largest table and enlarge the column widths
13   proportionally in the smaller tables. Of course this will not respect the
14   column widths specified in the glom file. Another option is to pad the smaller
15   tables with empty columns at the end so that the line under the headers extends to
16   the end of the largest table. Some experimentation is required to see which option
17   is the best.
18
19 * Only the cell backgrounds are coloured which leaves a gap between the cells that
20   isn't coloured. I need to figure out a way to set 'style=background-colour:'
21   on the whole column rather than just the cell.
22
23 * Use ColumnInfo rpc object to send text background and foreground colours
24   instead of sending this information for each cell.
25
26 * Position the pager on the right side of the CellTable. Since the CellTable is
27   not a consistent horizontal size, the pager bounces around when switching and
28   doesn't look nice. A possible solution is to put the CellTable into a
29   container widget that adds a horizontal scrollbar if the horizontal table
30   size is larger than the browser window. Another possible solution is to
31   expand the right most column to fill all of the available space. That will
32   allow the pager to placed at the right most position of the hbox without
33   bouncing around. More investigation is required. See the layoutlistview-tweaks
34   branch for an implementation of some these ideas.
35
36 * When you click on the next button in a table with a large number of rows, the
37   CellTable collapses then re-expands when retrieving the data. You can see an
38   example of this with the Songs table in the Music Collection example. It
39   would be nice if the pager didn't appear to jump around when making the RPC
40   requests to get more data.
41
42 Improvements to LayoutDetailsView:
43
44 * This hasn't been started yet.
45
46
47 Currency formatting:
48
49 * The default Java currency formatting uses the currency symbol (€, $, etc) for
50   the currency used in the specified country and the currency code (EUR, USD,
51   etc) for currencies used outside of the specified country. For example, when
52   using en_CA (English Canada) with CAD (Canadian Dollars), the number 5.89 is
53   represented as "$5.89". With EUR, the same number is represented as "EUR5.89"
54   which is not what is expected. We should get either "€5.89" or "EUR 5.89".
55   Obviously Java is just replacing the currency symbol with the currency code for
56   currencies outside of the specified country. This might be a bug in Java which
57   should be reported to the openjdk project if required. Regardless if it's a bug
58   or not, it should be possible to work around this by using custom formatting
59   strings when we implement a preference for setting locale.
60
61
62 Servlet:
63
64 * Test memory usage before and after we execute the query that would result in
65   a large ResultSet.  We need to ensure that the JDBC driver is in fact
66   returning a cursor based result set that has a low memory footprint. Check
67   the difference between this value before and after the query:
68
69   Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()
70
71   See the TODO item about this in
72   src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java.
73
74 * Create a memory and time efficient way to get the row count. Right now the
75   ResultSet is not being returned in cursor mode because we're using
76   TYPE_SCROLL_INSENSITIVE to able to seek to the last record of the ResultSet.
77   The PostgreSQL JDBC driver doesn't support moving around in the ResultSet
78   when in cursor mode.  Here's the relevant PostgreSQL documentation:
79
80   http://jdbc.postgresql.org/documentation/83/query.html#query-with-cursor
81
82   An option might be to do a SELECT COUNT query using a method in libglom or a
83   custom method in java-libglom to build the query.
84
85   See: https://bugzilla.gnome.org/show_bug.cgi?id=645110