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