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