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