Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-09-06  Ben Konrath  <ben@bagu.org>
2
3         Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
4
5         This fixes the LayoutItemPortal DTO to match the libglom layout object
6         hierarchy.
7
8         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
9
10 2011-09-01  Ben Konrath  <ben@bagu.org>
11
12         Set title of Portals in the Details View.
13
14         * pom.xml: Bump required version of java-libglom to 1.17.1.
15         * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
16         widget creation to its own class. Add comments to constructor.
17         * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
18         The code is mostly from the Group class with the title now set.
19         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
20         title of Portal. Update some comments. Fix some code formatting.
21
22 2011-09-01  Ben Konrath  <ben@bagu.org>
23
24         Remove TODO comment for the flow table column width.
25
26         The flow table column width is working correctly and doesn't need to be
27         changed. See this mailing list post for more info:
28
29         https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
30
31         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
32
33 2011-08-27  Ben Konrath  <ben@bagu.org>
34
35         Add document title (database name) to top of the browser page.
36
37         I added the document title to the TableSelecitonView but that will
38         change if / when we add a view that doesn't require table selection.
39
40         * mockups/details-contacts.html:
41         * mockups/details-projects.html:
42         * mockups/listview-contacts.html:
43         * mockups/listview-projects.html:
44         * mockups/style.css: Add document title to mockups to keep things
45         consistent.
46         * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
47         sizes to account for the document title.
48         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
49         Set the document title when it has been retrieved from the server.
50         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
51         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
52         and implement setDocumentTitle(String) method.
53         * src/main/webapp/style.css: Add ID for document title style.
54
55 2011-08-25  Ben Konrath  <ben@bagu.org>
56
57         Add NavigationType enum to LayoutItemPortal DTO.
58
59         This is the start of adding support for Portals to the Details View.
60
61         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
62         LayoutItem_Portal.navigation_type enum from libglom to
63         LayoutItemPortal.NavigationType enum.
64         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
65         NavigationType enum, field for storing the NavigationType and getter
66         and setter methods.
67
68 2011-08-25  Ben Konrath  <ben@bagu.org>
69
70         Implement the flow table layout in the Details View.
71
72         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
73         FlowTable to Group to account for the renamed class.
74         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
75         File. This is a container widget that implements the Glom details view
76         flow table behaviour.
77         * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
78         org/glom/web/client/ui/FlowTable.java.
79         * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
80         so that the size of the subgroups are a closer match to the size of
81         the Glom subgroups. This makes the flowtable layout match the layout
82         in Glom for the Music Collection example file.
83
84 2011-08-16  Ben Konrath  <ben@bagu.org>
85
86         Create container element for LayoutItemPortal in Details View.
87
88         This will help me develop the layout for the FlowTable.
89
90         * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
91         fieldPanel variable to detailsCell.
92
93 2011-08-15  Ben Konrath  <ben@bagu.org>
94
95         Set the height of the data element in the Details View.
96
97         I changed the InlineLabels (text in a span element) to Labels (text in
98         a div element) so that I could set the height of the details-data
99         elements instead of the details-cell parent elements. This allows the
100         the details-data element to display the correct height if style is
101         applied that shows the height.
102
103         This change has the added benefit of allowing the order of the labels
104         and data elements to be changed for right-to-left languages.
105
106         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
107         InlineLabels to Labels.
108         * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
109         InlineLabels to Labels. Set the height of the data element.
110         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
111         multiline text height in the Formatting DTO.
112         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
113         for multiline height along with getter and setter methods.
114         * src/main/webapp/style.css: Adjust style to account for the change
115         from span elements to div elements in the details cell.
116
117 2011-08-15  Ben Konrath  <ben@bagu.org>
118
119         Make the List View appearance match the mockups.
120
121         It doesn't match exactly but it's much better than it was.
122
123         * mockups/listview-contacts.html: Remove unused css classes.
124         * mockups/listview-projects.html: Remove unused css classes.
125         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
126         rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
127         for mainPanel instead of VerticalPanel (table). Set style name on
128         CellTable. Set style name on Details column. Right-align Details
129         buttons.
130         * src/main/webapp/style.css: Adjust properties to match the mockups.
131
132 2011-08-12  Ben Konrath  <ben@bagu.org>
133
134         Add better support for subgroups in the details view.
135
136         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
137         changed FlowTable constructor.
138         * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
139         support for subgroups and subgroup-titles.
140         * src/main/webapp/style.css: Add CSS class for subgroups and
141         subgroup-titles.
142
143 2011-08-12  Ben Konrath  <ben@bagu.org>
144
145         Return the top level LayoutGroup title.
146
147         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
148
149 2011-08-11  Ben Konrath  <ben@bagu.org>
150
151         Make the TableSelector header match the mockup.
152
153         * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
154         the layout panel. Properly lineup the table selection header with
155         the list and details view.
156         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
157         margin around the details view.
158         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
159         Rename listBox variable to tableSelector. Set id for the style sheet.
160         Use a FlowPanel instead of a HorizontalPanel.
161         * src/main/webapp/style.css: Add properties to make the TableSelector
162         box match the mockups.
163
164 2011-07-13  Ben Konrath  <ben@bagu.org>
165
166         Update install script for java-libglom version change.
167
168         * utils/install-onlineglom-war.sh: Also exit if 'make check' in
169         java-libglom fails.
170
171 2011-07-13  Ben Konrath  <ben@bagu.org>
172
173         Add support sub-group in the details view.
174
175         I also removed the code that special-cased the default details view
176         layout. See:
177
178         http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
179
180         I still have to make a proper flowtable.
181
182         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
183         Don't special-case default details view layout.
184         * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
185         addLayoutField() as I'm going to use it.
186         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
187         GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
188         method.
189         * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
190         extracted from DetailsViewImpl.GroupPanel. Add support for
191         sub-groups.
192         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
193         column count when getting the details layout.
194
195 2011-07-12  Ben Konrath  <ben@bagu.org>
196
197         Set browser title with database and table titles.
198
199         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
200         Set the browser title when the table changes and when the activity
201         first starts.
202         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
203         title when retrieving document info (the GlomDocument object).
204         * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
205         with getter and setter methods. Remove unused convenience constructor.
206         Use default code formatting.
207
208 2011-07-12  Ben Konrath  <ben@bagu.org>
209
210         Ignore LayoutItemPortals in the details view.
211
212         I added a new DTO for the LayoutItemPortal so that I can ignore it in
213         the client code.
214
215         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
216         LayoutItemPortal layout objects.
217         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
218         LayoutItemPortal objects when retrieving the details layout.
219         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
220         file. This is an empty class and just used to get type information for
221         now.
222
223 2011-07-12  Ben Konrath  <ben@bagu.org>
224
225         Use java-libglom 1.17.0.
226
227         * pom.xml:
228
229 2011-07-11  Ben Konrath  <ben@bagu.org>
230
231         Remove "Table:" label from table selector.
232
233         This matches a recent change in the Glom UI.
234
235         * mockups/details-contacts.html:
236         * mockups/details-projects.html:
237         * mockups/listview-contacts.html:
238         * mockups/listview-projects.html: Remove the "Table:" label from the
239         mockups as well.
240         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
241
242 2011-07-11  Ben Konrath  <ben@bagu.org>
243
244         Add main groups to the details view.
245
246         This makes things look a little nicer in the details view. The next step
247         is to implement the flowtable.
248
249         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
250         resources from the standard gwt css theme. Standard.css is now
251         included in OnlineGlom.html so that the online glom css rules have
252         precedence over the gwt theme.
253         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
254         the whole LayoutGroup to the DetailsView instead of just the titles.
255         * src/main/java/org/glom/web/client/ui/DetailsView.java:
256         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
257         details layout with a helper class (GroupPanel). I might extract this
258         class when I make the full flowtable.
259         * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
260         string as default so I don't have to worry about NPEs when processing
261         the layout objects.
262         * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
263         note beside OnlineGlom.gwt.xml above).
264         * src/main/webapp/style.css: Add default font-size to body to override
265         the font-size set by the standard theme. Don't use h2 tags for
266         group-title. Create new details-cell class.
267
268 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
269
270         ConfiguredDocument: Set the port number too.
271
272         * src/main/java/org/glom/web/server/ConfiguredDocument.java
273         (ConfiguredDocument.ConfiguredDocument): Get the port number from the 
274         Glom document. Presumably this worked sometimes so far because there is a 
275         default port number.
276
277 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
278
279         ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
280
281         * src/main/java/org/glom/web/server/ConfiguredDocument.java
282         (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is 
283         correct, though we should throw an exception too.
284
285 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
286
287         Fix a addDocuemnt typo.
288
289         * src/main/java/org/glom/web/shared/Documents.java
290         (Documents.addDocuemnt): Rename to addDocument().
291         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
292         (OnlineGlomServiceImpl.getDocuments): Adapt.
293         
294 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
295
296         Slightly improved log output when connection fails.
297
298         * src/main/java/org/glom/web/server/ConfiguredDocument.java
299         (ConfiguredDocument.setUsernameAndPassword):
300         We don't know for sure if it' the username/password that's wrong, so 
301         rephrase the message.
302         Also ouput the exception message, though it's generic in this case.
303
304 2011-07-08  Ben Konrath  <ben@bagu.org>
305
306         Cleanup comments.
307
308         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
309         added braces to a one line if statement because the Eclipse formatter
310         was getting confused.
311
312 2011-07-07  Ben Konrath  <ben@bagu.org>
313
314         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
315
316         These should really be two separate tasks but I counldn't get things to
317         work with GWT 2.2.0 and Eclipse 3.7.
318
319         * .classpath:
320         * .project:
321         * .settings/org.eclipse.jdt.core.prefs:
322         * .settings/org.eclipse.jdt.ui.prefs:
323         * .settings/org.eclipse.ltk.core.refactoring.prefs:
324         * .settings/org.eclipse.m2e.core.prefs:
325         Add new config files. Update current files. Remove references to the
326         webtools plugins as we're not using any of the webtools features.
327         * .gitignore: Add logs directory which is created when running with
328         'mvn gwt:run'.
329         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
330         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
331         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
332         limitation:
333         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
334
335 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
336
337         onlineglom.properties: Add explanatory comments.
338
339         * src/main/resources/onlineglom.properties: Also change the default user 
340         from ben to someuser, to avoid the risk of people thinking we just 
341         stupidly hard-coded a locale path, when they see that on stderr or in a log.
342
343 2011-06-28  Ben Konrath  <ben@bagu.org>
344
345         Use filename in Log for incorrect passwords.
346
347         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
348         getFileName(String) method to get the filename from the URI.
349
350 2011-06-28  Ben Konrath  <ben@bagu.org>
351
352         Add the table name to the URL token for the ListPlace.
353
354         This makes things consistent between the DetailsPlace and the
355         ListPlace. It also allows the the ListPlace to be bookmarked.
356
357         * src/main/java/org/glom/web/client/OnlineGlomService.java:
358         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
359         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
360         Remove getDefaultListLayout(). The default layout is now returned
361         by the getListLayout() method when the table name is an empty string.
362         * src/main/java/org/glom/web/client/activity/ListActivity.java:
363         Add table name field. Change to a new ListPlace when the table
364         has been changed. Use getListLayout() for getting the default
365         list layout.
366         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
367         Add table name field. Set the correct table name in the list box
368         when loading from bookmark. This corrects a problem for the
369         DetailsPlace too.
370         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
371         Move table name to super-class (HasSelectableTable). Move document
372         and table URL keys to super-class in HasSelectableTable.
373         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
374         Add table name field. Add Tokenizer class with URL key common to
375         the subclasses (DetailsPlace and ListPlace).
376         * src/main/java/org/glom/web/client/place/ListPlace.java:
377         Add table name. Add code to parse the URL token.
378         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
379         Update ListPlace construction with empty table name string.
380         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
381         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
382         Change setTableSelectedIndex(int) to setSelectedTableName(String).
383         Update ListPlace construction with table name string.
384         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
385         Change defaultTableName field to tableName to reflect how it's now
386         used. Update the getter and setter methods.
387
388 2011-06-28  Ben Konrath  <ben@bagu.org>
389
390         Enable the table selector in the DetailsView.
391
392         * src/main/java/org/glom/web/client/OnlineGlomService.java:
393         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
394         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
395         Remove getDefaultDetailsLayout(). The default layout is now returned
396         by the getDetailsLayout() method when the table name is an empty
397         string.
398         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
399         event handler for table change event. Change to using
400         getDetailsLayout() for the default details layout.
401         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
402         name to URL token.
403         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
404         when navigating to the details place.
405
406 2011-06-27  Ben Konrath  <ben@bagu.org>
407
408         Use filename based unique document ID in URL and for RPC.
409
410         The document ID is the glom document name with spaces (' ') replaced
411         with pluses ('+') and without the .glom extension.
412
413         This change is mostly a string substitution of 'documentTitle' for
414         'documentID'. The only code change is the addition of a Documents DTO to get the
415         filename to document title mappings as indicated below.
416
417         * src/main/java/org/glom/web/client/OnlineGlomService.java:
418         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
419         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
420         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
421         Use Documents DTO to create the document links in the document
422         selection view.
423         * src/main/java/org/glom/web/client/activity/ListActivity.java:
424         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
425         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
426         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
427         * src/main/java/org/glom/web/client/place/ListPlace.java:
428         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
429         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
430         * src/main/java/org/glom/web/client/ui/ListView.java:
431         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
432         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
433         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
434         * src/main/java/org/glom/web/server/Log.java:
435         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
436         getDocumentTitles() to getDocuments() and return the Documents DTO.
437         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
438         transferring the filename to document title mappings.
439
440 2011-06-25  Ben Konrath  <ben@bagu.org>
441
442         Make the authentication popup work again.
443
444         This bug was introduced when I extracted ConfiguredDocument to its own class.
445
446         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
447         correct success / fail status in setUsernameAndPassword().
448
449 2011-06-25  Ben Konrath  <ben@bagu.org>
450
451         Use filename as unique key for configuring database usernames and passwords.
452
453         This replaces the use of the Glom document title which could change
454         depending on the locale. Thanks to Murray Cumming for pointing out this
455         problem.
456
457         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
458         * src/main/resources/onlineglom.properties:
459
460 2011-06-24  Ben Konrath  <ben@bagu.org>
461
462         Pass primary key value to DetailsView.
463
464         This enables the DetailsView to load the correct data.
465
466         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
467         primary key value field and set in constructor. Pass primary key
468         value to getDetailsData().
469         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
470         variables for document title and primary key value.
471         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
472         key value to the DetailsPlace.
473
474 2011-06-24  Ben Konrath  <ben@bagu.org>
475
476         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
477
478         This allows the primary key to be retrieved by the Details button. This
479         functionality has not been implemented yet but it's in the works.
480
481         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
482         the LayoutGroup result to ListView.setCellTable instead of all of its
483         fields individually.
484         * src/main/java/org/glom/web/client/ui/ListView.java:
485         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
486         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
487         get the primary key for the table.
488         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
489         index of the primary key in the LayoutGroup accounting for hidden
490         primary keys. Rename getJavaNumberFormat() to
491         convertToJavaNumberFormat() for consistency. Cleanup / add some
492         comments.
493         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
494         field for primary key index and a field to indicate whether the
495         primary key is hidden or not.
496
497 2011-06-23  Ben Konrath  <ben@bagu.org>
498
499         Rename getTableData methods to getListData.
500
501         This is a rename refactor for consistency with other methods.
502
503         * src/main/java/org/glom/web/client/OnlineGlomService.java:
504         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
505         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
506         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
507
508 2011-06-23  Ben Konrath  <ben@bagu.org>
509
510         Extract the ConfiguredDocument innerclass into its own class.
511
512         This makes the servlet code more object oriented.
513
514         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
515         from private ConfiguredDocument class in OnlineGlomServiceImpl.
516         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
517         new ConfiguredDocument class.
518
519 2011-06-21  Ben Konrath  <ben@bagu.org>
520
521         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
522
523         This makes things more inline with how libglom works and reduces code
524         duplication. This refactor lays the groundwork for adding the primary key to
525         the LayoutGroup object.
526
527         * src/main/java/org/glom/web/client/OnlineGlomService.java:
528         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
529         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
530         Change method names to getListLayout and getDefaultListLayout for
531         consistency. Use LayoutGroup as the DTO for the list layout instead of
532         ColumnInfo and LayoutListTable.
533         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
534         new method names along with the LayoutGroup object for transferring the
535         list layout.
536         * src/main/java/org/glom/web/client/ui/ListView.java:
537         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
538         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
539         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
540         with LayoutGroup.
541         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
542         Replaced with LayoutGroup.
543         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
544         expectedResultSize and defaultTableName fields which are needed for
545         the list layout.
546         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
547         type field which is needed for the list layout but will also be
548         useful for the details layout as things progress.
549         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
550         Make class abstract. Remove the unnecessary
551         getFormattingHorizontalAlignment method. Add setFormatting method.
552
553 2011-06-16  Ben Konrath  <ben@bagu.org>
554
555         Add scripts for building and installing war.
556
557         These will help when updating OnlineGlom but they're also good
558         supplemental documentation of the build and deployment proceeding.
559
560         * utils/build-onlineglom-war.sh: New file.
561         * utils/install-onlineglom-war.sh: New file.
562
563 2011-06-16  Ben Konrath  <ben@bagu.org>
564
565         Create wrapper class to create consistent log messages.
566
567         I wrapped methods in the Log class of gwt-log to add the method names
568         from the servlet and create consistent formatting of the document title
569         and table names in the log messages.
570
571         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
572         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
573         log methods to use methods from wrapped Log class.
574
575 2011-06-16  Ben Konrath  <ben@bagu.org>
576
577         Remove superfluous conditional return.
578
579         Thanks to Murray Cumming for pointing this out!
580
581         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
582
583 2011-06-15  Ben Konrath  <ben@bagu.org>
584
585         Return an ArrayList of LayoutGroups for the Details layout.
586
587         This corrects a problem with the details layout as it can have more
588         than one top level LayoutGroup.
589
590         * src/main/java/org/glom/web/client/OnlineGlomService.java:
591         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
592         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
593         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
594         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
595         with ArrayList of LayoutGroups for the details view layout.
596         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
597         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
598         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
599         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
600         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
601         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
602
603 2011-06-14  Ben Konrath  <ben@bagu.org>
604
605         Use cast_dynamic method to determine the libglom LayoutItem type.
606
607         This is better than finding the LayoutItem type by using the string
608         returned from the get_part_type_name() method.
609
610         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
611
612 2011-06-14  Ben Konrath  <ben@bagu.org>
613
614         Add method names to log entries in the servlet.
615
616         This helps when tracking down deployment problems.
617
618         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
619
620 2011-06-14  Ben Konrath  <ben@bagu.org>
621
622         Add data to the DetailsView using a hard-coded primary key value.
623
624         The layout and functionality of the DetailsView is not complete. This
625         is just a checkpoint so the patch doesn't get too big.
626
627         * src/main/java/org/glom/web/client/OnlineGlomService.java:
628         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
629         Add getDetailsData() servlet method.
630         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
631         Add RPC to getDetailsData(). Change the way the LayoutGroups and
632         LayoutFields are added to the DetailsView.
633         * src/main/java/org/glom/web/client/ui/DetailsView.java:
634         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
635         Add setData() method. Change addLayoutGroup() and addLayoutField() to
636         take the string for the title instead of the object.
637         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
638         Add implementation getDetailsData() along with some private helper
639         methods.
640         * src/main/webapp/style.css: Add padding to details-data class. Add a
641         details-label class with the same padding as the details-data class.
642
643 2011-06-03  Ben Konrath  <ben@bagu.org>
644
645         Use presenter.goTo() to change to the DetailsPlace.
646
647         This will make things easier when we need to open the DetailsView with
648         data specific to the row that was clicked.
649
650         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
651
652 2011-06-02  Ben Konrath  <ben@bagu.org>
653
654         Add CSS file from mockups.
655
656         I'm adding this now because it's going to be useful to have when
657         developing the DetailsView. The TableSelectionView and ListView aren't
658         setup properly yet.
659
660         * src/main/webapp/OnlineGlom.html:
661         * src/main/webapp/style.css:
662
663 2011-06-02  Ben Konrath  <ben@bagu.org>
664
665         Use String.isEmpty() to check for empty string.
666
667         * src/main/java/org/glom/web/client/activity/ListActivity.java:
668
669 2011-06-02  Ben Konrath  <ben@bagu.org>
670
671         Display main layout group titles in the DetailsView.
672
673         This is the start of the DetailsActivity/DetailsView implementation.
674
675         * src/main/java/org/glom/web/client/OnlineGlomService.java:
676         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
677         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
678         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
679         Get the layout information for the details view from the server and set
680         the main layout group titles.
681         * src/main/java/org/glom/web/client/ui/DetailsView.java:
682         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
683         Add addLayoutGroup() and addLayoutField() methods. This are just
684         temporary methods for creating the the details view that will change
685         in the future.
686         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
687         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
688         methods.
689         * src/main/java/org/glom/web/shared/layout/Formatting.java:
690         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
691         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
692         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
693         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
694         Data Transfer Objects that mimic the libglom object structure. These are
695         used for transferring the details layout but could also be used for
696         transferring the list layout.
697
698 2011-05-27  Ben Konrath  <ben@bagu.org>
699
700         Reset the AuthenticationPopup when clearing the ListView.
701
702         * src/main/java/org/glom/web/client/activity/ListActivity.java:
703
704 2011-05-27  Ben Konrath  <ben@bagu.org>
705
706         Fix problem with onlineglom.properties file loading.
707
708         The old way worked in Eclipse but not on the server. Loading the
709         onlineglom.properties file now works in Eclipse and on the server.
710
711         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
712
713 2011-05-24  Ben Konrath  <ben@bagu.org>
714
715         Update gwt-log from 3.1.0 to 3.1.2.
716
717         Gwt-log 3.1.0 has been marked as depreciated.
718
719         * pom.xml:
720
721 2011-05-24  Ben Konrath  <ben@bagu.org>
722
723         Add comment to ListActivity.goTo() method.
724
725         * src/main/java/org/glom/web/client/activity/ListActivity.java:
726
727 2011-05-24  Ben Konrath  <ben@bagu.org>
728
729         Remove FIXME in convertGdkColorToHtmlColour()
730
731         The Gdk::Color value returned by libglom is 16-bits per channel on both
732         64 and 32-bit platforms.
733
734         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
735
736 2011-05-19  Ben Konrath  <ben@bagu.org>
737
738         Improve performance of initial ListView load.
739
740         I removed a round trip to the server for getting the default table name
741         and then requesting information about that table. This also removes a potential
742         problem with the table change handler not being setup in time to receive the
743         table change event from the ListActivity.
744
745         * src/main/java/org/glom/web/client/OnlineGlomService.java:
746         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
747         getDefaultLayoutListTable() method. Improve comments.
748         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
749         getDefaultLayoutListTable() method instead of firing a table change
750         event to get the table to load.
751         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
752         implementation of getDefaultLayoutListTable() method.
753         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
754         table name.
755
756 2011-05-19  Ben Konrath  <ben@bagu.org>
757
758         Override toDebugString() in TableChangeEvent.
759
760         This is useful to have for debugging.
761
762         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
763
764 2011-05-19  Ben Konrath  <ben@bagu.org>
765
766         Add a "Back to List" link when at the DetailsPlace.
767
768         * src/main/java/org/glom/web/client/activity/ListActivity.java:
769         Populate the CellTable based on the selected table of the ListBox if
770         it's set otherwise use the default table. This allows the "Back to
771         List" link to work.
772         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
773         Remove Place from constructors. Add a setPlace() method. Add
774         goToPlace() method. Set class as presenter for TableSelectionView.
775         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
776         Use the same TableSelectionActivity when switching between the List and
777         Details Places.
778         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
779         Subclass the new HasSelectableTablePlace. This removes some duplicate
780         code.
781         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
782         New class to represent Places that display the TableSelectionView.
783         * src/main/java/org/glom/web/client/place/ListPlace.java:
784         Subclass the new HasSelectableTablePlace. This removes some duplicate
785         code.
786         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
787         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
788         Add Presenter interface. Add setBackLinkVisible() method. Add
789         setBackLink() method.
790
791 2011-05-18  Ben Konrath  <ben@bagu.org>
792
793         Enable the "Details" buttons.
794
795         Right now only an empty details view is displayed.
796
797         * src/main/java/org/glom/web/client/ClientFactory.java:
798         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
799         Add DetailsView to ClientFactory.
800         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
801         A basic activity for the details view.
802         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
803         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
804         clearView().
805         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
806         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
807         GWT.
808         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
809         Create a new DetailsActivity when a DetailsPlace is requested. Remove
810         unnecessary super() in constructor.
811         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
812         Create a new TableSelectionActivity when a DetailsPlace is requested. We
813         really shouldn't create a new TableSelectionActivity for both the ListPlace
814         and the DetailsPlace so this should be considered a temporary solution.
815         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
816         New file. Represents a URL for the details view.
817         * src/main/java/org/glom/web/client/ui/DetailsView.java:
818         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
819         A basic details view interface and implementation.
820         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
821         Enable the "Details" buttons.
822
823 2011-05-12  Ben Konrath  <ben@bagu.org>
824
825         Use a LayoutPanel with multiple display areas for main layout.
826
827         This is mostly a refactor in that there are no changes from the user
828         point of view. These changes are required so that we can swap out the list view
829         with the details view when the user clicks the "Details" button.
830
831         * src/main/java/org/glom/web/client/ClientFactory.java:
832         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
833         OnlineGlomView. Add TableSelectionView, ListView and
834         AuthenticationPopup.
835         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
836         for main layout. Add display regions for main activities. Add
837         activity manager for for main activities.
838         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
839         file from parts of the deleted OnlineGlomActivity.
840         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
841         New file from parts of the deleted OnlineGlomActivity.
842         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
843         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
844         New files for app wide table change event.
845         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
846         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
847         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
848         Activity mappers for the main activities replace the deleted app-wide
849         AppActivityMapper.
850         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
851         Fix a spelling error in he comment.
852         * src/main/java/org/glom/web/client/ui/ListView.java:
853         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
854         Renamed from LayoutListView and modified for MVP. This still not a
855         proper dumb view as prescribed by the MVP pattern but it works for now.
856         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
857         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
858         New widget stripped out of the deleted OnlineGlomView.
859         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
860         Remove hack that is fixed by this patch.
861
862 2011-05-06  Ben Konrath  <ben@bagu.org>
863
864         Rename OnlineGlomPlace to ListPlace.
865
866         The only change besides the rename is that url will now display #list
867         instead of #Document.
868
869         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
870         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
871         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
872         * src/main/java/org/glom/web/client/place/ListPlace.java:
873         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
874
875 2011-05-06  Ben Konrath  <ben@bagu.org>
876
877         Use Presenter for app navigation.
878
879         This is the proper way to deal with Place (URL) changes with the MVP
880         framework.
881
882         * src/main/java/org/glom/web/client/ClientFactory.java:
883         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
884         PlaceHistoryMapper and PlaceHistoryHandler.
885         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
886         PlaceHistoryMapper and PlaceHistoryHandler.
887         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
888         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
889         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
890         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
891         Add Presenter interface and setPresenter methods. Rename addHyperLink
892         to addDocumentLink taking only the document title as a parameter.
893
894 2011-04-14  Ben Konrath  <ben@bagu.org>
895
896         Prompt for db username/password if they haven't been set.
897
898         This is implemented with a popup widget that is contained within the
899         OnlineGlomView and managed by the OnlineGlomActivity.
900
901         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
902         methods for checking and setting the database username and password.
903         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
904         new methods for checking and setting the database username and
905         password.
906         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
907         Display authentication popup if the JDBC connection to the database
908         has not been authenticated.
909         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
910         file.
911         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
912         for dealing with the authentication popup.
913         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
914         Implement the methods for dealing with the authentication popup.
915         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
916         try to executed queries if the database connection hasn't been
917         authenticated. Implement methods for checking and setting the
918         database username and password.
919
920 2011-04-12  Ben Konrath  <ben@bagu.org>
921
922         Make log messages a little clearer.
923
924         Add a dash betweeen the document title and the table name.
925
926         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
927
928 2011-04-12  Ben Konrath  <ben@bagu.org>
929
930         Protect against NPEs when cleaning up database resources.
931
932         While this isn't strictly necessary because the exception is caught,
933         not protecting against the NPEs makes it harder to find the real error
934         in the log file.
935
936         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
937
938 2011-04-12  Ben Konrath  <ben@bagu.org>
939
940         Move configuration of the servlet to the constructor.
941
942         The servlet will be initialized even if the database authentication
943         information is not set or correct. I still need to add the UI for prompting
944         the user for the authentication information when it's required.
945
946         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
947         javadocs for getDocumentTitles() method.
948         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
949         Set error message when RPC fails.
950         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
951         glom files directory from the configuration file. Try to set the
952         database authentication information for the specific document if it's
953         set and works otherwise try to use the global authentication
954         information set for the directory.
955         * src/main/resources/onlineglom.properties: Moved from
956         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
957         Added detailed comments for the new keys.
958
959 2011-04-11  Ben Konrath  <ben@bagu.org>
960
961         Remove unnecessary @Override in DocumentSelectionViewImpl.
962
963         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
964
965 2011-04-11  Ben Konrath  <ben@bagu.org>
966
967         Remove center alignment in DocumentSelectionView.
968
969         The title element is still centred but the document titles and bottom
970         sentence are both left-aligned.
971
972         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
973
974 2011-04-11  Ben Konrath  <ben@bagu.org>
975
976         Change 'Demo' naming convention to 'Document'.
977
978         This is just a rename refactor with no functional changes to the code.
979
980         * src/main/java/org/glom/web/client/ClientFactory.java:
981         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
982         * src/main/java/org/glom/web/client/OnlineGlom.java:
983         * src/main/java/org/glom/web/client/OnlineGlomService.java:
984         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
985         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
986         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
987         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
988         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
989         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
990         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
991         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
992         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
993
994 2011-04-08  Ben Konrath  <ben@bagu.org>
995
996         Remove FIXME from safeLongToInt() method.
997
998         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
999         this method.
1000
1001         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1002
1003 2011-04-08  Ben Konrath  <ben@bagu.org>
1004
1005         Display an error if no glom documents are found in the specified directory.
1006
1007         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1008         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1009         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1010         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1011
1012 2011-04-08  Ben Konrath  <ben@bagu.org>
1013
1014         Add copyright header to one more file ... oops.
1015
1016         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1017
1018 2011-04-08  Ben Konrath  <ben@bagu.org>
1019
1020         Add copyright header to files without it.
1021
1022         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1023         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1024         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1025         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1026         * src/main/java/org/glom/web/shared/ColumnInfo.java:
1027         * src/main/java/org/glom/web/shared/GlomField.java:
1028
1029 2011-04-08  Ben Konrath  <ben@bagu.org>
1030
1031         Add support for accessing multiple glom documents in the servlet.
1032
1033         This completes the demo selection functionality.
1034
1035         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1036         document title to methods.
1037         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1038         document title to methods.
1039         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1040         Set browser window title when the activity starts. Correct name of
1041         document title variable.
1042         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1043         Set browser window title when the activity starts. Set the table
1044         selector change handler after table selector has been set. Clear the
1045         OnlineGlomView when the activity has been stopped.
1046         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1047         document title as the place token. Use "#Document:" instead of
1048         "#OnlineGlomPlace:" in the URL.
1049         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1050         Change heading to "Online Glom"
1051         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1052         document title in RPC methods.
1053         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1054         setDocumentTitle() method. Add clear() method.
1055         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1056         setDocumentTitle() method. Implement clear() method which removes the
1057         change handler on the ListBox, clears the ListBox and clears the
1058         DataPanel.
1059         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1060         Implement methods with document title. Keep track for the configured
1061         glom documents and their corresponding JDBC configurations in a hash
1062         table. This information is retrieved using the document title as the
1063         key in the hash table.
1064         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1065         document title field as it's no longer needed.
1066
1067 2011-04-08  Ben Konrath  <ben@bagu.org>
1068
1069         Update the Eclipse JDT configuration.
1070
1071         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1072         methods. Automatically add the copyright header to new files.
1073
1074 2011-04-05  Ben Konrath  <ben@bagu.org>
1075
1076         Add new page for demo selection.
1077
1078         This patch adds all the components required to view and start an
1079         OnlineGlom demo by clicking on the desired hyperlink. The user is
1080         able to return to the demo selection page with the browser's back
1081         button. I still need to modify the servlet to work with multiple
1082         documents so all demo links will load the file defined in the
1083         OnlineGlom.properties.
1084
1085         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1086         This is only useful during development so we don't need to save it.
1087         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1088         get a reference to the DemoSelectionView.
1089         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1090         method to get a reference to the DemoSelectionView.
1091         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1092         default view to DemoSelectionView.
1093         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1094         to get glom document titles for glom files in a hard-coded directory.
1095         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1096         method to get glom document titles for glom files in a hard-coded
1097         directory.
1098         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1099         Presenter for DemoSelectionView.
1100         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1101         for DemoSelectionView.
1102         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1103         Update for DemoSelectionView.
1104         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1105         Basic 'Place' implementation for the DemoSelectionView.
1106         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1107         The interface for the DemoSelectionView.
1108         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1109         The implementation of the DemoSelectionView.
1110         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1111         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1112         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1113         implementation of method to get glom document titles for glom files
1114         in a hard-coded directory.
1115         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1116         on longer being used.
1117         * src/main/webapp/glom.png: Glom logo.
1118
1119 2011-04-05  Ben Konrath  <ben@bagu.org>
1120
1121         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1122
1123         This is the forth and final commit of a refactor that will allow
1124         OnlineGlom to be used with multiple documents.
1125
1126         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1127         Move RPC code from OnlineGlomViewImpl to this class.
1128         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1129         to inferface.
1130         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1131         RPC code to the presenter class (the P in MVP).
1132
1133 2011-04-04  Ben Konrath  <ben@bagu.org>
1134
1135         Start moving the existing OnlineGlom code to MVP.
1136
1137         This work is based on the GWT MVP framework that is documented here:
1138
1139         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1140
1141         This is the third commit of a refactor that will allow OnlineGlom to
1142         be used with multiple documents.
1143
1144         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1145         Interface for client factory which is used to get instances of various
1146         classes throughout the app.
1147         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1148         Implementation of client factory.
1149         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1150         initialize the MVP framework.
1151         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1152         New file. Activity manager for the main container widget. This is the
1153         Presenter in MVP.
1154         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1155         Maps place (URL) to its corresponding activity.
1156         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1157         New file. This is just a place holder for a generated file.
1158         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1159         New file. Represents the URL for the main Online Glom app.
1160         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1161         for changes in LayoutListViewImpl.
1162         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1163         interface for View. Move code to OnlineGlomViewImpl class.
1164         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1165         file. Implementation of OnlineGlomView.
1166         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1167         Place resources. Use ClientFactoryImpl by default.
1168
1169 2011-04-04  Ben Konrath  <ben@bagu.org>
1170
1171         Move View classes to their own package.
1172
1173         This is the second commit of a refactor that will allow OnlineGlom to
1174         be used with multiple documents.
1175
1176         * src/main/java/org/glom/web/client/OnlineGlom.java:
1177         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1178         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1179
1180 2011-04-02  Ben Konrath  <ben@bagu.org>
1181
1182         Move UI code from the main module to its own class.
1183
1184         This is the first commit of a refactor that will allow OnlineGlom to be
1185         used with multiple documents.
1186
1187         * src/main/java/org/glom/web/client/LayoutListView.java: Update
1188         references to OnlineGlom to OnlineGlomView.
1189         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1190         OnlineGlomView and instantiate it here.
1191         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1192         represents the main OnlineGlomView with one document.
1193
1194 2011-04-01  Ben Konrath  <ben@bagu.org>
1195
1196         Fix formatting of gwt.xml and add DTD.
1197
1198         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1199
1200 2011-03-30  Ben Konrath  <ben@bagu.org>
1201
1202         Propperly convert gdkColor string to html colour string.
1203
1204         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1205
1206 2011-03-28  Ben Konrath  <ben@bagu.org>
1207
1208         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1209
1210         This implementation matches
1211         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1212         readable and is not tied to Swig.
1213
1214         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1215
1216 2011-03-28  Ben Konrath  <ben@bagu.org>
1217
1218         Use read-only checkboxes for boolean field types.
1219
1220         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1221         in the CellTable based on the field type. It currently only
1222         distinguishes between boolean and text columns but I'll need to add
1223         support for more types.
1224         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1225         column type in the ColumnInfo object. Add method to convert between the
1226         glom field type enum in ColumnInfo and the glom field type in libglom.
1227         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1228         field type.
1229         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1230         getting and setting booleans.
1231
1232 2011-03-25  Ben Konrath  <ben@bagu.org>
1233
1234         Don't get the Date twice from the ResultSet.
1235
1236         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1237
1238 2011-03-25  Ben Konrath  <ben@bagu.org>
1239
1240         Cleanup code in the servlet.
1241
1242         * TODO: Remove item about row count. Add item about testing row count
1243         query with large number of rows.
1244         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1245         spelling mistakes, change method parameter to be consistent with
1246         other methods.
1247
1248 2011-03-25  Ben Konrath  <ben@bagu.org>
1249
1250         Add server side logging with the gwt-log library.
1251
1252         * .gitignore: Ignore the log file we're now producing.
1253         * TODO: Add a couple TODO item for logging.
1254         * pom.xml: Add gwt-log and log4j as a dependency.
1255         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1256         logging of errors, warnings and some important info.
1257         * src/main/resources/log4j.properties: New file to configure log4j.
1258
1259 2011-03-24  Ben Konrath  <ben@bagu.org>
1260
1261         Add a disable button for the Details view.
1262
1263         * src/main/java/org/glom/web/client/LayoutListView.java:
1264
1265 2011-03-22  Ben Konrath  <ben@bagu.org>
1266
1267         Use a count query to get the number of rows for the list view pager.
1268
1269         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1270
1271 2011-03-22  Ben Konrath  <ben@bagu.org>
1272
1273         Add more TODO information about CellTable pager positioning. 
1274
1275         * TODO:
1276
1277 2011-03-19  Ben Konrath  <ben@bagu.org>
1278
1279         Add TODO item about CellTable pager positioning.
1280
1281         * TODO:
1282
1283 2011-03-18  Ben Konrath  <ben@bagu.org>
1284
1285         Remove unneeded GlomFieldColumn class.
1286
1287         This is just a small code cleanup.
1288
1289         * src/main/java/org/glom/web/client/LayoutListView.java:
1290
1291 2011-03-18  Ben Konrath  <ben@bagu.org>
1292
1293         Use cursor mode in the query that gets data for the list view.
1294
1295         I still need to fix the potential memory problem when getting the row
1296         count for the list view.
1297
1298         * TODO: Add note about testing memory usage with large data sets. Add
1299         item about fixing row counting with large data sets.
1300         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1301         PostgreSQL JDBC driver into cursor mode when getting data for the
1302         list view.
1303
1304 2011-03-15  Ben Konrath  <ben@bagu.org>
1305
1306         Remove the GWT Container from the Eclipse build classpath.
1307
1308         The GWT dependencies are set by Maven so this isn't needed.
1309
1310         * .classpath:
1311
1312 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
1313
1314         Added some earlier mockups to git, but not to the tarball dist.
1315
1316         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1317         Openismus. These hopefully show how we might structure the HTML so that
1318         it can be styled easily with CSS. However, we probably need to adapt them
1319         for the CSS structure that GWT dictates for common widgets.
1320
1321 2011-03-14  Ben Konrath  <ben@bagu.org>
1322
1323         Locate OnlineGlom.properties using the ServletContext.
1324
1325         This is required to be able to locate the file in the deployed servlet.
1326
1327         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1328         Configure the database and glom document in in a helper method so
1329         that the ServletContext can be used to locate OnlineGlom.properties.
1330         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1331         src/main/webapp. This is the proper location for .properites files.
1332
1333 2011-03-12  Ben Konrath  <ben@bagu.org>
1334
1335         Add note to README about why we're compiling down to obfuscated JavaScript.
1336
1337         * README:
1338
1339 2011-03-11  Ben Konrath  <ben@bagu.org>
1340
1341         Use properties file to configure servlet.
1342
1343         This allows people to change the glom file path, db username and db
1344         password without recompiling the code.
1345
1346         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1347         * src/main/webapp/OnlineGlom.properties:
1348
1349 2011-03-11  Ben Konrath  <ben@bagu.org>
1350
1351         Use table fields in layout list view if the layout list is not defined.
1352
1353         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1354         Manually create a LayoutFieldVector for the query builder using the
1355         table fields when a layout list is not defined in the glom file.
1356
1357 2011-03-11  Ben Konrath  <ben@bagu.org>
1358
1359         Only show FIXME string for images when there's an image.
1360
1361         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1362         in this change are some small code cleanups.
1363
1364 2011-03-11  Ben Konrath  <ben@bagu.org>
1365
1366         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1367
1368         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1369
1370 2011-03-11  Ben Konrath  <ben@bagu.org>
1371
1372         Correctly set the index of the default table.
1373
1374         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1375         Correctly set the index of the default table. Add commented out example
1376         file paths.
1377
1378 2011-03-10  Ben Konrath  <ben@bagu.org>
1379
1380         Add comment to pom.xml about the previous change.
1381
1382         * pom.xml: Add comment about the deployment issue so that it's obvious
1383         why java-libglom is set to the provided scope.
1384
1385 2011-03-10  Ben Konrath  <ben@bagu.org>
1386
1387         Change java-libglom dependency from compile to provided in pom.xml.
1388
1389         Since java-libglom uses jni it can only be loaded once and therefore
1390         must be placed in $CATALINA_HOME/lib and not included in each war.
1391         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1392         More information about this issue can be found in the Tomcat 6 release
1393         notes in the "JNI Based Applications" section:
1394
1395         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1396
1397         * README: Remove note about this issue. Deployment info should really
1398         be on the wiki anyway so I'll add it right now.
1399         * pom.xml: Change java-libglom dependency from compile to provided so
1400         that it's copied in to the packaged war.
1401
1402 2011-03-09  Ben Konrath  <ben@bagu.org>
1403
1404         Change to using a neutral locale for currency, date and time formatting.
1405
1406         This solves the problem of currency values being represented without a
1407         space between the currency code and the number (e.g. "EUR5.89" is now
1408         represented as "EUR 5.89"). More work is required when we implement
1409         a locale preference setting.
1410
1411         * TODO: Add note about currency formatting issues with different
1412         locales.
1413         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1414         to using the neutral ROOT locale.
1415
1416 2011-03-09  Ben Konrath  <ben@bagu.org>
1417
1418         Add support for currency codes that are not ISO 4217 codes.
1419
1420         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1421         the currency code defined in the glom file when it's not 3 characters
1422         long or when Java doesn't recognize the string as an ISO 4217 code.
1423
1424 2011-03-08  Ben Konrath  <ben@bagu.org>
1425
1426         Remove test classes, launch configurations and configuration.
1427
1428         The test stuff was getting in the way when creating the war. To make
1429         the war file you can now do 'mvn clean package'. The packaged war file
1430         will be in the target directory.
1431
1432         * .classpath: Remove unused classpathentry for tests and i18n.
1433         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1434         property. Don't run test or i18n goals when packaging the war.
1435         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1436         formatting.
1437
1438         Removed files:
1439
1440         * OnlineGlomTest-dev.launch:
1441         * OnlineGlomTest-prod.launch:
1442         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1443         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1444
1445 2011-03-07  Ben Konrath  <ben@bagu.org>
1446
1447         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1448
1449         These fixes allow me to use 'mvn deploy' to create the war file.
1450
1451         * .classpath: This generated config has been updated by Eclipse. This
1452         change was probably triggered by me updating from Eclipse 3.6.1 to
1453         3.6.2.
1454         * .gitignore: Add entry to ignore the directory
1455         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1456         * .project: The generated config has been updated by Eclipse. This
1457         change was probably triggered by me updating from Eclipse 3.6.1 to
1458         3.6.2.
1459         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1460         so that Eclipse doesn't complain
1461         * pom.xml: Update to gwt-maven-plugin 2.2.0.
1462         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1463         'tests' directory to 'client' directory. This is the new
1464         gwt-maven-plugin convension.
1465         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1466         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1467
1468 2011-03-07  Ben Konrath  <ben@bagu.org>
1469
1470         Add support for horizontal alignment in the LayoutList columns.
1471
1472         * TODO: Remove item about horizontal alignment. Add item about
1473         improvements to ColumnInfo.
1474         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1475         alignment on the columns. Use ColumnInfo RPC object get the column
1476         title and horizontal alignment.
1477         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1478         LayoutListView creation with ColumnInfo RPC object.
1479         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1480         a ColumnInfo object for every LayoutList columnn. Convert the
1481         FieldFormatting.HorizontalAlignment to the correct
1482         ColumnnInfo.HorizontatlAlignment with the new
1483         getColumnInfoHorizontalAlignment helper method.
1484         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1485         to encapsulate column information like alignment and title. This
1486         could be used to set the colour instead of on a per cell field basis.
1487         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1488         column title storage and retrieval with ColumnInfo.
1489
1490 2011-03-04  Ben Konrath  <ben@bagu.org>
1491
1492         Add support for column sorting.
1493
1494         * src/main/java/org/glom/web/client/LayoutListView.java: Change
1495         AsynDataProvider to be an anonymous inner class. Use new
1496         getSortedTableData RPC method when column sort is requested. Set all
1497         columns sortable and add an AsyncHandler to activate sorting in the
1498         AsyncDataProvider.
1499         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1500         method getSortedTableData(). Cleanup other method signatures.
1501         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1502         new method getSortedTableData(). Cleanup other method signatures.
1503         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1504         Implement getSortedTableData() and getTableData() methods by using a
1505         private helper method with the appropriate parameters filled in. Use
1506         user supplied sort clause when supplied, otherwise fall back to
1507         sorting by the primary key. Move destroy() method to be underneath
1508         constructor for readability.  Cleanup comments.
1509
1510 2011-03-03  Ben Konrath  <ben@bagu.org>
1511
1512         Add support for colour text and colour backgrounds to the layout list cells.
1513
1514         Only the cell backgrounds are coloured which leaves a gap between the
1515         cells that isn't coloured. I need to figure out a way to set
1516         'style=background-colour:' on the whole column rather than just the
1517         cell.
1518
1519         * TODO: Add a note about colouring the background of the whole column.
1520         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1521         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1522         render the coloured text and backgrounds. Use GlomField[] for the row type.
1523         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1524         for the row type.
1525         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1526         GlomField[] for the row type.
1527         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1528         GlomField[] for the row type. Set the text, text colour and background
1529         colour in the GlomField objects as specified in the glom document. Add
1530         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1531         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1532         the glom field text, foreground colour and background colour.
1533
1534 2011-03-02  Ben Konrath  <ben@bagu.org>
1535
1536         Don't display hidden tables in the combo box.
1537
1538         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1539         ArrayLists.
1540         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1541         code to ignore hidden tables using ArrayLists for the table names and
1542         titles.
1543         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1544         tableNames to use ArrayLists instead of String[]. Update getter and setter
1545         methods.
1546
1547 2011-03-01  Ben Konrath  <ben@bagu.org>
1548
1549         Add support for Date and Time number types.
1550
1551         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1552         Implement formatting for Date and Time values. Change the default glom
1553         file to small business example.
1554
1555 2011-03-01  Ben Konrath  <ben@bagu.org>
1556
1557         Add support for formatting glom types as specified in the glom file.
1558
1559         Formatting isn't finished yet - I still need to add support for Date
1560         and Time values.
1561
1562         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1563         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1564         checks for null values in JDBC cleanup code and catch all exceptions
1565         instead of just SQLExceptions.
1566         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1567         method name.
1568
1569 2011-03-01  Ben Konrath  <ben@bagu.org>
1570
1571         Use GWT 2.2.0 instead of 2.1.1.
1572
1573         * pom.xml: Change GWT version numbers.
1574
1575 2011-03-01  Ben Konrath  <ben@bagu.org>
1576
1577         A few small code cleanups.
1578
1579         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1580         duplicate for loop.
1581         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1582         unnecessary object creation in constructor.
1583         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1584         unnecessary object creation in constructor.
1585
1586 2011-02-28  Ben Konrath  <ben@bagu.org>
1587
1588         Add file for TODO list.
1589
1590         * TODO: New file.
1591
1592 2011-02-18  Ben Konrath  <ben@bagu.org>
1593
1594         Enable the CellTable Pager when more than 20 rows need to be viewed.
1595
1596         The Pager will automatically become active when the results are larger
1597         than the CellTable size which is currently set to 20 lines.
1598
1599         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1600         name on debug statment in RPC call in LayoutListDataProvider, add
1601         numRows parameter to LayoutListView constructor, propperly set rowCount
1602         in CellTable.
1603         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1604         name on debug statment in RPC call, use LayoutListTable object in RPC
1605         calls, pass rowCount to LayoutListView.
1606         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1607         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1608         object.
1609         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1610         interface for changes in OnlineGlomService.
1611         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1612         getLayoutListHeaders() to getLayoutListTable() and return
1613         LayoutListTable. Using this object allows me to pass other information
1614         about the LayoutList like the expected number of rows in the result set.
1615         The Connection object from the connection pool is now propperly closed.
1616         Only the requested number of lines are returned to the client in
1617         getTableData().
1618         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1619         GlomTable and add columnTitles and numRows.
1620
1621 2011-02-18  Ben Konrath  <ben@bagu.org>
1622
1623         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1624
1625         This is a small performance boost. I'll use GlomTable to get the required
1626         layoutlist information.
1627
1628         * src/main/java/org/glom/web/client/OnlineGlom.java:
1629         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1630         * src/main/java/org/glom/web/shared/GlomDocument.java:
1631
1632 2011-02-18  Ben Konrath  <ben@bagu.org>
1633
1634         Add option to turn off formatting in JDT formatter preferences.
1635
1636         * .settings/org.eclipse.jdt.core.prefs:
1637
1638 2011-02-18  Ben Konrath  <ben@bagu.org>
1639
1640         Rename LayoutList to LayoutListView.
1641
1642         I'm working towards setting things up to easily use MVP when the time
1643         comes.
1644
1645         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1646         LayoutList.java.
1647         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1648         references.
1649
1650 2011-02-17  Ben Konrath  <ben@bagu.org>
1651
1652         Move LayoutListDataProvider class into LayoutList.java.
1653
1654         * src/main/java/org/glom/web/client/LayoutList.java:
1655
1656 2011-02-17  Ben Konrath  <ben@bagu.org>
1657
1658         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1659
1660         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1661         references.
1662         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1663         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1664         from LibGlomServer.java.
1665         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1666         Rename from LibGlomServiceAsync.java.
1667         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1668         Rename from LibGlomServiceImpl.java.
1669         * src/main/webapp/WEB-INF/web.xml: Update configuration.
1670
1671 2011-02-17  Ben Konrath  <ben@bagu.org>
1672
1673         Update JDT settings.
1674
1675         * .settings/org.eclipse.jdt.core.prefs:
1676
1677 2011-02-17  Ben Konrath  <ben@bagu.org>
1678
1679         Move GWT-RPC objects to shared package (where they should be).
1680
1681         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1682         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1683         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1684         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1685         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1686         org.glom.web.shared package.
1687         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1688         org.glom.web.shared package.
1689         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1690         directory in compilation to javascript.
1691
1692 2011-02-16  Ben Konrath  <ben@bagu.org>
1693
1694         Add sort clause to the sql query that grabs table information.
1695
1696         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1697         if one of the columns is a primary key.
1698
1699 2011-02-16  Ben Konrath  <ben@bagu.org>
1700
1701         Disable generateAsync feature of gwt-maven.
1702
1703         The generated interface does not correctly match the methods in LibGlomService
1704         and the generated singleton Util inner-class doesn't respect the servlet
1705         mappings.
1706
1707         * pom.xml: Turn off generateAsync feature.
1708         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1709         with singleton Util inner-class.
1710
1711 2011-02-14  Ben Konrath  <ben@bagu.org>
1712
1713         Add LGPL v3 licence notices.
1714
1715         Followed directions listed here:
1716         http://www.gnu.org/licenses/gpl-howto.html
1717
1718         * COPYING: This file is a copy of the GPL v3.
1719         * COPYING.LESSER: This file is a copy of the LGPL v3.
1720         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1721         notice.
1722         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1723         notice.
1724         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1725         notice.
1726         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1727         licence notice.
1728         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1729         notice.
1730         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1731         notice.
1732         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1733         licence notice.
1734
1735 2011-02-14  Ben Konrath  <ben@bagu.org>
1736
1737         Use ArrayList instead of Array in GWT-RPC calls.
1738
1739         Apparently this gives a slight performance boost to the compiled
1740         java script.
1741
1742         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1743         instead of Array.
1744         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1745         of Array.
1746
1747 2011-02-14  Ben Konrath  <ben@bagu.org>
1748
1749         Access data from a postgres db rather than the example glom file.
1750
1751         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1752         compile down to obfuscated javascript.
1753         * pom.xml: Add c3p0 and postgres JDBC libraries.
1754         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1755         using a postgres db accessed through the c3p0 connection pooling library.
1756
1757 2011-02-14  Ben Konrath  <ben@bagu.org>
1758
1759         Update Java formatter settings.
1760
1761         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1762
1763 2011-02-02  Ben Konrath  <ben@bagu.org>
1764
1765         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1766
1767         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1768         using Maven.
1769         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1770         the compiled webapp directory that Eclipse uses as we're using Maven now.
1771         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1772         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1773         to 1.6.
1774         * pom.xml: Format file, change target Java version to 1.6.
1775
1776 2011-02-02  Ben Konrath  <ben@bagu.org>
1777
1778         Add information about a deployment related issue.
1779
1780         * README: Add Notes section with the problem outlined.
1781
1782 2011-02-02  Ben Konrath  <ben@bagu.org>
1783
1784         Call Glom.libglom_deinit() when the servlet is shutdown.
1785
1786         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1787         Glom.libglom_deinit() to destroy() method.
1788
1789 2011-01-28  Ben Konrath  <ben@bagu.org>
1790
1791         Use generated Util class to get the RPC Async interface.
1792
1793         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1794         file.
1795         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1796         getInstance() method to get a reference to the RPC Async interface.
1797         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1798         getInstance() method to get a reference to the RPC Async interface, remove
1799         the now unused getLibGlomServiceProxy() method.
1800
1801 2011-01-27  Ben Konrath  <ben@bagu.org>
1802
1803         Cleanup ChangeLog entry from previous commit.
1804
1805         * ChangeLog: Group logical changes together and add comments.
1806
1807 2011-01-25  Ben Konrath  <ben@bagu.org>
1808
1809         Convert to gwt-maven project.
1810
1811         * .gitignore: Update for new project structure.
1812         * README: New file with a link to the online documentation.
1813         * pom.xml: The generated maven configuration file with some tweaks.
1814
1815         Add / update Eclipse settings. These files are a merge of the files that
1816         were generated with the gwt-maven plugin and the files we were previously
1817         using.
1818         * .classpath:
1819         * .project:
1820         * .settings/.jsdtscope:
1821         * .settings/com.google.gdt.eclipse.core.prefs:
1822         * .settings/com.google.gwt.eclipse.core.prefs:
1823         * .settings/org.eclipse.jdt.core.prefs:
1824         * .settings/org.eclipse.wst.common.component:
1825         * .settings/org.eclipse.wst.common.project.facet.core.xml:
1826         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1827         * .settings/org.maven.ide.eclipse.prefs:
1828         * OnlineGlomTest-dev.launch:
1829         * OnlineGlomTest-prod.launch:
1830
1831         Java source files moved from the 'src' directory to the directory structure
1832         required by maven.
1833         * src/main/java/org/glom/web/client/GlomDocument.java:
1834         * src/main/java/org/glom/web/client/GlomTable.java:
1835         * src/main/java/org/glom/web/client/LayoutList.java:
1836         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1837         * src/main/java/org/glom/web/client/LibGlomService.java:
1838         * src/main/java/org/glom/web/client/OnlineGlom.java:
1839         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1840
1841         Non-functional property file used for translations. I included this as
1842         reminder that it's something I need to sort out.
1843         * src/main/resources/org/glom/web/client/Messages.properties:
1844
1845         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1846         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1847
1848         The servlet configuration files moved from the 'war' directory.
1849         * src/main/webapp/OnlineGlom.css:
1850         * src/main/webapp/OnlineGlom.html:
1851         * src/main/webapp/WEB-INF/web.xml:
1852
1853         Generated test files with most of the code commented out. I included these
1854         so that it's easy to add tests when we're ready for them.
1855         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1856         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1857
1858 2011-01-25  Ben Konrath  <ben@bagu.org>
1859
1860         Remove unused println.
1861
1862         * src/org/glom/web/server/LibGlomServiceImpl.java:
1863
1864 2011-01-25  Ben Konrath  <ben@bagu.org>
1865
1866         Add project specific JDT settings.
1867
1868         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1869         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1870
1871 2011-01-25  Ben Konrath  <ben@bagu.org>
1872
1873         Populate celltable with example data.
1874
1875         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1876         * src/org/glom/web/client/GlomTable.java: Correct formatting.
1877         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1878         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1879         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1880         asynchronously gets the example data.
1881         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1882         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1883         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1884         curently selected table to be retrieved by other widgets.
1885         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1886         implement getTableData() in a hacky way. This method needs to be updated
1887         to grab information from the database when database creating is
1888         implemented.
1889
1890 2011-01-20  Ben Konrath  <ben@bagu.org>
1891
1892         Set table headers when table dropBox changes.
1893
1894         * src/org/glom/web/client/GlomDocument.java: Correct some method
1895         names.
1896         * src/org/glom/web/client/LibGlomService.java: Add method
1897         to get list layout field names.
1898         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1899         to get list layout field names.
1900         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1901         widget for list layout table.
1902         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1903         the table drop box and add new updateTable() method to asynchronously
1904         get the layout list field names for the currently selected table.
1905         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1906         implementation of getLayoutListHeaders() method.
1907         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1908
1909 2011-01-18  Ben Konrath  <ben@bagu.org>
1910
1911         Make a listBox with table titles instead of the flexTable demo.
1912
1913         This is the start of something more useful.
1914
1915         * .classpath: Exclude a bunch of packages from the JVM that are
1916         getting in the way of the Eclipse content assist.
1917         * src/org/glom/web/client/GlomDocument.java:
1918         * src/org/glom/web/client/GlomTable.java:
1919         * src/org/glom/web/client/LibGlomService.java:
1920         * src/org/glom/web/client/LibGlomServiceAsync.java:
1921         * src/org/glom/web/client/OnlineGlom.java:
1922         * src/org/glom/web/server/LibGlomServiceImpl.java:
1923         * war/OnlineGlom.html:
1924         * war/WEB-INF/web.xml:
1925
1926 211-01-13  Ben Konrath  <ben@bagu.org>
1927
1928         Update to new java-libglom API.
1929
1930         * .gitignore: Ignore OnlineGlom.war.
1931         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1932
1933 2010-12-20  Ben Konrath  <ben@bagu.org>
1934
1935         Add some basic style to the table listing.
1936
1937         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1938         header, print useful error message on async callback failure.
1939         * war/OnlineGlom.css: Add style for table header, remove defaults
1940         provided by the Eclipse project wizard.
1941
1942 2010-12-20  Ben Konrath  <ben@bagu.org>
1943
1944         Load example file from installed glom dir.
1945
1946         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1947         provided by java-libglom to find the example file.
1948
1949 2010-12-20  Ben Konrath  <ben@bagu.org>
1950
1951         Update Eclipse settings.
1952
1953         * .classpath:
1954         * .settings/com.google.gdt.eclipse.core.prefs:
1955         * .settings/com.google.gwt.eclipse.core.prefs:
1956
1957 2010-12-17  Ben Konrath  <ben@bagu.org>
1958
1959         Initial commit.
1960
1961         * .classpath: New file.
1962         * .gitignore: New file.
1963         * .project: New file.
1964         * .settings/com.google.gdt.eclipse.core.prefs: New file.
1965         * .settings/com.google.gwt.eclipse.core.prefs: New file.
1966         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1967         * src/org/glom/web/client/GlomTable.java: New file.
1968         * src/org/glom/web/client/OnlineGlom.java: New file.
1969         * src/org/glom/web/client/TableNameService.java: New file.
1970         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1971         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1972         * war/OnlineGlom.css: New file.
1973         * war/OnlineGlom.html: New file.
1974         * war/WEB-INF/web.xml: New file.
1975         * war/images/glom.png: New file.