Remove unnecessary @Override in DocumentSelectionViewImpl.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-04-11  Ben Konrath  <ben@bagu.org>
2
3         Remove unnecessary @Override in DocumentSelectionViewImpl.
4
5         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
6
7 2011-04-11  Ben Konrath  <ben@bagu.org>
8
9         Remove center alignment in DocumentSelectionView.
10
11         The title element is still centred but the document titles and bottom
12         sentence are both left-aligned.
13
14         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
15
16 2011-04-11  Ben Konrath  <ben@bagu.org>
17
18         Change 'Demo' naming convention to 'Document'.
19
20         This is just a rename refactor with no functional changes to the code.
21
22         * src/main/java/org/glom/web/client/ClientFactory.java:
23         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
24         * src/main/java/org/glom/web/client/OnlineGlom.java:
25         * src/main/java/org/glom/web/client/OnlineGlomService.java:
26         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
27         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
28         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
29         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
30         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
31         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
32         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
33         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
34         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
35
36 2011-04-08  Ben Konrath  <ben@bagu.org>
37
38         Remove FIXME from safeLongToInt() method.
39
40         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
41         this method.
42
43         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
44
45 2011-04-08  Ben Konrath  <ben@bagu.org>
46
47         Display an error if no glom documents are found in the specified directory.
48
49         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
50         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
51         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
52         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
53
54 2011-04-08  Ben Konrath  <ben@bagu.org>
55
56         Add copyright header to one more file ... oops.
57
58         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
59
60 2011-04-08  Ben Konrath  <ben@bagu.org>
61
62         Add copyright header to files without it.
63
64         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
65         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
66         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
67         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
68         * src/main/java/org/glom/web/shared/ColumnInfo.java:
69         * src/main/java/org/glom/web/shared/GlomField.java:
70
71 2011-04-08  Ben Konrath  <ben@bagu.org>
72
73         Add support for accessing multiple glom documents in the servlet.
74
75         This completes the demo selection functionality.
76
77         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
78         document title to methods.
79         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
80         document title to methods.
81         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
82         Set browser window title when the activity starts. Correct name of
83         document title variable.
84         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
85         Set browser window title when the activity starts. Set the table
86         selector change handler after table selector has been set. Clear the
87         OnlineGlomView when the activity has been stopped.
88         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
89         document title as the place token. Use "#Document:" instead of
90         "#OnlineGlomPlace:" in the URL.
91         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
92         Change heading to "Online Glom"
93         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
94         document title in RPC methods.
95         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
96         setDocumentTitle() method. Add clear() method.
97         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
98         setDocumentTitle() method. Implement clear() method which removes the
99         change handler on the ListBox, clears the ListBox and clears the
100         DataPanel.
101         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
102         Implement methods with document title. Keep track for the configured
103         glom documents and their corresponding JDBC configurations in a hash
104         table. This information is retrieved using the document title as the
105         key in the hash table.
106         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
107         document title field as it's no longer needed.
108
109 2011-04-08  Ben Konrath  <ben@bagu.org>
110
111         Update the Eclipse JDT configuration.
112
113         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
114         methods. Automatically add the copyright header to new files.
115
116 2011-04-05  Ben Konrath  <ben@bagu.org>
117
118         Add new page for demo selection.
119
120         This patch adds all the components required to view and start an
121         OnlineGlom demo by clicking on the desired hyperlink. The user is
122         able to return to the demo selection page with the browser's back
123         button. I still need to modify the servlet to work with multiple
124         documents so all demo links will load the file defined in the
125         OnlineGlom.properties.
126
127         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
128         This is only useful during development so we don't need to save it.
129         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
130         get a reference to the DemoSelectionView.
131         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
132         method to get a reference to the DemoSelectionView.
133         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
134         default view to DemoSelectionView.
135         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
136         to get glom document titles for glom files in a hard-coded directory.
137         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
138         method to get glom document titles for glom files in a hard-coded
139         directory.
140         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
141         Presenter for DemoSelectionView.
142         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
143         for DemoSelectionView.
144         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
145         Update for DemoSelectionView.
146         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
147         Basic 'Place' implementation for the DemoSelectionView.
148         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
149         The interface for the DemoSelectionView.
150         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
151         The implementation of the DemoSelectionView.
152         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
153         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
154         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
155         implementation of method to get glom document titles for glom files
156         in a hard-coded directory.
157         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
158         on longer being used.
159         * src/main/webapp/glom.png: Glom logo.
160
161 2011-04-05  Ben Konrath  <ben@bagu.org>
162
163         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
164
165         This is the forth and final commit of a refactor that will allow
166         OnlineGlom to be used with multiple documents.
167
168         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
169         Move RPC code from OnlineGlomViewImpl to this class.
170         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
171         to inferface.
172         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
173         RPC code to the presenter class (the P in MVP).
174
175 2011-04-04  Ben Konrath  <ben@bagu.org>
176
177         Start moving the existing OnlineGlom code to MVP.
178
179         This work is based on the GWT MVP framework that is documented here:
180
181         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
182
183         This is the third commit of a refactor that will allow OnlineGlom to
184         be used with multiple documents.
185
186         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
187         Interface for client factory which is used to get instances of various
188         classes throughout the app.
189         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
190         Implementation of client factory.
191         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
192         initialize the MVP framework.
193         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
194         New file. Activity manager for the main container widget. This is the
195         Presenter in MVP.
196         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
197         Maps place (URL) to its corresponding activity.
198         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
199         New file. This is just a place holder for a generated file.
200         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
201         New file. Represents the URL for the main Online Glom app.
202         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
203         for changes in LayoutListViewImpl.
204         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
205         interface for View. Move code to OnlineGlomViewImpl class.
206         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
207         file. Implementation of OnlineGlomView.
208         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
209         Place resources. Use ClientFactoryImpl by default.
210
211 2011-04-04  Ben Konrath  <ben@bagu.org>
212
213         Move View classes to their own package.
214
215         This is the second commit of a refactor that will allow OnlineGlom to
216         be used with multiple documents.
217
218         * src/main/java/org/glom/web/client/OnlineGlom.java:
219         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
220         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
221
222 2011-04-02  Ben Konrath  <ben@bagu.org>
223
224         Move UI code from the main module to its own class.
225
226         This is the first commit of a refactor that will allow OnlineGlom to be
227         used with multiple documents.
228
229         * src/main/java/org/glom/web/client/LayoutListView.java: Update
230         references to OnlineGlom to OnlineGlomView.
231         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
232         OnlineGlomView and instantiate it here.
233         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
234         represents the main OnlineGlomView with one document.
235
236 2011-04-01  Ben Konrath  <ben@bagu.org>
237
238         Fix formatting of gwt.xml and add DTD.
239
240         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
241
242 2011-03-30  Ben Konrath  <ben@bagu.org>
243
244         Propperly convert gdkColor string to html colour string.
245
246         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
247
248 2011-03-28  Ben Konrath  <ben@bagu.org>
249
250         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
251
252         This implementation matches
253         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
254         readable and is not tied to Swig.
255
256         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
257
258 2011-03-28  Ben Konrath  <ben@bagu.org>
259
260         Use read-only checkboxes for boolean field types.
261
262         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
263         in the CellTable based on the field type. It currently only
264         distinguishes between boolean and text columns but I'll need to add
265         support for more types.
266         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
267         column type in the ColumnInfo object. Add method to convert between the
268         glom field type enum in ColumnInfo and the glom field type in libglom.
269         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
270         field type.
271         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
272         getting and setting booleans.
273
274 2011-03-25  Ben Konrath  <ben@bagu.org>
275
276         Don't get the Date twice from the ResultSet.
277
278         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
279
280 2011-03-25  Ben Konrath  <ben@bagu.org>
281
282         Cleanup code in the servlet.
283
284         * TODO: Remove item about row count. Add item about testing row count
285         query with large number of rows.
286         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
287         spelling mistakes, change method parameter to be consistent with
288         other methods.
289
290 2011-03-25  Ben Konrath  <ben@bagu.org>
291
292         Add server side logging with the gwt-log library.
293
294         * .gitignore: Ignore the log file we're now producing.
295         * TODO: Add a couple TODO item for logging.
296         * pom.xml: Add gwt-log and log4j as a dependency.
297         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
298         logging of errors, warnings and some important info.
299         * src/main/resources/log4j.properties: New file to configure log4j.
300
301 2011-03-24  Ben Konrath  <ben@bagu.org>
302
303         Add a disable button for the Details view.
304
305         * src/main/java/org/glom/web/client/LayoutListView.java:
306
307 2011-03-22  Ben Konrath  <ben@bagu.org>
308
309         Use a count query to get the number of rows for the list view pager.
310
311         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
312
313 2011-03-22  Ben Konrath  <ben@bagu.org>
314
315         Add more TODO information about CellTable pager positioning. 
316
317         * TODO:
318
319 2011-03-19  Ben Konrath  <ben@bagu.org>
320
321         Add TODO item about CellTable pager positioning.
322
323         * TODO:
324
325 2011-03-18  Ben Konrath  <ben@bagu.org>
326
327         Remove unneeded GlomFieldColumn class.
328
329         This is just a small code cleanup.
330
331         * src/main/java/org/glom/web/client/LayoutListView.java:
332
333 2011-03-18  Ben Konrath  <ben@bagu.org>
334
335         Use cursor mode in the query that gets data for the list view.
336
337         I still need to fix the potential memory problem when getting the row
338         count for the list view.
339
340         * TODO: Add note about testing memory usage with large data sets. Add
341         item about fixing row counting with large data sets.
342         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
343         PostgreSQL JDBC driver into cursor mode when getting data for the
344         list view.
345
346 2011-03-15  Ben Konrath  <ben@bagu.org>
347
348         Remove the GWT Container from the Eclipse build classpath.
349
350         The GWT dependencies are set by Maven so this isn't needed.
351
352         * .classpath:
353
354 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
355
356         Added some earlier mockups to git, but not to the tarball dist.
357
358         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
359         Openismus. These hopefully show how we might structure the HTML so that
360         it can be styled easily with CSS. However, we probably need to adapt them
361         for the CSS structure that GWT dictates for common widgets.
362
363 2011-03-14  Ben Konrath  <ben@bagu.org>
364
365         Locate OnlineGlom.properties using the ServletContext.
366
367         This is required to be able to locate the file in the deployed servlet.
368
369         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
370         Configure the database and glom document in in a helper method so
371         that the ServletContext can be used to locate OnlineGlom.properties.
372         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
373         src/main/webapp. This is the proper location for .properites files.
374
375 2011-03-12  Ben Konrath  <ben@bagu.org>
376
377         Add note to README about why we're compiling down to obfuscated JavaScript.
378
379         * README:
380
381 2011-03-11  Ben Konrath  <ben@bagu.org>
382
383         Use properties file to configure servlet.
384
385         This allows people to change the glom file path, db username and db
386         password without recompiling the code.
387
388         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
389         * src/main/webapp/OnlineGlom.properties:
390
391 2011-03-11  Ben Konrath  <ben@bagu.org>
392
393         Use table fields in layout list view if the layout list is not defined.
394
395         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
396         Manually create a LayoutFieldVector for the query builder using the
397         table fields when a layout list is not defined in the glom file.
398
399 2011-03-11  Ben Konrath  <ben@bagu.org>
400
401         Only show FIXME string for images when there's an image.
402
403         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
404         in this change are some small code cleanups.
405
406 2011-03-11  Ben Konrath  <ben@bagu.org>
407
408         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
409
410         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
411
412 2011-03-11  Ben Konrath  <ben@bagu.org>
413
414         Correctly set the index of the default table.
415
416         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
417         Correctly set the index of the default table. Add commented out example
418         file paths.
419
420 2011-03-10  Ben Konrath  <ben@bagu.org>
421
422         Add comment to pom.xml about the previous change.
423
424         * pom.xml: Add comment about the deployment issue so that it's obvious
425         why java-libglom is set to the provided scope.
426
427 2011-03-10  Ben Konrath  <ben@bagu.org>
428
429         Change java-libglom dependency from compile to provided in pom.xml.
430
431         Since java-libglom uses jni it can only be loaded once and therefore
432         must be placed in $CATALINA_HOME/lib and not included in each war.
433         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
434         More information about this issue can be found in the Tomcat 6 release
435         notes in the "JNI Based Applications" section:
436
437         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
438
439         * README: Remove note about this issue. Deployment info should really
440         be on the wiki anyway so I'll add it right now.
441         * pom.xml: Change java-libglom dependency from compile to provided so
442         that it's copied in to the packaged war.
443
444 2011-03-09  Ben Konrath  <ben@bagu.org>
445
446         Change to using a neutral locale for currency, date and time formatting.
447
448         This solves the problem of currency values being represented without a
449         space between the currency code and the number (e.g. "EUR5.89" is now
450         represented as "EUR 5.89"). More work is required when we implement
451         a locale preference setting.
452
453         * TODO: Add note about currency formatting issues with different
454         locales.
455         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
456         to using the neutral ROOT locale.
457
458 2011-03-09  Ben Konrath  <ben@bagu.org>
459
460         Add support for currency codes that are not ISO 4217 codes.
461
462         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
463         the currency code defined in the glom file when it's not 3 characters
464         long or when Java doesn't recognize the string as an ISO 4217 code.
465
466 2011-03-08  Ben Konrath  <ben@bagu.org>
467
468         Remove test classes, launch configurations and configuration.
469
470         The test stuff was getting in the way when creating the war. To make
471         the war file you can now do 'mvn clean package'. The packaged war file
472         will be in the target directory.
473
474         * .classpath: Remove unused classpathentry for tests and i18n.
475         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
476         property. Don't run test or i18n goals when packaging the war.
477         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
478         formatting.
479
480         Removed files:
481
482         * OnlineGlomTest-dev.launch:
483         * OnlineGlomTest-prod.launch:
484         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
485         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
486
487 2011-03-07  Ben Konrath  <ben@bagu.org>
488
489         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
490
491         These fixes allow me to use 'mvn deploy' to create the war file.
492
493         * .classpath: This generated config has been updated by Eclipse. This
494         change was probably triggered by me updating from Eclipse 3.6.1 to
495         3.6.2.
496         * .gitignore: Add entry to ignore the directory
497         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
498         * .project: The generated config has been updated by Eclipse. This
499         change was probably triggered by me updating from Eclipse 3.6.1 to
500         3.6.2.
501         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
502         so that Eclipse doesn't complain
503         * pom.xml: Update to gwt-maven-plugin 2.2.0.
504         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
505         'tests' directory to 'client' directory. This is the new
506         gwt-maven-plugin convension.
507         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
508         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
509
510 2011-03-07  Ben Konrath  <ben@bagu.org>
511
512         Add support for horizontal alignment in the LayoutList columns.
513
514         * TODO: Remove item about horizontal alignment. Add item about
515         improvements to ColumnInfo.
516         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
517         alignment on the columns. Use ColumnInfo RPC object get the column
518         title and horizontal alignment.
519         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
520         LayoutListView creation with ColumnInfo RPC object.
521         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
522         a ColumnInfo object for every LayoutList columnn. Convert the
523         FieldFormatting.HorizontalAlignment to the correct
524         ColumnnInfo.HorizontatlAlignment with the new
525         getColumnInfoHorizontalAlignment helper method.
526         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
527         to encapsulate column information like alignment and title. This
528         could be used to set the colour instead of on a per cell field basis.
529         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
530         column title storage and retrieval with ColumnInfo.
531
532 2011-03-04  Ben Konrath  <ben@bagu.org>
533
534         Add support for column sorting.
535
536         * src/main/java/org/glom/web/client/LayoutListView.java: Change
537         AsynDataProvider to be an anonymous inner class. Use new
538         getSortedTableData RPC method when column sort is requested. Set all
539         columns sortable and add an AsyncHandler to activate sorting in the
540         AsyncDataProvider.
541         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
542         method getSortedTableData(). Cleanup other method signatures.
543         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
544         new method getSortedTableData(). Cleanup other method signatures.
545         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
546         Implement getSortedTableData() and getTableData() methods by using a
547         private helper method with the appropriate parameters filled in. Use
548         user supplied sort clause when supplied, otherwise fall back to
549         sorting by the primary key. Move destroy() method to be underneath
550         constructor for readability.  Cleanup comments.
551
552 2011-03-03  Ben Konrath  <ben@bagu.org>
553
554         Add support for colour text and colour backgrounds to the layout list cells.
555
556         Only the cell backgrounds are coloured which leaves a gap between the
557         cells that isn't coloured. I need to figure out a way to set
558         'style=background-colour:' on the whole column rather than just the
559         cell.
560
561         * TODO: Add a note about colouring the background of the whole column.
562         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
563         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
564         render the coloured text and backgrounds. Use GlomField[] for the row type.
565         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
566         for the row type.
567         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
568         GlomField[] for the row type.
569         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
570         GlomField[] for the row type. Set the text, text colour and background
571         colour in the GlomField objects as specified in the glom document. Add
572         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
573         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
574         the glom field text, foreground colour and background colour.
575
576 2011-03-02  Ben Konrath  <ben@bagu.org>
577
578         Don't display hidden tables in the combo box.
579
580         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
581         ArrayLists.
582         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
583         code to ignore hidden tables using ArrayLists for the table names and
584         titles.
585         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
586         tableNames to use ArrayLists instead of String[]. Update getter and setter
587         methods.
588
589 2011-03-01  Ben Konrath  <ben@bagu.org>
590
591         Add support for Date and Time number types.
592
593         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
594         Implement formatting for Date and Time values. Change the default glom
595         file to small business example.
596
597 2011-03-01  Ben Konrath  <ben@bagu.org>
598
599         Add support for formatting glom types as specified in the glom file.
600
601         Formatting isn't finished yet - I still need to add support for Date
602         and Time values.
603
604         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
605         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
606         checks for null values in JDBC cleanup code and catch all exceptions
607         instead of just SQLExceptions.
608         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
609         method name.
610
611 2011-03-01  Ben Konrath  <ben@bagu.org>
612
613         Use GWT 2.2.0 instead of 2.1.1.
614
615         * pom.xml: Change GWT version numbers.
616
617 2011-03-01  Ben Konrath  <ben@bagu.org>
618
619         A few small code cleanups.
620
621         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
622         duplicate for loop.
623         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
624         unnecessary object creation in constructor.
625         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
626         unnecessary object creation in constructor.
627
628 2011-02-28  Ben Konrath  <ben@bagu.org>
629
630         Add file for TODO list.
631
632         * TODO: New file.
633
634 2011-02-18  Ben Konrath  <ben@bagu.org>
635
636         Enable the CellTable Pager when more than 20 rows need to be viewed.
637
638         The Pager will automatically become active when the results are larger
639         than the CellTable size which is currently set to 20 lines.
640
641         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
642         name on debug statment in RPC call in LayoutListDataProvider, add
643         numRows parameter to LayoutListView constructor, propperly set rowCount
644         in CellTable.
645         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
646         name on debug statment in RPC call, use LayoutListTable object in RPC
647         calls, pass rowCount to LayoutListView.
648         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
649         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
650         object.
651         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
652         interface for changes in OnlineGlomService.
653         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
654         getLayoutListHeaders() to getLayoutListTable() and return
655         LayoutListTable. Using this object allows me to pass other information
656         about the LayoutList like the expected number of rows in the result set.
657         The Connection object from the connection pool is now propperly closed.
658         Only the requested number of lines are returned to the client in
659         getTableData().
660         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
661         GlomTable and add columnTitles and numRows.
662
663 2011-02-18  Ben Konrath  <ben@bagu.org>
664
665         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
666
667         This is a small performance boost. I'll use GlomTable to get the required
668         layoutlist information.
669
670         * src/main/java/org/glom/web/client/OnlineGlom.java:
671         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
672         * src/main/java/org/glom/web/shared/GlomDocument.java:
673
674 2011-02-18  Ben Konrath  <ben@bagu.org>
675
676         Add option to turn off formatting in JDT formatter preferences.
677
678         * .settings/org.eclipse.jdt.core.prefs:
679
680 2011-02-18  Ben Konrath  <ben@bagu.org>
681
682         Rename LayoutList to LayoutListView.
683
684         I'm working towards setting things up to easily use MVP when the time
685         comes.
686
687         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
688         LayoutList.java.
689         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
690         references.
691
692 2011-02-17  Ben Konrath  <ben@bagu.org>
693
694         Move LayoutListDataProvider class into LayoutList.java.
695
696         * src/main/java/org/glom/web/client/LayoutList.java:
697
698 2011-02-17  Ben Konrath  <ben@bagu.org>
699
700         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
701
702         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
703         references.
704         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
705         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
706         from LibGlomServer.java.
707         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
708         Rename from LibGlomServiceAsync.java.
709         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
710         Rename from LibGlomServiceImpl.java.
711         * src/main/webapp/WEB-INF/web.xml: Update configuration.
712
713 2011-02-17  Ben Konrath  <ben@bagu.org>
714
715         Update JDT settings.
716
717         * .settings/org.eclipse.jdt.core.prefs:
718
719 2011-02-17  Ben Konrath  <ben@bagu.org>
720
721         Move GWT-RPC objects to shared package (where they should be).
722
723         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
724         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
725         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
726         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
727         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
728         org.glom.web.shared package.
729         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
730         org.glom.web.shared package.
731         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
732         directory in compilation to javascript.
733
734 2011-02-16  Ben Konrath  <ben@bagu.org>
735
736         Add sort clause to the sql query that grabs table information.
737
738         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
739         if one of the columns is a primary key.
740
741 2011-02-16  Ben Konrath  <ben@bagu.org>
742
743         Disable generateAsync feature of gwt-maven.
744
745         The generated interface does not correctly match the methods in LibGlomService
746         and the generated singleton Util inner-class doesn't respect the servlet
747         mappings.
748
749         * pom.xml: Turn off generateAsync feature.
750         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
751         with singleton Util inner-class.
752
753 2011-02-14  Ben Konrath  <ben@bagu.org>
754
755         Add LGPL v3 licence notices.
756
757         Followed directions listed here:
758         http://www.gnu.org/licenses/gpl-howto.html
759
760         * COPYING: This file is a copy of the GPL v3.
761         * COPYING.LESSER: This file is a copy of the LGPL v3.
762         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
763         notice.
764         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
765         notice.
766         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
767         notice.
768         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
769         licence notice.
770         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
771         notice.
772         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
773         notice.
774         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
775         licence notice.
776
777 2011-02-14  Ben Konrath  <ben@bagu.org>
778
779         Use ArrayList instead of Array in GWT-RPC calls.
780
781         Apparently this gives a slight performance boost to the compiled
782         java script.
783
784         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
785         instead of Array.
786         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
787         of Array.
788
789 2011-02-14  Ben Konrath  <ben@bagu.org>
790
791         Access data from a postgres db rather than the example glom file.
792
793         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
794         compile down to obfuscated javascript.
795         * pom.xml: Add c3p0 and postgres JDBC libraries.
796         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
797         using a postgres db accessed through the c3p0 connection pooling library.
798
799 2011-02-14  Ben Konrath  <ben@bagu.org>
800
801         Update Java formatter settings.
802
803         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
804
805 2011-02-02  Ben Konrath  <ben@bagu.org>
806
807         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
808
809         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
810         using Maven.
811         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
812         the compiled webapp directory that Eclipse uses as we're using Maven now.
813         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
814         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
815         to 1.6.
816         * pom.xml: Format file, change target Java version to 1.6.
817
818 2011-02-02  Ben Konrath  <ben@bagu.org>
819
820         Add information about a deployment related issue.
821
822         * README: Add Notes section with the problem outlined.
823
824 2011-02-02  Ben Konrath  <ben@bagu.org>
825
826         Call Glom.libglom_deinit() when the servlet is shutdown.
827
828         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
829         Glom.libglom_deinit() to destroy() method.
830
831 2011-01-28  Ben Konrath  <ben@bagu.org>
832
833         Use generated Util class to get the RPC Async interface.
834
835         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
836         file.
837         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
838         getInstance() method to get a reference to the RPC Async interface.
839         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
840         getInstance() method to get a reference to the RPC Async interface, remove
841         the now unused getLibGlomServiceProxy() method.
842
843 2011-01-27  Ben Konrath  <ben@bagu.org>
844
845         Cleanup ChangeLog entry from previous commit.
846
847         * ChangeLog: Group logical changes together and add comments.
848
849 2011-01-25  Ben Konrath  <ben@bagu.org>
850
851         Convert to gwt-maven project.
852
853         * .gitignore: Update for new project structure.
854         * README: New file with a link to the online documentation.
855         * pom.xml: The generated maven configuration file with some tweaks.
856
857         Add / update Eclipse settings. These files are a merge of the files that
858         were generated with the gwt-maven plugin and the files we were previously
859         using.
860         * .classpath:
861         * .project:
862         * .settings/.jsdtscope:
863         * .settings/com.google.gdt.eclipse.core.prefs:
864         * .settings/com.google.gwt.eclipse.core.prefs:
865         * .settings/org.eclipse.jdt.core.prefs:
866         * .settings/org.eclipse.wst.common.component:
867         * .settings/org.eclipse.wst.common.project.facet.core.xml:
868         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
869         * .settings/org.maven.ide.eclipse.prefs:
870         * OnlineGlomTest-dev.launch:
871         * OnlineGlomTest-prod.launch:
872
873         Java source files moved from the 'src' directory to the directory structure
874         required by maven.
875         * src/main/java/org/glom/web/client/GlomDocument.java:
876         * src/main/java/org/glom/web/client/GlomTable.java:
877         * src/main/java/org/glom/web/client/LayoutList.java:
878         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
879         * src/main/java/org/glom/web/client/LibGlomService.java:
880         * src/main/java/org/glom/web/client/OnlineGlom.java:
881         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
882
883         Non-functional property file used for translations. I included this as
884         reminder that it's something I need to sort out.
885         * src/main/resources/org/glom/web/client/Messages.properties:
886
887         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
888         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
889
890         The servlet configuration files moved from the 'war' directory.
891         * src/main/webapp/OnlineGlom.css:
892         * src/main/webapp/OnlineGlom.html:
893         * src/main/webapp/WEB-INF/web.xml:
894
895         Generated test files with most of the code commented out. I included these
896         so that it's easy to add tests when we're ready for them.
897         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
898         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
899
900 2011-01-25  Ben Konrath  <ben@bagu.org>
901
902         Remove unused println.
903
904         * src/org/glom/web/server/LibGlomServiceImpl.java:
905
906 2011-01-25  Ben Konrath  <ben@bagu.org>
907
908         Add project specific JDT settings.
909
910         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
911         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
912
913 2011-01-25  Ben Konrath  <ben@bagu.org>
914
915         Populate celltable with example data.
916
917         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
918         * src/org/glom/web/client/GlomTable.java: Correct formatting.
919         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
920         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
921         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
922         asynchronously gets the example data.
923         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
924         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
925         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
926         curently selected table to be retrieved by other widgets.
927         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
928         implement getTableData() in a hacky way. This method needs to be updated
929         to grab information from the database when database creating is
930         implemented.
931
932 2011-01-20  Ben Konrath  <ben@bagu.org>
933
934         Set table headers when table dropBox changes.
935
936         * src/org/glom/web/client/GlomDocument.java: Correct some method
937         names.
938         * src/org/glom/web/client/LibGlomService.java: Add method
939         to get list layout field names.
940         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
941         to get list layout field names.
942         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
943         widget for list layout table.
944         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
945         the table drop box and add new updateTable() method to asynchronously
946         get the layout list field names for the currently selected table.
947         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
948         implementation of getLayoutListHeaders() method.
949         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
950
951 2011-01-18  Ben Konrath  <ben@bagu.org>
952
953         Make a listBox with table titles instead of the flexTable demo.
954
955         This is the start of something more useful.
956
957         * .classpath: Exclude a bunch of packages from the JVM that are
958         getting in the way of the Eclipse content assist.
959         * src/org/glom/web/client/GlomDocument.java:
960         * src/org/glom/web/client/GlomTable.java:
961         * src/org/glom/web/client/LibGlomService.java:
962         * src/org/glom/web/client/LibGlomServiceAsync.java:
963         * src/org/glom/web/client/OnlineGlom.java:
964         * src/org/glom/web/server/LibGlomServiceImpl.java:
965         * war/OnlineGlom.html:
966         * war/WEB-INF/web.xml:
967
968 211-01-13  Ben Konrath  <ben@bagu.org>
969
970         Update to new java-libglom API.
971
972         * .gitignore: Ignore OnlineGlom.war.
973         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
974
975 2010-12-20  Ben Konrath  <ben@bagu.org>
976
977         Add some basic style to the table listing.
978
979         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
980         header, print useful error message on async callback failure.
981         * war/OnlineGlom.css: Add style for table header, remove defaults
982         provided by the Eclipse project wizard.
983
984 2010-12-20  Ben Konrath  <ben@bagu.org>
985
986         Load example file from installed glom dir.
987
988         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
989         provided by java-libglom to find the example file.
990
991 2010-12-20  Ben Konrath  <ben@bagu.org>
992
993         Update Eclipse settings.
994
995         * .classpath:
996         * .settings/com.google.gdt.eclipse.core.prefs:
997         * .settings/com.google.gwt.eclipse.core.prefs:
998
999 2010-12-17  Ben Konrath  <ben@bagu.org>
1000
1001         Initial commit.
1002
1003         * .classpath: New file.
1004         * .gitignore: New file.
1005         * .project: New file.
1006         * .settings/com.google.gdt.eclipse.core.prefs: New file.
1007         * .settings/com.google.gwt.eclipse.core.prefs: New file.
1008         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1009         * src/org/glom/web/client/GlomTable.java: New file.
1010         * src/org/glom/web/client/OnlineGlom.java: New file.
1011         * src/org/glom/web/client/TableNameService.java: New file.
1012         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1013         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1014         * war/OnlineGlom.css: New file.
1015         * war/OnlineGlom.html: New file.
1016         * war/WEB-INF/web.xml: New file.
1017         * war/images/glom.png: New file.