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