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