1 2011-10-07 Ben Konrath <ben@bagu.org>
3 Create separate methods for layout and data the details view.
5 This is a refactor-only commit. No functionality has been added or
8 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
9 private methods: setData(), createLayout().
11 2011-10-07 Ben Konrath <ben@bagu.org>
13 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
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.
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().
28 2011-10-07 Ben Konrath <ben@bagu.org>
30 Use primaryKeyValue naming convention in constructor of DetailsPlace.
32 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
34 2011-10-07 Ben Konrath <ben@bagu.org>
36 Update TableChangeEvent to use newTableName naming convention.
38 This makes the class more consistent with GWT naming conventions.
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()
48 2011-09-30 Ben Konrath <ben@bagu.org>
50 Disable the pager in the list tables when the data row count is less than the minimum.
52 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
53 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
55 2011-09-30 Ben Konrath <ben@bagu.org>
57 Add empty rows to the end of related list and list view tables.
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.
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
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
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
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().
95 2011-09-27 Ben Konrath <ben@bagu.org>
97 Use GWT.log for client-side debugging statements.
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.
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:
109 2011-09-27 Ben Konrath <ben@bagu.org>
111 Put tableselector on the right, back to list link on right.
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.
117 * mockups/details-contacts.html:
118 * mockups/details-projects.html:
119 * mockups/listview-contacts.html:
120 * mockups/listview-projects.html:
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.
127 2011-09-27 Ben Konrath <ben@bagu.org>
129 Add field colouring to details view.
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.
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.
139 This change also fixes:
141 https://bugzilla.gnome.org/show_bug.cgi?id=659752
143 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
144 internationalization framework which is needed for client side numeric
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
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
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.
174 2011-09-26 Ben Konrath <ben@bagu.org>
176 Simplify code that iterates through the LayoutGroup.
178 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
180 2011-09-26 Ben Konrath <ben@bagu.org>
182 Accept Eclipse formatting for OnlineGlomServiceAsync.
184 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
186 2011-09-26 Ben Konrath <ben@bagu.org>
188 Don't use the ListDBAccess classes to get the primary key layout information.
190 This was causing a bug where the wrong index for the hidden primary key
191 was being sent to the client.
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
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().
209 2011-09-23 Ben Konrath <ben@bagu.org>
211 Log which layout (list or details) the ignored item is from.
213 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
215 2011-09-23 Ben Konrath <ben@bagu.org>
217 Remove annotations that turn off code formatting in DataItem.
219 * src/main/java/org/glom/web/shared/DataItem.java:
221 2011-09-23 Ben Konrath <ben@bagu.org>
223 Rename GlomField to DataItem and update associated methods.
225 This is a rename-only refactor. No functionality has been added or
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:
246 2011-09-23 Ben Konrath <ben@bagu.org>
248 Rename GlomDocument to DocumentInfo and update associated methods.
250 This is a rename-only refactor. No functionality has been added or
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:
261 2011-09-20 Ben Konrath <ben@bagu.org>
263 Require java-libglom 1.17.3.
265 This picks up the fix for the seg fault problem with the Scenes table
266 in the Openismus Film Manager example.
270 2011-09-20 Ben Konrath <ben@bagu.org>
272 Change the way sort clause is added for primary key when no sort clause is requested.
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
279 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
281 2011-09-20 Ben Konrath <ben@bagu.org>
283 Log error message if no documents are found in the configured directory.
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.
292 2011-09-18 Ben Konrath <ben@bagu.org>
294 Add related lists to details view.
296 The related list table has support for paging and sorting just like the
297 table in the list view.
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
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
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
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
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
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
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
359 2011-09-15 Ben Konrath <ben@bagu.org>
361 Breakup the OnlineGlomServiceImpl class to make it more manageable.
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
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
385 2011-09-06 Ben Konrath <ben@bagu.org>
387 Create separate classes for list table code and the data provider.
389 As part of this refactor, I also split up the code a bit to make it
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.
399 2011-09-06 Ben Konrath <ben@bagu.org>
401 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
403 This fixes the LayoutItemPortal DTO to match the libglom layout object
406 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
408 2011-09-01 Ben Konrath <ben@bagu.org>
410 Set title of Portals in the Details View.
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.
420 2011-09-01 Ben Konrath <ben@bagu.org>
422 Remove TODO comment for the flow table column width.
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:
427 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
429 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
431 2011-08-27 Ben Konrath <ben@bagu.org>
433 Add document title (database name) to top of the browser page.
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.
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
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.
453 2011-08-25 Ben Konrath <ben@bagu.org>
455 Add NavigationType enum to LayoutItemPortal DTO.
457 This is the start of adding support for Portals to the Details View.
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
466 2011-08-25 Ben Konrath <ben@bagu.org>
468 Implement the flow table layout in the Details View.
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.
482 2011-08-16 Ben Konrath <ben@bagu.org>
484 Create container element for LayoutItemPortal in Details View.
486 This will help me develop the layout for the FlowTable.
488 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
489 fieldPanel variable to detailsCell.
491 2011-08-15 Ben Konrath <ben@bagu.org>
493 Set the height of the data element in the Details View.
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.
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.
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.
515 2011-08-15 Ben Konrath <ben@bagu.org>
517 Make the List View appearance match the mockups.
519 It doesn't match exactly but it's much better than it was.
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
528 * src/main/webapp/style.css: Adjust properties to match the mockups.
530 2011-08-12 Ben Konrath <ben@bagu.org>
532 Add better support for subgroups in the details view.
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
541 2011-08-12 Ben Konrath <ben@bagu.org>
543 Return the top level LayoutGroup title.
545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
547 2011-08-11 Ben Konrath <ben@bagu.org>
549 Make the TableSelector header match the mockup.
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.
562 2011-07-13 Ben Konrath <ben@bagu.org>
564 Update install script for java-libglom version change.
566 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
569 2011-07-13 Ben Konrath <ben@bagu.org>
571 Add support sub-group in the details view.
573 I also removed the code that special-cased the default details view
576 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
578 I still have to make a proper flowtable.
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()
587 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
588 extracted from DetailsViewImpl.GroupPanel. Add support for
590 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
591 column count when getting the details layout.
593 2011-07-12 Ben Konrath <ben@bagu.org>
595 Set browser title with database and table titles.
597 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
598 Set the browser title when the table changes and when the activity
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.
606 2011-07-12 Ben Konrath <ben@bagu.org>
608 Ignore LayoutItemPortals in the details view.
610 I added a new DTO for the LayoutItemPortal so that I can ignore it in
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
621 2011-07-12 Ben Konrath <ben@bagu.org>
623 Use java-libglom 1.17.0.
627 2011-07-11 Ben Konrath <ben@bagu.org>
629 Remove "Table:" label from table selector.
631 This matches a recent change in the Glom UI.
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
638 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
640 2011-07-11 Ben Konrath <ben@bagu.org>
642 Add main groups to the details view.
644 This makes things look a little nicer in the details view. The next step
645 is to implement the flowtable.
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
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.
666 2011-07-08 Murray Cumming <murrayc@murrayc.com>
668 ConfiguredDocument: Set the port number too.
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
675 2011-07-08 Murray Cumming <murrayc@murrayc.com>
677 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
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.
683 2011-07-08 Murray Cumming <murrayc@murrayc.com>
685 Fix a addDocuemnt typo.
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.
692 2011-07-08 Murray Cumming <murrayc@murrayc.com>
694 Slightly improved log output when connection fails.
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.
702 2011-07-08 Ben Konrath <ben@bagu.org>
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.
710 2011-07-07 Ben Konrath <ben@bagu.org>
712 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
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.
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
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
731 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
733 2011-07-07 Murray Cumming <murrayc@murrayc.com>
735 onlineglom.properties: Add explanatory comments.
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.
741 2011-06-28 Ben Konrath <ben@bagu.org>
743 Use filename in Log for incorrect passwords.
745 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
746 getFileName(String) method to get the filename from the URI.
748 2011-06-28 Ben Konrath <ben@bagu.org>
750 Add the table name to the URL token for the ListPlace.
752 This makes things consistent between the DetailsPlace and the
753 ListPlace. It also allows the the ListPlace to be bookmarked.
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
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
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.
786 2011-06-28 Ben Konrath <ben@bagu.org>
788 Enable the table selector in the DetailsView.
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
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
801 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
802 when navigating to the details place.
804 2011-06-27 Ben Konrath <ben@bagu.org>
806 Use filename based unique document ID in URL and for RPC.
808 The document ID is the glom document name with spaces (' ') replaced
809 with pluses ('+') and without the .glom extension.
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.
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
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.
838 2011-06-25 Ben Konrath <ben@bagu.org>
840 Make the authentication popup work again.
842 This bug was introduced when I extracted ConfiguredDocument to its own class.
844 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
845 correct success / fail status in setUsernameAndPassword().
847 2011-06-25 Ben Konrath <ben@bagu.org>
849 Use filename as unique key for configuring database usernames and passwords.
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
855 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
856 * src/main/resources/onlineglom.properties:
858 2011-06-24 Ben Konrath <ben@bagu.org>
860 Pass primary key value to DetailsView.
862 This enables the DetailsView to load the correct data.
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.
872 2011-06-24 Ben Konrath <ben@bagu.org>
874 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
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.
879 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
880 the LayoutGroup result to ListView.setCellTable instead of all of its
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
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.
895 2011-06-23 Ben Konrath <ben@bagu.org>
897 Rename getTableData methods to getListData.
899 This is a rename refactor for consistency with other methods.
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:
906 2011-06-23 Ben Konrath <ben@bagu.org>
908 Extract the ConfiguredDocument innerclass into its own class.
910 This makes the servlet code more object oriented.
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.
917 2011-06-21 Ben Konrath <ben@bagu.org>
919 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
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.
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
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
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
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.
951 2011-06-16 Ben Konrath <ben@bagu.org>
953 Add scripts for building and installing war.
955 These will help when updating OnlineGlom but they're also good
956 supplemental documentation of the build and deployment proceeding.
958 * utils/build-onlineglom-war.sh: New file.
959 * utils/install-onlineglom-war.sh: New file.
961 2011-06-16 Ben Konrath <ben@bagu.org>
963 Create wrapper class to create consistent log messages.
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.
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.
973 2011-06-16 Ben Konrath <ben@bagu.org>
975 Remove superfluous conditional return.
977 Thanks to Murray Cumming for pointing this out!
979 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
981 2011-06-15 Ben Konrath <ben@bagu.org>
983 Return an ArrayList of LayoutGroups for the Details layout.
985 This corrects a problem with the details layout as it can have more
986 than one top level LayoutGroup.
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.
1001 2011-06-14 Ben Konrath <ben@bagu.org>
1003 Use cast_dynamic method to determine the libglom LayoutItem type.
1005 This is better than finding the LayoutItem type by using the string
1006 returned from the get_part_type_name() method.
1008 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1010 2011-06-14 Ben Konrath <ben@bagu.org>
1012 Add method names to log entries in the servlet.
1014 This helps when tracking down deployment problems.
1016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1018 2011-06-14 Ben Konrath <ben@bagu.org>
1020 Add data to the DetailsView using a hard-coded primary key value.
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.
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
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.
1041 2011-06-03 Ben Konrath <ben@bagu.org>
1043 Use presenter.goTo() to change to the DetailsPlace.
1045 This will make things easier when we need to open the DetailsView with
1046 data specific to the row that was clicked.
1048 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1050 2011-06-02 Ben Konrath <ben@bagu.org>
1052 Add CSS file from mockups.
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
1058 * src/main/webapp/OnlineGlom.html:
1059 * src/main/webapp/style.css:
1061 2011-06-02 Ben Konrath <ben@bagu.org>
1063 Use String.isEmpty() to check for empty string.
1065 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1067 2011-06-02 Ben Konrath <ben@bagu.org>
1069 Display main layout group titles in the DetailsView.
1071 This is the start of the DetailsActivity/DetailsView implementation.
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
1084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1085 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
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.
1096 2011-05-27 Ben Konrath <ben@bagu.org>
1098 Reset the AuthenticationPopup when clearing the ListView.
1100 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1102 2011-05-27 Ben Konrath <ben@bagu.org>
1104 Fix problem with onlineglom.properties file loading.
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.
1109 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1111 2011-05-24 Ben Konrath <ben@bagu.org>
1113 Update gwt-log from 3.1.0 to 3.1.2.
1115 Gwt-log 3.1.0 has been marked as depreciated.
1119 2011-05-24 Ben Konrath <ben@bagu.org>
1121 Add comment to ListActivity.goTo() method.
1123 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1125 2011-05-24 Ben Konrath <ben@bagu.org>
1127 Remove FIXME in convertGdkColorToHtmlColour()
1129 The Gdk::Color value returned by libglom is 16-bits per channel on both
1130 64 and 32-bit platforms.
1132 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1134 2011-05-19 Ben Konrath <ben@bagu.org>
1136 Improve performance of initial ListView load.
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.
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
1154 2011-05-19 Ben Konrath <ben@bagu.org>
1156 Override toDebugString() in TableChangeEvent.
1158 This is useful to have for debugging.
1160 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1162 2011-05-19 Ben Konrath <ben@bagu.org>
1164 Add a "Back to List" link when at the DetailsPlace.
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
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
1176 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1177 Subclass the new HasSelectableTablePlace. This removes some duplicate
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
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.
1189 2011-05-18 Ben Konrath <ben@bagu.org>
1191 Enable the "Details" buttons.
1193 Right now only an empty details view is displayed.
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
1203 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1204 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
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.
1221 2011-05-12 Ben Konrath <ben@bagu.org>
1223 Use a LayoutPanel with multiple display areas for main layout.
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.
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
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.
1260 2011-05-06 Ben Konrath <ben@bagu.org>
1262 Rename OnlineGlomPlace to ListPlace.
1264 The only change besides the rename is that url will now display #list
1265 instead of #Document.
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:
1273 2011-05-06 Ben Konrath <ben@bagu.org>
1275 Use Presenter for app navigation.
1277 This is the proper way to deal with Place (URL) changes with the MVP
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.
1292 2011-04-14 Ben Konrath <ben@bagu.org>
1294 Prompt for db username/password if they haven't been set.
1296 This is implemented with a popup widget that is contained within the
1297 OnlineGlomView and managed by the OnlineGlomActivity.
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
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
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.
1318 2011-04-12 Ben Konrath <ben@bagu.org>
1320 Make log messages a little clearer.
1322 Add a dash betweeen the document title and the table name.
1324 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1326 2011-04-12 Ben Konrath <ben@bagu.org>
1328 Protect against NPEs when cleaning up database resources.
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
1334 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1336 2011-04-12 Ben Konrath <ben@bagu.org>
1338 Move configuration of the servlet to the constructor.
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.
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.
1357 2011-04-11 Ben Konrath <ben@bagu.org>
1359 Remove unnecessary @Override in DocumentSelectionViewImpl.
1361 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1363 2011-04-11 Ben Konrath <ben@bagu.org>
1365 Remove center alignment in DocumentSelectionView.
1367 The title element is still centred but the document titles and bottom
1368 sentence are both left-aligned.
1370 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1372 2011-04-11 Ben Konrath <ben@bagu.org>
1374 Change 'Demo' naming convention to 'Document'.
1376 This is just a rename refactor with no functional changes to the code.
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:
1392 2011-04-08 Ben Konrath <ben@bagu.org>
1394 Remove FIXME from safeLongToInt() method.
1396 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1399 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1401 2011-04-08 Ben Konrath <ben@bagu.org>
1403 Display an error if no glom documents are found in the specified directory.
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:
1410 2011-04-08 Ben Konrath <ben@bagu.org>
1412 Add copyright header to one more file ... oops.
1414 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1416 2011-04-08 Ben Konrath <ben@bagu.org>
1418 Add copyright header to files without it.
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:
1427 2011-04-08 Ben Konrath <ben@bagu.org>
1429 Add support for accessing multiple glom documents in the servlet.
1431 This completes the demo selection functionality.
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
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.
1465 2011-04-08 Ben Konrath <ben@bagu.org>
1467 Update the Eclipse JDT configuration.
1469 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1470 methods. Automatically add the copyright header to new files.
1472 2011-04-05 Ben Konrath <ben@bagu.org>
1474 Add new page for demo selection.
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.
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
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.
1517 2011-04-05 Ben Konrath <ben@bagu.org>
1519 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1521 This is the forth and final commit of a refactor that will allow
1522 OnlineGlom to be used with multiple documents.
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
1528 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1529 RPC code to the presenter class (the P in MVP).
1531 2011-04-04 Ben Konrath <ben@bagu.org>
1533 Start moving the existing OnlineGlom code to MVP.
1535 This work is based on the GWT MVP framework that is documented here:
1537 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1539 This is the third commit of a refactor that will allow OnlineGlom to
1540 be used with multiple documents.
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
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.
1567 2011-04-04 Ben Konrath <ben@bagu.org>
1569 Move View classes to their own package.
1571 This is the second commit of a refactor that will allow OnlineGlom to
1572 be used with multiple documents.
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:
1578 2011-04-02 Ben Konrath <ben@bagu.org>
1580 Move UI code from the main module to its own class.
1582 This is the first commit of a refactor that will allow OnlineGlom to be
1583 used with multiple documents.
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.
1592 2011-04-01 Ben Konrath <ben@bagu.org>
1594 Fix formatting of gwt.xml and add DTD.
1596 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1598 2011-03-30 Ben Konrath <ben@bagu.org>
1600 Propperly convert gdkColor string to html colour string.
1602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1604 2011-03-28 Ben Konrath <ben@bagu.org>
1606 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1608 This implementation matches
1609 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1610 readable and is not tied to Swig.
1612 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1614 2011-03-28 Ben Konrath <ben@bagu.org>
1616 Use read-only checkboxes for boolean field types.
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
1627 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1628 getting and setting booleans.
1630 2011-03-25 Ben Konrath <ben@bagu.org>
1632 Don't get the Date twice from the ResultSet.
1634 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1636 2011-03-25 Ben Konrath <ben@bagu.org>
1638 Cleanup code in the servlet.
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
1646 2011-03-25 Ben Konrath <ben@bagu.org>
1648 Add server side logging with the gwt-log library.
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.
1657 2011-03-24 Ben Konrath <ben@bagu.org>
1659 Add a disable button for the Details view.
1661 * src/main/java/org/glom/web/client/LayoutListView.java:
1663 2011-03-22 Ben Konrath <ben@bagu.org>
1665 Use a count query to get the number of rows for the list view pager.
1667 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1669 2011-03-22 Ben Konrath <ben@bagu.org>
1671 Add more TODO information about CellTable pager positioning.
1675 2011-03-19 Ben Konrath <ben@bagu.org>
1677 Add TODO item about CellTable pager positioning.
1681 2011-03-18 Ben Konrath <ben@bagu.org>
1683 Remove unneeded GlomFieldColumn class.
1685 This is just a small code cleanup.
1687 * src/main/java/org/glom/web/client/LayoutListView.java:
1689 2011-03-18 Ben Konrath <ben@bagu.org>
1691 Use cursor mode in the query that gets data for the list view.
1693 I still need to fix the potential memory problem when getting the row
1694 count for the list view.
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
1702 2011-03-15 Ben Konrath <ben@bagu.org>
1704 Remove the GWT Container from the Eclipse build classpath.
1706 The GWT dependencies are set by Maven so this isn't needed.
1710 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1712 Added some earlier mockups to git, but not to the tarball dist.
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.
1719 2011-03-14 Ben Konrath <ben@bagu.org>
1721 Locate OnlineGlom.properties using the ServletContext.
1723 This is required to be able to locate the file in the deployed servlet.
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.
1731 2011-03-12 Ben Konrath <ben@bagu.org>
1733 Add note to README about why we're compiling down to obfuscated JavaScript.
1737 2011-03-11 Ben Konrath <ben@bagu.org>
1739 Use properties file to configure servlet.
1741 This allows people to change the glom file path, db username and db
1742 password without recompiling the code.
1744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1745 * src/main/webapp/OnlineGlom.properties:
1747 2011-03-11 Ben Konrath <ben@bagu.org>
1749 Use table fields in layout list view if the layout list is not defined.
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.
1755 2011-03-11 Ben Konrath <ben@bagu.org>
1757 Only show FIXME string for images when there's an image.
1759 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1760 in this change are some small code cleanups.
1762 2011-03-11 Ben Konrath <ben@bagu.org>
1764 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1766 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1768 2011-03-11 Ben Konrath <ben@bagu.org>
1770 Correctly set the index of the default table.
1772 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1773 Correctly set the index of the default table. Add commented out example
1776 2011-03-10 Ben Konrath <ben@bagu.org>
1778 Add comment to pom.xml about the previous change.
1780 * pom.xml: Add comment about the deployment issue so that it's obvious
1781 why java-libglom is set to the provided scope.
1783 2011-03-10 Ben Konrath <ben@bagu.org>
1785 Change java-libglom dependency from compile to provided in pom.xml.
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:
1793 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
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.
1800 2011-03-09 Ben Konrath <ben@bagu.org>
1802 Change to using a neutral locale for currency, date and time formatting.
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.
1809 * TODO: Add note about currency formatting issues with different
1811 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1812 to using the neutral ROOT locale.
1814 2011-03-09 Ben Konrath <ben@bagu.org>
1816 Add support for currency codes that are not ISO 4217 codes.
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.
1822 2011-03-08 Ben Konrath <ben@bagu.org>
1824 Remove test classes, launch configurations and configuration.
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.
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
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:
1843 2011-03-07 Ben Konrath <ben@bagu.org>
1845 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1847 These fixes allow me to use 'mvn deploy' to create the war file.
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
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
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.
1866 2011-03-07 Ben Konrath <ben@bagu.org>
1868 Add support for horizontal alignment in the LayoutList columns.
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.
1888 2011-03-04 Ben Konrath <ben@bagu.org>
1890 Add support for column sorting.
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
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.
1908 2011-03-03 Ben Konrath <ben@bagu.org>
1910 Add support for colour text and colour backgrounds to the layout list cells.
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
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[]
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.
1932 2011-03-02 Ben Konrath <ben@bagu.org>
1934 Don't display hidden tables in the combo box.
1936 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1938 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1939 code to ignore hidden tables using ArrayLists for the table names and
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
1945 2011-03-01 Ben Konrath <ben@bagu.org>
1947 Add support for Date and Time number types.
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.
1953 2011-03-01 Ben Konrath <ben@bagu.org>
1955 Add support for formatting glom types as specified in the glom file.
1957 Formatting isn't finished yet - I still need to add support for Date
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
1967 2011-03-01 Ben Konrath <ben@bagu.org>
1969 Use GWT 2.2.0 instead of 2.1.1.
1971 * pom.xml: Change GWT version numbers.
1973 2011-03-01 Ben Konrath <ben@bagu.org>
1975 A few small code cleanups.
1977 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
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.
1984 2011-02-28 Ben Konrath <ben@bagu.org>
1986 Add file for TODO list.
1990 2011-02-18 Ben Konrath <ben@bagu.org>
1992 Enable the CellTable Pager when more than 20 rows need to be viewed.
1994 The Pager will automatically become active when the results are larger
1995 than the CellTable size which is currently set to 20 lines.
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
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
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
2016 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2017 GlomTable and add columnTitles and numRows.
2019 2011-02-18 Ben Konrath <ben@bagu.org>
2021 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2023 This is a small performance boost. I'll use GlomTable to get the required
2024 layoutlist information.
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:
2030 2011-02-18 Ben Konrath <ben@bagu.org>
2032 Add option to turn off formatting in JDT formatter preferences.
2034 * .settings/org.eclipse.jdt.core.prefs:
2036 2011-02-18 Ben Konrath <ben@bagu.org>
2038 Rename LayoutList to LayoutListView.
2040 I'm working towards setting things up to easily use MVP when the time
2043 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2045 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2048 2011-02-17 Ben Konrath <ben@bagu.org>
2050 Move LayoutListDataProvider class into LayoutList.java.
2052 * src/main/java/org/glom/web/client/LayoutList.java:
2054 2011-02-17 Ben Konrath <ben@bagu.org>
2056 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2058 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
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.
2069 2011-02-17 Ben Konrath <ben@bagu.org>
2071 Update JDT settings.
2073 * .settings/org.eclipse.jdt.core.prefs:
2075 2011-02-17 Ben Konrath <ben@bagu.org>
2077 Move GWT-RPC objects to shared package (where they should be).
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.
2090 2011-02-16 Ben Konrath <ben@bagu.org>
2092 Add sort clause to the sql query that grabs table information.
2094 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2095 if one of the columns is a primary key.
2097 2011-02-16 Ben Konrath <ben@bagu.org>
2099 Disable generateAsync feature of gwt-maven.
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
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.
2109 2011-02-14 Ben Konrath <ben@bagu.org>
2111 Add LGPL v3 licence notices.
2113 Followed directions listed here:
2114 http://www.gnu.org/licenses/gpl-howto.html
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
2120 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2122 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2124 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2126 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2128 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2130 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2133 2011-02-14 Ben Konrath <ben@bagu.org>
2135 Use ArrayList instead of Array in GWT-RPC calls.
2137 Apparently this gives a slight performance boost to the compiled
2140 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2142 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2145 2011-02-14 Ben Konrath <ben@bagu.org>
2147 Access data from a postgres db rather than the example glom file.
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.
2155 2011-02-14 Ben Konrath <ben@bagu.org>
2157 Update Java formatter settings.
2159 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2161 2011-02-02 Ben Konrath <ben@bagu.org>
2163 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2165 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
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
2172 * pom.xml: Format file, change target Java version to 1.6.
2174 2011-02-02 Ben Konrath <ben@bagu.org>
2176 Add information about a deployment related issue.
2178 * README: Add Notes section with the problem outlined.
2180 2011-02-02 Ben Konrath <ben@bagu.org>
2182 Call Glom.libglom_deinit() when the servlet is shutdown.
2184 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2185 Glom.libglom_deinit() to destroy() method.
2187 2011-01-28 Ben Konrath <ben@bagu.org>
2189 Use generated Util class to get the RPC Async interface.
2191 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
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.
2199 2011-01-27 Ben Konrath <ben@bagu.org>
2201 Cleanup ChangeLog entry from previous commit.
2203 * ChangeLog: Group logical changes together and add comments.
2205 2011-01-25 Ben Konrath <ben@bagu.org>
2207 Convert to gwt-maven project.
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.
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
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:
2229 Java source files moved from the 'src' directory to the directory structure
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:
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:
2243 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2244 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
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:
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:
2256 2011-01-25 Ben Konrath <ben@bagu.org>
2258 Remove unused println.
2260 * src/org/glom/web/server/LibGlomServiceImpl.java:
2262 2011-01-25 Ben Konrath <ben@bagu.org>
2264 Add project specific JDT settings.
2266 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2267 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2269 2011-01-25 Ben Konrath <ben@bagu.org>
2271 Populate celltable with example data.
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
2288 2011-01-20 Ben Konrath <ben@bagu.org>
2290 Set table headers when table dropBox changes.
2292 * src/org/glom/web/client/GlomDocument.java: Correct some method
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.
2307 2011-01-18 Ben Konrath <ben@bagu.org>
2309 Make a listBox with table titles instead of the flexTable demo.
2311 This is the start of something more useful.
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:
2324 211-01-13 Ben Konrath <ben@bagu.org>
2326 Update to new java-libglom API.
2328 * .gitignore: Ignore OnlineGlom.war.
2329 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2331 2010-12-20 Ben Konrath <ben@bagu.org>
2333 Add some basic style to the table listing.
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.
2340 2010-12-20 Ben Konrath <ben@bagu.org>
2342 Load example file from installed glom dir.
2344 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2345 provided by java-libglom to find the example file.
2347 2010-12-20 Ben Konrath <ben@bagu.org>
2349 Update Eclipse settings.
2352 * .settings/com.google.gdt.eclipse.core.prefs:
2353 * .settings/com.google.gwt.eclipse.core.prefs:
2355 2010-12-17 Ben Konrath <ben@bagu.org>
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.