Indicate clearly that a mismatched primary key type is a bug.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-12-02  Ben Konrath  <ben@bagu.org>
2
3         Indicate clearly that a mismatched primary key type is a bug.
4
5         * src/main/java/org/glom/web/server/Utils.java: Change log level from
6         warning to error. Add 'This is a bug.' to message.
7
8 2011-12-02  Ben Konrath  <ben@bagu.org>
9
10         Update / fix some comments.
11
12         * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
13         comments.
14         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
15         comment.
16         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
17         Fix comments. Add some TODOs.
18
19 2011-12-02  Ben Konrath  <ben@bagu.org>
20
21         Enable navigation to details view with string primary key from related list.
22
23         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
24         Create a text primary key value when return type of result is
25         java.sql.Types.VARCHAR.
26
27 2011-12-02  Ben Konrath  <ben@bagu.org>
28
29         Use checkboxes for booleans in the details view.
30
31         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
32
33 2011-12-01  Ben Konrath  <ben@bagu.org>
34
35         Improve performance of related list height calculation.
36
37         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
38         Put code to calculate the expected height in a static initializer so
39         that that it's only called once.
40
41 2011-12-01  Ben Konrath  <ben@bagu.org>
42
43         Show related list tables in notebooks (again).
44
45         Calculate the height of the related list tables so the Notebook can be
46         set the correct height. The height of the related list table is also needed by
47         FlowTable to be able decide how to create the layout.
48
49         * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
50         and set the Portal height based on the height of the related list
51         table and the Portal container.
52         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
53         Add method to calculate the height of the related list tables.
54         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
55         * src/main/webapp/style.css: Add css class for Pager. This is needed to
56         calculate the height of the Pager widget.
57
58 2011-12-01  Ben Konrath  <ben@bagu.org>
59
60         Use CellTable API for table property instead of setting style on Element.
61
62         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
63
64 2011-12-01  Ben Konrath  <ben@bagu.org>
65
66         Make ListViewTable and RelatedListTable a consistent height.
67
68         The tables are now a consistent height regardless of the contents of
69         the table. A hidden button is added to empty rows to ensure that the
70         height of these rows will match the height of rows with data.
71
72         A navigation button column is now added to every table. The width of
73         the navigation column is set to 0px when a RelatedListTable shouldn't
74         have navigation buttons. This maintains the a consistent row height in
75         tables that don't show the navigation buttons.
76
77         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
78         navigation column when not needed.
79         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
80         arguments for navigation button to constructor of ListViewTable.
81         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
82         hidden button for empty data rows.
83         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
84         arguments for navigation button to constructor.
85         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
86         create navigation buttons. Add hideNavigationButtons() method.
87         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
88         arguments for navigation button to constructor.
89
90 2011-12-01  Ben Konrath  <ben@bagu.org>
91
92         Use 'visibility: hidden' in Utils.getWidgetHeight().
93
94         This is better choice because hidden elements are invisible, don't
95         respond to events and are not part of the tab order. They will,
96         however, take up space which is required to be able to calculate the
97         height of the widget.
98
99         * src/main/java/org/glom/web/client/Utils.java:
100
101 2011-12-01  Ben Konrath  <ben@bagu.org>
102
103         Use Utils.getWidgetHeight() in FlowTable.
104
105         * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
106         this.
107         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
108
109 2011-12-01  Ben Konrath  <ben@bagu.org>
110
111         Put the details css class name on the correct table column.
112
113         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
114
115 2011-11-30  Ben Konrath  <ben@bagu.org>
116
117         Update for java-libglom API change.
118
119         The getters and setters on FieldFormatting and NumericFormat were
120         changed to remove the 'M'.
121
122         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
123
124 2011-11-29  Ben Konrath  <ben@bagu.org>
125
126         Only allow RelatedListTables in Portals.
127
128         * src/main/java/org/glom/web/client/ui/details/Portal.java:
129
130 2011-11-29  Ben Konrath  <ben@bagu.org>
131
132         Only create a contents panel for Portals when title is being set.
133
134         * src/main/java/org/glom/web/client/ui/details/Portal.java:
135
136 2011-11-29  Ben Konrath  <ben@bagu.org>
137
138         Set TabLayoutPanel height based on calculated height its widgets.
139
140         This is a potential fix for this bug:
141
142         https://bugzilla.gnome.org/show_bug.cgi?id=665133
143
144         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
145
146 2011-11-29  Ben Konrath  <ben@bagu.org>
147
148         Align details field labels and data with the Open buttons.
149
150         * src/main/webapp/style.css:
151
152 2011-11-29  Ben Konrath  <ben@bagu.org>
153
154         Remove unnecessary <div> in the Notebook widget.
155
156         * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
157         method to get container FlowPanel (<div>).
158         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
159         initWidget() method directly on the TabLayoutPanel widget instead of
160         Group's container widget.
161
162 2011-11-29  Ben Konrath  <ben@bagu.org>
163
164         Don't add group titles for Portals in Notebooks.
165
166         This reverts the previous patch and fixes a bug I introduced with
167         commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
168
169         * src/main/java/org/glom/web/client/ui/details/Group.java:
170         * src/main/java/org/glom/web/client/ui/details/Portal.java:
171
172 2011-11-28  Ben Konrath  <ben@bagu.org>
173
174         Remove unused boolean argument in Portal constructor.
175
176         Just a code cleanup.
177
178         * src/main/java/org/glom/web/client/ui/details/Group.java:
179         * src/main/java/org/glom/web/client/ui/details/Portal.java:
180
181 2011-11-28  Ben Konrath  <ben@bagu.org>
182
183         Remove hack for glom 1.18 style glom files.
184
185         * src/main/java/org/glom/web/client/ui/details/Group.java:
186         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
187         * src/main/java/org/glom/web/client/ui/details/Portal.java:
188
189 2011-11-28  Ben Konrath  <ben@bagu.org>
190
191         Use Gda Value version of primary key to log result too large error.
192
193         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
194
195 2011-11-28  Ben Konrath  <ben@bagu.org>
196
197         Don't use TypedDataItem.getText() for Unknown types from the URL.
198
199         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
200         * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
201         instead of getText().
202         * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
203         String field and getUnknown() method.
204
205 2011-11-28  Ben Konrath  <ben@bagu.org>
206
207         Log an error message when the java-libglom .so is not present.
208
209         The error message was being set in the exception but not logged.
210
211         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
212
213 2011-11-28  Ben Konrath  <ben@bagu.org>
214
215         Ignore LayoutItem_CalendarPortals.
216
217         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
218         create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
219
220 2011-11-28  Ben Konrath  <ben@bagu.org>
221
222         Extract method for creating the LayoutItemPortal DTO.
223
224         Just breaking the code up into smaller chunks.
225
226         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
227
228 2011-11-28  Ben Konrath  <ben@bagu.org>
229
230         Add TypedDataItem.
231
232         This should have been added with the refactor. Oops!
233
234         * src/main/java/org/glom/web/shared/TypedDataItem.java:
235
236 2011-11-28  Ben Konrath  <ben@bagu.org>
237
238         Create primary key value from URL string using type from Glom document.
239
240         See this bug, comments 19 - 25:
241
242         https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
243
244         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
245         create a TypeDataItem for the primary key here when loading from a
246         URL. Show the same string for the primary key value as was received
247         from the URL string (when loading from a URL).
248         * src/main/java/org/glom/web/server/Utils.java: Update method for
249         creating the Gda Value from the TypeDataItem to properly deal with
250         creating a Gda Value based on the Glom document type for the primary
251         key value string when loading from a URL.
252         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
253         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
254         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
255         Update for changed method name.
256
257 2011-11-27  Ben Konrath  <ben@bagu.org>
258
259         Rename PrimaryKeyItem to TypedDataItem.
260
261         The name PrimaryKeyItem suggests what the class should be used for.
262         TypedDataItem is a neutral name that describes the class better.
263
264         This is a rename-only refactor.
265
266         * src/main/java/org/glom/web/client/OnlineGlomService.java:
267         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
268         * src/main/java/org/glom/web/client/Utils.java:
269         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
270         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
271         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
272         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
273         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
274         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
275         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
276         * src/main/java/org/glom/web/server/Utils.java:
277         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
278         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
279         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
280         * src/main/java/org/glom/web/shared/NavigationRecord.java:
281
282 2011-11-25  Ben Konrath  <ben@bagu.org>
283
284         Improve Gda Value conversion from PrimaryKeyItem.
285
286         The value from the PrimaryKeyItem is only used if its type match the
287         type from the glom document.
288
289         * src/main/java/org/glom/web/server/Utils.java:
290
291 2011-11-25  Ben Konrath  <ben@bagu.org>
292
293         Manually check if the java-liblgom .so is visible to the JVM.
294
295         It seems that Tomcat has problems when a static initializer throws an
296         exception. This check is done before the first method call into
297         java-libglom so that execution doesn't continue if the .so is not
298         found.
299
300         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
301
302 2011-11-25  Ben Konrath  <ben@bagu.org>
303
304         Improve browser configuration error messages.
305
306         This fixes:
307
308         https://bugzilla.gnome.org/show_bug.cgi?id=662792
309
310         * src/main/java/org/glom/web/client/OnlineGlomService.java:
311         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
312         getConfigurationErrorMessage() method.
313         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
314         Get and display a specific configuration error message when no Glom
315         documents are found.
316         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
317         Implement getConfigurationErrorMessage() method. Surround configuration
318         code in the init() method with a try/catch block. This allows the
319         errors to be caught while keeping the servlet available to retrieve the
320         configuration error message.
321
322 2011-11-25  Ben Konrath  <ben@bagu.org>
323
324         Don't use Strings to hold primary key values.
325
326         The primary key values are now held in a new data object
327         (PrimaryKeyItem) that holds type information and the primary key value
328         using the correct type.
329
330         * src/main/java/org/glom/web/client/OnlineGlomService.java:
331         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
332         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
333         PrimaryKeyItem instead of String to hold the primary key value.
334         * src/main/java/org/glom/web/client/Utils.java: Remove
335         getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
336         PrimaryKeyItem based on the GlomFieldType and the DataItem.
337         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
338         PrimaryKeyItem instead of String to hold the primary key value. Load
339         document selection page when the documentID has not been set correctly.
340         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
341         DetailsPlace -> URL and URL -> DetailsPlace conversion with
342         PrimaryKeyItem.
343         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
344         Return empty string for URL instead of "null".
345         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
346         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
347         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
348         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
349         PrimaryKeyItem instead of String to hold primary key values.
350         * src/main/java/org/glom/web/server/Utils.java: New method to convert a
351         PrimaryKeyValue to a Gda Value.
352         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
353         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
354         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
355         Replace temporary database access code that uses the PrimaryKeyValue to
356         Gda Value conversion.
357         * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
358         * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
359         PrimaryKeyItem instead of String.
360         * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
361         hold primary key values.
362
363 2011-11-24  Ben Konrath  <ben@bagu.org>
364
365         Use newly added java-libglom API to create queries.
366
367         This isn't finished. I still need to stop using Strings for primary key
368         values in the client code.
369
370         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
371         libglom to use fake connections so that retrieving the query string will
372         work.
373         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
374         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
375         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
376         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
377         Use the newly added libglom sql methods and classes to create the
378         query. Add temporary hack to convert primary value strings to Gda
379         Value.
380
381 2011-11-23  Ben Konrath  <ben@bagu.org>
382
383         Don't explicitly set the height of Portals.
384
385         See comments 6 - 10 of this bug for details:
386
387         https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
388
389         * src/main/java/org/glom/web/client/ui/details/Portal.java:
390
391 2011-11-23  Ben Konrath  <ben@bagu.org>
392
393         Use an HTML table instead of CSS for the FlowTable layout.
394
395         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
396         GWT's FlexTable to implement the FlowTable.
397         * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
398
399 2011-11-18  Ben Konrath  <ben@bagu.org>
400
401         Add boolean example to HTML table mockup.
402
403         * mockups/details-view-html-tables-text-entries.html:
404
405 2011-11-17  Ben Konrath  <ben@bagu.org>
406
407         Ensure the pager buttons are always visible for related lists.
408
409         To accomplish this, I've turned off text wrapping in the list view and
410         related list tables for both the header and data text. The related list
411         table now has a fixed layout so the it doesn't overflow its container.
412         This is required to ensure that the cell text is clipped when it
413         overflows the cell and an ellipsis is added to the right side of the
414         cell when text is clipped.
415
416         A fixed table layout for the related list table in the details view
417         seems what we want for the details view anyway, so the side-effect is
418         desirable.
419
420         The ellipsis will only be displayed in Firefox >= 7.
421
422         This fixes bug:
423
424         https://bugzilla.gnome.org/show_bug.cgi?id=662930
425
426         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
427         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
428         'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
429         cell text.
430         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
431         Set the 'table-layout: fixed' CSS property to the related list table.
432         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
433         'white-space: nowrap;' CSS property on both the list view and the
434         related list tables.
435
436 2011-11-16  Ben Konrath  <ben@bagu.org>
437
438         Rework the fix for empty notebook tab labels.
439
440         Setting the empty group titles with its name caused problems for the
441         details layout. Instead of using libglom's
442         LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
443         to the client when the title is empty. This allows the Notebook to use
444         the name when the title is empty without affecting anything else.
445
446         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
447         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
448
449 2011-11-16  Ben Konrath  <ben@bagu.org>
450
451         Set group titles with name when title is empty.
452
453         This fixes a problem with an empty notebook tab label in the Lesson
454         Planner document. The forth tab in the notebook should be "Internet":
455
456         http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
457
458         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
459         libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
460         DTO title.
461
462 2011-11-16  Ben Konrath  <ben@bagu.org>
463
464         Remove whitespace from the configured username properties.
465
466         This assumes that usernames won't have whitespace at the beginning
467         or end. But I think this is a reasonable assumption.
468
469         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
470         String.trim() to remove the whitespace from the username properties.
471
472 2011-11-15  Ben Konrath  <ben@bagu.org>
473
474         Add details view mockup with HTML tables and text entries.
475
476         This is from the attachment on this bug:
477
478         https://bugzilla.gnome.org/show_bug.cgi?id=663109
479
480         * mockups/details-view-html-tables-text-entries.html:
481
482 2011-11-15  Ben Konrath  <ben@bagu.org>
483
484         Add space between the columns of the flow table.
485
486         This fixes:
487
488         https://bugzilla.gnome.org/show_bug.cgi?id=662918
489
490         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
491         space between columns in the flow table.
492
493 2011-11-15  Ben Konrath  <ben@bagu.org>
494
495         Add backup files to the .gitignore.
496
497         * .gitignore: Ignore files that end with ~.
498
499 2011-11-09  Ben Konrath  <ben@bagu.org>
500
501         Use latest release of gwt-log.
502
503         Gwt-log releases are now being submitted to the maven central
504         repository so manual installation of the jar is no longer required.
505
506         * pom.xml: Update version and groupId of gwt-log dependency.
507
508 2011-10-31  Ben Konrath  <ben@bagu.org>
509
510         Don't use GWT numeric formatting to override the glom currency formatting.
511
512         Currencies are now displayed like they are in Glom. See this bug:
513
514         https://bugzilla.gnome.org/show_bug.cgi?id=646216
515
516         * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
517         formatting.
518         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
519         currency code to constructor and set it when the cell is rendered.
520         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
521         currency code to the constructor of the NumericCell.
522
523 2011-10-27  Ben Konrath  <ben@bagu.org>
524
525         Require the latest release of java-libglom (1.17.4).
526
527         * pom.xml:
528
529 2011-10-26  Ben Konrath  <ben@bagu.org>
530
531         Add style to Notebook that matches current theme.
532
533         It's not the best style in the world but it's better than the default.
534
535         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
536         padding at the bottom of the child widgets.
537         * src/main/webapp/style.css: Add style for the Notebook.
538
539 2011-10-26  Ben Konrath  <ben@bagu.org>
540
541         Move servlet initialization code to overridden init method.
542
543         This is half of the solution to getting proper error messages
544         displayed when configuration errors occur. Here's the relevant bug:
545
546         https://bugzilla.gnome.org/show_bug.cgi?id=662792
547
548         The rest of the solution involves surrounding the init method with a
549         try/catch block and setting a global variable with the error /
550         exception. A new async method should be created to retrieve and display
551         the error message / exception.
552
553         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
554         code from constructor to init method adding exceptions as needed.
555
556 2011-10-26  Ben Konrath  <ben@bagu.org>
557
558         Add script to monitor and restart tomcat if required.
559
560         * utils/check-and-recover-tomcat.py: New file.
561
562 2011-10-26  Ben Konrath  <ben@bagu.org>
563
564         Display the correct number of data items in the pager.
565
566         This commit fixes:
567
568         https://bugzilla.gnome.org/show_bug.cgi?id=661441
569
570         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
571         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
572         The implementation is the same for both tables: Keep track of the
573         number of non-empty rows and fire and RowCountChangeEvent after the data has
574         been updated.
575         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
576         custom Pager class that subclasses SimplePager to handle displaying
577         the correct number when empty rows have been added.
578
579 2011-10-26  Ben Konrath  <ben@bagu.org>
580
581         Correct error in previous commit.
582
583         * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
584         eventBus parameter from listView.setCellTable().
585
586 2011-10-26  Ben Konrath  <ben@bagu.org>
587
588         Fix error in TODO comment.
589
590         * src/main/java/org/glom/web/client/activity/ListActivity.java:
591
592 2011-10-24  Ben Konrath  <ben@bagu.org>
593
594         Create Notebook widgets to the details view.
595
596         This isn't finished just yet - I still need to create a reasonable
597         style to match the current theme.
598
599         * src/main/java/org/glom/web/client/Utils.java: Add method for
600         calculating the height of a widget. This is used in the Notebook class.
601         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
602         new constructor method in Group.
603         * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
604         method for creating child widget that can be used by subclasses
605         like Notebook. New constructor that allows disabling the group
606         titles - Notebooks don't set a group title for their child groups.
607         * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
608         to make Notebooks using GWT's TabLayoutPanel.
609         * src/main/java/org/glom/web/client/ui/details/Portal.java: New
610         constructor that allows disabling the group titles.
611         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
612         LayoutItemNotebook DTO.
613         * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
614         DTO for Notebooks. It's just an empty class for now but we might need
615         it to transfer some specific information in the future.
616
617 2011-10-21  Ben Konrath  <ben@bagu.org>
618
619         Add navigation buttons to related list tables.
620
621         * src/main/java/org/glom/web/client/OnlineGlomService.java:
622         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
623         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
624         method getSuitableRecordToViewDetails() for getting the table name
625         and primary key value for related list navigation buttons.
626         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
627         private cell renderer class to get the navigation information for
628         related list tables from the server. Extract the navigation
629         processing code from the details cell navigation and use it for the
630         related list navigation as well.
631         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
632         cell renderer class for the details open buttons. This was needed
633         because the related list navigation buttons and the list view
634         navigation buttons need to react differently when clicked.
635         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
636         the onEnterKeyDown() method because it's now overriden in the
637         subclasses that are specific to the related list tables and the list
638         view tables.
639         * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
640         the vertical size a little because the buttons add a bit of vertical
641         space to table. This is not a perfect solution because the vertical
642         size of with table fewer than 5 rows will be a little smaller.
643         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
644         changes in how navigation buttons are handled.
645         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
646         getSuitableRecordToViewDetails() using the new RelatedListNavigation
647         database access object.
648         * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
649         to find the portal for a given relationship name from
650         RelatedListDBAccess. Add method to find a primary key field for a
651         given table.
652         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
653         Move code to find the portal for a given relationship name to
654         DBAccess.
655         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
656         New file: database access object for getting the related list
657         navigation information (the table name and the primary key value).
658         * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
659         DTO for transferring a table name to navigate to and a primary key
660         value.
661         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
662         boolean and getter/setter to specifies if the related list should add
663         navigation buttons.
664
665 2011-10-24  Murray Cumming  <murrayc@murrayc.com>
666
667         Use the master branch of java-libglom
668
669         * pom.xml: Depend on java-libglom 1.19 instead.
670         
671         This is the master branch. See also the libglom-1-18 branch.
672
673 2011-10-11  Ben Konrath  <ben@bagu.org>
674
675         Enable the open navigation button when the data has been set.
676
677         This avoids having active buttons that don't do anything when the data
678         has not been set.
679
680         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
681
682 2011-10-11  Ben Konrath  <ben@bagu.org>
683
684         Use IsWidget interface for FlowTableItem.
685
686         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
687         FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
688
689 2011-10-11  Ben Konrath  <ben@bagu.org>
690
691         Remove GWT styling from open button in details view.
692
693         There are still some issues with how the details cell is arranged but
694         this should be made to match Glom 1.20. I'm going to leave fixing this
695         until I have Glom 1.20 up and running.
696
697         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
698         style name on open button.
699         * src/main/webapp/style.css: Move and edit details-navigation class.
700         Re-arrange some classes to make them appear in the same order as the
701         UI.
702
703 2011-10-07  Ben Konrath  <ben@bagu.org>
704
705         Update to GWT 2.4.0.
706
707         * .gitignore: Ignore new cache directory.
708         * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
709         * pom.xml: Change GWT and maven plugin to 2.4.0.
710         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
711         2.4.0.
712         * src/main/java/org/glom/web/client/ClientFactory.java:
713         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
714         * src/main/java/org/glom/web/client/OnlineGlom.java:
715         Update source for API changes.
716         * utils/build-onlineglom-war.sh: Remove cache directory before the
717         build.
718
719 2011-10-07  Ben Konrath  <ben@bagu.org>
720
721         Add navigation buttons in the details view.
722
723         This isn't finished but I thought I'd commit what I have as it's a
724         pretty good start. I still need to:
725
726         1. Change the style so that it fits better into the current theme
727         2. Adjust the details cell to expand as much as possible.
728
729         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
730         click handlers to navigation buttons in the DetailsCells. Create a
731         refreshData() method to get just the data from the server without the
732         layout.
733         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
734         Update the tableSelector and browser title when the table name
735         changes without using the tableSelector.
736         * src/main/java/org/glom/web/client/ui/DetailsView.java:
737         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
738         getDetailsCells() to getCells(). Update variable names.
739         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
740         method to set click handler on navigation button. Rename a few
741         variables. Add navigation buttons where needed.
742         * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
743         variables and methods.
744         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
745         navigation boolean and navigation table as required in the
746         LayoutItemField DTO.
747         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
748         variables for navigation along with getter/setter methods.
749
750 2011-10-07  Ben Konrath  <ben@bagu.org>
751
752         Rename Field to DetailsCell.
753
754         This is a refactor-only commit. No functionality has been added or
755         removed.
756
757         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
758         Update variable and method names.
759         * src/main/java/org/glom/web/client/ui/DetailsView.java:
760         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
761         variable and method names.
762         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
763         Renamed from Field.
764         * src/main/java/org/glom/web/client/ui/details/Group.java: Update
765         variable and method names.
766
767 2011-10-07  Ben Konrath  <ben@bagu.org>
768
769         Create separate methods for layout and data the details view.
770
771         This is a refactor-only commit. No functionality has been added or
772         removed.
773
774         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
775         private methods: setData(), createLayout().
776
777 2011-10-07  Ben Konrath  <ben@bagu.org>
778
779         Don't use TableSelectorImpl implementation details in TableSelectorActivity.
780
781         This is part of a change to get navigation buttons in the details view
782         but it should have been done this way from the start.
783
784         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
785         for method name change in TableSelectionView.
786         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
787         Create TableChangeEvent and set the browser title using the
788         TableSelectionView API.
789         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
790         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
791         Change getSelectedTable() to getSelectedTableName(). Add
792         getSelectedTableTitle().
793
794 2011-10-07  Ben Konrath  <ben@bagu.org>
795
796         Use primaryKeyValue naming convention in constructor of DetailsPlace.
797
798         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
799
800 2011-10-07  Ben Konrath  <ben@bagu.org>
801
802         Update TableChangeEvent to use newTableName naming convention.
803
804         This makes the class more consistent with GWT naming conventions.
805
806         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
807         Update for method name change in TableChangeEvent.
808         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
809         for method name change in TableChangeEvent.
810         * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
811         newTableName variable and getter method. Make toDebugString()
812         actually work.
813
814 2011-09-30  Ben Konrath  <ben@bagu.org>
815
816         Disable the pager in the list tables when the data row count is less than the minimum.
817
818         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
819         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
820
821 2011-09-30  Ben Konrath  <ben@bagu.org>
822
823         Add empty rows to the end of related list and list view tables.
824
825         I also extracted the cell rendering classes from the ListTable because
826         the code was becoming a little crazy with all the anonymous inner
827         classes. My plan is to use these cell rendering classes in the details
828         view as well so this refactor will be needed for that change.
829
830         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
831         set the row count in related list tables if the data has more rows
832         than the minimum number of rows visible.
833         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
834         row count in list view tables if the data has more rows than the
835         minimum number of rows visible.
836         * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
837         for rendering TYPE_BOOLEAN cells. The code was extracted from the
838         ListTable class.
839         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
840         for rendering TYPE_NUMERIC cells. The code was extracted from the
841         ListTable class.
842         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
843         class for rendering cells with buttons in list views. The code was
844         extracted from the ListTable class.
845         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
846         for rendering TYPE_TEXT cells. The code was extracted from the
847         ListTable class.
848         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
849         Add empty rows to the end of the data if required. Implement
850         ListTable.getMinNumVisibleRows().
851         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
852         cell renderer code to public classes. Return null in
853         Column.getValue() for empty rows. Add new abstract method:
854         getMinNumVisibleRows(). Move code to set the row count of the list view
855         table to ListViewImpl.
856         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
857         empty rows to the end of the data if required. Implement
858         ListTable.getMinNumVisibleRows().
859
860
861 2011-09-27  Ben Konrath  <ben@bagu.org>
862
863         Use GWT.log for client-side debugging statements.
864
865         These are optimized out when deployed so I should have used this method
866         in the first place. These statements will eventually be replaced with some sort
867         of notification in the browser.
868
869         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
870         * src/main/java/org/glom/web/client/activity/ListActivity.java:
871         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
872         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
873         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
874
875 2011-09-27  Ben Konrath  <ben@bagu.org>
876
877         Put tableselector on the right, back to list link on right.
878
879         The idea is that the table selector is acting like a label for the
880         currently displayed table so it should be placed below the document title. This
881         puts the table title in a similar position to where it is in Glom.
882
883         * mockups/details-contacts.html:
884         * mockups/details-projects.html:
885         * mockups/listview-contacts.html:
886         * mockups/listview-projects.html:
887         * mockups/style.css:
888         Update mockups to match how the interfaces currently look.
889         * src/main/webapp/style.css: Swap positions of backlink with the table
890         selector. Add some space on the left side of the table selector to
891         line things up with the document title.
892
893 2011-09-27  Ben Konrath  <ben@bagu.org>
894
895         Add field colouring to details view.
896
897         This change re-works how field colouring works. The colour formatting
898         information is now set to the client with the layout information instead of
899         with the data. This eliminates the need to send the same colour strings for
900         data in list view column when colour information is set.
901
902         In order to set an alternate colour for negative numeric values, the
903         number is now sent to client and formatted with the GWT NumberFormat class.
904
905         This change also fixes:
906
907         https://bugzilla.gnome.org/show_bug.cgi?id=659752
908
909         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
910         internationalization framework which is needed for client side numeric
911         formatting.
912         * src/main/java/org/glom/web/client/Utils.java: New file for some
913         client static utility methods.
914         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
915         the DataItem object to the Field class. Use a utility method to
916         create the foreignKeyValue string.
917         * src/main/java/org/glom/web/client/ui/details/Field.java: Set
918         alignment and text colours in the constructor. Add setData(DataItem)
919         method. Remove setText(String) method.
920         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
921         colour information to GlomTextCell. Create and use GlomNumberCell for
922         rendering numbers. Use utility method to get the string for the
923         primary key of the key provider. Re-work how the horizontal alignment
924         is set.
925         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
926         formatting to layout information. Methods for converting the libglom
927         formatting information were moved from DBAccess.
928         * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
929         numeric formatting (it's now done on the client side). Don't set text
930         colours in DataItem. Move libglom formatting conversion methods to
931         ConfiguredDocument.
932         * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
933         getters/setters for text colour information.
934         * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
935         for transferring the libglom NumericFormat information to the client.
936         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
937         and getters/setters for: GlomNumericFormat, background colour and
938         foreground colour strings.
939
940 2011-09-26  Ben Konrath  <ben@bagu.org>
941
942         Simplify code that iterates through the LayoutGroup.
943
944         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
945
946 2011-09-26  Ben Konrath  <ben@bagu.org>
947
948         Accept Eclipse formatting for OnlineGlomServiceAsync.
949
950         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
951
952 2011-09-26  Ben Konrath  <ben@bagu.org>
953
954         Don't use the ListDBAccess classes to get the primary key layout information.
955
956         This was causing a bug where the wrong index for the hidden primary key
957         was being sent to the client.
958
959         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
960         primary key while creating the LayoutGroup DTO. Create a
961         LayoutItemField DTO for hidden primary keys. Don't use the
962         RelatedListDBAccess because it was only used for getting the primary
963         key.
964         * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
965         access modifier from public to protected for getPrimaryKeyField() and
966         getPrimaryKeyLayoutItemField().
967         * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
968         abstract method getExpectedResultSize() because RelatedListDBAccess
969         doesn't have enough info to implement it.
970         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
971         Remove @Override for getExpectedResultSize().
972         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
973         Remove method getExpectedResultSize().
974
975 2011-09-23  Ben Konrath  <ben@bagu.org>
976
977         Log which layout (list or details) the ignored item is from.
978
979         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
980
981 2011-09-23  Ben Konrath  <ben@bagu.org>
982
983         Remove annotations that turn off code formatting in DataItem.
984
985         * src/main/java/org/glom/web/shared/DataItem.java:
986
987 2011-09-23  Ben Konrath  <ben@bagu.org>
988
989         Rename GlomField to DataItem and update associated methods.
990
991         This is a rename-only refactor. No functionality has been added or
992         removed.
993
994         * src/main/java/org/glom/web/client/OnlineGlomService.java:
995         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
996         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
997         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
998         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
999         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1000         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1001         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1002         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1003         * src/main/java/org/glom/web/server/database/DBAccess.java:
1004         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1005         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1006         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1007         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1008         * src/main/java/org/glom/web/shared/DataItem.java:
1009         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1010         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1011
1012 2011-09-23  Ben Konrath  <ben@bagu.org>
1013
1014         Rename GlomDocument to DocumentInfo and update associated methods.
1015
1016         This is a rename-only refactor. No functionality has been added or
1017         removed.
1018
1019         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1020         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1021         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1022         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1023         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1024         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1025         * src/main/java/org/glom/web/shared/DocumentInfo.java:
1026
1027 2011-09-20  Ben Konrath  <ben@bagu.org>
1028
1029         Require java-libglom 1.17.3.
1030
1031         This picks up the fix for the seg fault problem with the Scenes table
1032         in the Openismus Film Manager example.
1033
1034         * pom.xml:
1035
1036 2011-09-20  Ben Konrath  <ben@bagu.org>
1037
1038         Change the way sort clause is added for primary key when no sort clause is requested.
1039
1040         The primary key is now added to the LayoutFieldVector (fieldsToGet)
1041         before the sort clause is created. When a sort clause is not requested, the
1042         sort clause is created by finding the primary key in the LayoutFieldVector
1043         (fieldsToGet).
1044
1045         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1046
1047 2011-09-20  Ben Konrath  <ben@bagu.org>
1048
1049         Log error message if no documents are found in the configured directory.
1050
1051         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1052         Extract the glom file extension string to a private static final class
1053         variable (mostly as syntactic sugar). Accept a minor formatting change.
1054         * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1055         the example glom.document.directory configuration property to make it
1056         more clear that it can any directory, not just the home directory.
1057
1058 2011-09-18  Ben Konrath  <ben@bagu.org>
1059
1060         Add related lists to details view.
1061
1062         The related list table has support for paging and sorting just like the
1063         table in the list view.
1064
1065         * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1066         SQL queries for the related list tables.
1067         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1068         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1069         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1070         Rename getList methods to getListView and add comments. Remove
1071         getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1072         it being unused. Add methods: getDetailsLayoutAndData(),
1073         getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1074         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1075         Create the layout and set the data for the fields in one async call
1076         instead of two. Create related lists where appropriate.
1077         * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1078         for method name changes in OnlineGlomService.
1079         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1080         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1081         addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1082         visible UI objects.
1083         * src/main/java/org/glom/web/client/ui/ListView.java:
1084         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1085         tableName from setCellTable(). Create a ListViewTable instead of
1086         ListTable.
1087         * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1088         represent a data field in the details view.
1089         * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1090         from addDetailsCell() to Field class. Keep track of the Fields and
1091         Portals in the details view.
1092         * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1093         a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1094         and add a method to get it. Add method to set the contents of the
1095         portal.
1096         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1097         New class for related list tables. This class has the data provider
1098         for the related list table.
1099         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1100         abstract class which is the base class for the ListViewTable and the
1101         RelatedListTable.
1102         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1103         New class for list view tables. This class has the data provider for
1104         the list view table.
1105         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1106         methods for related list tables. Add more information to the
1107         LayoutItemField and LayoutItemPortal DTOs.
1108         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1109         Remove debugging print statement.
1110         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1111         Remove debugging print statements. Add primary key field to SQL count
1112         query.
1113         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1114         Remove unnecessary LayoutFieldVector parameter from
1115         getResultSizeOfSQLQuery() method.
1116         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1117         New class for related list table database access.
1118         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1119         class that is a wrapper DTO for details view layout and data.
1120         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1121         new 'fromField' string to this DTO.
1122         * src/main/webapp/style.css: Remove bottom margin and override top
1123         margin with 0em.
1124
1125 2011-09-15  Ben Konrath  <ben@bagu.org>
1126
1127         Breakup the OnlineGlomServiceImpl class to make it more manageable.
1128
1129         This sets things up to make it easier to add the data retrieval for
1130         related lists (portals). No user noticeable changes were made with
1131         this commit.
1132
1133         * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1134         class has the code to retrieve the layouts and access the
1135         database using the new database helper classes.
1136         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1137         Most of the functionality has been removed from this class. This
1138         class now represents the public interface for the client side
1139         code. It also deals with configuring the servlet and cleaning
1140         things up when the servlet is stopped.
1141         * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1142         of static methods into this utility class.
1143         * src/main/java/org/glom/web/server/database/DBAccess.java:
1144         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1145         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1146         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1147         These classes have the database retrieval code. The class hierarchy
1148         has been setup to make it easy to reuse code for similar
1149         functionality.
1150
1151 2011-09-06  Ben Konrath  <ben@bagu.org>
1152
1153         Create separate classes for list table code and the data provider.
1154
1155         As part of this refactor, I also split up the code a bit to make it
1156         more manageable.
1157
1158         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1159         table code to two new classes (below).
1160         * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1161         with code from ListViewImpl.
1162         * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1163         New file with code from ListViewImpl.
1164
1165 2011-09-06  Ben Konrath  <ben@bagu.org>
1166
1167         Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1168
1169         This fixes the LayoutItemPortal DTO to match the libglom layout object
1170         hierarchy.
1171
1172         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1173
1174 2011-09-01  Ben Konrath  <ben@bagu.org>
1175
1176         Set title of Portals in the Details View.
1177
1178         * pom.xml: Bump required version of java-libglom to 1.17.1.
1179         * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1180         widget creation to its own class. Add comments to constructor.
1181         * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1182         The code is mostly from the Group class with the title now set.
1183         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1184         title of Portal. Update some comments. Fix some code formatting.
1185
1186 2011-09-01  Ben Konrath  <ben@bagu.org>
1187
1188         Remove TODO comment for the flow table column width.
1189
1190         The flow table column width is working correctly and doesn't need to be
1191         changed. See this mailing list post for more info:
1192
1193         https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1194
1195         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1196
1197 2011-08-27  Ben Konrath  <ben@bagu.org>
1198
1199         Add document title (database name) to top of the browser page.
1200
1201         I added the document title to the TableSelecitonView but that will
1202         change if / when we add a view that doesn't require table selection.
1203
1204         * mockups/details-contacts.html:
1205         * mockups/details-projects.html:
1206         * mockups/listview-contacts.html:
1207         * mockups/listview-projects.html:
1208         * mockups/style.css: Add document title to mockups to keep things
1209         consistent.
1210         * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1211         sizes to account for the document title.
1212         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1213         Set the document title when it has been retrieved from the server.
1214         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1215         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1216         and implement setDocumentTitle(String) method.
1217         * src/main/webapp/style.css: Add ID for document title style.
1218
1219 2011-08-25  Ben Konrath  <ben@bagu.org>
1220
1221         Add NavigationType enum to LayoutItemPortal DTO.
1222
1223         This is the start of adding support for Portals to the Details View.
1224
1225         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1226         LayoutItem_Portal.navigation_type enum from libglom to
1227         LayoutItemPortal.NavigationType enum.
1228         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1229         NavigationType enum, field for storing the NavigationType and getter
1230         and setter methods.
1231
1232 2011-08-25  Ben Konrath  <ben@bagu.org>
1233
1234         Implement the flow table layout in the Details View.
1235
1236         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1237         FlowTable to Group to account for the renamed class.
1238         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1239         File. This is a container widget that implements the Glom details view
1240         flow table behaviour.
1241         * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1242         org/glom/web/client/ui/FlowTable.java.
1243         * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1244         so that the size of the subgroups are a closer match to the size of
1245         the Glom subgroups. This makes the flowtable layout match the layout
1246         in Glom for the Music Collection example file.
1247
1248 2011-08-16  Ben Konrath  <ben@bagu.org>
1249
1250         Create container element for LayoutItemPortal in Details View.
1251
1252         This will help me develop the layout for the FlowTable.
1253
1254         * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1255         fieldPanel variable to detailsCell.
1256
1257 2011-08-15  Ben Konrath  <ben@bagu.org>
1258
1259         Set the height of the data element in the Details View.
1260
1261         I changed the InlineLabels (text in a span element) to Labels (text in
1262         a div element) so that I could set the height of the details-data
1263         elements instead of the details-cell parent elements. This allows the
1264         the details-data element to display the correct height if style is
1265         applied that shows the height.
1266
1267         This change has the added benefit of allowing the order of the labels
1268         and data elements to be changed for right-to-left languages.
1269
1270         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1271         InlineLabels to Labels.
1272         * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1273         InlineLabels to Labels. Set the height of the data element.
1274         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1275         multiline text height in the Formatting DTO.
1276         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1277         for multiline height along with getter and setter methods.
1278         * src/main/webapp/style.css: Adjust style to account for the change
1279         from span elements to div elements in the details cell.
1280
1281 2011-08-15  Ben Konrath  <ben@bagu.org>
1282
1283         Make the List View appearance match the mockups.
1284
1285         It doesn't match exactly but it's much better than it was.
1286
1287         * mockups/listview-contacts.html: Remove unused css classes.
1288         * mockups/listview-projects.html: Remove unused css classes.
1289         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1290         rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1291         for mainPanel instead of VerticalPanel (table). Set style name on
1292         CellTable. Set style name on Details column. Right-align Details
1293         buttons.
1294         * src/main/webapp/style.css: Adjust properties to match the mockups.
1295
1296 2011-08-12  Ben Konrath  <ben@bagu.org>
1297
1298         Add better support for subgroups in the details view.
1299
1300         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1301         changed FlowTable constructor.
1302         * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1303         support for subgroups and subgroup-titles.
1304         * src/main/webapp/style.css: Add CSS class for subgroups and
1305         subgroup-titles.
1306
1307 2011-08-12  Ben Konrath  <ben@bagu.org>
1308
1309         Return the top level LayoutGroup title.
1310
1311         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1312
1313 2011-08-11  Ben Konrath  <ben@bagu.org>
1314
1315         Make the TableSelector header match the mockup.
1316
1317         * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1318         the layout panel. Properly lineup the table selection header with
1319         the list and details view.
1320         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1321         margin around the details view.
1322         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1323         Rename listBox variable to tableSelector. Set id for the style sheet.
1324         Use a FlowPanel instead of a HorizontalPanel.
1325         * src/main/webapp/style.css: Add properties to make the TableSelector
1326         box match the mockups.
1327
1328 2011-07-13  Ben Konrath  <ben@bagu.org>
1329
1330         Update install script for java-libglom version change.
1331
1332         * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1333         java-libglom fails.
1334
1335 2011-07-13  Ben Konrath  <ben@bagu.org>
1336
1337         Add support sub-group in the details view.
1338
1339         I also removed the code that special-cased the default details view
1340         layout. See:
1341
1342         http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1343
1344         I still have to make a proper flowtable.
1345
1346         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1347         Don't special-case default details view layout.
1348         * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1349         addLayoutField() as I'm going to use it.
1350         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1351         GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1352         method.
1353         * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1354         extracted from DetailsViewImpl.GroupPanel. Add support for
1355         sub-groups.
1356         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1357         column count when getting the details layout.
1358
1359 2011-07-12  Ben Konrath  <ben@bagu.org>
1360
1361         Set browser title with database and table titles.
1362
1363         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1364         Set the browser title when the table changes and when the activity
1365         first starts.
1366         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1367         title when retrieving document info (the GlomDocument object).
1368         * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1369         with getter and setter methods. Remove unused convenience constructor.
1370         Use default code formatting.
1371
1372 2011-07-12  Ben Konrath  <ben@bagu.org>
1373
1374         Ignore LayoutItemPortals in the details view.
1375
1376         I added a new DTO for the LayoutItemPortal so that I can ignore it in
1377         the client code.
1378
1379         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1380         LayoutItemPortal layout objects.
1381         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1382         LayoutItemPortal objects when retrieving the details layout.
1383         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1384         file. This is an empty class and just used to get type information for
1385         now.
1386
1387 2011-07-12  Ben Konrath  <ben@bagu.org>
1388
1389         Use java-libglom 1.17.0.
1390
1391         * pom.xml:
1392
1393 2011-07-11  Ben Konrath  <ben@bagu.org>
1394
1395         Remove "Table:" label from table selector.
1396
1397         This matches a recent change in the Glom UI.
1398
1399         * mockups/details-contacts.html:
1400         * mockups/details-projects.html:
1401         * mockups/listview-contacts.html:
1402         * mockups/listview-projects.html: Remove the "Table:" label from the
1403         mockups as well.
1404         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1405
1406 2011-07-11  Ben Konrath  <ben@bagu.org>
1407
1408         Add main groups to the details view.
1409
1410         This makes things look a little nicer in the details view. The next step
1411         is to implement the flowtable.
1412
1413         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1414         resources from the standard gwt css theme. Standard.css is now
1415         included in OnlineGlom.html so that the online glom css rules have
1416         precedence over the gwt theme.
1417         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1418         the whole LayoutGroup to the DetailsView instead of just the titles.
1419         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1420         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1421         details layout with a helper class (GroupPanel). I might extract this
1422         class when I make the full flowtable.
1423         * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1424         string as default so I don't have to worry about NPEs when processing
1425         the layout objects.
1426         * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1427         note beside OnlineGlom.gwt.xml above).
1428         * src/main/webapp/style.css: Add default font-size to body to override
1429         the font-size set by the standard theme. Don't use h2 tags for
1430         group-title. Create new details-cell class.
1431
1432 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1433
1434         ConfiguredDocument: Set the port number too.
1435
1436         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1437         (ConfiguredDocument.ConfiguredDocument): Get the port number from the 
1438         Glom document. Presumably this worked sometimes so far because there is a 
1439         default port number.
1440
1441 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1442
1443         ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1444
1445         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1446         (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is 
1447         correct, though we should throw an exception too.
1448
1449 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1450
1451         Fix a addDocuemnt typo.
1452
1453         * src/main/java/org/glom/web/shared/Documents.java
1454         (Documents.addDocuemnt): Rename to addDocument().
1455         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1456         (OnlineGlomServiceImpl.getDocuments): Adapt.
1457         
1458 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1459
1460         Slightly improved log output when connection fails.
1461
1462         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1463         (ConfiguredDocument.setUsernameAndPassword):
1464         We don't know for sure if it' the username/password that's wrong, so 
1465         rephrase the message.
1466         Also ouput the exception message, though it's generic in this case.
1467
1468 2011-07-08  Ben Konrath  <ben@bagu.org>
1469
1470         Cleanup comments.
1471
1472         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1473         added braces to a one line if statement because the Eclipse formatter
1474         was getting confused.
1475
1476 2011-07-07  Ben Konrath  <ben@bagu.org>
1477
1478         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1479
1480         These should really be two separate tasks but I counldn't get things to
1481         work with GWT 2.2.0 and Eclipse 3.7.
1482
1483         * .classpath:
1484         * .project:
1485         * .settings/org.eclipse.jdt.core.prefs:
1486         * .settings/org.eclipse.jdt.ui.prefs:
1487         * .settings/org.eclipse.ltk.core.refactoring.prefs:
1488         * .settings/org.eclipse.m2e.core.prefs:
1489         Add new config files. Update current files. Remove references to the
1490         webtools plugins as we're not using any of the webtools features.
1491         * .gitignore: Add logs directory which is created when running with
1492         'mvn gwt:run'.
1493         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1494         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1495         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1496         limitation:
1497         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1498
1499 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
1500
1501         onlineglom.properties: Add explanatory comments.
1502
1503         * src/main/resources/onlineglom.properties: Also change the default user 
1504         from ben to someuser, to avoid the risk of people thinking we just 
1505         stupidly hard-coded a locale path, when they see that on stderr or in a log.
1506
1507 2011-06-28  Ben Konrath  <ben@bagu.org>
1508
1509         Use filename in Log for incorrect passwords.
1510
1511         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1512         getFileName(String) method to get the filename from the URI.
1513
1514 2011-06-28  Ben Konrath  <ben@bagu.org>
1515
1516         Add the table name to the URL token for the ListPlace.
1517
1518         This makes things consistent between the DetailsPlace and the
1519         ListPlace. It also allows the the ListPlace to be bookmarked.
1520
1521         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1522         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1523         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1524         Remove getDefaultListLayout(). The default layout is now returned
1525         by the getListLayout() method when the table name is an empty string.
1526         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1527         Add table name field. Change to a new ListPlace when the table
1528         has been changed. Use getListLayout() for getting the default
1529         list layout.
1530         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1531         Add table name field. Set the correct table name in the list box
1532         when loading from bookmark. This corrects a problem for the
1533         DetailsPlace too.
1534         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1535         Move table name to super-class (HasSelectableTable). Move document
1536         and table URL keys to super-class in HasSelectableTable.
1537         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1538         Add table name field. Add Tokenizer class with URL key common to
1539         the subclasses (DetailsPlace and ListPlace).
1540         * src/main/java/org/glom/web/client/place/ListPlace.java:
1541         Add table name. Add code to parse the URL token.
1542         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1543         Update ListPlace construction with empty table name string.
1544         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1545         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1546         Change setTableSelectedIndex(int) to setSelectedTableName(String).
1547         Update ListPlace construction with table name string.
1548         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1549         Change defaultTableName field to tableName to reflect how it's now
1550         used. Update the getter and setter methods.
1551
1552 2011-06-28  Ben Konrath  <ben@bagu.org>
1553
1554         Enable the table selector in the DetailsView.
1555
1556         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1557         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1558         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1559         Remove getDefaultDetailsLayout(). The default layout is now returned
1560         by the getDetailsLayout() method when the table name is an empty
1561         string.
1562         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1563         event handler for table change event. Change to using
1564         getDetailsLayout() for the default details layout.
1565         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1566         name to URL token.
1567         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1568         when navigating to the details place.
1569
1570 2011-06-27  Ben Konrath  <ben@bagu.org>
1571
1572         Use filename based unique document ID in URL and for RPC.
1573
1574         The document ID is the glom document name with spaces (' ') replaced
1575         with pluses ('+') and without the .glom extension.
1576
1577         This change is mostly a string substitution of 'documentTitle' for
1578         'documentID'. The only code change is the addition of a Documents DTO to get the
1579         filename to document title mappings as indicated below.
1580
1581         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1582         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1583         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1584         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1585         Use Documents DTO to create the document links in the document
1586         selection view.
1587         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1588         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1589         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1590         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1591         * src/main/java/org/glom/web/client/place/ListPlace.java:
1592         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1593         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1594         * src/main/java/org/glom/web/client/ui/ListView.java:
1595         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1596         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1597         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1598         * src/main/java/org/glom/web/server/Log.java:
1599         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1600         getDocumentTitles() to getDocuments() and return the Documents DTO.
1601         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1602         transferring the filename to document title mappings.
1603
1604 2011-06-25  Ben Konrath  <ben@bagu.org>
1605
1606         Make the authentication popup work again.
1607
1608         This bug was introduced when I extracted ConfiguredDocument to its own class.
1609
1610         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1611         correct success / fail status in setUsernameAndPassword().
1612
1613 2011-06-25  Ben Konrath  <ben@bagu.org>
1614
1615         Use filename as unique key for configuring database usernames and passwords.
1616
1617         This replaces the use of the Glom document title which could change
1618         depending on the locale. Thanks to Murray Cumming for pointing out this
1619         problem.
1620
1621         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1622         * src/main/resources/onlineglom.properties:
1623
1624 2011-06-24  Ben Konrath  <ben@bagu.org>
1625
1626         Pass primary key value to DetailsView.
1627
1628         This enables the DetailsView to load the correct data.
1629
1630         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1631         primary key value field and set in constructor. Pass primary key
1632         value to getDetailsData().
1633         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1634         variables for document title and primary key value.
1635         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1636         key value to the DetailsPlace.
1637
1638 2011-06-24  Ben Konrath  <ben@bagu.org>
1639
1640         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1641
1642         This allows the primary key to be retrieved by the Details button. This
1643         functionality has not been implemented yet but it's in the works.
1644
1645         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1646         the LayoutGroup result to ListView.setCellTable instead of all of its
1647         fields individually.
1648         * src/main/java/org/glom/web/client/ui/ListView.java:
1649         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1650         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1651         get the primary key for the table.
1652         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1653         index of the primary key in the LayoutGroup accounting for hidden
1654         primary keys. Rename getJavaNumberFormat() to
1655         convertToJavaNumberFormat() for consistency. Cleanup / add some
1656         comments.
1657         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1658         field for primary key index and a field to indicate whether the
1659         primary key is hidden or not.
1660
1661 2011-06-23  Ben Konrath  <ben@bagu.org>
1662
1663         Rename getTableData methods to getListData.
1664
1665         This is a rename refactor for consistency with other methods.
1666
1667         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1668         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1669         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1670         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1671
1672 2011-06-23  Ben Konrath  <ben@bagu.org>
1673
1674         Extract the ConfiguredDocument innerclass into its own class.
1675
1676         This makes the servlet code more object oriented.
1677
1678         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1679         from private ConfiguredDocument class in OnlineGlomServiceImpl.
1680         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1681         new ConfiguredDocument class.
1682
1683 2011-06-21  Ben Konrath  <ben@bagu.org>
1684
1685         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1686
1687         This makes things more inline with how libglom works and reduces code
1688         duplication. This refactor lays the groundwork for adding the primary key to
1689         the LayoutGroup object.
1690
1691         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1692         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1693         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1694         Change method names to getListLayout and getDefaultListLayout for
1695         consistency. Use LayoutGroup as the DTO for the list layout instead of
1696         ColumnInfo and LayoutListTable.
1697         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1698         new method names along with the LayoutGroup object for transferring the
1699         list layout.
1700         * src/main/java/org/glom/web/client/ui/ListView.java:
1701         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1702         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1703         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1704         with LayoutGroup.
1705         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1706         Replaced with LayoutGroup.
1707         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1708         expectedResultSize and defaultTableName fields which are needed for
1709         the list layout.
1710         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1711         type field which is needed for the list layout but will also be
1712         useful for the details layout as things progress.
1713         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1714         Make class abstract. Remove the unnecessary
1715         getFormattingHorizontalAlignment method. Add setFormatting method.
1716
1717 2011-06-16  Ben Konrath  <ben@bagu.org>
1718
1719         Add scripts for building and installing war.
1720
1721         These will help when updating OnlineGlom but they're also good
1722         supplemental documentation of the build and deployment proceeding.
1723
1724         * utils/build-onlineglom-war.sh: New file.
1725         * utils/install-onlineglom-war.sh: New file.
1726
1727 2011-06-16  Ben Konrath  <ben@bagu.org>
1728
1729         Create wrapper class to create consistent log messages.
1730
1731         I wrapped methods in the Log class of gwt-log to add the method names
1732         from the servlet and create consistent formatting of the document title
1733         and table names in the log messages.
1734
1735         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1736         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1737         log methods to use methods from wrapped Log class.
1738
1739 2011-06-16  Ben Konrath  <ben@bagu.org>
1740
1741         Remove superfluous conditional return.
1742
1743         Thanks to Murray Cumming for pointing this out!
1744
1745         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1746
1747 2011-06-15  Ben Konrath  <ben@bagu.org>
1748
1749         Return an ArrayList of LayoutGroups for the Details layout.
1750
1751         This corrects a problem with the details layout as it can have more
1752         than one top level LayoutGroup.
1753
1754         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1755         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1756         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1757         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1758         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1759         with ArrayList of LayoutGroups for the details view layout.
1760         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1761         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1762         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1763         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1764         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1765         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1766
1767 2011-06-14  Ben Konrath  <ben@bagu.org>
1768
1769         Use cast_dynamic method to determine the libglom LayoutItem type.
1770
1771         This is better than finding the LayoutItem type by using the string
1772         returned from the get_part_type_name() method.
1773
1774         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1775
1776 2011-06-14  Ben Konrath  <ben@bagu.org>
1777
1778         Add method names to log entries in the servlet.
1779
1780         This helps when tracking down deployment problems.
1781
1782         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1783
1784 2011-06-14  Ben Konrath  <ben@bagu.org>
1785
1786         Add data to the DetailsView using a hard-coded primary key value.
1787
1788         The layout and functionality of the DetailsView is not complete. This
1789         is just a checkpoint so the patch doesn't get too big.
1790
1791         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1792         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1793         Add getDetailsData() servlet method.
1794         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1795         Add RPC to getDetailsData(). Change the way the LayoutGroups and
1796         LayoutFields are added to the DetailsView.
1797         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1798         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1799         Add setData() method. Change addLayoutGroup() and addLayoutField() to
1800         take the string for the title instead of the object.
1801         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1802         Add implementation getDetailsData() along with some private helper
1803         methods.
1804         * src/main/webapp/style.css: Add padding to details-data class. Add a
1805         details-label class with the same padding as the details-data class.
1806
1807 2011-06-03  Ben Konrath  <ben@bagu.org>
1808
1809         Use presenter.goTo() to change to the DetailsPlace.
1810
1811         This will make things easier when we need to open the DetailsView with
1812         data specific to the row that was clicked.
1813
1814         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1815
1816 2011-06-02  Ben Konrath  <ben@bagu.org>
1817
1818         Add CSS file from mockups.
1819
1820         I'm adding this now because it's going to be useful to have when
1821         developing the DetailsView. The TableSelectionView and ListView aren't
1822         setup properly yet.
1823
1824         * src/main/webapp/OnlineGlom.html:
1825         * src/main/webapp/style.css:
1826
1827 2011-06-02  Ben Konrath  <ben@bagu.org>
1828
1829         Use String.isEmpty() to check for empty string.
1830
1831         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1832
1833 2011-06-02  Ben Konrath  <ben@bagu.org>
1834
1835         Display main layout group titles in the DetailsView.
1836
1837         This is the start of the DetailsActivity/DetailsView implementation.
1838
1839         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1840         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1841         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1842         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1843         Get the layout information for the details view from the server and set
1844         the main layout group titles.
1845         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1846         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1847         Add addLayoutGroup() and addLayoutField() methods. This are just
1848         temporary methods for creating the the details view that will change
1849         in the future.
1850         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1851         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1852         methods.
1853         * src/main/java/org/glom/web/shared/layout/Formatting.java:
1854         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1855         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1856         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1857         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1858         Data Transfer Objects that mimic the libglom object structure. These are
1859         used for transferring the details layout but could also be used for
1860         transferring the list layout.
1861
1862 2011-05-27  Ben Konrath  <ben@bagu.org>
1863
1864         Reset the AuthenticationPopup when clearing the ListView.
1865
1866         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1867
1868 2011-05-27  Ben Konrath  <ben@bagu.org>
1869
1870         Fix problem with onlineglom.properties file loading.
1871
1872         The old way worked in Eclipse but not on the server. Loading the
1873         onlineglom.properties file now works in Eclipse and on the server.
1874
1875         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1876
1877 2011-05-24  Ben Konrath  <ben@bagu.org>
1878
1879         Update gwt-log from 3.1.0 to 3.1.2.
1880
1881         Gwt-log 3.1.0 has been marked as depreciated.
1882
1883         * pom.xml:
1884
1885 2011-05-24  Ben Konrath  <ben@bagu.org>
1886
1887         Add comment to ListActivity.goTo() method.
1888
1889         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1890
1891 2011-05-24  Ben Konrath  <ben@bagu.org>
1892
1893         Remove FIXME in convertGdkColorToHtmlColour()
1894
1895         The Gdk::Color value returned by libglom is 16-bits per channel on both
1896         64 and 32-bit platforms.
1897
1898         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1899
1900 2011-05-19  Ben Konrath  <ben@bagu.org>
1901
1902         Improve performance of initial ListView load.
1903
1904         I removed a round trip to the server for getting the default table name
1905         and then requesting information about that table. This also removes a potential
1906         problem with the table change handler not being setup in time to receive the
1907         table change event from the ListActivity.
1908
1909         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1910         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1911         getDefaultLayoutListTable() method. Improve comments.
1912         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1913         getDefaultLayoutListTable() method instead of firing a table change
1914         event to get the table to load.
1915         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1916         implementation of getDefaultLayoutListTable() method.
1917         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1918         table name.
1919
1920 2011-05-19  Ben Konrath  <ben@bagu.org>
1921
1922         Override toDebugString() in TableChangeEvent.
1923
1924         This is useful to have for debugging.
1925
1926         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1927
1928 2011-05-19  Ben Konrath  <ben@bagu.org>
1929
1930         Add a "Back to List" link when at the DetailsPlace.
1931
1932         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1933         Populate the CellTable based on the selected table of the ListBox if
1934         it's set otherwise use the default table. This allows the "Back to
1935         List" link to work.
1936         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1937         Remove Place from constructors. Add a setPlace() method. Add
1938         goToPlace() method. Set class as presenter for TableSelectionView.
1939         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1940         Use the same TableSelectionActivity when switching between the List and
1941         Details Places.
1942         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1943         Subclass the new HasSelectableTablePlace. This removes some duplicate
1944         code.
1945         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1946         New class to represent Places that display the TableSelectionView.
1947         * src/main/java/org/glom/web/client/place/ListPlace.java:
1948         Subclass the new HasSelectableTablePlace. This removes some duplicate
1949         code.
1950         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1951         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1952         Add Presenter interface. Add setBackLinkVisible() method. Add
1953         setBackLink() method.
1954
1955 2011-05-18  Ben Konrath  <ben@bagu.org>
1956
1957         Enable the "Details" buttons.
1958
1959         Right now only an empty details view is displayed.
1960
1961         * src/main/java/org/glom/web/client/ClientFactory.java:
1962         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1963         Add DetailsView to ClientFactory.
1964         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1965         A basic activity for the details view.
1966         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1967         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1968         clearView().
1969         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1970         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1971         GWT.
1972         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1973         Create a new DetailsActivity when a DetailsPlace is requested. Remove
1974         unnecessary super() in constructor.
1975         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1976         Create a new TableSelectionActivity when a DetailsPlace is requested. We
1977         really shouldn't create a new TableSelectionActivity for both the ListPlace
1978         and the DetailsPlace so this should be considered a temporary solution.
1979         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1980         New file. Represents a URL for the details view.
1981         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1982         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1983         A basic details view interface and implementation.
1984         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1985         Enable the "Details" buttons.
1986
1987 2011-05-12  Ben Konrath  <ben@bagu.org>
1988
1989         Use a LayoutPanel with multiple display areas for main layout.
1990
1991         This is mostly a refactor in that there are no changes from the user
1992         point of view. These changes are required so that we can swap out the list view
1993         with the details view when the user clicks the "Details" button.
1994
1995         * src/main/java/org/glom/web/client/ClientFactory.java:
1996         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1997         OnlineGlomView. Add TableSelectionView, ListView and
1998         AuthenticationPopup.
1999         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2000         for main layout. Add display regions for main activities. Add
2001         activity manager for for main activities.
2002         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2003         file from parts of the deleted OnlineGlomActivity.
2004         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2005         New file from parts of the deleted OnlineGlomActivity.
2006         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2007         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2008         New files for app wide table change event.
2009         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2010         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2011         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2012         Activity mappers for the main activities replace the deleted app-wide
2013         AppActivityMapper.
2014         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2015         Fix a spelling error in he comment.
2016         * src/main/java/org/glom/web/client/ui/ListView.java:
2017         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2018         Renamed from LayoutListView and modified for MVP. This still not a
2019         proper dumb view as prescribed by the MVP pattern but it works for now.
2020         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2021         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2022         New widget stripped out of the deleted OnlineGlomView.
2023         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2024         Remove hack that is fixed by this patch.
2025
2026 2011-05-06  Ben Konrath  <ben@bagu.org>
2027
2028         Rename OnlineGlomPlace to ListPlace.
2029
2030         The only change besides the rename is that url will now display #list
2031         instead of #Document.
2032
2033         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2034         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2035         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2036         * src/main/java/org/glom/web/client/place/ListPlace.java:
2037         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2038
2039 2011-05-06  Ben Konrath  <ben@bagu.org>
2040
2041         Use Presenter for app navigation.
2042
2043         This is the proper way to deal with Place (URL) changes with the MVP
2044         framework.
2045
2046         * src/main/java/org/glom/web/client/ClientFactory.java:
2047         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2048         PlaceHistoryMapper and PlaceHistoryHandler.
2049         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2050         PlaceHistoryMapper and PlaceHistoryHandler.
2051         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2052         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2053         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2054         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2055         Add Presenter interface and setPresenter methods. Rename addHyperLink
2056         to addDocumentLink taking only the document title as a parameter.
2057
2058 2011-04-14  Ben Konrath  <ben@bagu.org>
2059
2060         Prompt for db username/password if they haven't been set.
2061
2062         This is implemented with a popup widget that is contained within the
2063         OnlineGlomView and managed by the OnlineGlomActivity.
2064
2065         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2066         methods for checking and setting the database username and password.
2067         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2068         new methods for checking and setting the database username and
2069         password.
2070         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2071         Display authentication popup if the JDBC connection to the database
2072         has not been authenticated.
2073         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2074         file.
2075         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2076         for dealing with the authentication popup.
2077         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2078         Implement the methods for dealing with the authentication popup.
2079         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2080         try to executed queries if the database connection hasn't been
2081         authenticated. Implement methods for checking and setting the
2082         database username and password.
2083
2084 2011-04-12  Ben Konrath  <ben@bagu.org>
2085
2086         Make log messages a little clearer.
2087
2088         Add a dash betweeen the document title and the table name.
2089
2090         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2091
2092 2011-04-12  Ben Konrath  <ben@bagu.org>
2093
2094         Protect against NPEs when cleaning up database resources.
2095
2096         While this isn't strictly necessary because the exception is caught,
2097         not protecting against the NPEs makes it harder to find the real error
2098         in the log file.
2099
2100         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2101
2102 2011-04-12  Ben Konrath  <ben@bagu.org>
2103
2104         Move configuration of the servlet to the constructor.
2105
2106         The servlet will be initialized even if the database authentication
2107         information is not set or correct. I still need to add the UI for prompting
2108         the user for the authentication information when it's required.
2109
2110         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2111         javadocs for getDocumentTitles() method.
2112         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2113         Set error message when RPC fails.
2114         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2115         glom files directory from the configuration file. Try to set the
2116         database authentication information for the specific document if it's
2117         set and works otherwise try to use the global authentication
2118         information set for the directory.
2119         * src/main/resources/onlineglom.properties: Moved from
2120         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2121         Added detailed comments for the new keys.
2122
2123 2011-04-11  Ben Konrath  <ben@bagu.org>
2124
2125         Remove unnecessary @Override in DocumentSelectionViewImpl.
2126
2127         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2128
2129 2011-04-11  Ben Konrath  <ben@bagu.org>
2130
2131         Remove center alignment in DocumentSelectionView.
2132
2133         The title element is still centred but the document titles and bottom
2134         sentence are both left-aligned.
2135
2136         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2137
2138 2011-04-11  Ben Konrath  <ben@bagu.org>
2139
2140         Change 'Demo' naming convention to 'Document'.
2141
2142         This is just a rename refactor with no functional changes to the code.
2143
2144         * src/main/java/org/glom/web/client/ClientFactory.java:
2145         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2146         * src/main/java/org/glom/web/client/OnlineGlom.java:
2147         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2148         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2149         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2150         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2151         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2152         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2153         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2154         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2155         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2156         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2157
2158 2011-04-08  Ben Konrath  <ben@bagu.org>
2159
2160         Remove FIXME from safeLongToInt() method.
2161
2162         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2163         this method.
2164
2165         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2166
2167 2011-04-08  Ben Konrath  <ben@bagu.org>
2168
2169         Display an error if no glom documents are found in the specified directory.
2170
2171         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2172         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2173         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2174         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2175
2176 2011-04-08  Ben Konrath  <ben@bagu.org>
2177
2178         Add copyright header to one more file ... oops.
2179
2180         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2181
2182 2011-04-08  Ben Konrath  <ben@bagu.org>
2183
2184         Add copyright header to files without it.
2185
2186         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2187         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2188         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2189         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2190         * src/main/java/org/glom/web/shared/ColumnInfo.java:
2191         * src/main/java/org/glom/web/shared/GlomField.java:
2192
2193 2011-04-08  Ben Konrath  <ben@bagu.org>
2194
2195         Add support for accessing multiple glom documents in the servlet.
2196
2197         This completes the demo selection functionality.
2198
2199         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2200         document title to methods.
2201         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2202         document title to methods.
2203         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2204         Set browser window title when the activity starts. Correct name of
2205         document title variable.
2206         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2207         Set browser window title when the activity starts. Set the table
2208         selector change handler after table selector has been set. Clear the
2209         OnlineGlomView when the activity has been stopped.
2210         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2211         document title as the place token. Use "#Document:" instead of
2212         "#OnlineGlomPlace:" in the URL.
2213         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2214         Change heading to "Online Glom"
2215         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2216         document title in RPC methods.
2217         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2218         setDocumentTitle() method. Add clear() method.
2219         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2220         setDocumentTitle() method. Implement clear() method which removes the
2221         change handler on the ListBox, clears the ListBox and clears the
2222         DataPanel.
2223         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2224         Implement methods with document title. Keep track for the configured
2225         glom documents and their corresponding JDBC configurations in a hash
2226         table. This information is retrieved using the document title as the
2227         key in the hash table.
2228         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2229         document title field as it's no longer needed.
2230
2231 2011-04-08  Ben Konrath  <ben@bagu.org>
2232
2233         Update the Eclipse JDT configuration.
2234
2235         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2236         methods. Automatically add the copyright header to new files.
2237
2238 2011-04-05  Ben Konrath  <ben@bagu.org>
2239
2240         Add new page for demo selection.
2241
2242         This patch adds all the components required to view and start an
2243         OnlineGlom demo by clicking on the desired hyperlink. The user is
2244         able to return to the demo selection page with the browser's back
2245         button. I still need to modify the servlet to work with multiple
2246         documents so all demo links will load the file defined in the
2247         OnlineGlom.properties.
2248
2249         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2250         This is only useful during development so we don't need to save it.
2251         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2252         get a reference to the DemoSelectionView.
2253         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2254         method to get a reference to the DemoSelectionView.
2255         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2256         default view to DemoSelectionView.
2257         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2258         to get glom document titles for glom files in a hard-coded directory.
2259         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2260         method to get glom document titles for glom files in a hard-coded
2261         directory.
2262         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2263         Presenter for DemoSelectionView.
2264         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2265         for DemoSelectionView.
2266         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2267         Update for DemoSelectionView.
2268         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2269         Basic 'Place' implementation for the DemoSelectionView.
2270         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2271         The interface for the DemoSelectionView.
2272         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2273         The implementation of the DemoSelectionView.
2274         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2275         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2276         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2277         implementation of method to get glom document titles for glom files
2278         in a hard-coded directory.
2279         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2280         on longer being used.
2281         * src/main/webapp/glom.png: Glom logo.
2282
2283 2011-04-05  Ben Konrath  <ben@bagu.org>
2284
2285         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2286
2287         This is the forth and final commit of a refactor that will allow
2288         OnlineGlom to be used with multiple documents.
2289
2290         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2291         Move RPC code from OnlineGlomViewImpl to this class.
2292         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2293         to inferface.
2294         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2295         RPC code to the presenter class (the P in MVP).
2296
2297 2011-04-04  Ben Konrath  <ben@bagu.org>
2298
2299         Start moving the existing OnlineGlom code to MVP.
2300
2301         This work is based on the GWT MVP framework that is documented here:
2302
2303         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2304
2305         This is the third commit of a refactor that will allow OnlineGlom to
2306         be used with multiple documents.
2307
2308         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2309         Interface for client factory which is used to get instances of various
2310         classes throughout the app.
2311         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2312         Implementation of client factory.
2313         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2314         initialize the MVP framework.
2315         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2316         New file. Activity manager for the main container widget. This is the
2317         Presenter in MVP.
2318         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2319         Maps place (URL) to its corresponding activity.
2320         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2321         New file. This is just a place holder for a generated file.
2322         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2323         New file. Represents the URL for the main Online Glom app.
2324         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2325         for changes in LayoutListViewImpl.
2326         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2327         interface for View. Move code to OnlineGlomViewImpl class.
2328         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2329         file. Implementation of OnlineGlomView.
2330         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2331         Place resources. Use ClientFactoryImpl by default.
2332
2333 2011-04-04  Ben Konrath  <ben@bagu.org>
2334
2335         Move View classes to their own package.
2336
2337         This is the second commit of a refactor that will allow OnlineGlom to
2338         be used with multiple documents.
2339
2340         * src/main/java/org/glom/web/client/OnlineGlom.java:
2341         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2342         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2343
2344 2011-04-02  Ben Konrath  <ben@bagu.org>
2345
2346         Move UI code from the main module to its own class.
2347
2348         This is the first commit of a refactor that will allow OnlineGlom to be
2349         used with multiple documents.
2350
2351         * src/main/java/org/glom/web/client/LayoutListView.java: Update
2352         references to OnlineGlom to OnlineGlomView.
2353         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2354         OnlineGlomView and instantiate it here.
2355         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2356         represents the main OnlineGlomView with one document.
2357
2358 2011-04-01  Ben Konrath  <ben@bagu.org>
2359
2360         Fix formatting of gwt.xml and add DTD.
2361
2362         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2363
2364 2011-03-30  Ben Konrath  <ben@bagu.org>
2365
2366         Propperly convert gdkColor string to html colour string.
2367
2368         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2369
2370 2011-03-28  Ben Konrath  <ben@bagu.org>
2371
2372         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2373
2374         This implementation matches
2375         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2376         readable and is not tied to Swig.
2377
2378         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2379
2380 2011-03-28  Ben Konrath  <ben@bagu.org>
2381
2382         Use read-only checkboxes for boolean field types.
2383
2384         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2385         in the CellTable based on the field type. It currently only
2386         distinguishes between boolean and text columns but I'll need to add
2387         support for more types.
2388         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2389         column type in the ColumnInfo object. Add method to convert between the
2390         glom field type enum in ColumnInfo and the glom field type in libglom.
2391         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2392         field type.
2393         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2394         getting and setting booleans.
2395
2396 2011-03-25  Ben Konrath  <ben@bagu.org>
2397
2398         Don't get the Date twice from the ResultSet.
2399
2400         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2401
2402 2011-03-25  Ben Konrath  <ben@bagu.org>
2403
2404         Cleanup code in the servlet.
2405
2406         * TODO: Remove item about row count. Add item about testing row count
2407         query with large number of rows.
2408         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2409         spelling mistakes, change method parameter to be consistent with
2410         other methods.
2411
2412 2011-03-25  Ben Konrath  <ben@bagu.org>
2413
2414         Add server side logging with the gwt-log library.
2415
2416         * .gitignore: Ignore the log file we're now producing.
2417         * TODO: Add a couple TODO item for logging.
2418         * pom.xml: Add gwt-log and log4j as a dependency.
2419         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2420         logging of errors, warnings and some important info.
2421         * src/main/resources/log4j.properties: New file to configure log4j.
2422
2423 2011-03-24  Ben Konrath  <ben@bagu.org>
2424
2425         Add a disable button for the Details view.
2426
2427         * src/main/java/org/glom/web/client/LayoutListView.java:
2428
2429 2011-03-22  Ben Konrath  <ben@bagu.org>
2430
2431         Use a count query to get the number of rows for the list view pager.
2432
2433         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2434
2435 2011-03-22  Ben Konrath  <ben@bagu.org>
2436
2437         Add more TODO information about CellTable pager positioning. 
2438
2439         * TODO:
2440
2441 2011-03-19  Ben Konrath  <ben@bagu.org>
2442
2443         Add TODO item about CellTable pager positioning.
2444
2445         * TODO:
2446
2447 2011-03-18  Ben Konrath  <ben@bagu.org>
2448
2449         Remove unneeded GlomFieldColumn class.
2450
2451         This is just a small code cleanup.
2452
2453         * src/main/java/org/glom/web/client/LayoutListView.java:
2454
2455 2011-03-18  Ben Konrath  <ben@bagu.org>
2456
2457         Use cursor mode in the query that gets data for the list view.
2458
2459         I still need to fix the potential memory problem when getting the row
2460         count for the list view.
2461
2462         * TODO: Add note about testing memory usage with large data sets. Add
2463         item about fixing row counting with large data sets.
2464         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2465         PostgreSQL JDBC driver into cursor mode when getting data for the
2466         list view.
2467
2468 2011-03-15  Ben Konrath  <ben@bagu.org>
2469
2470         Remove the GWT Container from the Eclipse build classpath.
2471
2472         The GWT dependencies are set by Maven so this isn't needed.
2473
2474         * .classpath:
2475
2476 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
2477
2478         Added some earlier mockups to git, but not to the tarball dist.
2479
2480         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2481         Openismus. These hopefully show how we might structure the HTML so that
2482         it can be styled easily with CSS. However, we probably need to adapt them
2483         for the CSS structure that GWT dictates for common widgets.
2484
2485 2011-03-14  Ben Konrath  <ben@bagu.org>
2486
2487         Locate OnlineGlom.properties using the ServletContext.
2488
2489         This is required to be able to locate the file in the deployed servlet.
2490
2491         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2492         Configure the database and glom document in in a helper method so
2493         that the ServletContext can be used to locate OnlineGlom.properties.
2494         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2495         src/main/webapp. This is the proper location for .properites files.
2496
2497 2011-03-12  Ben Konrath  <ben@bagu.org>
2498
2499         Add note to README about why we're compiling down to obfuscated JavaScript.
2500
2501         * README:
2502
2503 2011-03-11  Ben Konrath  <ben@bagu.org>
2504
2505         Use properties file to configure servlet.
2506
2507         This allows people to change the glom file path, db username and db
2508         password without recompiling the code.
2509
2510         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2511         * src/main/webapp/OnlineGlom.properties:
2512
2513 2011-03-11  Ben Konrath  <ben@bagu.org>
2514
2515         Use table fields in layout list view if the layout list is not defined.
2516
2517         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2518         Manually create a LayoutFieldVector for the query builder using the
2519         table fields when a layout list is not defined in the glom file.
2520
2521 2011-03-11  Ben Konrath  <ben@bagu.org>
2522
2523         Only show FIXME string for images when there's an image.
2524
2525         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2526         in this change are some small code cleanups.
2527
2528 2011-03-11  Ben Konrath  <ben@bagu.org>
2529
2530         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2531
2532         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2533
2534 2011-03-11  Ben Konrath  <ben@bagu.org>
2535
2536         Correctly set the index of the default table.
2537
2538         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2539         Correctly set the index of the default table. Add commented out example
2540         file paths.
2541
2542 2011-03-10  Ben Konrath  <ben@bagu.org>
2543
2544         Add comment to pom.xml about the previous change.
2545
2546         * pom.xml: Add comment about the deployment issue so that it's obvious
2547         why java-libglom is set to the provided scope.
2548
2549 2011-03-10  Ben Konrath  <ben@bagu.org>
2550
2551         Change java-libglom dependency from compile to provided in pom.xml.
2552
2553         Since java-libglom uses jni it can only be loaded once and therefore
2554         must be placed in $CATALINA_HOME/lib and not included in each war.
2555         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2556         More information about this issue can be found in the Tomcat 6 release
2557         notes in the "JNI Based Applications" section:
2558
2559         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2560
2561         * README: Remove note about this issue. Deployment info should really
2562         be on the wiki anyway so I'll add it right now.
2563         * pom.xml: Change java-libglom dependency from compile to provided so
2564         that it's copied in to the packaged war.
2565
2566 2011-03-09  Ben Konrath  <ben@bagu.org>
2567
2568         Change to using a neutral locale for currency, date and time formatting.
2569
2570         This solves the problem of currency values being represented without a
2571         space between the currency code and the number (e.g. "EUR5.89" is now
2572         represented as "EUR 5.89"). More work is required when we implement
2573         a locale preference setting.
2574
2575         * TODO: Add note about currency formatting issues with different
2576         locales.
2577         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2578         to using the neutral ROOT locale.
2579
2580 2011-03-09  Ben Konrath  <ben@bagu.org>
2581
2582         Add support for currency codes that are not ISO 4217 codes.
2583
2584         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2585         the currency code defined in the glom file when it's not 3 characters
2586         long or when Java doesn't recognize the string as an ISO 4217 code.
2587
2588 2011-03-08  Ben Konrath  <ben@bagu.org>
2589
2590         Remove test classes, launch configurations and configuration.
2591
2592         The test stuff was getting in the way when creating the war. To make
2593         the war file you can now do 'mvn clean package'. The packaged war file
2594         will be in the target directory.
2595
2596         * .classpath: Remove unused classpathentry for tests and i18n.
2597         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2598         property. Don't run test or i18n goals when packaging the war.
2599         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2600         formatting.
2601
2602         Removed files:
2603
2604         * OnlineGlomTest-dev.launch:
2605         * OnlineGlomTest-prod.launch:
2606         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2607         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2608
2609 2011-03-07  Ben Konrath  <ben@bagu.org>
2610
2611         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2612
2613         These fixes allow me to use 'mvn deploy' to create the war file.
2614
2615         * .classpath: This generated config has been updated by Eclipse. This
2616         change was probably triggered by me updating from Eclipse 3.6.1 to
2617         3.6.2.
2618         * .gitignore: Add entry to ignore the directory
2619         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2620         * .project: The generated config has been updated by Eclipse. This
2621         change was probably triggered by me updating from Eclipse 3.6.1 to
2622         3.6.2.
2623         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2624         so that Eclipse doesn't complain
2625         * pom.xml: Update to gwt-maven-plugin 2.2.0.
2626         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2627         'tests' directory to 'client' directory. This is the new
2628         gwt-maven-plugin convension.
2629         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2630         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2631
2632 2011-03-07  Ben Konrath  <ben@bagu.org>
2633
2634         Add support for horizontal alignment in the LayoutList columns.
2635
2636         * TODO: Remove item about horizontal alignment. Add item about
2637         improvements to ColumnInfo.
2638         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2639         alignment on the columns. Use ColumnInfo RPC object get the column
2640         title and horizontal alignment.
2641         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2642         LayoutListView creation with ColumnInfo RPC object.
2643         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2644         a ColumnInfo object for every LayoutList columnn. Convert the
2645         FieldFormatting.HorizontalAlignment to the correct
2646         ColumnnInfo.HorizontatlAlignment with the new
2647         getColumnInfoHorizontalAlignment helper method.
2648         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2649         to encapsulate column information like alignment and title. This
2650         could be used to set the colour instead of on a per cell field basis.
2651         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2652         column title storage and retrieval with ColumnInfo.
2653
2654 2011-03-04  Ben Konrath  <ben@bagu.org>
2655
2656         Add support for column sorting.
2657
2658         * src/main/java/org/glom/web/client/LayoutListView.java: Change
2659         AsynDataProvider to be an anonymous inner class. Use new
2660         getSortedTableData RPC method when column sort is requested. Set all
2661         columns sortable and add an AsyncHandler to activate sorting in the
2662         AsyncDataProvider.
2663         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2664         method getSortedTableData(). Cleanup other method signatures.
2665         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2666         new method getSortedTableData(). Cleanup other method signatures.
2667         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2668         Implement getSortedTableData() and getTableData() methods by using a
2669         private helper method with the appropriate parameters filled in. Use
2670         user supplied sort clause when supplied, otherwise fall back to
2671         sorting by the primary key. Move destroy() method to be underneath
2672         constructor for readability.  Cleanup comments.
2673
2674 2011-03-03  Ben Konrath  <ben@bagu.org>
2675
2676         Add support for colour text and colour backgrounds to the layout list cells.
2677
2678         Only the cell backgrounds are coloured which leaves a gap between the
2679         cells that isn't coloured. I need to figure out a way to set
2680         'style=background-colour:' on the whole column rather than just the
2681         cell.
2682
2683         * TODO: Add a note about colouring the background of the whole column.
2684         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2685         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2686         render the coloured text and backgrounds. Use GlomField[] for the row type.
2687         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2688         for the row type.
2689         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2690         GlomField[] for the row type.
2691         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2692         GlomField[] for the row type. Set the text, text colour and background
2693         colour in the GlomField objects as specified in the glom document. Add
2694         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2695         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2696         the glom field text, foreground colour and background colour.
2697
2698 2011-03-02  Ben Konrath  <ben@bagu.org>
2699
2700         Don't display hidden tables in the combo box.
2701
2702         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2703         ArrayLists.
2704         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2705         code to ignore hidden tables using ArrayLists for the table names and
2706         titles.
2707         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2708         tableNames to use ArrayLists instead of String[]. Update getter and setter
2709         methods.
2710
2711 2011-03-01  Ben Konrath  <ben@bagu.org>
2712
2713         Add support for Date and Time number types.
2714
2715         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2716         Implement formatting for Date and Time values. Change the default glom
2717         file to small business example.
2718
2719 2011-03-01  Ben Konrath  <ben@bagu.org>
2720
2721         Add support for formatting glom types as specified in the glom file.
2722
2723         Formatting isn't finished yet - I still need to add support for Date
2724         and Time values.
2725
2726         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2727         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2728         checks for null values in JDBC cleanup code and catch all exceptions
2729         instead of just SQLExceptions.
2730         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2731         method name.
2732
2733 2011-03-01  Ben Konrath  <ben@bagu.org>
2734
2735         Use GWT 2.2.0 instead of 2.1.1.
2736
2737         * pom.xml: Change GWT version numbers.
2738
2739 2011-03-01  Ben Konrath  <ben@bagu.org>
2740
2741         A few small code cleanups.
2742
2743         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2744         duplicate for loop.
2745         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2746         unnecessary object creation in constructor.
2747         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2748         unnecessary object creation in constructor.
2749
2750 2011-02-28  Ben Konrath  <ben@bagu.org>
2751
2752         Add file for TODO list.
2753
2754         * TODO: New file.
2755
2756 2011-02-18  Ben Konrath  <ben@bagu.org>
2757
2758         Enable the CellTable Pager when more than 20 rows need to be viewed.
2759
2760         The Pager will automatically become active when the results are larger
2761         than the CellTable size which is currently set to 20 lines.
2762
2763         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2764         name on debug statment in RPC call in LayoutListDataProvider, add
2765         numRows parameter to LayoutListView constructor, propperly set rowCount
2766         in CellTable.
2767         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2768         name on debug statment in RPC call, use LayoutListTable object in RPC
2769         calls, pass rowCount to LayoutListView.
2770         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2771         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2772         object.
2773         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2774         interface for changes in OnlineGlomService.
2775         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2776         getLayoutListHeaders() to getLayoutListTable() and return
2777         LayoutListTable. Using this object allows me to pass other information
2778         about the LayoutList like the expected number of rows in the result set.
2779         The Connection object from the connection pool is now propperly closed.
2780         Only the requested number of lines are returned to the client in
2781         getTableData().
2782         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2783         GlomTable and add columnTitles and numRows.
2784
2785 2011-02-18  Ben Konrath  <ben@bagu.org>
2786
2787         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2788
2789         This is a small performance boost. I'll use GlomTable to get the required
2790         layoutlist information.
2791
2792         * src/main/java/org/glom/web/client/OnlineGlom.java:
2793         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2794         * src/main/java/org/glom/web/shared/GlomDocument.java:
2795
2796 2011-02-18  Ben Konrath  <ben@bagu.org>
2797
2798         Add option to turn off formatting in JDT formatter preferences.
2799
2800         * .settings/org.eclipse.jdt.core.prefs:
2801
2802 2011-02-18  Ben Konrath  <ben@bagu.org>
2803
2804         Rename LayoutList to LayoutListView.
2805
2806         I'm working towards setting things up to easily use MVP when the time
2807         comes.
2808
2809         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2810         LayoutList.java.
2811         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2812         references.
2813
2814 2011-02-17  Ben Konrath  <ben@bagu.org>
2815
2816         Move LayoutListDataProvider class into LayoutList.java.
2817
2818         * src/main/java/org/glom/web/client/LayoutList.java:
2819
2820 2011-02-17  Ben Konrath  <ben@bagu.org>
2821
2822         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2823
2824         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2825         references.
2826         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2827         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2828         from LibGlomServer.java.
2829         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2830         Rename from LibGlomServiceAsync.java.
2831         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2832         Rename from LibGlomServiceImpl.java.
2833         * src/main/webapp/WEB-INF/web.xml: Update configuration.
2834
2835 2011-02-17  Ben Konrath  <ben@bagu.org>
2836
2837         Update JDT settings.
2838
2839         * .settings/org.eclipse.jdt.core.prefs:
2840
2841 2011-02-17  Ben Konrath  <ben@bagu.org>
2842
2843         Move GWT-RPC objects to shared package (where they should be).
2844
2845         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2846         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2847         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2848         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2849         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2850         org.glom.web.shared package.
2851         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2852         org.glom.web.shared package.
2853         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2854         directory in compilation to javascript.
2855
2856 2011-02-16  Ben Konrath  <ben@bagu.org>
2857
2858         Add sort clause to the sql query that grabs table information.
2859
2860         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2861         if one of the columns is a primary key.
2862
2863 2011-02-16  Ben Konrath  <ben@bagu.org>
2864
2865         Disable generateAsync feature of gwt-maven.
2866
2867         The generated interface does not correctly match the methods in LibGlomService
2868         and the generated singleton Util inner-class doesn't respect the servlet
2869         mappings.
2870
2871         * pom.xml: Turn off generateAsync feature.
2872         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2873         with singleton Util inner-class.
2874
2875 2011-02-14  Ben Konrath  <ben@bagu.org>
2876
2877         Add LGPL v3 licence notices.
2878
2879         Followed directions listed here:
2880         http://www.gnu.org/licenses/gpl-howto.html
2881
2882         * COPYING: This file is a copy of the GPL v3.
2883         * COPYING.LESSER: This file is a copy of the LGPL v3.
2884         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2885         notice.
2886         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2887         notice.
2888         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2889         notice.
2890         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2891         licence notice.
2892         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2893         notice.
2894         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2895         notice.
2896         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2897         licence notice.
2898
2899 2011-02-14  Ben Konrath  <ben@bagu.org>
2900
2901         Use ArrayList instead of Array in GWT-RPC calls.
2902
2903         Apparently this gives a slight performance boost to the compiled
2904         java script.
2905
2906         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2907         instead of Array.
2908         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2909         of Array.
2910
2911 2011-02-14  Ben Konrath  <ben@bagu.org>
2912
2913         Access data from a postgres db rather than the example glom file.
2914
2915         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2916         compile down to obfuscated javascript.
2917         * pom.xml: Add c3p0 and postgres JDBC libraries.
2918         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2919         using a postgres db accessed through the c3p0 connection pooling library.
2920
2921 2011-02-14  Ben Konrath  <ben@bagu.org>
2922
2923         Update Java formatter settings.
2924
2925         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2926
2927 2011-02-02  Ben Konrath  <ben@bagu.org>
2928
2929         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2930
2931         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2932         using Maven.
2933         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2934         the compiled webapp directory that Eclipse uses as we're using Maven now.
2935         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2936         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2937         to 1.6.
2938         * pom.xml: Format file, change target Java version to 1.6.
2939
2940 2011-02-02  Ben Konrath  <ben@bagu.org>
2941
2942         Add information about a deployment related issue.
2943
2944         * README: Add Notes section with the problem outlined.
2945
2946 2011-02-02  Ben Konrath  <ben@bagu.org>
2947
2948         Call Glom.libglom_deinit() when the servlet is shutdown.
2949
2950         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2951         Glom.libglom_deinit() to destroy() method.
2952
2953 2011-01-28  Ben Konrath  <ben@bagu.org>
2954
2955         Use generated Util class to get the RPC Async interface.
2956
2957         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2958         file.
2959         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2960         getInstance() method to get a reference to the RPC Async interface.
2961         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2962         getInstance() method to get a reference to the RPC Async interface, remove
2963         the now unused getLibGlomServiceProxy() method.
2964
2965 2011-01-27  Ben Konrath  <ben@bagu.org>
2966
2967         Cleanup ChangeLog entry from previous commit.
2968
2969         * ChangeLog: Group logical changes together and add comments.
2970
2971 2011-01-25  Ben Konrath  <ben@bagu.org>
2972
2973         Convert to gwt-maven project.
2974
2975         * .gitignore: Update for new project structure.
2976         * README: New file with a link to the online documentation.
2977         * pom.xml: The generated maven configuration file with some tweaks.
2978
2979         Add / update Eclipse settings. These files are a merge of the files that
2980         were generated with the gwt-maven plugin and the files we were previously
2981         using.
2982         * .classpath:
2983         * .project:
2984         * .settings/.jsdtscope:
2985         * .settings/com.google.gdt.eclipse.core.prefs:
2986         * .settings/com.google.gwt.eclipse.core.prefs:
2987         * .settings/org.eclipse.jdt.core.prefs:
2988         * .settings/org.eclipse.wst.common.component:
2989         * .settings/org.eclipse.wst.common.project.facet.core.xml:
2990         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2991         * .settings/org.maven.ide.eclipse.prefs:
2992         * OnlineGlomTest-dev.launch:
2993         * OnlineGlomTest-prod.launch:
2994
2995         Java source files moved from the 'src' directory to the directory structure
2996         required by maven.
2997         * src/main/java/org/glom/web/client/GlomDocument.java:
2998         * src/main/java/org/glom/web/client/GlomTable.java:
2999         * src/main/java/org/glom/web/client/LayoutList.java:
3000         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3001         * src/main/java/org/glom/web/client/LibGlomService.java:
3002         * src/main/java/org/glom/web/client/OnlineGlom.java:
3003         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3004
3005         Non-functional property file used for translations. I included this as
3006         reminder that it's something I need to sort out.
3007         * src/main/resources/org/glom/web/client/Messages.properties:
3008
3009         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3010         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3011
3012         The servlet configuration files moved from the 'war' directory.
3013         * src/main/webapp/OnlineGlom.css:
3014         * src/main/webapp/OnlineGlom.html:
3015         * src/main/webapp/WEB-INF/web.xml:
3016
3017         Generated test files with most of the code commented out. I included these
3018         so that it's easy to add tests when we're ready for them.
3019         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3020         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3021
3022 2011-01-25  Ben Konrath  <ben@bagu.org>
3023
3024         Remove unused println.
3025
3026         * src/org/glom/web/server/LibGlomServiceImpl.java:
3027
3028 2011-01-25  Ben Konrath  <ben@bagu.org>
3029
3030         Add project specific JDT settings.
3031
3032         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3033         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3034
3035 2011-01-25  Ben Konrath  <ben@bagu.org>
3036
3037         Populate celltable with example data.
3038
3039         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3040         * src/org/glom/web/client/GlomTable.java: Correct formatting.
3041         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3042         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3043         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3044         asynchronously gets the example data.
3045         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3046         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3047         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3048         curently selected table to be retrieved by other widgets.
3049         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3050         implement getTableData() in a hacky way. This method needs to be updated
3051         to grab information from the database when database creating is
3052         implemented.
3053
3054 2011-01-20  Ben Konrath  <ben@bagu.org>
3055
3056         Set table headers when table dropBox changes.
3057
3058         * src/org/glom/web/client/GlomDocument.java: Correct some method
3059         names.
3060         * src/org/glom/web/client/LibGlomService.java: Add method
3061         to get list layout field names.
3062         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3063         to get list layout field names.
3064         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3065         widget for list layout table.
3066         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3067         the table drop box and add new updateTable() method to asynchronously
3068         get the layout list field names for the currently selected table.
3069         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3070         implementation of getLayoutListHeaders() method.
3071         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3072
3073 2011-01-18  Ben Konrath  <ben@bagu.org>
3074
3075         Make a listBox with table titles instead of the flexTable demo.
3076
3077         This is the start of something more useful.
3078
3079         * .classpath: Exclude a bunch of packages from the JVM that are
3080         getting in the way of the Eclipse content assist.
3081         * src/org/glom/web/client/GlomDocument.java:
3082         * src/org/glom/web/client/GlomTable.java:
3083         * src/org/glom/web/client/LibGlomService.java:
3084         * src/org/glom/web/client/LibGlomServiceAsync.java:
3085         * src/org/glom/web/client/OnlineGlom.java:
3086         * src/org/glom/web/server/LibGlomServiceImpl.java:
3087         * war/OnlineGlom.html:
3088         * war/WEB-INF/web.xml:
3089
3090 211-01-13  Ben Konrath  <ben@bagu.org>
3091
3092         Update to new java-libglom API.
3093
3094         * .gitignore: Ignore OnlineGlom.war.
3095         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3096
3097 2010-12-20  Ben Konrath  <ben@bagu.org>
3098
3099         Add some basic style to the table listing.
3100
3101         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3102         header, print useful error message on async callback failure.
3103         * war/OnlineGlom.css: Add style for table header, remove defaults
3104         provided by the Eclipse project wizard.
3105
3106 2010-12-20  Ben Konrath  <ben@bagu.org>
3107
3108         Load example file from installed glom dir.
3109
3110         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3111         provided by java-libglom to find the example file.
3112
3113 2010-12-20  Ben Konrath  <ben@bagu.org>
3114
3115         Update Eclipse settings.
3116
3117         * .classpath:
3118         * .settings/com.google.gdt.eclipse.core.prefs:
3119         * .settings/com.google.gwt.eclipse.core.prefs:
3120
3121 2010-12-17  Ben Konrath  <ben@bagu.org>
3122
3123         Initial commit.
3124
3125         * .classpath: New file.
3126         * .gitignore: New file.
3127         * .project: New file.
3128         * .settings/com.google.gdt.eclipse.core.prefs: New file.
3129         * .settings/com.google.gwt.eclipse.core.prefs: New file.
3130         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3131         * src/org/glom/web/client/GlomTable.java: New file.
3132         * src/org/glom/web/client/OnlineGlom.java: New file.
3133         * src/org/glom/web/client/TableNameService.java: New file.
3134         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3135         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3136         * war/OnlineGlom.css: New file.
3137         * war/OnlineGlom.html: New file.
3138         * war/WEB-INF/web.xml: New file.
3139         * war/images/glom.png: New file.