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