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