Translate the Reports label.
[online-glom:gwt-glom.git] / ChangeLog
1 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
2
3         Translate the Reports label.
4
5         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
6         Get the "Reports" label string from the constants.
7         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
8         perties: Add Reports to the constants.
9
10 2012-03-03  Ben Konrath  <ben@bagu.org>
11
12         Display date and time in details view.
13
14         https://bugzilla.gnome.org/show_bug.cgi?id=671257
15
16         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
17
18 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
19
20         Require the latest java-libglom.
21
22         * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
23
24 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
25
26         Reports: Implement grouping.
27
28         * src/main/java/org/glom/web/server/ReportGenerator.java:
29         Handle LayoutItem_GroupBy items and try to do the right thing
30         with JRDesignGroup. It seems to work.
31
32 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
33
34         Actually show some data with JasperReports.
35
36         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 
37         getReportHTML(): Move most code into a ReportGenerator class.
38         * src/main/java/org/glom/web/server/ReportGenerator.java:
39         Recurse into sub-groups, adding fields to the JasperDesign's details
40         band. Note that we must set an arbitrary width and height, or it just
41         will not show any data.
42
43 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
44
45         Reports Chooser: Show the titles, not the names.
46
47         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
48         (TableSelectionViewImpl.setReportList): Show the titles in the UI,
49         and the names as the values.
50         * src/main/java/org/glom/web/server/ConfiguredDocument.java
51         (ConfiguredDocument.getReportLayoutGroup): Do not return a default
52         group now that we provide the report name, so it should always 
53         succeed.
54
55 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
56
57         ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
58
59         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
60         ListViewDBAccess.getSelectQuery(): Do not create a where clause for 
61         an empty quickfind string. I also corrected libglom to create only 
62         empty where clauses for empty quickfind strings, but this avoids the
63         need for that fix.
64
65 2012-02-24  Ben Konrath  <ben@bagu.org>
66
67         Improve the tabs in the Notebook widget.
68
69         Bug #670728
70
71 2012-02-15  Murray Cumming  <murrayc@murrayc.com>
72
73         Depend on jasperreports.
74
75         * pom.xml: Add the dependency. My plan is to use this on the 
76         server side.
77
78 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
79
80         Implement navigation to report places.
81
82         * src/main/java/org/glom/web/client/activity/ReportActivity.java
83         start(): Do not bother to handle all events here.
84         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
85         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
86         Added getSelectedReport().
87         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
88         .java: start(): When handling a change to the reports chooser,
89         call getSelectedReport() and goTo() its ReportPlace.
90         * src/main/java/org/glom/web/client/ui/ReportView.java
91         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
92         Added setReportHTML() which puts the html in a gwt HTML widget.
93         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
94         getReportHTML(): Return "TODO" just to show that this works.
95
96 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
97
98         Make ReportPlace usable.
99
100         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
101         Mention ReportPlace.
102         * src/main/java/org/glom/web/client/place/ReportPlace.java:
103         Correct the @prefix annotation.
104
105 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
106
107         OnlineGlomService: Return report HTML rather than the LayoutGroup.
108
109         * src/main/java/org/glom/web/client/OnlineGlomService.java:
110         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
111         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
112         Change getReportLayout() to getReportHMTL() because we will not need to 
113         parse or render the report layout on the client side.
114         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
115         getReportLayout(): Return the libglom LayoutGroup type because we will
116         not need to convert to a shared type, because this will not be used on
117         the client side.
118         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
119         Adapted.
120
121         Note that there is still no implementation for this.
122
123 2012-01-30  Murray Cumming  <murrayc@murrayc.com>
124
125         Translations: Try to translate the strings.
126
127         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
128         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
129         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
130         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
131         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
132         Take the Open translation from GTK+'s .po files.
133         Take the Details translation from Glom's po files.
134         I have added the other strings to Glom so we can get translations that way:
135         http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
136         
137 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
138
139         Add a (empty) Report Place, View, and Activity.
140
141         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
142         Rename to:
143         * src/main/java/org/glom/web/client/place/HasTablePlace.java
144         * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
145         this into a superclass:
146         * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
147         and also use it as the base of this new ReportPlace:
148         * src/main/java/org/glom/web/client/place/ReportPlace.java
149
150         * src/main/java/org/glom/web/client/ui/ReportView.java
151         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
152         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
153         Add these, containing mostly boiler-plate for now.
154
155         * src/main/java/org/glom/web/client/OnlineGlomService.java
156         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
157         * src/main/java/org/glom/web/server/ConfiguredDocument.java
158         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
159         Add API to get the LayoutGroup for the report.
160
161 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
162
163         TableSelectionViewImpl: Put the search label and entry in a div.
164
165         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
166         Put the search widgets in a FlowTable so that the CSS can be used to
167         style them while keeping them together.
168         * src/main/webapp/style.css: Mention the new div.
169
170 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
171
172         Translate more strings in more locales.
173
174         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
175         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
176         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
177         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
178         Translate the "Details" and "Open" string too.
179
180         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
181         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
182         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
183         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
184         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
185         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
186         Add these new locales as placeholders though they currently contain English.
187
188 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
189
190         OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
191
192         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
193         Check the ConfiguredDocument* for null before using it.
194
195 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
196
197         Tell Eclipse about the generated java files.
198
199         * .classpath: This lets it find OnlineGlomConstants.java.
200         It would be nice if Eclipse just used the maven build files.
201
202 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
203
204         Prevent a crash when no locale is specified in the URL.
205
206         * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
207         Avoid returning a null string, obtained from 
208         Window.Location.getParameter(). This caused a crash when it was
209         later passed to libglom's API.
210         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
211         init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
212         getDetailsLayoutAndData(): Use StringUtils.defaultString() to
213         guard against future null strings.
214
215 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
216
217         Use the ?locale= query param instead of the &lang= token param. 
218
219         * src/main/java/org/glom/web/client/place/ListPlace.java
220         * src/main/java/org/glom/web/client/place/DetailsPlace.java
221         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
222         Remove the lang token key and value.
223         
224         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
225         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
226         When the user selects a different locale from the chooser, use 
227         Window.Location.assign() to change the URL, which then causes a reload.
228         
229         * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
230         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
231         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
232         * src/main/java/org/glom/web/client/activity/ListActivity.java
233         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
234         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
235         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
236         * src/main/java/org/glom/web/client/ui/ListView.java:
237         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
238
239         Remove localeID member variables and method/constructor parameters, instead
240         using Utils.getCurrentLocaleID() when we need a localID to pass to 
241         OnlineGlomService.
242
243 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
244
245         Internationalize the UI strings.
246
247         * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a 
248         <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
249         * src/main/resources/org/glom/web/client/Messages.properties: Remove this
250         because it is unused. Messages are apparently strings that can have 
251         parameters, but we do not need that yet, so Contants will be enough for now.
252         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
253         to say that we support the en and de locales.
254         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
255         The original English strings.
256         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
257         Some German translations of the English strings.
258         The i18n goal then uses the .properties file to generate an 
259         OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
260         returns an implementation that returns the translated strings.
261         The documentation suggests putting these in src/java/*/client/, but it seems
262         best to put it in src/resources/*/client/.
263         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
264         Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
265         instead of hard-coding them.
266         Note that we cannot import OnlineGlomConstants because it does not exist yet,
267         but that does not seem to stop the build, though it confuses Eclipse.
268         
269         You can see the translated string by adding ?locale=de to the URL, like so:
270         http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
271
272 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
273
274         Improve null/empty String checks. 
275
276         * pom.xml: Add a dependency on commons-lang, to use
277         org.apache.commons.lang.StringUtils.
278         * src/main/java/org/glom/web/server/ConfiguredDocument.java
279         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
280         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
281         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
282         Use StringUtils.isEmpty().
283
284         * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
285         StringUtils class with a static isEmpty() function because we 
286         cannot use org.apache.commons.lang.StringUtils in client-side
287         GWT code because it (apparently) cannot be compiled to javascript.
288         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
289         * src/main/java/org/glom/web/client/activity/ListActivity.java
290         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
291         * src/main/java/org/glom/web/client/place/DetailsPlace.java
292         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
293         * src/main/java/org/glom/web/client/place/ListPlace.java
294         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
295         * src/main/java/org/glom/web/client/ui/cell/TextCell.java
296         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
297         * src/main/java/org/glom/web/client/ui/details/Group.java
298         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use 
299         our StringUtils.isEmpty() function.
300
301 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
302
303         Update to the latest java-libglom API.
304
305         * pom.xml: Require java-libglom 1.21.4.
306         * src/main/java/org/glom/web/server/ConfiguredDocument.java
307         getDocumentInfo(), getListViewLayoutGroup():
308         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
309         getDocuments():
310         * src/main/java/org/glom/web/server/database/DBAccess.java
311         getFieldsToShowForSQLQueryAddGroup(),
312         getPrimaryKeyLayoutItemField(): Replace get_database_title()
313         with either get_database_title_original() or 
314         get_database_title(localeID).
315
316 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
317
318         ConfiguredDocument: Avoid a null pointer exception.
319
320         * src/main/java/org/glom/web/server/ConfiguredDocument.java
321         Initialize localeID to "" to avoid returning a null String which 
322         causes a crash in java-libglom's swing-generated code.
323
324 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
325
326         Some simple renaming.
327
328         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
329         * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
330         for localeChooser. This seems more appropriate and is less ambiguous 
331         particularly in the .css file.
332
333 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
334
335         ConfiguredDocument: Rename the localedID private member variable.
336
337 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
338
339         Adapt to the latest java-libglom API from git master.
340
341         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
342         libglom now uses only Vector instead of List, which uses add() instead of
343         addLast(). 
344
345 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
346
347         Add and fill a Reports drop-down list box.
348
349         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
350         Aded getReports():
351         * src/main/java/org/glom/web/client/OnlineGlomService.java:
352         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
353         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
354         Added getReports(document, table, localeID), calling 
355         ConfiguredDocument.getReports().
356         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
357         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
358         Added setReportsList() and a list widget.
359         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
360         .java (TableSelectionActivity.fillView(): Fill the view's reports list.
361
362 2012-01-22  Murray Cumming  <murrayc@murrayc.com>
363
364         ConfiguredDocument: Rename the localedID private member variable.
365
366 2012-01-20  Murray Cumming  <murrayc@murrayc.com>
367
368         Build a source tarball with mvn assembly:single
369
370         * assembly.xml: Add this file.
371         * pom.xml: Use the maven-assembly-plugin and tell it to use 
372         our assembly.xml file.
373
374 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
375
376         OnlineGlomServiceImpl: Get .glom files recursively.
377
378         * pom.xml: Depend on commons-io from org.apache.commons.
379         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
380         init(): Use org.apache.commons.io.FileUtils.listFiles() to get the 
381         files recursively, and with the easier filter for the extension.
382         Use org.apache.commons.io.FilenameUtils.removeExtension() to 
383         simplify that code too.
384
385 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
386
387         README: Mention that you must install java-libglom packages separately.
388
389         But then it works, because java-libglom is now in the central maven 
390         repository.
391
392 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
393
394         locales drop-down: Show the correct selected locale when the URL changes.
395
396         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
397         .java: setPlace(): Move some code into fillView().
398
399 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
400
401         locales drop-down: Do not lose the primary key.
402
403         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
404         start(): onLocaleChange(): Pass the current primary key value, 
405         instead of an empty value.
406
407 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
408
409         locales drop-down: Do not lose the drop-down selection.
410
411         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
412         .java (TableSelectionActivity.fillView): Set the selected locale
413         after changing the drop-down items (though we do not really need
414         to change them just because the locale changes.)
415
416 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
417
418         locales drop-down: Change the tables list when this changes.
419
420         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
421         .java: TableSelectionActivity.start(): Move the async table titles
422         retrieval into a private fillView() method and also call this when 
423         the chosen locale changes.
424         Note that the document title is not actually translatable yet, but
425         that is a problem that I should fix soon in libglom.
426
427 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
428
429         Improve the placement of the locales drop-down.
430
431         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
432         Put the title and locales drop-down in a div (gwt.FlowTable).
433         * src/main/webapp/style.css: Add magic css properties to make this work.
434         Also remove the left margin from the title so that it lines up with the 
435         headerbox below it.
436
437 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
438
439         locales selector: Show human-readable locale titles.
440
441         * src/main/java/org/glom/web/server/ConfiguredDocument.java
442         getDocumentInfo(): Use java.util.Locale to show a real title of 
443         each locale, in the locale's own language.
444
445 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
446
447         Add a language/locale selector drop-down.
448
449         * src/main/java/org/glom/web/shared/DocumentInfo.java:
450         Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
451         * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
452         getDocumentInfo(): Store the available Locales in the DocumentInfo.
453         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
454         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
455         Add a ListBox to show the available locales. Add getLocaleSelector(),
456         setLocaleList(), getSelectedLocale(), setSelectedLocale().
457         * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
458         * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
459         java: Add these classes.
460         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
461         start(): Fill the locales ListBox. Handle its change event, firing a 
462         LocaleChangeEvent.
463         setPlace(): Show the selected locale as specified by the URL token.
464         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
465         * src/main/java/org/glom/web/client/activity/ListActivity.java:
466         Handle LocaleChangeEvent, going to a new *Place with that locale.
467
468         The placement of the ListBox is not pretty, and it currently uses the ID
469         as a title, instead of "English", "Deutsch", "Espanola", etc, but it 
470         is a start.
471
472
473 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
474
475         Search box: Show the search text from the URL token.
476
477         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
478         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
479         Add setQuickFindText().
480         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
481         .java: setPlace(): Store the queryText if the place is a ListPlace, 
482         and call TableSelectionView.setQuickFindText().
483
484 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
485
486         Allow use of translations via, for instance, &lang=de in the URL.
487
488         * pom.xml: Use the unstable java-libglom 1.21 version.
489
490         * src/main/java/org/glom/web/client/OnlineGlomService.java:
491         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
492         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
493         init(): Instead of calling TranslatableItem.set_current_locale() 
494         (now removed), call ConfiguredDocument.setDefaultLocaleID().
495         However, this is only for default locales, which are not needed to 
496         change the locale in the URL.
497         getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
498         getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
499         getSortedRelatedListData(): Add a localeID parameter, so we can get the 
500         layout for a particular locale.
501         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
502         Add get/setDefaultLocaleID().
503         getDocumentInfo(), getListViewData(), getRelatedListData(),
504         getDetailsLayoutGroup(), getListViewLayoutGroup(),
505         createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a 
506         localeID parameter, so we can get the layout for a particular locale.
507
508         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
509         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
510         * src/main/java/org/glom/web/client/place/ListPlace.java:
511         Parse and construct a lang parameter too.
512
513         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
514         start(): Pass the defaultLocaleID to addDocumentLink(). It is then
515         passed to subsequent methods and constructors.
516         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
517         * src/main/java/org/glom/web/client/activity/ListActivity.java:
518         Store the localeID from the *Place and pass it to other constructors
519         and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
520
521         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
522         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
523         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
524         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
525         * src/main/java/org/glom/web/client/ui/ListView.java:
526         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
527         Take localeID parameters and pass them to subsequent constructors and 
528         methods, so that the layout is always retrieved for that locale.
529
530         This is rather repetitive.
531
532         Note that "" means the original (default) locale of the Glom document,
533         which is usually English.       
534
535 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
536
537         Documents: Remove final keyword to fix startup configuration.
538
539         * src/main/java/org/glom/web/shared/Documents.java: Remove the
540         final keywords on the private member variables because that breaks
541         the startup, apparently (there are warnings) because it stops them
542         from being serialized. I added these in the previous commit.
543
544 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
545
546         Documents: Add some final keywords.
547
548         * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
549         this.
550
551 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
552
553         OnlineGlomServiceImpl: Add to overview comments.
554
555         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
556         Note that this is where all the document are loaded. They are not 
557         loaded freshly for each page.
558
559 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
560
561         Add a search box.
562
563         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
564         Add a TextBox for the text of a quick find.
565         Add getQuickFindBox(), to get the widget, and getQuickFindText() to 
566         get the text.
567         setBackLink(): Add a String quickFind parameter.
568         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
569         (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
570         to the base interface, because that is how TableSelectionViewImpl is used.
571         * src/main/webapp/style.css: Add style for the search box and its label.
572
573         * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
574         * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
575         Add these files, based on the existing TableChangeEvent and 
576         TableChangeEventHandlers.
577         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
578         start(): Handle QuickFindChangeEvent, passing its quickFind text to
579         a ListPlace() that the user should be taken to.
580         * src/main/java/org/glom/web/client/activity/ListActivity.java
581         start(): Handle it here too and adapt the TableChangeEvent handler to 
582         pass the extra "" quickFind parameter to ListPlace.
583         * src/main/java/org/glom/web/client/place/ListPlace.java: 
584         Constructor: Take an extra String quickFind parameter and store it, 
585         returning it from a new  getQuickFind() method.
586         getToken(): Put the quickFind text in the URL token.
587         getPlace(): Parse the quickFind text from the URL token.
588         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
589         va: addDocumentLink(): Pass an extra "" quickFind parameter to the 
590         ListPlace constructor.
591         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
592         .java: start(): Add a Change handler for the TableSelectionView's
593         TextBox (via its base HasChangeHandlers interface), firing the new 
594         QuickFindChangeEvent.
595         setPlace(): Adapt the call to TableSelectionView.setbackLink(), to 
596         pass the extra "" quickFind parameter.
597
598         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
599         setCellTable(): Add a String quickFind parameter and pass it to 
600         the ListViewTable() constructor.
601         * src/main/java/org/glom/web/client/ui/ListView.java: Change 
602         setCellTable() in the base interface, because that is how ListViewImpl
603         is used.
604
605         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
606         Add a String quickFind member variable.
607         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
608         Constructor: Add a String quickFind parameter, storing it in the
609         base ListTable's member variable.
610         onRangeChanged(): Pass quickFind to the 
611         OnlineGlomServiceAsync.getSortedListViewData() and 
612         OnlineGlomServiceAsync.getListViewData() methods.
613
614         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
615         getListViewData(), getSortedListViewData(): Add a String quickFind 
616         parameter, passing it to ConfiguredDocument.getListViewData().
617         * src/main/java/org/glom/web/client/OnlineGlomService.java:
618         Change getListViewData(), getSortedListViewData() in the base interface,
619         because that is how OnlineGlomServiceImpl is used, via this:
620         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
621         Change getListViewData(), getSortedListViewData() here too.
622         This class can apparently be used to asynchronously call methods on 
623         OnlineGlomService, and GWT seems to implement that after recognizing 
624         just the *Async name convention and the extra AsyncCallback parameters.
625
626         * src/main/java/org/glom/web/server/ConfiguredDocument.java
627         getListViewData(): Add a String quickFind parameter, and pass it to 
628         ListViewDBAccess.getData().
629         * src/main/java/org/glom/web/server/database/ListDBAccess.java
630         getListData(): Add a String quickFind parameter and pass it to 
631         getSelectQuery().
632         getSelectQuery(): Add a String quickFind parameter.
633         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
634         getSelectQuery(): Add a String quickFind parameter and use it with 
635         Glom.get_find_where_clause_quick() to pass a where_clause to 
636         Glom.build_sql_select_with_where_clause(), to actually filter the 
637         list view results.
638         getData(): Add a String quickFind parameter, passing it to getListData().
639         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
640         va: getData(): Pass an empty string to getListData() for the 
641         quickFind parameter.
642
643 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
644
645         ListTable: Minor change.
646
647         * src/main/java/org/glom/web/client/ui/list/ListTable.java
648         createCellTable(): Make this protected instead of public.
649
650 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
651
652         Many files: Use final for the parameters and use the @override attribute.
653
654 2012-01-22  Ben Konrath <ben@bagu.org>
655
656         Add anchor links for single line text that starts with http, ftp and www.
657
658         Bug #667269
659
660 2012-01-22  Ben Konrath <ben@bagu.org>
661
662         Add ellipsis to single line text in details view.
663
664         Bug #667269
665
666 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
667
668         Remove all javadoc author tags.
669
670         Because they are awkward and meaningless when many people touch
671         many files.
672         See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
673  
674 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
675
676         Revert the COPYING.LESSER to COPYING rename.
677
678         Apparently both should be there if it is LGPL.
679
680 2012-01-03  Murray Cumming  <murrayc@murrayc.com>
681
682         *View: Remove unused imports.
683
684         * src/main/java/org/glom/web/client/ui/DetailsView.java:
685         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
686         * src/main/java/org/glom/web/client/ui/ListView.java:
687         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
688         Remove unused imports, as suggested by Eclipse.
689
690 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
691
692         Move the *View::Presenter types, and some API into one base View.
693
694         * src/main/java/org/glom/web/client/ui/DetailsView.java:
695         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
696         * src/main/java/org/glom/web/client/ui/ListView.java:
697         * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
698         Presenter, setPresenter() and clear() into a shared base interface,
699         to avoid the unnecessary duplicate Presenter types and to more clearly
700         show how the *Views share the same structure, even if they are not 
701         used polymorphically.
702
703         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
704         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
705         va:
706         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
707         * src/main/java/org/glom/web/client/activity/ListActivity.java:
708         * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
709         ity.java:
710         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
711         .java: Adapt.
712
713         Feel free to revert this if there is a good reason for the duplicate
714         types.
715
716 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
717
718         OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
719
720         * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
721         a class member instead of a local variable in the method.
722         This lets us use it to get the view instances, for use in tests.
723         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
724         beforeOnlineGlom(): Test some more details of the initial view.
725         Again, this is not very useful.
726
727         To really test gwt-glom we will need to start a local postgresql 
728         instance with local data, like the Glom tests in C++.
729
730 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
731
732         pom.xml: Mention the LGPL license.
733
734         * pom.xml: Add a licenses section.
735         * COPYING.LESSER: Move this to COPYING, which
736         previously contained the GPL. But gwt-glom is all LGPL.
737
738 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
739
740         Add project information to README and pom.xml.
741
742         * README: Add a brief description and mention some mvn
743         commands.
744         * pom.xml: This extra information shows up in mvn site
745         generated pages.
746
747 2011-01-02  Murray Cumming  <murrayc@murrayc.com>
748
749         Use the latest java-libglom version.
750
751         * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
752
753 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
754
755         GwtTestOnlineGlom: Test a little more.
756
757         * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
758         protected rather than private, as suggested by the gwt-test-utils
759         maintianer here:
760         http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
761         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
762         Test the initial visibility of the panels.
763
764         However, this is not a very useful test.
765         And I wonder how we should generally test using this idea for an
766         activity/places app like ours where the real changes happen implicitly
767         based on the history token/URL.
768
769 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
770
771         Slight modification to *Mapper comments.
772
773         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
774         (DataActivityMapper)
775         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
776         pper.java
777         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
778         r.java
779         Remove comments mentioning GIN because they are just copied from 
780         the example code and are apparently not helpful:
781         http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
782         Also change the mention of a class that is only in the example code.
783
784 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
785
786         GwtTestOnlineGlom test: Minor changes.
787
788         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
789         Avoid the long qualified class name and modify the comment 
790         because it is now obvious to me that the mocked class is the only
791         custom one created via GWT.create().
792
793 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
794
795         Tests: Added the beginnings of a test using gwt-test-utils.
796
797         * pom.xml: Add dependencies on gwt-test-utils and easymock.
798         * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
799         which tells gwt-test-utils what class will be tested.
800         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
801         Add a simple (but empty) test case. One class, used by the OnlineGlom
802         class, is mocked so that it can be created. However, I am not sure 
803         why only this class needs to be mocked.
804
805         Note that mockito seems more popular, and clearer, than easymock,
806         but I have not got that working yet. It might be a matter of the 
807         mockito version.
808
809         This test is run during mvn integration-test.
810
811 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
812
813         Tests: Use junit4-style syntax instead of junit3-style.
814
815         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
816         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
817         * src/test/java/org/glom/web/shared/DataItemTest.java:
818         Use the @Test annotation rather than relying on the test*() prefix.
819         Also no longer implement TestCase, to avoid triggering support for 
820         the junit3-way, which stops the annotations from working.
821         Change the imports from import junit.framework.* to 
822         import org.junit.*, which is apparently the new way.
823
824 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
825
826         Added a test for ListPlace token parsing and creation.
827
828         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
829         This is much the same as DetailsPlaceTest.
830
831         I wonder how we could test the other parts of the *Place API.
832
833 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
834
835         DetailsPlace test: Also test getToken() and recreation via getPlace().
836
837         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
838         testGetPlaceParameters(): Get the tokens from the DetailsPlace and 
839         recreate it, testing the recreated DetailsPlace for the same parameter
840         values.
841
842 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
843
844         Use the surefire-report plugin.
845
846         * pom.xml: This generates a HTML report about the tests in 
847         target/site/surefire-report.html
848         when you do mvn surefire-report:report. It seems to be popular/normal.
849
850 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
851
852         Added a test for DetailsPlace.
853
854         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
855         Test the getPlace() token parsing.
856
857 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
858
859         Added a first unit test.
860
861         * pom.xml: Add a test goal, and a dependency on junit in that scope.
862         * src/test/java/org/glom/web/shared/DataItemTest.java:
863         This is a silly test but it is just to get things started. Note that
864         maven/junit finds the test because it looks in src/test by default.
865
866 2011-12-22  Ben Konrath  <ben@bagu.org>
867
868         Change charsetName to "UTF-8" when replacing line breaks.
869
870         JavaScript requires the charsetName to be "UTF-8". CharsetName values
871         that work in Java (such as "UTF8") will not work when compiled to
872         JavaScript.
873
874         This fixes a problem with multi-line details view fields that have hard
875         line breaks. The "License Text" field on this page demonstrates the
876         problem:
877
878         http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
879
880         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
881
882 2011-12-22  Ben Konrath  <ben@bagu.org>
883
884         Fix another bug with related list navigation.
885
886         I've tested all the navigation buttons in all of the related lists
887         so things should be good now.
888
889         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
890
891 2011-12-22  Ben Konrath  <ben@bagu.org>
892
893         Fix a crasher when refreshing the list view with the default table.
894
895         This crash will also happen when loading the list view with the default
896         table from a link or bookmark.
897
898         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
899         to the main document selection page when the document id hasn't been
900         set.
901         * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
902         the main document selection page when the document id hasn't been
903         set.
904         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
905         values for the details place when the document id hasn't been set.
906         * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
907         values for the list place when the document id hasn't been set.
908
909 2011-12-21  Ben Konrath  <ben@bagu.org>
910
911         Protect against NPE when glom.document.locale is not in config.
912
913         This patch protects against an NPE when glom.document.locale is not in
914         the config file. This NPE will also happen if glom.document.locale is
915         commented out.
916
917         The patch also updates the error message to display the class name when
918         the getMessage() returns null. This was happening when the NPE was
919         thrown and I had "Configuration Error: null". If an NPE is encountered
920         with this patch, "Configuration Error: NullPointerException " will be
921         displayed.
922
923         This commit closes this bug:
924
925         https://bugzilla.gnome.org/show_bug.cgi?id=666669
926
927         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
928
929 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
930
931         Rename onlineglom.properties to onlineglom.properties.sample.
932
933         * src/main/resources/onlineglom.properties: Rename to:
934         * src/main/resources/onlineglom.properties.sample:
935         * src/main/resources/README: And add this file explaining that people
936         should rename it back when deploying.
937
938 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
939
940         Allow choosing the translation in the .properties file.
941
942         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
943         init(): Read a glom.document.locale value from the configuration file 
944         and call Glom's TransatableItem::set_current_locale() method.
945         * src/main/resources/onlineglom.properties: Add a commented-out 
946         example of this new setting.
947
948         It would be better to add &lang=de_DE to the URL, but the current 
949         libglom API does not allow us to do this easily. I am working on that.
950
951 2011-12-19  Murray Cumming  <murrayc@murrayc.com>
952
953         Avoid a crash in parsing of token parameters.
954
955         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
956         ava: getTokenParams(): Do not crash if a parameter has a key but no 
957         value, and ignore parameters with neither.
958
959 2011-12-17  Murray Cumming  <murrayc@murayc.com>
960
961         History token building/handling: Improve use of token parameters.
962
963         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java 
964         (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
965         and buildParamsToken(HashMap), for use by derived classes.
966         Make the separator private because it is no longer be needed.
967         * src/main/java/org/glom/web/client/place/DetailsPlace.java
968         (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
969         instead of manual string concatenation.
970         (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead 
971         of hardcoded indices and awkward splitting code.
972         * src/main/java/org/glom/web/client/place/ListPlace.java
973         (ListPlace.Tokenizer.getToken): Use buildParamsToken()
974         instead of manual string concatenation.
975         (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead 
976         of hardcoded indices and awkward splitting code.
977         This should fix bug #666420
978
979 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
980
981         Fix a Navgiation->Navigation typo in the code.
982
983         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
984         Rename processNavgiation() to processNavigation().
985
986 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
987
988         Fix a seperator->separator typo in the code.
989
990         * src/main/java/org/glom/web/client/place/DetailsPlace.java
991         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
992         * src/main/java/org/glom/web/client/place/ListPlace.java: Just a 
993         misspelling.
994
995 2011-12-15  Ben Konrath <ben@bagu.org>
996
997         Cleanup some comments.
998
999         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1000
1001 2011-12-14  Ben Konrath <ben@bagu.org>
1002
1003         Replace \n with <br/> for multiline text in the details view.
1004
1005         Vertical scrollbars are added when needed as well.
1006
1007         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1008
1009 2011-12-14  Ben Konrath <ben@bagu.org>
1010
1011         Specify the font for document selection links.
1012
1013         * src/main/webapp/style.css:
1014
1015 2011-12-14  Ben Konrath <ben@bagu.org>
1016
1017         Fix bouncy CellTable while paging.
1018
1019         This doesn't currently work with related list tables in unselected
1020         Notebook tabs.
1021
1022         * src/main/java/org/glom/web/client/ui/list/ListTable.java
1023
1024 2011-12-14  Ben Konrath <ben@bagu.org>
1025
1026         Revamp the appearance of the document selection page.
1027
1028         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1029         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1030         * src/main/webapp/style.css:
1031
1032 2011-12-13  Ben Konrath <ben@bagu.org>
1033
1034         Set navigation button column to the smallest size possible.
1035
1036         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1037
1038 2011-12-13  Ben Konrath <ben@bagu.org>
1039
1040         Change OpenButton nomenclature to NavigationButton.
1041
1042         Using NavigtionButton makes things more generic. Classes, methods and
1043         variables have been changed.
1044
1045         This is a rename-only refactor.
1046
1047         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1048         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1049         * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
1050         Renamed from OpenButtonCell.
1051         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1052         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1053         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1054
1055 2011-12-12  Ben Konrath <ben@bagu.org>
1056
1057         Remove unnecessary String argument in RelatedListTable and ListViewTable.
1058
1059         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1060         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1061         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1062         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1063
1064 2011-12-12  Ben Konrath <ben@bagu.org>
1065
1066         Update variable names and comments.
1067
1068         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1069         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1070
1071 2011-12-12  Ben Konrath <ben@bagu.org>
1072
1073         Properly initialize numNonEmptyRows variable to zero.
1074
1075         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1076         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1077
1078 2011-12-05  Ben Konrath  <ben@bagu.org>
1079
1080         Add latest mockup with HTML tables.
1081
1082         Features of this mockup:
1083
1084         -> HTML table for flowtable
1085         -> HTML table for flowtable column
1086         -> Example of how related lists would look
1087         -> Not using text entries for data items
1088
1089         The current version of Online Glom doesn't use HTML tables for the
1090         flowtable columns.
1091
1092         This mockup has been sent to the glom-devel mailing list but it's good
1093         to have it here as well.
1094
1095         * mockups/details-view-html-tables.html:
1096
1097 2011-12-05  Ben Konrath  <ben@bagu.org>
1098
1099         Remove unnecessary getPrimaryKeyField() method.
1100
1101         getPrimaryKeyFieldForTable(String) has been renamed to
1102         getPrimaryKeyField(String).
1103
1104         * src/main/java/org/glom/web/server/database/DBAccess.java:
1105         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1106         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1107
1108 2011-12-05  Ben Konrath  <ben@bagu.org>
1109
1110         Add string representation of TypedDataItem value to conversion error message.
1111
1112         * src/main/java/org/glom/web/server/Utils.java: Logging the error
1113         message was extracted into its own method to avoid duplication.
1114
1115 2011-12-05  Ben Konrath  <ben@bagu.org>
1116
1117         Add type checking to navigation primary key value creation.
1118
1119         Create navigation primary key only if the expected type from the Glom
1120         document matches the type returned by the SQL query.
1121
1122         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1123
1124 2011-12-05  Ben Konrath  <ben@bagu.org>
1125
1126         Rename a couple of variables in RelatedListNavigation.
1127
1128         This is a rename-only refactor.
1129
1130         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1131
1132 2011-12-05  Ben Konrath  <ben@bagu.org>
1133
1134         Move getListLayoutGroup() into getListViewLayoutGroup().
1135
1136         This removes getListLayoutGroup(). It was only being called by
1137         getListViewLayoutGroup().
1138
1139         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1140
1141 2011-12-05  Ben Konrath  <ben@bagu.org>
1142
1143         Remove check for LayoutItem_Portal in list table method.
1144
1145         This check is no longer necessary because the method isn't being used
1146         to create the LayoutItemPortal DTO.
1147
1148         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1149
1150 2011-12-05  Ben Konrath  <ben@bagu.org>
1151
1152         Properly support related list navigation.
1153
1154         Navigation from the "Repository Analyzer -> Package Scans ->
1155         Dependencies" related table wasn't working because the primary key for
1156         related tables wasn't being set properly. This commit fixes the
1157         problem.
1158
1159         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
1160         getListLayoutGroup() to create the LayoutItemPortal DTO. This method
1161         doesn't set the primary key properly for related list tables.
1162         * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
1163         name parameter to getPrimaryKeyLayoutItemField(). This makes the method
1164         useful for getting the primary key for list view tables and for related
1165         list tables.
1166         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1167         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1168         Move code to set the primary key for the table from the abstract
1169         ListDBAccess class to ListViewDBAccess as it's only correct for list
1170         view tables.
1171         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1172         Properly add primary key to related list tables.
1173
1174 2011-12-02  Ben Konrath  <ben@bagu.org>
1175
1176         Properly set the horizontal alignment of fields.
1177
1178         This fix is for both the list tables and the details view.
1179
1180         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1181         LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
1182         to set the horizontal alignment of fields.
1183
1184 2011-12-02  Ben Konrath  <ben@bagu.org>
1185
1186         Display currency codes in the details view.
1187
1188         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1189
1190 2011-12-02  Ben Konrath  <ben@bagu.org>
1191
1192         Avoid duplicate JNI call.
1193
1194         JNI is not as efficient as pure Java and this is an easy (and small)
1195         optimization.
1196
1197         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1198         Use previously retrieved value for whereClauseToTableName instead of
1199         getting it again.
1200
1201 2011-12-02  Ben Konrath  <ben@bagu.org>
1202
1203         Rename a couple of variables in RelatedListNavigation.
1204
1205         This is a rename-only refactor.
1206
1207         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1208
1209 2011-12-02  Ben Konrath  <ben@bagu.org>
1210
1211         Indicate clearly that a mismatched primary key type is a bug.
1212
1213         * src/main/java/org/glom/web/server/Utils.java: Change log level from
1214         warning to error. Add 'This is a bug.' to message.
1215
1216 2011-12-02  Ben Konrath  <ben@bagu.org>
1217
1218         Update / fix some comments.
1219
1220         * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
1221         comments.
1222         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
1223         comment.
1224         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1225         Fix comments. Add some TODOs.
1226
1227 2011-12-02  Ben Konrath  <ben@bagu.org>
1228
1229         Enable navigation to details view with string primary key from related list.
1230
1231         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1232         Create a text primary key value when return type of result is
1233         java.sql.Types.VARCHAR.
1234
1235 2011-12-02  Ben Konrath  <ben@bagu.org>
1236
1237         Use checkboxes for booleans in the details view.
1238
1239         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1240
1241 2011-12-01  Ben Konrath  <ben@bagu.org>
1242
1243         Improve performance of related list height calculation.
1244
1245         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1246         Put code to calculate the expected height in a static initializer so
1247         that that it's only called once.
1248
1249 2011-12-01  Ben Konrath  <ben@bagu.org>
1250
1251         Show related list tables in notebooks (again).
1252
1253         Calculate the height of the related list tables so the Notebook can be
1254         set the correct height. The height of the related list table is also needed by
1255         FlowTable to be able decide how to create the layout.
1256
1257         * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
1258         and set the Portal height based on the height of the related list
1259         table and the Portal container.
1260         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1261         Add method to calculate the height of the related list tables.
1262         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1263         * src/main/webapp/style.css: Add css class for Pager. This is needed to
1264         calculate the height of the Pager widget.
1265
1266 2011-12-01  Ben Konrath  <ben@bagu.org>
1267
1268         Use CellTable API for table property instead of setting style on Element.
1269
1270         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1271
1272 2011-12-01  Ben Konrath  <ben@bagu.org>
1273
1274         Make ListViewTable and RelatedListTable a consistent height.
1275
1276         The tables are now a consistent height regardless of the contents of
1277         the table. A hidden button is added to empty rows to ensure that the
1278         height of these rows will match the height of rows with data.
1279
1280         A navigation button column is now added to every table. The width of
1281         the navigation column is set to 0px when a RelatedListTable shouldn't
1282         have navigation buttons. This maintains the a consistent row height in
1283         tables that don't show the navigation buttons.
1284
1285         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
1286         navigation column when not needed.
1287         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
1288         arguments for navigation button to constructor of ListViewTable.
1289         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
1290         hidden button for empty data rows.
1291         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
1292         arguments for navigation button to constructor.
1293         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
1294         create navigation buttons. Add hideNavigationButtons() method.
1295         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
1296         arguments for navigation button to constructor.
1297
1298 2011-12-01  Ben Konrath  <ben@bagu.org>
1299
1300         Use 'visibility: hidden' in Utils.getWidgetHeight().
1301
1302         This is better choice because hidden elements are invisible, don't
1303         respond to events and are not part of the tab order. They will,
1304         however, take up space which is required to be able to calculate the
1305         height of the widget.
1306
1307         * src/main/java/org/glom/web/client/Utils.java:
1308
1309 2011-12-01  Ben Konrath  <ben@bagu.org>
1310
1311         Use Utils.getWidgetHeight() in FlowTable.
1312
1313         * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
1314         this.
1315         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1316
1317 2011-12-01  Ben Konrath  <ben@bagu.org>
1318
1319         Put the details css class name on the correct table column.
1320
1321         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1322
1323 2011-11-30  Ben Konrath  <ben@bagu.org>
1324
1325         Update for java-libglom API change.
1326
1327         The getters and setters on FieldFormatting and NumericFormat were
1328         changed to remove the 'M'.
1329
1330         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1331
1332 2011-11-29  Ben Konrath  <ben@bagu.org>
1333
1334         Only allow RelatedListTables in Portals.
1335
1336         * src/main/java/org/glom/web/client/ui/details/Portal.java:
1337
1338 2011-11-29  Ben Konrath  <ben@bagu.org>
1339
1340         Only create a contents panel for Portals when title is being set.
1341
1342         * src/main/java/org/glom/web/client/ui/details/Portal.java:
1343
1344 2011-11-29  Ben Konrath  <ben@bagu.org>
1345
1346         Set TabLayoutPanel height based on calculated height its widgets.
1347
1348         This is a potential fix for this bug:
1349
1350         https://bugzilla.gnome.org/show_bug.cgi?id=665133
1351
1352         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1353
1354 2011-11-29  Ben Konrath  <ben@bagu.org>
1355
1356         Align details field labels and data with the Open buttons.
1357
1358         * src/main/webapp/style.css:
1359
1360 2011-11-29  Ben Konrath  <ben@bagu.org>
1361
1362         Remove unnecessary <div> in the Notebook widget.
1363
1364         * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
1365         method to get container FlowPanel (<div>).
1366         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
1367         initWidget() method directly on the TabLayoutPanel widget instead of
1368         Group's container widget.
1369
1370 2011-11-29  Ben Konrath  <ben@bagu.org>
1371
1372         Don't add group titles for Portals in Notebooks.
1373
1374         This reverts the previous patch and fixes a bug I introduced with
1375         commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
1376
1377         * src/main/java/org/glom/web/client/ui/details/Group.java:
1378         * src/main/java/org/glom/web/client/ui/details/Portal.java:
1379
1380 2011-11-28  Ben Konrath  <ben@bagu.org>
1381
1382         Remove unused boolean argument in Portal constructor.
1383
1384         Just a code cleanup.
1385
1386         * src/main/java/org/glom/web/client/ui/details/Group.java:
1387         * src/main/java/org/glom/web/client/ui/details/Portal.java:
1388
1389 2011-11-28  Ben Konrath  <ben@bagu.org>
1390
1391         Remove hack for glom 1.18 style glom files.
1392
1393         * src/main/java/org/glom/web/client/ui/details/Group.java:
1394         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1395         * src/main/java/org/glom/web/client/ui/details/Portal.java:
1396
1397 2011-11-28  Ben Konrath  <ben@bagu.org>
1398
1399         Use Gda Value version of primary key to log result too large error.
1400
1401         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1402
1403 2011-11-28  Ben Konrath  <ben@bagu.org>
1404
1405         Don't use TypedDataItem.getText() for Unknown types from the URL.
1406
1407         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1408         * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
1409         instead of getText().
1410         * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
1411         String field and getUnknown() method.
1412
1413 2011-11-28  Ben Konrath  <ben@bagu.org>
1414
1415         Log an error message when the java-libglom .so is not present.
1416
1417         The error message was being set in the exception but not logged.
1418
1419         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1420
1421 2011-11-28  Ben Konrath  <ben@bagu.org>
1422
1423         Ignore LayoutItem_CalendarPortals.
1424
1425         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
1426         create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
1427
1428 2011-11-28  Ben Konrath  <ben@bagu.org>
1429
1430         Extract method for creating the LayoutItemPortal DTO.
1431
1432         Just breaking the code up into smaller chunks.
1433
1434         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1435
1436 2011-11-28  Ben Konrath  <ben@bagu.org>
1437
1438         Add TypedDataItem.
1439
1440         This should have been added with the refactor. Oops!
1441
1442         * src/main/java/org/glom/web/shared/TypedDataItem.java:
1443
1444 2011-11-28  Ben Konrath  <ben@bagu.org>
1445
1446         Create primary key value from URL string using type from Glom document.
1447
1448         See this bug, comments 19 - 25:
1449
1450         https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
1451
1452         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
1453         create a TypeDataItem for the primary key here when loading from a
1454         URL. Show the same string for the primary key value as was received
1455         from the URL string (when loading from a URL).
1456         * src/main/java/org/glom/web/server/Utils.java: Update method for
1457         creating the Gda Value from the TypeDataItem to properly deal with
1458         creating a Gda Value based on the Glom document type for the primary
1459         key value string when loading from a URL.
1460         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1461         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1462         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1463         Update for changed method name.
1464
1465 2011-11-27  Ben Konrath  <ben@bagu.org>
1466
1467         Rename PrimaryKeyItem to TypedDataItem.
1468
1469         The name PrimaryKeyItem suggests what the class should be used for.
1470         TypedDataItem is a neutral name that describes the class better.
1471
1472         This is a rename-only refactor.
1473
1474         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1475         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1476         * src/main/java/org/glom/web/client/Utils.java:
1477         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1478         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1479         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1480         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1481         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1482         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1483         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1484         * src/main/java/org/glom/web/server/Utils.java:
1485         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1486         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1487         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1488         * src/main/java/org/glom/web/shared/NavigationRecord.java:
1489
1490 2011-11-25  Ben Konrath  <ben@bagu.org>
1491
1492         Improve Gda Value conversion from PrimaryKeyItem.
1493
1494         The value from the PrimaryKeyItem is only used if its type match the
1495         type from the glom document.
1496
1497         * src/main/java/org/glom/web/server/Utils.java:
1498
1499 2011-11-25  Ben Konrath  <ben@bagu.org>
1500
1501         Manually check if the java-liblgom .so is visible to the JVM.
1502
1503         It seems that Tomcat has problems when a static initializer throws an
1504         exception. This check is done before the first method call into
1505         java-libglom so that execution doesn't continue if the .so is not
1506         found.
1507
1508         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1509
1510 2011-11-25  Ben Konrath  <ben@bagu.org>
1511
1512         Improve browser configuration error messages.
1513
1514         This fixes:
1515
1516         https://bugzilla.gnome.org/show_bug.cgi?id=662792
1517
1518         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1519         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1520         getConfigurationErrorMessage() method.
1521         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1522         Get and display a specific configuration error message when no Glom
1523         documents are found.
1524         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1525         Implement getConfigurationErrorMessage() method. Surround configuration
1526         code in the init() method with a try/catch block. This allows the
1527         errors to be caught while keeping the servlet available to retrieve the
1528         configuration error message.
1529
1530 2011-11-25  Ben Konrath  <ben@bagu.org>
1531
1532         Don't use Strings to hold primary key values.
1533
1534         The primary key values are now held in a new data object
1535         (PrimaryKeyItem) that holds type information and the primary key value
1536         using the correct type.
1537
1538         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1539         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1540         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1541         PrimaryKeyItem instead of String to hold the primary key value.
1542         * src/main/java/org/glom/web/client/Utils.java: Remove
1543         getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
1544         PrimaryKeyItem based on the GlomFieldType and the DataItem.
1545         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
1546         PrimaryKeyItem instead of String to hold the primary key value. Load
1547         document selection page when the documentID has not been set correctly.
1548         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
1549         DetailsPlace -> URL and URL -> DetailsPlace conversion with
1550         PrimaryKeyItem.
1551         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1552         Return empty string for URL instead of "null".
1553         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1554         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1555         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1556         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1557         PrimaryKeyItem instead of String to hold primary key values.
1558         * src/main/java/org/glom/web/server/Utils.java: New method to convert a
1559         PrimaryKeyValue to a Gda Value.
1560         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1561         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1562         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1563         Replace temporary database access code that uses the PrimaryKeyValue to
1564         Gda Value conversion.
1565         * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
1566         * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
1567         PrimaryKeyItem instead of String.
1568         * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
1569         hold primary key values.
1570
1571 2011-11-24  Ben Konrath  <ben@bagu.org>
1572
1573         Use newly added java-libglom API to create queries.
1574
1575         This isn't finished. I still need to stop using Strings for primary key
1576         values in the client code.
1577
1578         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
1579         libglom to use fake connections so that retrieving the query string will
1580         work.
1581         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1582         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1583         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1584         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1585         Use the newly added libglom sql methods and classes to create the
1586         query. Add temporary hack to convert primary value strings to Gda
1587         Value.
1588
1589 2011-11-23  Ben Konrath  <ben@bagu.org>
1590
1591         Don't explicitly set the height of Portals.
1592
1593         See comments 6 - 10 of this bug for details:
1594
1595         https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
1596
1597         * src/main/java/org/glom/web/client/ui/details/Portal.java:
1598
1599 2011-11-23  Ben Konrath  <ben@bagu.org>
1600
1601         Use an HTML table instead of CSS for the FlowTable layout.
1602
1603         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
1604         GWT's FlexTable to implement the FlowTable.
1605         * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
1606
1607 2011-11-18  Ben Konrath  <ben@bagu.org>
1608
1609         Add boolean example to HTML table mockup.
1610
1611         * mockups/details-view-html-tables-text-entries.html:
1612
1613 2011-11-17  Ben Konrath  <ben@bagu.org>
1614
1615         Ensure the pager buttons are always visible for related lists.
1616
1617         To accomplish this, I've turned off text wrapping in the list view and
1618         related list tables for both the header and data text. The related list
1619         table now has a fixed layout so the it doesn't overflow its container.
1620         This is required to ensure that the cell text is clipped when it
1621         overflows the cell and an ellipsis is added to the right side of the
1622         cell when text is clipped.
1623
1624         A fixed table layout for the related list table in the details view
1625         seems what we want for the details view anyway, so the side-effect is
1626         desirable.
1627
1628         The ellipsis will only be displayed in Firefox >= 7.
1629
1630         This fixes bug:
1631
1632         https://bugzilla.gnome.org/show_bug.cgi?id=662930
1633
1634         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
1635         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
1636         'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
1637         cell text.
1638         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1639         Set the 'table-layout: fixed' CSS property to the related list table.
1640         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
1641         'white-space: nowrap;' CSS property on both the list view and the
1642         related list tables.
1643
1644 2011-11-16  Ben Konrath  <ben@bagu.org>
1645
1646         Rework the fix for empty notebook tab labels.
1647
1648         Setting the empty group titles with its name caused problems for the
1649         details layout. Instead of using libglom's
1650         LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
1651         to the client when the title is empty. This allows the Notebook to use
1652         the name when the title is empty without affecting anything else.
1653
1654         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1655         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1656
1657 2011-11-16  Ben Konrath  <ben@bagu.org>
1658
1659         Set group titles with name when title is empty.
1660
1661         This fixes a problem with an empty notebook tab label in the Lesson
1662         Planner document. The forth tab in the notebook should be "Internet":
1663
1664         http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
1665
1666         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1667         libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
1668         DTO title.
1669
1670 2011-11-16  Ben Konrath  <ben@bagu.org>
1671
1672         Remove whitespace from the configured username properties.
1673
1674         This assumes that usernames won't have whitespace at the beginning
1675         or end. But I think this is a reasonable assumption.
1676
1677         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1678         String.trim() to remove the whitespace from the username properties.
1679
1680 2011-11-15  Ben Konrath  <ben@bagu.org>
1681
1682         Add details view mockup with HTML tables and text entries.
1683
1684         This is from the attachment on this bug:
1685
1686         https://bugzilla.gnome.org/show_bug.cgi?id=663109
1687
1688         * mockups/details-view-html-tables-text-entries.html:
1689
1690 2011-11-15  Ben Konrath  <ben@bagu.org>
1691
1692         Add space between the columns of the flow table.
1693
1694         This fixes:
1695
1696         https://bugzilla.gnome.org/show_bug.cgi?id=662918
1697
1698         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
1699         space between columns in the flow table.
1700
1701 2011-11-15  Ben Konrath  <ben@bagu.org>
1702
1703         Add backup files to the .gitignore.
1704
1705         * .gitignore: Ignore files that end with ~.
1706
1707 2011-11-09  Ben Konrath  <ben@bagu.org>
1708
1709         Use latest release of gwt-log.
1710
1711         Gwt-log releases are now being submitted to the maven central
1712         repository so manual installation of the jar is no longer required.
1713
1714         * pom.xml: Update version and groupId of gwt-log dependency.
1715
1716 2011-10-31  Ben Konrath  <ben@bagu.org>
1717
1718         Don't use GWT numeric formatting to override the glom currency formatting.
1719
1720         Currencies are now displayed like they are in Glom. See this bug:
1721
1722         https://bugzilla.gnome.org/show_bug.cgi?id=646216
1723
1724         * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
1725         formatting.
1726         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
1727         currency code to constructor and set it when the cell is rendered.
1728         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1729         currency code to the constructor of the NumericCell.
1730
1731 2011-10-27  Ben Konrath  <ben@bagu.org>
1732
1733         Require the latest release of java-libglom (1.17.4).
1734
1735         * pom.xml:
1736
1737 2011-10-26  Ben Konrath  <ben@bagu.org>
1738
1739         Add style to Notebook that matches current theme.
1740
1741         It's not the best style in the world but it's better than the default.
1742
1743         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
1744         padding at the bottom of the child widgets.
1745         * src/main/webapp/style.css: Add style for the Notebook.
1746
1747 2011-10-26  Ben Konrath  <ben@bagu.org>
1748
1749         Move servlet initialization code to overridden init method.
1750
1751         This is half of the solution to getting proper error messages
1752         displayed when configuration errors occur. Here's the relevant bug:
1753
1754         https://bugzilla.gnome.org/show_bug.cgi?id=662792
1755
1756         The rest of the solution involves surrounding the init method with a
1757         try/catch block and setting a global variable with the error /
1758         exception. A new async method should be created to retrieve and display
1759         the error message / exception.
1760
1761         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
1762         code from constructor to init method adding exceptions as needed.
1763
1764 2011-10-26  Ben Konrath  <ben@bagu.org>
1765
1766         Add script to monitor and restart tomcat if required.
1767
1768         * utils/check-and-recover-tomcat.py: New file.
1769
1770 2011-10-26  Ben Konrath  <ben@bagu.org>
1771
1772         Display the correct number of data items in the pager.
1773
1774         This commit fixes:
1775
1776         https://bugzilla.gnome.org/show_bug.cgi?id=661441
1777
1778         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1779         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1780         The implementation is the same for both tables: Keep track of the
1781         number of non-empty rows and fire and RowCountChangeEvent after the data has
1782         been updated.
1783         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
1784         custom Pager class that subclasses SimplePager to handle displaying
1785         the correct number when empty rows have been added.
1786
1787 2011-10-26  Ben Konrath  <ben@bagu.org>
1788
1789         Correct error in previous commit.
1790
1791         * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
1792         eventBus parameter from listView.setCellTable().
1793
1794 2011-10-26  Ben Konrath  <ben@bagu.org>
1795
1796         Fix error in TODO comment.
1797
1798         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1799
1800 2011-10-24  Ben Konrath  <ben@bagu.org>
1801
1802         Create Notebook widgets to the details view.
1803
1804         This isn't finished just yet - I still need to create a reasonable
1805         style to match the current theme.
1806
1807         * src/main/java/org/glom/web/client/Utils.java: Add method for
1808         calculating the height of a widget. This is used in the Notebook class.
1809         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1810         new constructor method in Group.
1811         * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
1812         method for creating child widget that can be used by subclasses
1813         like Notebook. New constructor that allows disabling the group
1814         titles - Notebooks don't set a group title for their child groups.
1815         * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
1816         to make Notebooks using GWT's TabLayoutPanel.
1817         * src/main/java/org/glom/web/client/ui/details/Portal.java: New
1818         constructor that allows disabling the group titles.
1819         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
1820         LayoutItemNotebook DTO.
1821         * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
1822         DTO for Notebooks. It's just an empty class for now but we might need
1823         it to transfer some specific information in the future.
1824
1825 2011-10-21  Ben Konrath  <ben@bagu.org>
1826
1827         Add navigation buttons to related list tables.
1828
1829         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1830         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1831         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
1832         method getSuitableRecordToViewDetails() for getting the table name
1833         and primary key value for related list navigation buttons.
1834         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1835         private cell renderer class to get the navigation information for
1836         related list tables from the server. Extract the navigation
1837         processing code from the details cell navigation and use it for the
1838         related list navigation as well.
1839         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
1840         cell renderer class for the details open buttons. This was needed
1841         because the related list navigation buttons and the list view
1842         navigation buttons need to react differently when clicked.
1843         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
1844         the onEnterKeyDown() method because it's now overriden in the
1845         subclasses that are specific to the related list tables and the list
1846         view tables.
1847         * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
1848         the vertical size a little because the buttons add a bit of vertical
1849         space to table. This is not a perfect solution because the vertical
1850         size of with table fewer than 5 rows will be a little smaller.
1851         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
1852         changes in how navigation buttons are handled.
1853         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
1854         getSuitableRecordToViewDetails() using the new RelatedListNavigation
1855         database access object.
1856         * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
1857         to find the portal for a given relationship name from
1858         RelatedListDBAccess. Add method to find a primary key field for a
1859         given table.
1860         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1861         Move code to find the portal for a given relationship name to
1862         DBAccess.
1863         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1864         New file: database access object for getting the related list
1865         navigation information (the table name and the primary key value).
1866         * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
1867         DTO for transferring a table name to navigate to and a primary key
1868         value.
1869         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1870         boolean and getter/setter to specifies if the related list should add
1871         navigation buttons.
1872
1873 2011-10-24  Murray Cumming  <murrayc@murrayc.com>
1874
1875         Use the master branch of java-libglom
1876
1877         * pom.xml: Depend on java-libglom 1.19 instead.
1878         
1879         This is the master branch. See also the libglom-1-18 branch.
1880
1881 2011-10-11  Ben Konrath  <ben@bagu.org>
1882
1883         Enable the open navigation button when the data has been set.
1884
1885         This avoids having active buttons that don't do anything when the data
1886         has not been set.
1887
1888         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1889
1890 2011-10-11  Ben Konrath  <ben@bagu.org>
1891
1892         Use IsWidget interface for FlowTableItem.
1893
1894         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
1895         FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
1896
1897 2011-10-11  Ben Konrath  <ben@bagu.org>
1898
1899         Remove GWT styling from open button in details view.
1900
1901         There are still some issues with how the details cell is arranged but
1902         this should be made to match Glom 1.20. I'm going to leave fixing this
1903         until I have Glom 1.20 up and running.
1904
1905         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
1906         style name on open button.
1907         * src/main/webapp/style.css: Move and edit details-navigation class.
1908         Re-arrange some classes to make them appear in the same order as the
1909         UI.
1910
1911 2011-10-07  Ben Konrath  <ben@bagu.org>
1912
1913         Update to GWT 2.4.0.
1914
1915         * .gitignore: Ignore new cache directory.
1916         * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
1917         * pom.xml: Change GWT and maven plugin to 2.4.0.
1918         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
1919         2.4.0.
1920         * src/main/java/org/glom/web/client/ClientFactory.java:
1921         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1922         * src/main/java/org/glom/web/client/OnlineGlom.java:
1923         Update source for API changes.
1924         * utils/build-onlineglom-war.sh: Remove cache directory before the
1925         build.
1926
1927 2011-10-07  Ben Konrath  <ben@bagu.org>
1928
1929         Add navigation buttons in the details view.
1930
1931         This isn't finished but I thought I'd commit what I have as it's a
1932         pretty good start. I still need to:
1933
1934         1. Change the style so that it fits better into the current theme
1935         2. Adjust the details cell to expand as much as possible.
1936
1937         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1938         click handlers to navigation buttons in the DetailsCells. Create a
1939         refreshData() method to get just the data from the server without the
1940         layout.
1941         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1942         Update the tableSelector and browser title when the table name
1943         changes without using the tableSelector.
1944         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1945         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1946         getDetailsCells() to getCells(). Update variable names.
1947         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1948         method to set click handler on navigation button. Rename a few
1949         variables. Add navigation buttons where needed.
1950         * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1951         variables and methods.
1952         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1953         navigation boolean and navigation table as required in the
1954         LayoutItemField DTO.
1955         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1956         variables for navigation along with getter/setter methods.
1957
1958 2011-10-07  Ben Konrath  <ben@bagu.org>
1959
1960         Rename Field to DetailsCell.
1961
1962         This is a refactor-only commit. No functionality has been added or
1963         removed.
1964
1965         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1966         Update variable and method names.
1967         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1968         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1969         variable and method names.
1970         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1971         Renamed from Field.
1972         * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1973         variable and method names.
1974
1975 2011-10-07  Ben Konrath  <ben@bagu.org>
1976
1977         Create separate methods for layout and data the details view.
1978
1979         This is a refactor-only commit. No functionality has been added or
1980         removed.
1981
1982         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1983         private methods: setData(), createLayout().
1984
1985 2011-10-07  Ben Konrath  <ben@bagu.org>
1986
1987         Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1988
1989         This is part of a change to get navigation buttons in the details view
1990         but it should have been done this way from the start.
1991
1992         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1993         for method name change in TableSelectionView.
1994         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1995         Create TableChangeEvent and set the browser title using the
1996         TableSelectionView API.
1997         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1998         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1999         Change getSelectedTable() to getSelectedTableName(). Add
2000         getSelectedTableTitle().
2001
2002 2011-10-07  Ben Konrath  <ben@bagu.org>
2003
2004         Use primaryKeyValue naming convention in constructor of DetailsPlace.
2005
2006         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2007
2008 2011-10-07  Ben Konrath  <ben@bagu.org>
2009
2010         Update TableChangeEvent to use newTableName naming convention.
2011
2012         This makes the class more consistent with GWT naming conventions.
2013
2014         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2015         Update for method name change in TableChangeEvent.
2016         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2017         for method name change in TableChangeEvent.
2018         * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
2019         newTableName variable and getter method. Make toDebugString()
2020         actually work.
2021
2022 2011-09-30  Ben Konrath  <ben@bagu.org>
2023
2024         Disable the pager in the list tables when the data row count is less than the minimum.
2025
2026         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2027         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2028
2029 2011-09-30  Ben Konrath  <ben@bagu.org>
2030
2031         Add empty rows to the end of related list and list view tables.
2032
2033         I also extracted the cell rendering classes from the ListTable because
2034         the code was becoming a little crazy with all the anonymous inner
2035         classes. My plan is to use these cell rendering classes in the details
2036         view as well so this refactor will be needed for that change.
2037
2038         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
2039         set the row count in related list tables if the data has more rows
2040         than the minimum number of rows visible.
2041         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
2042         row count in list view tables if the data has more rows than the
2043         minimum number of rows visible.
2044         * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
2045         for rendering TYPE_BOOLEAN cells. The code was extracted from the
2046         ListTable class.
2047         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
2048         for rendering TYPE_NUMERIC cells. The code was extracted from the
2049         ListTable class.
2050         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
2051         class for rendering cells with buttons in list views. The code was
2052         extracted from the ListTable class.
2053         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
2054         for rendering TYPE_TEXT cells. The code was extracted from the
2055         ListTable class.
2056         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2057         Add empty rows to the end of the data if required. Implement
2058         ListTable.getMinNumVisibleRows().
2059         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
2060         cell renderer code to public classes. Return null in
2061         Column.getValue() for empty rows. Add new abstract method:
2062         getMinNumVisibleRows(). Move code to set the row count of the list view
2063         table to ListViewImpl.
2064         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
2065         empty rows to the end of the data if required. Implement
2066         ListTable.getMinNumVisibleRows().
2067
2068
2069 2011-09-27  Ben Konrath  <ben@bagu.org>
2070
2071         Use GWT.log for client-side debugging statements.
2072
2073         These are optimized out when deployed so I should have used this method
2074         in the first place. These statements will eventually be replaced with some sort
2075         of notification in the browser.
2076
2077         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2078         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2079         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2080         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2081         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2082
2083 2011-09-27  Ben Konrath  <ben@bagu.org>
2084
2085         Put tableselector on the right, back to list link on right.
2086
2087         The idea is that the table selector is acting like a label for the
2088         currently displayed table so it should be placed below the document title. This
2089         puts the table title in a similar position to where it is in Glom.
2090
2091         * mockups/details-contacts.html:
2092         * mockups/details-projects.html:
2093         * mockups/listview-contacts.html:
2094         * mockups/listview-projects.html:
2095         * mockups/style.css:
2096         Update mockups to match how the interfaces currently look.
2097         * src/main/webapp/style.css: Swap positions of backlink with the table
2098         selector. Add some space on the left side of the table selector to
2099         line things up with the document title.
2100
2101 2011-09-27  Ben Konrath  <ben@bagu.org>
2102
2103         Add field colouring to details view.
2104
2105         This change re-works how field colouring works. The colour formatting
2106         information is now set to the client with the layout information instead of
2107         with the data. This eliminates the need to send the same colour strings for
2108         data in list view column when colour information is set.
2109
2110         In order to set an alternate colour for negative numeric values, the
2111         number is now sent to client and formatted with the GWT NumberFormat class.
2112
2113         This change also fixes:
2114
2115         https://bugzilla.gnome.org/show_bug.cgi?id=659752
2116
2117         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
2118         internationalization framework which is needed for client side numeric
2119         formatting.
2120         * src/main/java/org/glom/web/client/Utils.java: New file for some
2121         client static utility methods.
2122         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2123         the DataItem object to the Field class. Use a utility method to
2124         create the foreignKeyValue string.
2125         * src/main/java/org/glom/web/client/ui/details/Field.java: Set
2126         alignment and text colours in the constructor. Add setData(DataItem)
2127         method. Remove setText(String) method.
2128         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2129         colour information to GlomTextCell. Create and use GlomNumberCell for
2130         rendering numbers. Use utility method to get the string for the
2131         primary key of the key provider. Re-work how the horizontal alignment
2132         is set.
2133         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2134         formatting to layout information. Methods for converting the libglom
2135         formatting information were moved from DBAccess.
2136         * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
2137         numeric formatting (it's now done on the client side). Don't set text
2138         colours in DataItem. Move libglom formatting conversion methods to
2139         ConfiguredDocument.
2140         * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
2141         getters/setters for text colour information.
2142         * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
2143         for transferring the libglom NumericFormat information to the client.
2144         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
2145         and getters/setters for: GlomNumericFormat, background colour and
2146         foreground colour strings.
2147
2148 2011-09-26  Ben Konrath  <ben@bagu.org>
2149
2150         Simplify code that iterates through the LayoutGroup.
2151
2152         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2153
2154 2011-09-26  Ben Konrath  <ben@bagu.org>
2155
2156         Accept Eclipse formatting for OnlineGlomServiceAsync.
2157
2158         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2159
2160 2011-09-26  Ben Konrath  <ben@bagu.org>
2161
2162         Don't use the ListDBAccess classes to get the primary key layout information.
2163
2164         This was causing a bug where the wrong index for the hidden primary key
2165         was being sent to the client.
2166
2167         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
2168         primary key while creating the LayoutGroup DTO. Create a
2169         LayoutItemField DTO for hidden primary keys. Don't use the
2170         RelatedListDBAccess because it was only used for getting the primary
2171         key.
2172         * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
2173         access modifier from public to protected for getPrimaryKeyField() and
2174         getPrimaryKeyLayoutItemField().
2175         * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
2176         abstract method getExpectedResultSize() because RelatedListDBAccess
2177         doesn't have enough info to implement it.
2178         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2179         Remove @Override for getExpectedResultSize().
2180         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2181         Remove method getExpectedResultSize().
2182
2183 2011-09-23  Ben Konrath  <ben@bagu.org>
2184
2185         Log which layout (list or details) the ignored item is from.
2186
2187         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2188
2189 2011-09-23  Ben Konrath  <ben@bagu.org>
2190
2191         Remove annotations that turn off code formatting in DataItem.
2192
2193         * src/main/java/org/glom/web/shared/DataItem.java:
2194
2195 2011-09-23  Ben Konrath  <ben@bagu.org>
2196
2197         Rename GlomField to DataItem and update associated methods.
2198
2199         This is a rename-only refactor. No functionality has been added or
2200         removed.
2201
2202         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2203         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2204         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2205         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2206         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2207         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2208         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2209         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2210         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2211         * src/main/java/org/glom/web/server/database/DBAccess.java:
2212         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2213         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2214         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2215         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2216         * src/main/java/org/glom/web/shared/DataItem.java:
2217         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
2218         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2219
2220 2011-09-23  Ben Konrath  <ben@bagu.org>
2221
2222         Rename GlomDocument to DocumentInfo and update associated methods.
2223
2224         This is a rename-only refactor. No functionality has been added or
2225         removed.
2226
2227         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2228         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2229         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2230         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2231         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2232         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2233         * src/main/java/org/glom/web/shared/DocumentInfo.java:
2234
2235 2011-09-20  Ben Konrath  <ben@bagu.org>
2236
2237         Require java-libglom 1.17.3.
2238
2239         This picks up the fix for the seg fault problem with the Scenes table
2240         in the Openismus Film Manager example.
2241
2242         * pom.xml:
2243
2244 2011-09-20  Ben Konrath  <ben@bagu.org>
2245
2246         Change the way sort clause is added for primary key when no sort clause is requested.
2247
2248         The primary key is now added to the LayoutFieldVector (fieldsToGet)
2249         before the sort clause is created. When a sort clause is not requested, the
2250         sort clause is created by finding the primary key in the LayoutFieldVector
2251         (fieldsToGet).
2252
2253         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2254
2255 2011-09-20  Ben Konrath  <ben@bagu.org>
2256
2257         Log error message if no documents are found in the configured directory.
2258
2259         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
2260         Extract the glom file extension string to a private static final class
2261         variable (mostly as syntactic sugar). Accept a minor formatting change.
2262         * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
2263         the example glom.document.directory configuration property to make it
2264         more clear that it can any directory, not just the home directory.
2265
2266 2011-09-18  Ben Konrath  <ben@bagu.org>
2267
2268         Add related lists to details view.
2269
2270         The related list table has support for paging and sorting just like the
2271         table in the list view.
2272
2273         * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
2274         SQL queries for the related list tables.
2275         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2276         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2277         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2278         Rename getList methods to getListView and add comments. Remove
2279         getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
2280         it being unused. Add methods: getDetailsLayoutAndData(),
2281         getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
2282         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2283         Create the layout and set the data for the fields in one async call
2284         instead of two. Create related lists where appropriate.
2285         * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
2286         for method name changes in OnlineGlomService.
2287         * src/main/java/org/glom/web/client/ui/DetailsView.java:
2288         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2289         addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
2290         visible UI objects.
2291         * src/main/java/org/glom/web/client/ui/ListView.java:
2292         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
2293         tableName from setCellTable(). Create a ListViewTable instead of
2294         ListTable.
2295         * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
2296         represent a data field in the details view.
2297         * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
2298         from addDetailsCell() to Field class. Keep track of the Fields and
2299         Portals in the details view.
2300         * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
2301         a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
2302         and add a method to get it. Add method to set the contents of the
2303         portal.
2304         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2305         New class for related list tables. This class has the data provider
2306         for the related list table.
2307         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
2308         abstract class which is the base class for the ListViewTable and the
2309         RelatedListTable.
2310         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2311         New class for list view tables. This class has the data provider for
2312         the list view table.
2313         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2314         methods for related list tables. Add more information to the
2315         LayoutItemField and LayoutItemPortal DTOs.
2316         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2317         Remove debugging print statement.
2318         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2319         Remove debugging print statements. Add primary key field to SQL count
2320         query.
2321         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2322         Remove unnecessary LayoutFieldVector parameter from
2323         getResultSizeOfSQLQuery() method.
2324         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2325         New class for related list table database access.
2326         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
2327         class that is a wrapper DTO for details view layout and data.
2328         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2329         new 'fromField' string to this DTO.
2330         * src/main/webapp/style.css: Remove bottom margin and override top
2331         margin with 0em.
2332
2333 2011-09-15  Ben Konrath  <ben@bagu.org>
2334
2335         Breakup the OnlineGlomServiceImpl class to make it more manageable.
2336
2337         This sets things up to make it easier to add the data retrieval for
2338         related lists (portals). No user noticeable changes were made with
2339         this commit.
2340
2341         * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
2342         class has the code to retrieve the layouts and access the
2343         database using the new database helper classes.
2344         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2345         Most of the functionality has been removed from this class. This
2346         class now represents the public interface for the client side
2347         code. It also deals with configuring the servlet and cleaning
2348         things up when the servlet is stopped.
2349         * src/main/java/org/glom/web/server/Utils.java: Extract a couple
2350         of static methods into this utility class.
2351         * src/main/java/org/glom/web/server/database/DBAccess.java:
2352         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2353         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2354         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2355         These classes have the database retrieval code. The class hierarchy
2356         has been setup to make it easy to reuse code for similar
2357         functionality.
2358
2359 2011-09-06  Ben Konrath  <ben@bagu.org>
2360
2361         Create separate classes for list table code and the data provider.
2362
2363         As part of this refactor, I also split up the code a bit to make it
2364         more manageable.
2365
2366         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
2367         table code to two new classes (below).
2368         * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
2369         with code from ListViewImpl.
2370         * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
2371         New file with code from ListViewImpl.
2372
2373 2011-09-06  Ben Konrath  <ben@bagu.org>
2374
2375         Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
2376
2377         This fixes the LayoutItemPortal DTO to match the libglom layout object
2378         hierarchy.
2379
2380         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
2381
2382 2011-09-01  Ben Konrath  <ben@bagu.org>
2383
2384         Set title of Portals in the Details View.
2385
2386         * pom.xml: Bump required version of java-libglom to 1.17.1.
2387         * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
2388         widget creation to its own class. Add comments to constructor.
2389         * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
2390         The code is mostly from the Group class with the title now set.
2391         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2392         title of Portal. Update some comments. Fix some code formatting.
2393
2394 2011-09-01  Ben Konrath  <ben@bagu.org>
2395
2396         Remove TODO comment for the flow table column width.
2397
2398         The flow table column width is working correctly and doesn't need to be
2399         changed. See this mailing list post for more info:
2400
2401         https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
2402
2403         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2404
2405 2011-08-27  Ben Konrath  <ben@bagu.org>
2406
2407         Add document title (database name) to top of the browser page.
2408
2409         I added the document title to the TableSelecitonView but that will
2410         change if / when we add a view that doesn't require table selection.
2411
2412         * mockups/details-contacts.html:
2413         * mockups/details-projects.html:
2414         * mockups/listview-contacts.html:
2415         * mockups/listview-projects.html:
2416         * mockups/style.css: Add document title to mockups to keep things
2417         consistent.
2418         * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
2419         sizes to account for the document title.
2420         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2421         Set the document title when it has been retrieved from the server.
2422         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2423         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
2424         and implement setDocumentTitle(String) method.
2425         * src/main/webapp/style.css: Add ID for document title style.
2426
2427 2011-08-25  Ben Konrath  <ben@bagu.org>
2428
2429         Add NavigationType enum to LayoutItemPortal DTO.
2430
2431         This is the start of adding support for Portals to the Details View.
2432
2433         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
2434         LayoutItem_Portal.navigation_type enum from libglom to
2435         LayoutItemPortal.NavigationType enum.
2436         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2437         NavigationType enum, field for storing the NavigationType and getter
2438         and setter methods.
2439
2440 2011-08-25  Ben Konrath  <ben@bagu.org>
2441
2442         Implement the flow table layout in the Details View.
2443
2444         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2445         FlowTable to Group to account for the renamed class.
2446         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
2447         File. This is a container widget that implements the Glom details view
2448         flow table behaviour.
2449         * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
2450         org/glom/web/client/ui/FlowTable.java.
2451         * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
2452         so that the size of the subgroups are a closer match to the size of
2453         the Glom subgroups. This makes the flowtable layout match the layout
2454         in Glom for the Music Collection example file.
2455
2456 2011-08-16  Ben Konrath  <ben@bagu.org>
2457
2458         Create container element for LayoutItemPortal in Details View.
2459
2460         This will help me develop the layout for the FlowTable.
2461
2462         * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
2463         fieldPanel variable to detailsCell.
2464
2465 2011-08-15  Ben Konrath  <ben@bagu.org>
2466
2467         Set the height of the data element in the Details View.
2468
2469         I changed the InlineLabels (text in a span element) to Labels (text in
2470         a div element) so that I could set the height of the details-data
2471         elements instead of the details-cell parent elements. This allows the
2472         the details-data element to display the correct height if style is
2473         applied that shows the height.
2474
2475         This change has the added benefit of allowing the order of the labels
2476         and data elements to be changed for right-to-left languages.
2477
2478         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2479         InlineLabels to Labels.
2480         * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
2481         InlineLabels to Labels. Set the height of the data element.
2482         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2483         multiline text height in the Formatting DTO.
2484         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
2485         for multiline height along with getter and setter methods.
2486         * src/main/webapp/style.css: Adjust style to account for the change
2487         from span elements to div elements in the details cell.
2488
2489 2011-08-15  Ben Konrath  <ben@bagu.org>
2490
2491         Make the List View appearance match the mockups.
2492
2493         It doesn't match exactly but it's much better than it was.
2494
2495         * mockups/listview-contacts.html: Remove unused css classes.
2496         * mockups/listview-projects.html: Remove unused css classes.
2497         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
2498         rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
2499         for mainPanel instead of VerticalPanel (table). Set style name on
2500         CellTable. Set style name on Details column. Right-align Details
2501         buttons.
2502         * src/main/webapp/style.css: Adjust properties to match the mockups.
2503
2504 2011-08-12  Ben Konrath  <ben@bagu.org>
2505
2506         Add better support for subgroups in the details view.
2507
2508         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2509         changed FlowTable constructor.
2510         * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
2511         support for subgroups and subgroup-titles.
2512         * src/main/webapp/style.css: Add CSS class for subgroups and
2513         subgroup-titles.
2514
2515 2011-08-12  Ben Konrath  <ben@bagu.org>
2516
2517         Return the top level LayoutGroup title.
2518
2519         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2520
2521 2011-08-11  Ben Konrath  <ben@bagu.org>
2522
2523         Make the TableSelector header match the mockup.
2524
2525         * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
2526         the layout panel. Properly lineup the table selection header with
2527         the list and details view.
2528         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
2529         margin around the details view.
2530         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2531         Rename listBox variable to tableSelector. Set id for the style sheet.
2532         Use a FlowPanel instead of a HorizontalPanel.
2533         * src/main/webapp/style.css: Add properties to make the TableSelector
2534         box match the mockups.
2535
2536 2011-07-13  Ben Konrath  <ben@bagu.org>
2537
2538         Update install script for java-libglom version change.
2539
2540         * utils/install-onlineglom-war.sh: Also exit if 'make check' in
2541         java-libglom fails.
2542
2543 2011-07-13  Ben Konrath  <ben@bagu.org>
2544
2545         Add support sub-group in the details view.
2546
2547         I also removed the code that special-cased the default details view
2548         layout. See:
2549
2550         http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
2551
2552         I still have to make a proper flowtable.
2553
2554         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2555         Don't special-case default details view layout.
2556         * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
2557         addLayoutField() as I'm going to use it.
2558         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
2559         GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
2560         method.
2561         * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
2562         extracted from DetailsViewImpl.GroupPanel. Add support for
2563         sub-groups.
2564         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2565         column count when getting the details layout.
2566
2567 2011-07-12  Ben Konrath  <ben@bagu.org>
2568
2569         Set browser title with database and table titles.
2570
2571         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2572         Set the browser title when the table changes and when the activity
2573         first starts.
2574         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2575         title when retrieving document info (the GlomDocument object).
2576         * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
2577         with getter and setter methods. Remove unused convenience constructor.
2578         Use default code formatting.
2579
2580 2011-07-12  Ben Konrath  <ben@bagu.org>
2581
2582         Ignore LayoutItemPortals in the details view.
2583
2584         I added a new DTO for the LayoutItemPortal so that I can ignore it in
2585         the client code.
2586
2587         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
2588         LayoutItemPortal layout objects.
2589         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2590         LayoutItemPortal objects when retrieving the details layout.
2591         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
2592         file. This is an empty class and just used to get type information for
2593         now.
2594
2595 2011-07-12  Ben Konrath  <ben@bagu.org>
2596
2597         Use java-libglom 1.17.0.
2598
2599         * pom.xml:
2600
2601 2011-07-11  Ben Konrath  <ben@bagu.org>
2602
2603         Remove "Table:" label from table selector.
2604
2605         This matches a recent change in the Glom UI.
2606
2607         * mockups/details-contacts.html:
2608         * mockups/details-projects.html:
2609         * mockups/listview-contacts.html:
2610         * mockups/listview-projects.html: Remove the "Table:" label from the
2611         mockups as well.
2612         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2613
2614 2011-07-11  Ben Konrath  <ben@bagu.org>
2615
2616         Add main groups to the details view.
2617
2618         This makes things look a little nicer in the details view. The next step
2619         is to implement the flowtable.
2620
2621         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
2622         resources from the standard gwt css theme. Standard.css is now
2623         included in OnlineGlom.html so that the online glom css rules have
2624         precedence over the gwt theme.
2625         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2626         the whole LayoutGroup to the DetailsView instead of just the titles.
2627         * src/main/java/org/glom/web/client/ui/DetailsView.java:
2628         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
2629         details layout with a helper class (GroupPanel). I might extract this
2630         class when I make the full flowtable.
2631         * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
2632         string as default so I don't have to worry about NPEs when processing
2633         the layout objects.
2634         * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
2635         note beside OnlineGlom.gwt.xml above).
2636         * src/main/webapp/style.css: Add default font-size to body to override
2637         the font-size set by the standard theme. Don't use h2 tags for
2638         group-title. Create new details-cell class.
2639
2640 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
2641
2642         ConfiguredDocument: Set the port number too.
2643
2644         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2645         (ConfiguredDocument.ConfiguredDocument): Get the port number from the 
2646         Glom document. Presumably this worked sometimes so far because there is a 
2647         default port number.
2648
2649 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
2650
2651         ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
2652
2653         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2654         (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is 
2655         correct, though we should throw an exception too.
2656
2657 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
2658
2659         Fix a addDocuemnt typo.
2660
2661         * src/main/java/org/glom/web/shared/Documents.java
2662         (Documents.addDocuemnt): Rename to addDocument().
2663         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2664         (OnlineGlomServiceImpl.getDocuments): Adapt.
2665         
2666 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
2667
2668         Slightly improved log output when connection fails.
2669
2670         * src/main/java/org/glom/web/server/ConfiguredDocument.java
2671         (ConfiguredDocument.setUsernameAndPassword):
2672         We don't know for sure if it' the username/password that's wrong, so 
2673         rephrase the message.
2674         Also ouput the exception message, though it's generic in this case.
2675
2676 2011-07-08  Ben Konrath  <ben@bagu.org>
2677
2678         Cleanup comments.
2679
2680         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
2681         added braces to a one line if statement because the Eclipse formatter
2682         was getting confused.
2683
2684 2011-07-07  Ben Konrath  <ben@bagu.org>
2685
2686         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
2687
2688         These should really be two separate tasks but I counldn't get things to
2689         work with GWT 2.2.0 and Eclipse 3.7.
2690
2691         * .classpath:
2692         * .project:
2693         * .settings/org.eclipse.jdt.core.prefs:
2694         * .settings/org.eclipse.jdt.ui.prefs:
2695         * .settings/org.eclipse.ltk.core.refactoring.prefs:
2696         * .settings/org.eclipse.m2e.core.prefs:
2697         Add new config files. Update current files. Remove references to the
2698         webtools plugins as we're not using any of the webtools features.
2699         * .gitignore: Add logs directory which is created when running with
2700         'mvn gwt:run'.
2701         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
2702         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
2703         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
2704         limitation:
2705         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
2706
2707 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
2708
2709         onlineglom.properties: Add explanatory comments.
2710
2711         * src/main/resources/onlineglom.properties: Also change the default user 
2712         from ben to someuser, to avoid the risk of people thinking we just 
2713         stupidly hard-coded a locale path, when they see that on stderr or in a log.
2714
2715 2011-06-28  Ben Konrath  <ben@bagu.org>
2716
2717         Use filename in Log for incorrect passwords.
2718
2719         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2720         getFileName(String) method to get the filename from the URI.
2721
2722 2011-06-28  Ben Konrath  <ben@bagu.org>
2723
2724         Add the table name to the URL token for the ListPlace.
2725
2726         This makes things consistent between the DetailsPlace and the
2727         ListPlace. It also allows the the ListPlace to be bookmarked.
2728
2729         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2730         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2731         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2732         Remove getDefaultListLayout(). The default layout is now returned
2733         by the getListLayout() method when the table name is an empty string.
2734         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2735         Add table name field. Change to a new ListPlace when the table
2736         has been changed. Use getListLayout() for getting the default
2737         list layout.
2738         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2739         Add table name field. Set the correct table name in the list box
2740         when loading from bookmark. This corrects a problem for the
2741         DetailsPlace too.
2742         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2743         Move table name to super-class (HasSelectableTable). Move document
2744         and table URL keys to super-class in HasSelectableTable.
2745         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2746         Add table name field. Add Tokenizer class with URL key common to
2747         the subclasses (DetailsPlace and ListPlace).
2748         * src/main/java/org/glom/web/client/place/ListPlace.java:
2749         Add table name. Add code to parse the URL token.
2750         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2751         Update ListPlace construction with empty table name string.
2752         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2753         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2754         Change setTableSelectedIndex(int) to setSelectedTableName(String).
2755         Update ListPlace construction with table name string.
2756         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2757         Change defaultTableName field to tableName to reflect how it's now
2758         used. Update the getter and setter methods.
2759
2760 2011-06-28  Ben Konrath  <ben@bagu.org>
2761
2762         Enable the table selector in the DetailsView.
2763
2764         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2765         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2766         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2767         Remove getDefaultDetailsLayout(). The default layout is now returned
2768         by the getDetailsLayout() method when the table name is an empty
2769         string.
2770         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2771         event handler for table change event. Change to using
2772         getDetailsLayout() for the default details layout.
2773         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
2774         name to URL token.
2775         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
2776         when navigating to the details place.
2777
2778 2011-06-27  Ben Konrath  <ben@bagu.org>
2779
2780         Use filename based unique document ID in URL and for RPC.
2781
2782         The document ID is the glom document name with spaces (' ') replaced
2783         with pluses ('+') and without the .glom extension.
2784
2785         This change is mostly a string substitution of 'documentTitle' for
2786         'documentID'. The only code change is the addition of a Documents DTO to get the
2787         filename to document title mappings as indicated below.
2788
2789         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2790         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2791         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2792         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2793         Use Documents DTO to create the document links in the document
2794         selection view.
2795         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2796         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2797         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2798         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2799         * src/main/java/org/glom/web/client/place/ListPlace.java:
2800         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2801         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2802         * src/main/java/org/glom/web/client/ui/ListView.java:
2803         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2804         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2805         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2806         * src/main/java/org/glom/web/server/Log.java:
2807         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2808         getDocumentTitles() to getDocuments() and return the Documents DTO.
2809         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
2810         transferring the filename to document title mappings.
2811
2812 2011-06-25  Ben Konrath  <ben@bagu.org>
2813
2814         Make the authentication popup work again.
2815
2816         This bug was introduced when I extracted ConfiguredDocument to its own class.
2817
2818         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
2819         correct success / fail status in setUsernameAndPassword().
2820
2821 2011-06-25  Ben Konrath  <ben@bagu.org>
2822
2823         Use filename as unique key for configuring database usernames and passwords.
2824
2825         This replaces the use of the Glom document title which could change
2826         depending on the locale. Thanks to Murray Cumming for pointing out this
2827         problem.
2828
2829         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2830         * src/main/resources/onlineglom.properties:
2831
2832 2011-06-24  Ben Konrath  <ben@bagu.org>
2833
2834         Pass primary key value to DetailsView.
2835
2836         This enables the DetailsView to load the correct data.
2837
2838         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2839         primary key value field and set in constructor. Pass primary key
2840         value to getDetailsData().
2841         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
2842         variables for document title and primary key value.
2843         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
2844         key value to the DetailsPlace.
2845
2846 2011-06-24  Ben Konrath  <ben@bagu.org>
2847
2848         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
2849
2850         This allows the primary key to be retrieved by the Details button. This
2851         functionality has not been implemented yet but it's in the works.
2852
2853         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
2854         the LayoutGroup result to ListView.setCellTable instead of all of its
2855         fields individually.
2856         * src/main/java/org/glom/web/client/ui/ListView.java:
2857         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
2858         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
2859         get the primary key for the table.
2860         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2861         index of the primary key in the LayoutGroup accounting for hidden
2862         primary keys. Rename getJavaNumberFormat() to
2863         convertToJavaNumberFormat() for consistency. Cleanup / add some
2864         comments.
2865         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
2866         field for primary key index and a field to indicate whether the
2867         primary key is hidden or not.
2868
2869 2011-06-23  Ben Konrath  <ben@bagu.org>
2870
2871         Rename getTableData methods to getListData.
2872
2873         This is a rename refactor for consistency with other methods.
2874
2875         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2876         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2877         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2878         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2879
2880 2011-06-23  Ben Konrath  <ben@bagu.org>
2881
2882         Extract the ConfiguredDocument innerclass into its own class.
2883
2884         This makes the servlet code more object oriented.
2885
2886         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
2887         from private ConfiguredDocument class in OnlineGlomServiceImpl.
2888         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
2889         new ConfiguredDocument class.
2890
2891 2011-06-21  Ben Konrath  <ben@bagu.org>
2892
2893         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
2894
2895         This makes things more inline with how libglom works and reduces code
2896         duplication. This refactor lays the groundwork for adding the primary key to
2897         the LayoutGroup object.
2898
2899         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2900         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2901         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2902         Change method names to getListLayout and getDefaultListLayout for
2903         consistency. Use LayoutGroup as the DTO for the list layout instead of
2904         ColumnInfo and LayoutListTable.
2905         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
2906         new method names along with the LayoutGroup object for transferring the
2907         list layout.
2908         * src/main/java/org/glom/web/client/ui/ListView.java:
2909         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2910         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
2911         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
2912         with LayoutGroup.
2913         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
2914         Replaced with LayoutGroup.
2915         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
2916         expectedResultSize and defaultTableName fields which are needed for
2917         the list layout.
2918         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2919         type field which is needed for the list layout but will also be
2920         useful for the details layout as things progress.
2921         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2922         Make class abstract. Remove the unnecessary
2923         getFormattingHorizontalAlignment method. Add setFormatting method.
2924
2925 2011-06-16  Ben Konrath  <ben@bagu.org>
2926
2927         Add scripts for building and installing war.
2928
2929         These will help when updating OnlineGlom but they're also good
2930         supplemental documentation of the build and deployment proceeding.
2931
2932         * utils/build-onlineglom-war.sh: New file.
2933         * utils/install-onlineglom-war.sh: New file.
2934
2935 2011-06-16  Ben Konrath  <ben@bagu.org>
2936
2937         Create wrapper class to create consistent log messages.
2938
2939         I wrapped methods in the Log class of gwt-log to add the method names
2940         from the servlet and create consistent formatting of the document title
2941         and table names in the log messages.
2942
2943         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2944         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2945         log methods to use methods from wrapped Log class.
2946
2947 2011-06-16  Ben Konrath  <ben@bagu.org>
2948
2949         Remove superfluous conditional return.
2950
2951         Thanks to Murray Cumming for pointing this out!
2952
2953         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2954
2955 2011-06-15  Ben Konrath  <ben@bagu.org>
2956
2957         Return an ArrayList of LayoutGroups for the Details layout.
2958
2959         This corrects a problem with the details layout as it can have more
2960         than one top level LayoutGroup.
2961
2962         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2963         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2964         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2965         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2966         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2967         with ArrayList of LayoutGroups for the details view layout.
2968         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2969         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2970         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2971         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2972         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2973         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2974
2975 2011-06-14  Ben Konrath  <ben@bagu.org>
2976
2977         Use cast_dynamic method to determine the libglom LayoutItem type.
2978
2979         This is better than finding the LayoutItem type by using the string
2980         returned from the get_part_type_name() method.
2981
2982         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2983
2984 2011-06-14  Ben Konrath  <ben@bagu.org>
2985
2986         Add method names to log entries in the servlet.
2987
2988         This helps when tracking down deployment problems.
2989
2990         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2991
2992 2011-06-14  Ben Konrath  <ben@bagu.org>
2993
2994         Add data to the DetailsView using a hard-coded primary key value.
2995
2996         The layout and functionality of the DetailsView is not complete. This
2997         is just a checkpoint so the patch doesn't get too big.
2998
2999         * src/main/java/org/glom/web/client/OnlineGlomService.java:
3000         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3001         Add getDetailsData() servlet method.
3002         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3003         Add RPC to getDetailsData(). Change the way the LayoutGroups and
3004         LayoutFields are added to the DetailsView.
3005         * src/main/java/org/glom/web/client/ui/DetailsView.java:
3006         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
3007         Add setData() method. Change addLayoutGroup() and addLayoutField() to
3008         take the string for the title instead of the object.
3009         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3010         Add implementation getDetailsData() along with some private helper
3011         methods.
3012         * src/main/webapp/style.css: Add padding to details-data class. Add a
3013         details-label class with the same padding as the details-data class.
3014
3015 2011-06-03  Ben Konrath  <ben@bagu.org>
3016
3017         Use presenter.goTo() to change to the DetailsPlace.
3018
3019         This will make things easier when we need to open the DetailsView with
3020         data specific to the row that was clicked.
3021
3022         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3023
3024 2011-06-02  Ben Konrath  <ben@bagu.org>
3025
3026         Add CSS file from mockups.
3027
3028         I'm adding this now because it's going to be useful to have when
3029         developing the DetailsView. The TableSelectionView and ListView aren't
3030         setup properly yet.
3031
3032         * src/main/webapp/OnlineGlom.html:
3033         * src/main/webapp/style.css:
3034
3035 2011-06-02  Ben Konrath  <ben@bagu.org>
3036
3037         Use String.isEmpty() to check for empty string.
3038
3039         * src/main/java/org/glom/web/client/activity/ListActivity.java:
3040
3041 2011-06-02  Ben Konrath  <ben@bagu.org>
3042
3043         Display main layout group titles in the DetailsView.
3044
3045         This is the start of the DetailsActivity/DetailsView implementation.
3046
3047         * src/main/java/org/glom/web/client/OnlineGlomService.java:
3048         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3049         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
3050         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3051         Get the layout information for the details view from the server and set
3052         the main layout group titles.
3053         * src/main/java/org/glom/web/client/ui/DetailsView.java:
3054         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
3055         Add addLayoutGroup() and addLayoutField() methods. This are just
3056         temporary methods for creating the the details view that will change
3057         in the future.
3058         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3059         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
3060         methods.
3061         * src/main/java/org/glom/web/shared/layout/Formatting.java:
3062         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
3063         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
3064         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
3065         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
3066         Data Transfer Objects that mimic the libglom object structure. These are
3067         used for transferring the details layout but could also be used for
3068         transferring the list layout.
3069
3070 2011-05-27  Ben Konrath  <ben@bagu.org>
3071
3072         Reset the AuthenticationPopup when clearing the ListView.
3073
3074         * src/main/java/org/glom/web/client/activity/ListActivity.java:
3075
3076 2011-05-27  Ben Konrath  <ben@bagu.org>
3077
3078         Fix problem with onlineglom.properties file loading.
3079
3080         The old way worked in Eclipse but not on the server. Loading the
3081         onlineglom.properties file now works in Eclipse and on the server.
3082
3083         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3084
3085 2011-05-24  Ben Konrath  <ben@bagu.org>
3086
3087         Update gwt-log from 3.1.0 to 3.1.2.
3088
3089         Gwt-log 3.1.0 has been marked as depreciated.
3090
3091         * pom.xml:
3092
3093 2011-05-24  Ben Konrath  <ben@bagu.org>
3094
3095         Add comment to ListActivity.goTo() method.
3096
3097         * src/main/java/org/glom/web/client/activity/ListActivity.java:
3098
3099 2011-05-24  Ben Konrath  <ben@bagu.org>
3100
3101         Remove FIXME in convertGdkColorToHtmlColour()
3102
3103         The Gdk::Color value returned by libglom is 16-bits per channel on both
3104         64 and 32-bit platforms.
3105
3106         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3107
3108 2011-05-19  Ben Konrath  <ben@bagu.org>
3109
3110         Improve performance of initial ListView load.
3111
3112         I removed a round trip to the server for getting the default table name
3113         and then requesting information about that table. This also removes a potential
3114         problem with the table change handler not being setup in time to receive the
3115         table change event from the ListActivity.
3116
3117         * src/main/java/org/glom/web/client/OnlineGlomService.java:
3118         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
3119         getDefaultLayoutListTable() method. Improve comments.
3120         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
3121         getDefaultLayoutListTable() method instead of firing a table change
3122         event to get the table to load.
3123         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3124         implementation of getDefaultLayoutListTable() method.
3125         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
3126         table name.
3127
3128 2011-05-19  Ben Konrath  <ben@bagu.org>
3129
3130         Override toDebugString() in TableChangeEvent.
3131
3132         This is useful to have for debugging.
3133
3134         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
3135
3136 2011-05-19  Ben Konrath  <ben@bagu.org>
3137
3138         Add a "Back to List" link when at the DetailsPlace.
3139
3140         * src/main/java/org/glom/web/client/activity/ListActivity.java:
3141         Populate the CellTable based on the selected table of the ListBox if
3142         it's set otherwise use the default table. This allows the "Back to
3143         List" link to work.
3144         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3145         Remove Place from constructors. Add a setPlace() method. Add
3146         goToPlace() method. Set class as presenter for TableSelectionView.
3147         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
3148         Use the same TableSelectionActivity when switching between the List and
3149         Details Places.
3150         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3151         Subclass the new HasSelectableTablePlace. This removes some duplicate
3152         code.
3153         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
3154         New class to represent Places that display the TableSelectionView.
3155         * src/main/java/org/glom/web/client/place/ListPlace.java:
3156         Subclass the new HasSelectableTablePlace. This removes some duplicate
3157         code.
3158         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3159         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3160         Add Presenter interface. Add setBackLinkVisible() method. Add
3161         setBackLink() method.
3162
3163 2011-05-18  Ben Konrath  <ben@bagu.org>
3164
3165         Enable the "Details" buttons.
3166
3167         Right now only an empty details view is displayed.
3168
3169         * src/main/java/org/glom/web/client/ClientFactory.java:
3170         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
3171         Add DetailsView to ClientFactory.
3172         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3173         A basic activity for the details view.
3174         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3175         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
3176         clearView().
3177         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
3178         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
3179         GWT.
3180         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
3181         Create a new DetailsActivity when a DetailsPlace is requested. Remove
3182         unnecessary super() in constructor.
3183         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
3184         Create a new TableSelectionActivity when a DetailsPlace is requested. We
3185         really shouldn't create a new TableSelectionActivity for both the ListPlace
3186         and the DetailsPlace so this should be considered a temporary solution.
3187         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3188         New file. Represents a URL for the details view.
3189         * src/main/java/org/glom/web/client/ui/DetailsView.java:
3190         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
3191         A basic details view interface and implementation.
3192         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3193         Enable the "Details" buttons.
3194
3195 2011-05-12  Ben Konrath  <ben@bagu.org>
3196
3197         Use a LayoutPanel with multiple display areas for main layout.
3198
3199         This is mostly a refactor in that there are no changes from the user
3200         point of view. These changes are required so that we can swap out the list view
3201         with the details view when the user clicks the "Details" button.
3202
3203         * src/main/java/org/glom/web/client/ClientFactory.java:
3204         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
3205         OnlineGlomView. Add TableSelectionView, ListView and
3206         AuthenticationPopup.
3207         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
3208         for main layout. Add display regions for main activities. Add
3209         activity manager for for main activities.
3210         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
3211         file from parts of the deleted OnlineGlomActivity.
3212         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3213         New file from parts of the deleted OnlineGlomActivity.
3214         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
3215         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
3216         New files for app wide table change event.
3217         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
3218         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
3219         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
3220         Activity mappers for the main activities replace the deleted app-wide
3221         AppActivityMapper.
3222         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
3223         Fix a spelling error in he comment.
3224         * src/main/java/org/glom/web/client/ui/ListView.java:
3225         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3226         Renamed from LayoutListView and modified for MVP. This still not a
3227         proper dumb view as prescribed by the MVP pattern but it works for now.
3228         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3229         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3230         New widget stripped out of the deleted OnlineGlomView.
3231         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3232         Remove hack that is fixed by this patch.