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