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