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