1 2011-12-13 Ben Konrath <ben@bagu.org>
3 Change OpenButton nomenclature to NavigationButton.
5 Using NavigtionButton makes things more generic. Classes, methods and
6 variables have been changed.
8 This is a rename-only refactor.
10 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
11 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
12 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
13 Renamed from OpenButtonCell.
14 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
15 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
16 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
18 2011-12-12 Ben Konrath <ben@bagu.org>
20 Remove unnecessary String argument in RelatedListTable and ListViewTable.
22 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
23 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
24 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
25 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
27 2011-12-12 Ben Konrath <ben@bagu.org>
29 Update variable names and comments.
31 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
32 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
34 2011-12-12 Ben Konrath <ben@bagu.org>
36 Properly initialize numNonEmptyRows variable to zero.
38 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
39 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
41 2011-12-05 Ben Konrath <ben@bagu.org>
43 Add latest mockup with HTML tables.
45 Features of this mockup:
47 -> HTML table for flowtable
48 -> HTML table for flowtable column
49 -> Example of how related lists would look
50 -> Not using text entries for data items
52 The current version of Online Glom doesn't use HTML tables for the
55 This mockup has been sent to the glom-devel mailing list but it's good
56 to have it here as well.
58 * mockups/details-view-html-tables.html:
60 2011-12-05 Ben Konrath <ben@bagu.org>
62 Remove unnecessary getPrimaryKeyField() method.
64 getPrimaryKeyFieldForTable(String) has been renamed to
65 getPrimaryKeyField(String).
67 * src/main/java/org/glom/web/server/database/DBAccess.java:
68 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
69 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
71 2011-12-05 Ben Konrath <ben@bagu.org>
73 Add string representation of TypedDataItem value to conversion error message.
75 * src/main/java/org/glom/web/server/Utils.java: Logging the error
76 message was extracted into its own method to avoid duplication.
78 2011-12-05 Ben Konrath <ben@bagu.org>
80 Add type checking to navigation primary key value creation.
82 Create navigation primary key only if the expected type from the Glom
83 document matches the type returned by the SQL query.
85 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
87 2011-12-05 Ben Konrath <ben@bagu.org>
89 Rename a couple of variables in RelatedListNavigation.
91 This is a rename-only refactor.
93 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
95 2011-12-05 Ben Konrath <ben@bagu.org>
97 Move getListLayoutGroup() into getListViewLayoutGroup().
99 This removes getListLayoutGroup(). It was only being called by
100 getListViewLayoutGroup().
102 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
104 2011-12-05 Ben Konrath <ben@bagu.org>
106 Remove check for LayoutItem_Portal in list table method.
108 This check is no longer necessary because the method isn't being used
109 to create the LayoutItemPortal DTO.
111 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
113 2011-12-05 Ben Konrath <ben@bagu.org>
115 Properly support related list navigation.
117 Navigation from the "Repository Analyzer -> Package Scans ->
118 Dependencies" related table wasn't working because the primary key for
119 related tables wasn't being set properly. This commit fixes the
122 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
123 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
124 doesn't set the primary key properly for related list tables.
125 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
126 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
127 useful for getting the primary key for list view tables and for related
129 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
130 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
131 Move code to set the primary key for the table from the abstract
132 ListDBAccess class to ListViewDBAccess as it's only correct for list
134 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
135 Properly add primary key to related list tables.
137 2011-12-02 Ben Konrath <ben@bagu.org>
139 Properly set the horizontal alignment of fields.
141 This fix is for both the list tables and the details view.
143 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
144 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
145 to set the horizontal alignment of fields.
147 2011-12-02 Ben Konrath <ben@bagu.org>
149 Display currency codes in the details view.
151 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
153 2011-12-02 Ben Konrath <ben@bagu.org>
155 Avoid duplicate JNI call.
157 JNI is not as efficient as pure Java and this is an easy (and small)
160 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
161 Use previously retrieved value for whereClauseToTableName instead of
164 2011-12-02 Ben Konrath <ben@bagu.org>
166 Rename a couple of variables in RelatedListNavigation.
168 This is a rename-only refactor.
170 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
172 2011-12-02 Ben Konrath <ben@bagu.org>
174 Indicate clearly that a mismatched primary key type is a bug.
176 * src/main/java/org/glom/web/server/Utils.java: Change log level from
177 warning to error. Add 'This is a bug.' to message.
179 2011-12-02 Ben Konrath <ben@bagu.org>
181 Update / fix some comments.
183 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
185 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
187 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
188 Fix comments. Add some TODOs.
190 2011-12-02 Ben Konrath <ben@bagu.org>
192 Enable navigation to details view with string primary key from related list.
194 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
195 Create a text primary key value when return type of result is
196 java.sql.Types.VARCHAR.
198 2011-12-02 Ben Konrath <ben@bagu.org>
200 Use checkboxes for booleans in the details view.
202 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
204 2011-12-01 Ben Konrath <ben@bagu.org>
206 Improve performance of related list height calculation.
208 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
209 Put code to calculate the expected height in a static initializer so
210 that that it's only called once.
212 2011-12-01 Ben Konrath <ben@bagu.org>
214 Show related list tables in notebooks (again).
216 Calculate the height of the related list tables so the Notebook can be
217 set the correct height. The height of the related list table is also needed by
218 FlowTable to be able decide how to create the layout.
220 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
221 and set the Portal height based on the height of the related list
222 table and the Portal container.
223 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
224 Add method to calculate the height of the related list tables.
225 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
226 * src/main/webapp/style.css: Add css class for Pager. This is needed to
227 calculate the height of the Pager widget.
229 2011-12-01 Ben Konrath <ben@bagu.org>
231 Use CellTable API for table property instead of setting style on Element.
233 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
235 2011-12-01 Ben Konrath <ben@bagu.org>
237 Make ListViewTable and RelatedListTable a consistent height.
239 The tables are now a consistent height regardless of the contents of
240 the table. A hidden button is added to empty rows to ensure that the
241 height of these rows will match the height of rows with data.
243 A navigation button column is now added to every table. The width of
244 the navigation column is set to 0px when a RelatedListTable shouldn't
245 have navigation buttons. This maintains the a consistent row height in
246 tables that don't show the navigation buttons.
248 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
249 navigation column when not needed.
250 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
251 arguments for navigation button to constructor of ListViewTable.
252 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
253 hidden button for empty data rows.
254 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
255 arguments for navigation button to constructor.
256 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
257 create navigation buttons. Add hideNavigationButtons() method.
258 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
259 arguments for navigation button to constructor.
261 2011-12-01 Ben Konrath <ben@bagu.org>
263 Use 'visibility: hidden' in Utils.getWidgetHeight().
265 This is better choice because hidden elements are invisible, don't
266 respond to events and are not part of the tab order. They will,
267 however, take up space which is required to be able to calculate the
268 height of the widget.
270 * src/main/java/org/glom/web/client/Utils.java:
272 2011-12-01 Ben Konrath <ben@bagu.org>
274 Use Utils.getWidgetHeight() in FlowTable.
276 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
278 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
280 2011-12-01 Ben Konrath <ben@bagu.org>
282 Put the details css class name on the correct table column.
284 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
286 2011-11-30 Ben Konrath <ben@bagu.org>
288 Update for java-libglom API change.
290 The getters and setters on FieldFormatting and NumericFormat were
291 changed to remove the 'M'.
293 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
295 2011-11-29 Ben Konrath <ben@bagu.org>
297 Only allow RelatedListTables in Portals.
299 * src/main/java/org/glom/web/client/ui/details/Portal.java:
301 2011-11-29 Ben Konrath <ben@bagu.org>
303 Only create a contents panel for Portals when title is being set.
305 * src/main/java/org/glom/web/client/ui/details/Portal.java:
307 2011-11-29 Ben Konrath <ben@bagu.org>
309 Set TabLayoutPanel height based on calculated height its widgets.
311 This is a potential fix for this bug:
313 https://bugzilla.gnome.org/show_bug.cgi?id=665133
315 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
317 2011-11-29 Ben Konrath <ben@bagu.org>
319 Align details field labels and data with the Open buttons.
321 * src/main/webapp/style.css:
323 2011-11-29 Ben Konrath <ben@bagu.org>
325 Remove unnecessary <div> in the Notebook widget.
327 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
328 method to get container FlowPanel (<div>).
329 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
330 initWidget() method directly on the TabLayoutPanel widget instead of
331 Group's container widget.
333 2011-11-29 Ben Konrath <ben@bagu.org>
335 Don't add group titles for Portals in Notebooks.
337 This reverts the previous patch and fixes a bug I introduced with
338 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
340 * src/main/java/org/glom/web/client/ui/details/Group.java:
341 * src/main/java/org/glom/web/client/ui/details/Portal.java:
343 2011-11-28 Ben Konrath <ben@bagu.org>
345 Remove unused boolean argument in Portal constructor.
349 * src/main/java/org/glom/web/client/ui/details/Group.java:
350 * src/main/java/org/glom/web/client/ui/details/Portal.java:
352 2011-11-28 Ben Konrath <ben@bagu.org>
354 Remove hack for glom 1.18 style glom files.
356 * src/main/java/org/glom/web/client/ui/details/Group.java:
357 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
358 * src/main/java/org/glom/web/client/ui/details/Portal.java:
360 2011-11-28 Ben Konrath <ben@bagu.org>
362 Use Gda Value version of primary key to log result too large error.
364 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
366 2011-11-28 Ben Konrath <ben@bagu.org>
368 Don't use TypedDataItem.getText() for Unknown types from the URL.
370 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
371 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
372 instead of getText().
373 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
374 String field and getUnknown() method.
376 2011-11-28 Ben Konrath <ben@bagu.org>
378 Log an error message when the java-libglom .so is not present.
380 The error message was being set in the exception but not logged.
382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
384 2011-11-28 Ben Konrath <ben@bagu.org>
386 Ignore LayoutItem_CalendarPortals.
388 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
389 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
391 2011-11-28 Ben Konrath <ben@bagu.org>
393 Extract method for creating the LayoutItemPortal DTO.
395 Just breaking the code up into smaller chunks.
397 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
399 2011-11-28 Ben Konrath <ben@bagu.org>
403 This should have been added with the refactor. Oops!
405 * src/main/java/org/glom/web/shared/TypedDataItem.java:
407 2011-11-28 Ben Konrath <ben@bagu.org>
409 Create primary key value from URL string using type from Glom document.
411 See this bug, comments 19 - 25:
413 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
415 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
416 create a TypeDataItem for the primary key here when loading from a
417 URL. Show the same string for the primary key value as was received
418 from the URL string (when loading from a URL).
419 * src/main/java/org/glom/web/server/Utils.java: Update method for
420 creating the Gda Value from the TypeDataItem to properly deal with
421 creating a Gda Value based on the Glom document type for the primary
422 key value string when loading from a URL.
423 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
424 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
425 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
426 Update for changed method name.
428 2011-11-27 Ben Konrath <ben@bagu.org>
430 Rename PrimaryKeyItem to TypedDataItem.
432 The name PrimaryKeyItem suggests what the class should be used for.
433 TypedDataItem is a neutral name that describes the class better.
435 This is a rename-only refactor.
437 * src/main/java/org/glom/web/client/OnlineGlomService.java:
438 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
439 * src/main/java/org/glom/web/client/Utils.java:
440 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
441 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
442 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
443 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
444 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
445 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
446 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
447 * src/main/java/org/glom/web/server/Utils.java:
448 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
449 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
450 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
451 * src/main/java/org/glom/web/shared/NavigationRecord.java:
453 2011-11-25 Ben Konrath <ben@bagu.org>
455 Improve Gda Value conversion from PrimaryKeyItem.
457 The value from the PrimaryKeyItem is only used if its type match the
458 type from the glom document.
460 * src/main/java/org/glom/web/server/Utils.java:
462 2011-11-25 Ben Konrath <ben@bagu.org>
464 Manually check if the java-liblgom .so is visible to the JVM.
466 It seems that Tomcat has problems when a static initializer throws an
467 exception. This check is done before the first method call into
468 java-libglom so that execution doesn't continue if the .so is not
471 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
473 2011-11-25 Ben Konrath <ben@bagu.org>
475 Improve browser configuration error messages.
479 https://bugzilla.gnome.org/show_bug.cgi?id=662792
481 * src/main/java/org/glom/web/client/OnlineGlomService.java:
482 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
483 getConfigurationErrorMessage() method.
484 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
485 Get and display a specific configuration error message when no Glom
487 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
488 Implement getConfigurationErrorMessage() method. Surround configuration
489 code in the init() method with a try/catch block. This allows the
490 errors to be caught while keeping the servlet available to retrieve the
491 configuration error message.
493 2011-11-25 Ben Konrath <ben@bagu.org>
495 Don't use Strings to hold primary key values.
497 The primary key values are now held in a new data object
498 (PrimaryKeyItem) that holds type information and the primary key value
499 using the correct type.
501 * src/main/java/org/glom/web/client/OnlineGlomService.java:
502 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
503 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
504 PrimaryKeyItem instead of String to hold the primary key value.
505 * src/main/java/org/glom/web/client/Utils.java: Remove
506 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
507 PrimaryKeyItem based on the GlomFieldType and the DataItem.
508 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
509 PrimaryKeyItem instead of String to hold the primary key value. Load
510 document selection page when the documentID has not been set correctly.
511 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
512 DetailsPlace -> URL and URL -> DetailsPlace conversion with
514 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
515 Return empty string for URL instead of "null".
516 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
517 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
518 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
519 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
520 PrimaryKeyItem instead of String to hold primary key values.
521 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
522 PrimaryKeyValue to a Gda Value.
523 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
524 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
525 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
526 Replace temporary database access code that uses the PrimaryKeyValue to
527 Gda Value conversion.
528 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
529 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
530 PrimaryKeyItem instead of String.
531 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
532 hold primary key values.
534 2011-11-24 Ben Konrath <ben@bagu.org>
536 Use newly added java-libglom API to create queries.
538 This isn't finished. I still need to stop using Strings for primary key
539 values in the client code.
541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
542 libglom to use fake connections so that retrieving the query string will
544 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
545 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
546 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
547 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
548 Use the newly added libglom sql methods and classes to create the
549 query. Add temporary hack to convert primary value strings to Gda
552 2011-11-23 Ben Konrath <ben@bagu.org>
554 Don't explicitly set the height of Portals.
556 See comments 6 - 10 of this bug for details:
558 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
560 * src/main/java/org/glom/web/client/ui/details/Portal.java:
562 2011-11-23 Ben Konrath <ben@bagu.org>
564 Use an HTML table instead of CSS for the FlowTable layout.
566 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
567 GWT's FlexTable to implement the FlowTable.
568 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
570 2011-11-18 Ben Konrath <ben@bagu.org>
572 Add boolean example to HTML table mockup.
574 * mockups/details-view-html-tables-text-entries.html:
576 2011-11-17 Ben Konrath <ben@bagu.org>
578 Ensure the pager buttons are always visible for related lists.
580 To accomplish this, I've turned off text wrapping in the list view and
581 related list tables for both the header and data text. The related list
582 table now has a fixed layout so the it doesn't overflow its container.
583 This is required to ensure that the cell text is clipped when it
584 overflows the cell and an ellipsis is added to the right side of the
585 cell when text is clipped.
587 A fixed table layout for the related list table in the details view
588 seems what we want for the details view anyway, so the side-effect is
591 The ellipsis will only be displayed in Firefox >= 7.
595 https://bugzilla.gnome.org/show_bug.cgi?id=662930
597 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
598 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
599 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
601 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
602 Set the 'table-layout: fixed' CSS property to the related list table.
603 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
604 'white-space: nowrap;' CSS property on both the list view and the
607 2011-11-16 Ben Konrath <ben@bagu.org>
609 Rework the fix for empty notebook tab labels.
611 Setting the empty group titles with its name caused problems for the
612 details layout. Instead of using libglom's
613 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
614 to the client when the title is empty. This allows the Notebook to use
615 the name when the title is empty without affecting anything else.
617 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
618 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
620 2011-11-16 Ben Konrath <ben@bagu.org>
622 Set group titles with name when title is empty.
624 This fixes a problem with an empty notebook tab label in the Lesson
625 Planner document. The forth tab in the notebook should be "Internet":
627 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
629 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
630 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
633 2011-11-16 Ben Konrath <ben@bagu.org>
635 Remove whitespace from the configured username properties.
637 This assumes that usernames won't have whitespace at the beginning
638 or end. But I think this is a reasonable assumption.
640 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
641 String.trim() to remove the whitespace from the username properties.
643 2011-11-15 Ben Konrath <ben@bagu.org>
645 Add details view mockup with HTML tables and text entries.
647 This is from the attachment on this bug:
649 https://bugzilla.gnome.org/show_bug.cgi?id=663109
651 * mockups/details-view-html-tables-text-entries.html:
653 2011-11-15 Ben Konrath <ben@bagu.org>
655 Add space between the columns of the flow table.
659 https://bugzilla.gnome.org/show_bug.cgi?id=662918
661 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
662 space between columns in the flow table.
664 2011-11-15 Ben Konrath <ben@bagu.org>
666 Add backup files to the .gitignore.
668 * .gitignore: Ignore files that end with ~.
670 2011-11-09 Ben Konrath <ben@bagu.org>
672 Use latest release of gwt-log.
674 Gwt-log releases are now being submitted to the maven central
675 repository so manual installation of the jar is no longer required.
677 * pom.xml: Update version and groupId of gwt-log dependency.
679 2011-10-31 Ben Konrath <ben@bagu.org>
681 Don't use GWT numeric formatting to override the glom currency formatting.
683 Currencies are now displayed like they are in Glom. See this bug:
685 https://bugzilla.gnome.org/show_bug.cgi?id=646216
687 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
689 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
690 currency code to constructor and set it when the cell is rendered.
691 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
692 currency code to the constructor of the NumericCell.
694 2011-10-27 Ben Konrath <ben@bagu.org>
696 Require the latest release of java-libglom (1.17.4).
700 2011-10-26 Ben Konrath <ben@bagu.org>
702 Add style to Notebook that matches current theme.
704 It's not the best style in the world but it's better than the default.
706 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
707 padding at the bottom of the child widgets.
708 * src/main/webapp/style.css: Add style for the Notebook.
710 2011-10-26 Ben Konrath <ben@bagu.org>
712 Move servlet initialization code to overridden init method.
714 This is half of the solution to getting proper error messages
715 displayed when configuration errors occur. Here's the relevant bug:
717 https://bugzilla.gnome.org/show_bug.cgi?id=662792
719 The rest of the solution involves surrounding the init method with a
720 try/catch block and setting a global variable with the error /
721 exception. A new async method should be created to retrieve and display
722 the error message / exception.
724 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
725 code from constructor to init method adding exceptions as needed.
727 2011-10-26 Ben Konrath <ben@bagu.org>
729 Add script to monitor and restart tomcat if required.
731 * utils/check-and-recover-tomcat.py: New file.
733 2011-10-26 Ben Konrath <ben@bagu.org>
735 Display the correct number of data items in the pager.
739 https://bugzilla.gnome.org/show_bug.cgi?id=661441
741 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
742 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
743 The implementation is the same for both tables: Keep track of the
744 number of non-empty rows and fire and RowCountChangeEvent after the data has
746 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
747 custom Pager class that subclasses SimplePager to handle displaying
748 the correct number when empty rows have been added.
750 2011-10-26 Ben Konrath <ben@bagu.org>
752 Correct error in previous commit.
754 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
755 eventBus parameter from listView.setCellTable().
757 2011-10-26 Ben Konrath <ben@bagu.org>
759 Fix error in TODO comment.
761 * src/main/java/org/glom/web/client/activity/ListActivity.java:
763 2011-10-24 Ben Konrath <ben@bagu.org>
765 Create Notebook widgets to the details view.
767 This isn't finished just yet - I still need to create a reasonable
768 style to match the current theme.
770 * src/main/java/org/glom/web/client/Utils.java: Add method for
771 calculating the height of a widget. This is used in the Notebook class.
772 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
773 new constructor method in Group.
774 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
775 method for creating child widget that can be used by subclasses
776 like Notebook. New constructor that allows disabling the group
777 titles - Notebooks don't set a group title for their child groups.
778 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
779 to make Notebooks using GWT's TabLayoutPanel.
780 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
781 constructor that allows disabling the group titles.
782 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
783 LayoutItemNotebook DTO.
784 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
785 DTO for Notebooks. It's just an empty class for now but we might need
786 it to transfer some specific information in the future.
788 2011-10-21 Ben Konrath <ben@bagu.org>
790 Add navigation buttons to related list tables.
792 * src/main/java/org/glom/web/client/OnlineGlomService.java:
793 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
795 method getSuitableRecordToViewDetails() for getting the table name
796 and primary key value for related list navigation buttons.
797 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
798 private cell renderer class to get the navigation information for
799 related list tables from the server. Extract the navigation
800 processing code from the details cell navigation and use it for the
801 related list navigation as well.
802 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
803 cell renderer class for the details open buttons. This was needed
804 because the related list navigation buttons and the list view
805 navigation buttons need to react differently when clicked.
806 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
807 the onEnterKeyDown() method because it's now overriden in the
808 subclasses that are specific to the related list tables and the list
810 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
811 the vertical size a little because the buttons add a bit of vertical
812 space to table. This is not a perfect solution because the vertical
813 size of with table fewer than 5 rows will be a little smaller.
814 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
815 changes in how navigation buttons are handled.
816 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
817 getSuitableRecordToViewDetails() using the new RelatedListNavigation
818 database access object.
819 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
820 to find the portal for a given relationship name from
821 RelatedListDBAccess. Add method to find a primary key field for a
823 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
824 Move code to find the portal for a given relationship name to
826 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
827 New file: database access object for getting the related list
828 navigation information (the table name and the primary key value).
829 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
830 DTO for transferring a table name to navigate to and a primary key
832 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
833 boolean and getter/setter to specifies if the related list should add
836 2011-10-24 Murray Cumming <murrayc@murrayc.com>
838 Use the master branch of java-libglom
840 * pom.xml: Depend on java-libglom 1.19 instead.
842 This is the master branch. See also the libglom-1-18 branch.
844 2011-10-11 Ben Konrath <ben@bagu.org>
846 Enable the open navigation button when the data has been set.
848 This avoids having active buttons that don't do anything when the data
851 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
853 2011-10-11 Ben Konrath <ben@bagu.org>
855 Use IsWidget interface for FlowTableItem.
857 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
858 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
860 2011-10-11 Ben Konrath <ben@bagu.org>
862 Remove GWT styling from open button in details view.
864 There are still some issues with how the details cell is arranged but
865 this should be made to match Glom 1.20. I'm going to leave fixing this
866 until I have Glom 1.20 up and running.
868 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
869 style name on open button.
870 * src/main/webapp/style.css: Move and edit details-navigation class.
871 Re-arrange some classes to make them appear in the same order as the
874 2011-10-07 Ben Konrath <ben@bagu.org>
878 * .gitignore: Ignore new cache directory.
879 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
880 * pom.xml: Change GWT and maven plugin to 2.4.0.
881 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
883 * src/main/java/org/glom/web/client/ClientFactory.java:
884 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
885 * src/main/java/org/glom/web/client/OnlineGlom.java:
886 Update source for API changes.
887 * utils/build-onlineglom-war.sh: Remove cache directory before the
890 2011-10-07 Ben Konrath <ben@bagu.org>
892 Add navigation buttons in the details view.
894 This isn't finished but I thought I'd commit what I have as it's a
895 pretty good start. I still need to:
897 1. Change the style so that it fits better into the current theme
898 2. Adjust the details cell to expand as much as possible.
900 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
901 click handlers to navigation buttons in the DetailsCells. Create a
902 refreshData() method to get just the data from the server without the
904 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
905 Update the tableSelector and browser title when the table name
906 changes without using the tableSelector.
907 * src/main/java/org/glom/web/client/ui/DetailsView.java:
908 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
909 getDetailsCells() to getCells(). Update variable names.
910 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
911 method to set click handler on navigation button. Rename a few
912 variables. Add navigation buttons where needed.
913 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
914 variables and methods.
915 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
916 navigation boolean and navigation table as required in the
918 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
919 variables for navigation along with getter/setter methods.
921 2011-10-07 Ben Konrath <ben@bagu.org>
923 Rename Field to DetailsCell.
925 This is a refactor-only commit. No functionality has been added or
928 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
929 Update variable and method names.
930 * src/main/java/org/glom/web/client/ui/DetailsView.java:
931 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
932 variable and method names.
933 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
935 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
936 variable and method names.
938 2011-10-07 Ben Konrath <ben@bagu.org>
940 Create separate methods for layout and data the details view.
942 This is a refactor-only commit. No functionality has been added or
945 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
946 private methods: setData(), createLayout().
948 2011-10-07 Ben Konrath <ben@bagu.org>
950 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
952 This is part of a change to get navigation buttons in the details view
953 but it should have been done this way from the start.
955 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
956 for method name change in TableSelectionView.
957 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
958 Create TableChangeEvent and set the browser title using the
959 TableSelectionView API.
960 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
961 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
962 Change getSelectedTable() to getSelectedTableName(). Add
963 getSelectedTableTitle().
965 2011-10-07 Ben Konrath <ben@bagu.org>
967 Use primaryKeyValue naming convention in constructor of DetailsPlace.
969 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
971 2011-10-07 Ben Konrath <ben@bagu.org>
973 Update TableChangeEvent to use newTableName naming convention.
975 This makes the class more consistent with GWT naming conventions.
977 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
978 Update for method name change in TableChangeEvent.
979 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
980 for method name change in TableChangeEvent.
981 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
982 newTableName variable and getter method. Make toDebugString()
985 2011-09-30 Ben Konrath <ben@bagu.org>
987 Disable the pager in the list tables when the data row count is less than the minimum.
989 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
990 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
992 2011-09-30 Ben Konrath <ben@bagu.org>
994 Add empty rows to the end of related list and list view tables.
996 I also extracted the cell rendering classes from the ListTable because
997 the code was becoming a little crazy with all the anonymous inner
998 classes. My plan is to use these cell rendering classes in the details
999 view as well so this refactor will be needed for that change.
1001 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1002 set the row count in related list tables if the data has more rows
1003 than the minimum number of rows visible.
1004 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1005 row count in list view tables if the data has more rows than the
1006 minimum number of rows visible.
1007 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1008 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1010 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1011 for rendering TYPE_NUMERIC cells. The code was extracted from the
1013 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1014 class for rendering cells with buttons in list views. The code was
1015 extracted from the ListTable class.
1016 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1017 for rendering TYPE_TEXT cells. The code was extracted from the
1019 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1020 Add empty rows to the end of the data if required. Implement
1021 ListTable.getMinNumVisibleRows().
1022 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1023 cell renderer code to public classes. Return null in
1024 Column.getValue() for empty rows. Add new abstract method:
1025 getMinNumVisibleRows(). Move code to set the row count of the list view
1026 table to ListViewImpl.
1027 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1028 empty rows to the end of the data if required. Implement
1029 ListTable.getMinNumVisibleRows().
1032 2011-09-27 Ben Konrath <ben@bagu.org>
1034 Use GWT.log for client-side debugging statements.
1036 These are optimized out when deployed so I should have used this method
1037 in the first place. These statements will eventually be replaced with some sort
1038 of notification in the browser.
1040 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1041 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1042 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1043 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1044 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1046 2011-09-27 Ben Konrath <ben@bagu.org>
1048 Put tableselector on the right, back to list link on right.
1050 The idea is that the table selector is acting like a label for the
1051 currently displayed table so it should be placed below the document title. This
1052 puts the table title in a similar position to where it is in Glom.
1054 * mockups/details-contacts.html:
1055 * mockups/details-projects.html:
1056 * mockups/listview-contacts.html:
1057 * mockups/listview-projects.html:
1058 * mockups/style.css:
1059 Update mockups to match how the interfaces currently look.
1060 * src/main/webapp/style.css: Swap positions of backlink with the table
1061 selector. Add some space on the left side of the table selector to
1062 line things up with the document title.
1064 2011-09-27 Ben Konrath <ben@bagu.org>
1066 Add field colouring to details view.
1068 This change re-works how field colouring works. The colour formatting
1069 information is now set to the client with the layout information instead of
1070 with the data. This eliminates the need to send the same colour strings for
1071 data in list view column when colour information is set.
1073 In order to set an alternate colour for negative numeric values, the
1074 number is now sent to client and formatted with the GWT NumberFormat class.
1076 This change also fixes:
1078 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1080 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1081 internationalization framework which is needed for client side numeric
1083 * src/main/java/org/glom/web/client/Utils.java: New file for some
1084 client static utility methods.
1085 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1086 the DataItem object to the Field class. Use a utility method to
1087 create the foreignKeyValue string.
1088 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1089 alignment and text colours in the constructor. Add setData(DataItem)
1090 method. Remove setText(String) method.
1091 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1092 colour information to GlomTextCell. Create and use GlomNumberCell for
1093 rendering numbers. Use utility method to get the string for the
1094 primary key of the key provider. Re-work how the horizontal alignment
1096 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1097 formatting to layout information. Methods for converting the libglom
1098 formatting information were moved from DBAccess.
1099 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1100 numeric formatting (it's now done on the client side). Don't set text
1101 colours in DataItem. Move libglom formatting conversion methods to
1103 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1104 getters/setters for text colour information.
1105 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1106 for transferring the libglom NumericFormat information to the client.
1107 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1108 and getters/setters for: GlomNumericFormat, background colour and
1109 foreground colour strings.
1111 2011-09-26 Ben Konrath <ben@bagu.org>
1113 Simplify code that iterates through the LayoutGroup.
1115 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1117 2011-09-26 Ben Konrath <ben@bagu.org>
1119 Accept Eclipse formatting for OnlineGlomServiceAsync.
1121 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1123 2011-09-26 Ben Konrath <ben@bagu.org>
1125 Don't use the ListDBAccess classes to get the primary key layout information.
1127 This was causing a bug where the wrong index for the hidden primary key
1128 was being sent to the client.
1130 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1131 primary key while creating the LayoutGroup DTO. Create a
1132 LayoutItemField DTO for hidden primary keys. Don't use the
1133 RelatedListDBAccess because it was only used for getting the primary
1135 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1136 access modifier from public to protected for getPrimaryKeyField() and
1137 getPrimaryKeyLayoutItemField().
1138 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1139 abstract method getExpectedResultSize() because RelatedListDBAccess
1140 doesn't have enough info to implement it.
1141 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1142 Remove @Override for getExpectedResultSize().
1143 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1144 Remove method getExpectedResultSize().
1146 2011-09-23 Ben Konrath <ben@bagu.org>
1148 Log which layout (list or details) the ignored item is from.
1150 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1152 2011-09-23 Ben Konrath <ben@bagu.org>
1154 Remove annotations that turn off code formatting in DataItem.
1156 * src/main/java/org/glom/web/shared/DataItem.java:
1158 2011-09-23 Ben Konrath <ben@bagu.org>
1160 Rename GlomField to DataItem and update associated methods.
1162 This is a rename-only refactor. No functionality has been added or
1165 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1166 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1167 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1168 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1169 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1170 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1171 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1172 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1173 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1174 * src/main/java/org/glom/web/server/database/DBAccess.java:
1175 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1176 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1177 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1178 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1179 * src/main/java/org/glom/web/shared/DataItem.java:
1180 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1181 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1183 2011-09-23 Ben Konrath <ben@bagu.org>
1185 Rename GlomDocument to DocumentInfo and update associated methods.
1187 This is a rename-only refactor. No functionality has been added or
1190 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1191 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1192 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1193 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1194 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1195 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1196 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1198 2011-09-20 Ben Konrath <ben@bagu.org>
1200 Require java-libglom 1.17.3.
1202 This picks up the fix for the seg fault problem with the Scenes table
1203 in the Openismus Film Manager example.
1207 2011-09-20 Ben Konrath <ben@bagu.org>
1209 Change the way sort clause is added for primary key when no sort clause is requested.
1211 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1212 before the sort clause is created. When a sort clause is not requested, the
1213 sort clause is created by finding the primary key in the LayoutFieldVector
1216 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1218 2011-09-20 Ben Konrath <ben@bagu.org>
1220 Log error message if no documents are found in the configured directory.
1222 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1223 Extract the glom file extension string to a private static final class
1224 variable (mostly as syntactic sugar). Accept a minor formatting change.
1225 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1226 the example glom.document.directory configuration property to make it
1227 more clear that it can any directory, not just the home directory.
1229 2011-09-18 Ben Konrath <ben@bagu.org>
1231 Add related lists to details view.
1233 The related list table has support for paging and sorting just like the
1234 table in the list view.
1236 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1237 SQL queries for the related list tables.
1238 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1239 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1240 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1241 Rename getList methods to getListView and add comments. Remove
1242 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1243 it being unused. Add methods: getDetailsLayoutAndData(),
1244 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1245 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1246 Create the layout and set the data for the fields in one async call
1247 instead of two. Create related lists where appropriate.
1248 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1249 for method name changes in OnlineGlomService.
1250 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1251 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1252 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1254 * src/main/java/org/glom/web/client/ui/ListView.java:
1255 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1256 tableName from setCellTable(). Create a ListViewTable instead of
1258 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1259 represent a data field in the details view.
1260 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1261 from addDetailsCell() to Field class. Keep track of the Fields and
1262 Portals in the details view.
1263 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1264 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1265 and add a method to get it. Add method to set the contents of the
1267 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1268 New class for related list tables. This class has the data provider
1269 for the related list table.
1270 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1271 abstract class which is the base class for the ListViewTable and the
1273 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1274 New class for list view tables. This class has the data provider for
1275 the list view table.
1276 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1277 methods for related list tables. Add more information to the
1278 LayoutItemField and LayoutItemPortal DTOs.
1279 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1280 Remove debugging print statement.
1281 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1282 Remove debugging print statements. Add primary key field to SQL count
1284 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1285 Remove unnecessary LayoutFieldVector parameter from
1286 getResultSizeOfSQLQuery() method.
1287 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1288 New class for related list table database access.
1289 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1290 class that is a wrapper DTO for details view layout and data.
1291 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1292 new 'fromField' string to this DTO.
1293 * src/main/webapp/style.css: Remove bottom margin and override top
1296 2011-09-15 Ben Konrath <ben@bagu.org>
1298 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1300 This sets things up to make it easier to add the data retrieval for
1301 related lists (portals). No user noticeable changes were made with
1304 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1305 class has the code to retrieve the layouts and access the
1306 database using the new database helper classes.
1307 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1308 Most of the functionality has been removed from this class. This
1309 class now represents the public interface for the client side
1310 code. It also deals with configuring the servlet and cleaning
1311 things up when the servlet is stopped.
1312 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1313 of static methods into this utility class.
1314 * src/main/java/org/glom/web/server/database/DBAccess.java:
1315 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1316 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1317 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1318 These classes have the database retrieval code. The class hierarchy
1319 has been setup to make it easy to reuse code for similar
1322 2011-09-06 Ben Konrath <ben@bagu.org>
1324 Create separate classes for list table code and the data provider.
1326 As part of this refactor, I also split up the code a bit to make it
1329 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1330 table code to two new classes (below).
1331 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1332 with code from ListViewImpl.
1333 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1334 New file with code from ListViewImpl.
1336 2011-09-06 Ben Konrath <ben@bagu.org>
1338 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1340 This fixes the LayoutItemPortal DTO to match the libglom layout object
1343 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1345 2011-09-01 Ben Konrath <ben@bagu.org>
1347 Set title of Portals in the Details View.
1349 * pom.xml: Bump required version of java-libglom to 1.17.1.
1350 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1351 widget creation to its own class. Add comments to constructor.
1352 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1353 The code is mostly from the Group class with the title now set.
1354 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1355 title of Portal. Update some comments. Fix some code formatting.
1357 2011-09-01 Ben Konrath <ben@bagu.org>
1359 Remove TODO comment for the flow table column width.
1361 The flow table column width is working correctly and doesn't need to be
1362 changed. See this mailing list post for more info:
1364 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1366 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1368 2011-08-27 Ben Konrath <ben@bagu.org>
1370 Add document title (database name) to top of the browser page.
1372 I added the document title to the TableSelecitonView but that will
1373 change if / when we add a view that doesn't require table selection.
1375 * mockups/details-contacts.html:
1376 * mockups/details-projects.html:
1377 * mockups/listview-contacts.html:
1378 * mockups/listview-projects.html:
1379 * mockups/style.css: Add document title to mockups to keep things
1381 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1382 sizes to account for the document title.
1383 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1384 Set the document title when it has been retrieved from the server.
1385 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1386 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1387 and implement setDocumentTitle(String) method.
1388 * src/main/webapp/style.css: Add ID for document title style.
1390 2011-08-25 Ben Konrath <ben@bagu.org>
1392 Add NavigationType enum to LayoutItemPortal DTO.
1394 This is the start of adding support for Portals to the Details View.
1396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1397 LayoutItem_Portal.navigation_type enum from libglom to
1398 LayoutItemPortal.NavigationType enum.
1399 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1400 NavigationType enum, field for storing the NavigationType and getter
1403 2011-08-25 Ben Konrath <ben@bagu.org>
1405 Implement the flow table layout in the Details View.
1407 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1408 FlowTable to Group to account for the renamed class.
1409 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1410 File. This is a container widget that implements the Glom details view
1411 flow table behaviour.
1412 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1413 org/glom/web/client/ui/FlowTable.java.
1414 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1415 so that the size of the subgroups are a closer match to the size of
1416 the Glom subgroups. This makes the flowtable layout match the layout
1417 in Glom for the Music Collection example file.
1419 2011-08-16 Ben Konrath <ben@bagu.org>
1421 Create container element for LayoutItemPortal in Details View.
1423 This will help me develop the layout for the FlowTable.
1425 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1426 fieldPanel variable to detailsCell.
1428 2011-08-15 Ben Konrath <ben@bagu.org>
1430 Set the height of the data element in the Details View.
1432 I changed the InlineLabels (text in a span element) to Labels (text in
1433 a div element) so that I could set the height of the details-data
1434 elements instead of the details-cell parent elements. This allows the
1435 the details-data element to display the correct height if style is
1436 applied that shows the height.
1438 This change has the added benefit of allowing the order of the labels
1439 and data elements to be changed for right-to-left languages.
1441 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1442 InlineLabels to Labels.
1443 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1444 InlineLabels to Labels. Set the height of the data element.
1445 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1446 multiline text height in the Formatting DTO.
1447 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1448 for multiline height along with getter and setter methods.
1449 * src/main/webapp/style.css: Adjust style to account for the change
1450 from span elements to div elements in the details cell.
1452 2011-08-15 Ben Konrath <ben@bagu.org>
1454 Make the List View appearance match the mockups.
1456 It doesn't match exactly but it's much better than it was.
1458 * mockups/listview-contacts.html: Remove unused css classes.
1459 * mockups/listview-projects.html: Remove unused css classes.
1460 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1461 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1462 for mainPanel instead of VerticalPanel (table). Set style name on
1463 CellTable. Set style name on Details column. Right-align Details
1465 * src/main/webapp/style.css: Adjust properties to match the mockups.
1467 2011-08-12 Ben Konrath <ben@bagu.org>
1469 Add better support for subgroups in the details view.
1471 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1472 changed FlowTable constructor.
1473 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1474 support for subgroups and subgroup-titles.
1475 * src/main/webapp/style.css: Add CSS class for subgroups and
1478 2011-08-12 Ben Konrath <ben@bagu.org>
1480 Return the top level LayoutGroup title.
1482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1484 2011-08-11 Ben Konrath <ben@bagu.org>
1486 Make the TableSelector header match the mockup.
1488 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1489 the layout panel. Properly lineup the table selection header with
1490 the list and details view.
1491 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1492 margin around the details view.
1493 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1494 Rename listBox variable to tableSelector. Set id for the style sheet.
1495 Use a FlowPanel instead of a HorizontalPanel.
1496 * src/main/webapp/style.css: Add properties to make the TableSelector
1497 box match the mockups.
1499 2011-07-13 Ben Konrath <ben@bagu.org>
1501 Update install script for java-libglom version change.
1503 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1506 2011-07-13 Ben Konrath <ben@bagu.org>
1508 Add support sub-group in the details view.
1510 I also removed the code that special-cased the default details view
1513 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1515 I still have to make a proper flowtable.
1517 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1518 Don't special-case default details view layout.
1519 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1520 addLayoutField() as I'm going to use it.
1521 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1522 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1524 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1525 extracted from DetailsViewImpl.GroupPanel. Add support for
1527 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1528 column count when getting the details layout.
1530 2011-07-12 Ben Konrath <ben@bagu.org>
1532 Set browser title with database and table titles.
1534 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1535 Set the browser title when the table changes and when the activity
1537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1538 title when retrieving document info (the GlomDocument object).
1539 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1540 with getter and setter methods. Remove unused convenience constructor.
1541 Use default code formatting.
1543 2011-07-12 Ben Konrath <ben@bagu.org>
1545 Ignore LayoutItemPortals in the details view.
1547 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1550 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1551 LayoutItemPortal layout objects.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1553 LayoutItemPortal objects when retrieving the details layout.
1554 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1555 file. This is an empty class and just used to get type information for
1558 2011-07-12 Ben Konrath <ben@bagu.org>
1560 Use java-libglom 1.17.0.
1564 2011-07-11 Ben Konrath <ben@bagu.org>
1566 Remove "Table:" label from table selector.
1568 This matches a recent change in the Glom UI.
1570 * mockups/details-contacts.html:
1571 * mockups/details-projects.html:
1572 * mockups/listview-contacts.html:
1573 * mockups/listview-projects.html: Remove the "Table:" label from the
1575 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1577 2011-07-11 Ben Konrath <ben@bagu.org>
1579 Add main groups to the details view.
1581 This makes things look a little nicer in the details view. The next step
1582 is to implement the flowtable.
1584 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1585 resources from the standard gwt css theme. Standard.css is now
1586 included in OnlineGlom.html so that the online glom css rules have
1587 precedence over the gwt theme.
1588 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1589 the whole LayoutGroup to the DetailsView instead of just the titles.
1590 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1591 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1592 details layout with a helper class (GroupPanel). I might extract this
1593 class when I make the full flowtable.
1594 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1595 string as default so I don't have to worry about NPEs when processing
1597 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1598 note beside OnlineGlom.gwt.xml above).
1599 * src/main/webapp/style.css: Add default font-size to body to override
1600 the font-size set by the standard theme. Don't use h2 tags for
1601 group-title. Create new details-cell class.
1603 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1605 ConfiguredDocument: Set the port number too.
1607 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1608 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1609 Glom document. Presumably this worked sometimes so far because there is a
1610 default port number.
1612 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1614 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1616 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1617 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1618 correct, though we should throw an exception too.
1620 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1622 Fix a addDocuemnt typo.
1624 * src/main/java/org/glom/web/shared/Documents.java
1625 (Documents.addDocuemnt): Rename to addDocument().
1626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1627 (OnlineGlomServiceImpl.getDocuments): Adapt.
1629 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1631 Slightly improved log output when connection fails.
1633 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1634 (ConfiguredDocument.setUsernameAndPassword):
1635 We don't know for sure if it' the username/password that's wrong, so
1636 rephrase the message.
1637 Also ouput the exception message, though it's generic in this case.
1639 2011-07-08 Ben Konrath <ben@bagu.org>
1643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1644 added braces to a one line if statement because the Eclipse formatter
1645 was getting confused.
1647 2011-07-07 Ben Konrath <ben@bagu.org>
1649 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1651 These should really be two separate tasks but I counldn't get things to
1652 work with GWT 2.2.0 and Eclipse 3.7.
1656 * .settings/org.eclipse.jdt.core.prefs:
1657 * .settings/org.eclipse.jdt.ui.prefs:
1658 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1659 * .settings/org.eclipse.m2e.core.prefs:
1660 Add new config files. Update current files. Remove references to the
1661 webtools plugins as we're not using any of the webtools features.
1662 * .gitignore: Add logs directory which is created when running with
1664 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1665 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1666 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1668 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1670 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1672 onlineglom.properties: Add explanatory comments.
1674 * src/main/resources/onlineglom.properties: Also change the default user
1675 from ben to someuser, to avoid the risk of people thinking we just
1676 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1678 2011-06-28 Ben Konrath <ben@bagu.org>
1680 Use filename in Log for incorrect passwords.
1682 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1683 getFileName(String) method to get the filename from the URI.
1685 2011-06-28 Ben Konrath <ben@bagu.org>
1687 Add the table name to the URL token for the ListPlace.
1689 This makes things consistent between the DetailsPlace and the
1690 ListPlace. It also allows the the ListPlace to be bookmarked.
1692 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1693 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1694 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1695 Remove getDefaultListLayout(). The default layout is now returned
1696 by the getListLayout() method when the table name is an empty string.
1697 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1698 Add table name field. Change to a new ListPlace when the table
1699 has been changed. Use getListLayout() for getting the default
1701 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1702 Add table name field. Set the correct table name in the list box
1703 when loading from bookmark. This corrects a problem for the
1705 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1706 Move table name to super-class (HasSelectableTable). Move document
1707 and table URL keys to super-class in HasSelectableTable.
1708 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1709 Add table name field. Add Tokenizer class with URL key common to
1710 the subclasses (DetailsPlace and ListPlace).
1711 * src/main/java/org/glom/web/client/place/ListPlace.java:
1712 Add table name. Add code to parse the URL token.
1713 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1714 Update ListPlace construction with empty table name string.
1715 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1716 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1717 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1718 Update ListPlace construction with table name string.
1719 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1720 Change defaultTableName field to tableName to reflect how it's now
1721 used. Update the getter and setter methods.
1723 2011-06-28 Ben Konrath <ben@bagu.org>
1725 Enable the table selector in the DetailsView.
1727 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1728 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1729 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1730 Remove getDefaultDetailsLayout(). The default layout is now returned
1731 by the getDetailsLayout() method when the table name is an empty
1733 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1734 event handler for table change event. Change to using
1735 getDetailsLayout() for the default details layout.
1736 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1738 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1739 when navigating to the details place.
1741 2011-06-27 Ben Konrath <ben@bagu.org>
1743 Use filename based unique document ID in URL and for RPC.
1745 The document ID is the glom document name with spaces (' ') replaced
1746 with pluses ('+') and without the .glom extension.
1748 This change is mostly a string substitution of 'documentTitle' for
1749 'documentID'. The only code change is the addition of a Documents DTO to get the
1750 filename to document title mappings as indicated below.
1752 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1753 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1754 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1755 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1756 Use Documents DTO to create the document links in the document
1758 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1759 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1760 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1761 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1762 * src/main/java/org/glom/web/client/place/ListPlace.java:
1763 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1764 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1765 * src/main/java/org/glom/web/client/ui/ListView.java:
1766 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1767 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1768 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1769 * src/main/java/org/glom/web/server/Log.java:
1770 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1771 getDocumentTitles() to getDocuments() and return the Documents DTO.
1772 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1773 transferring the filename to document title mappings.
1775 2011-06-25 Ben Konrath <ben@bagu.org>
1777 Make the authentication popup work again.
1779 This bug was introduced when I extracted ConfiguredDocument to its own class.
1781 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1782 correct success / fail status in setUsernameAndPassword().
1784 2011-06-25 Ben Konrath <ben@bagu.org>
1786 Use filename as unique key for configuring database usernames and passwords.
1788 This replaces the use of the Glom document title which could change
1789 depending on the locale. Thanks to Murray Cumming for pointing out this
1792 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1793 * src/main/resources/onlineglom.properties:
1795 2011-06-24 Ben Konrath <ben@bagu.org>
1797 Pass primary key value to DetailsView.
1799 This enables the DetailsView to load the correct data.
1801 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1802 primary key value field and set in constructor. Pass primary key
1803 value to getDetailsData().
1804 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1805 variables for document title and primary key value.
1806 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1807 key value to the DetailsPlace.
1809 2011-06-24 Ben Konrath <ben@bagu.org>
1811 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1813 This allows the primary key to be retrieved by the Details button. This
1814 functionality has not been implemented yet but it's in the works.
1816 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1817 the LayoutGroup result to ListView.setCellTable instead of all of its
1818 fields individually.
1819 * src/main/java/org/glom/web/client/ui/ListView.java:
1820 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1821 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1822 get the primary key for the table.
1823 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1824 index of the primary key in the LayoutGroup accounting for hidden
1825 primary keys. Rename getJavaNumberFormat() to
1826 convertToJavaNumberFormat() for consistency. Cleanup / add some
1828 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1829 field for primary key index and a field to indicate whether the
1830 primary key is hidden or not.
1832 2011-06-23 Ben Konrath <ben@bagu.org>
1834 Rename getTableData methods to getListData.
1836 This is a rename refactor for consistency with other methods.
1838 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1839 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1840 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1841 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1843 2011-06-23 Ben Konrath <ben@bagu.org>
1845 Extract the ConfiguredDocument innerclass into its own class.
1847 This makes the servlet code more object oriented.
1849 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1850 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1851 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1852 new ConfiguredDocument class.
1854 2011-06-21 Ben Konrath <ben@bagu.org>
1856 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1858 This makes things more inline with how libglom works and reduces code
1859 duplication. This refactor lays the groundwork for adding the primary key to
1860 the LayoutGroup object.
1862 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1863 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1865 Change method names to getListLayout and getDefaultListLayout for
1866 consistency. Use LayoutGroup as the DTO for the list layout instead of
1867 ColumnInfo and LayoutListTable.
1868 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1869 new method names along with the LayoutGroup object for transferring the
1871 * src/main/java/org/glom/web/client/ui/ListView.java:
1872 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1873 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1874 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1876 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1877 Replaced with LayoutGroup.
1878 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1879 expectedResultSize and defaultTableName fields which are needed for
1881 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1882 type field which is needed for the list layout but will also be
1883 useful for the details layout as things progress.
1884 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1885 Make class abstract. Remove the unnecessary
1886 getFormattingHorizontalAlignment method. Add setFormatting method.
1888 2011-06-16 Ben Konrath <ben@bagu.org>
1890 Add scripts for building and installing war.
1892 These will help when updating OnlineGlom but they're also good
1893 supplemental documentation of the build and deployment proceeding.
1895 * utils/build-onlineglom-war.sh: New file.
1896 * utils/install-onlineglom-war.sh: New file.
1898 2011-06-16 Ben Konrath <ben@bagu.org>
1900 Create wrapper class to create consistent log messages.
1902 I wrapped methods in the Log class of gwt-log to add the method names
1903 from the servlet and create consistent formatting of the document title
1904 and table names in the log messages.
1906 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1907 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1908 log methods to use methods from wrapped Log class.
1910 2011-06-16 Ben Konrath <ben@bagu.org>
1912 Remove superfluous conditional return.
1914 Thanks to Murray Cumming for pointing this out!
1916 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1918 2011-06-15 Ben Konrath <ben@bagu.org>
1920 Return an ArrayList of LayoutGroups for the Details layout.
1922 This corrects a problem with the details layout as it can have more
1923 than one top level LayoutGroup.
1925 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1926 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1927 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1928 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1929 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1930 with ArrayList of LayoutGroups for the details view layout.
1931 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1932 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1933 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1934 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1935 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1936 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1938 2011-06-14 Ben Konrath <ben@bagu.org>
1940 Use cast_dynamic method to determine the libglom LayoutItem type.
1942 This is better than finding the LayoutItem type by using the string
1943 returned from the get_part_type_name() method.
1945 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1947 2011-06-14 Ben Konrath <ben@bagu.org>
1949 Add method names to log entries in the servlet.
1951 This helps when tracking down deployment problems.
1953 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1955 2011-06-14 Ben Konrath <ben@bagu.org>
1957 Add data to the DetailsView using a hard-coded primary key value.
1959 The layout and functionality of the DetailsView is not complete. This
1960 is just a checkpoint so the patch doesn't get too big.
1962 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1963 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1964 Add getDetailsData() servlet method.
1965 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1966 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1967 LayoutFields are added to the DetailsView.
1968 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1969 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1970 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1971 take the string for the title instead of the object.
1972 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1973 Add implementation getDetailsData() along with some private helper
1975 * src/main/webapp/style.css: Add padding to details-data class. Add a
1976 details-label class with the same padding as the details-data class.
1978 2011-06-03 Ben Konrath <ben@bagu.org>
1980 Use presenter.goTo() to change to the DetailsPlace.
1982 This will make things easier when we need to open the DetailsView with
1983 data specific to the row that was clicked.
1985 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1987 2011-06-02 Ben Konrath <ben@bagu.org>
1989 Add CSS file from mockups.
1991 I'm adding this now because it's going to be useful to have when
1992 developing the DetailsView. The TableSelectionView and ListView aren't
1995 * src/main/webapp/OnlineGlom.html:
1996 * src/main/webapp/style.css:
1998 2011-06-02 Ben Konrath <ben@bagu.org>
2000 Use String.isEmpty() to check for empty string.
2002 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2004 2011-06-02 Ben Konrath <ben@bagu.org>
2006 Display main layout group titles in the DetailsView.
2008 This is the start of the DetailsActivity/DetailsView implementation.
2010 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2011 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2012 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2013 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2014 Get the layout information for the details view from the server and set
2015 the main layout group titles.
2016 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2017 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2018 Add addLayoutGroup() and addLayoutField() methods. This are just
2019 temporary methods for creating the the details view that will change
2021 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2022 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2024 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2025 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2026 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2027 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2028 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2029 Data Transfer Objects that mimic the libglom object structure. These are
2030 used for transferring the details layout but could also be used for
2031 transferring the list layout.
2033 2011-05-27 Ben Konrath <ben@bagu.org>
2035 Reset the AuthenticationPopup when clearing the ListView.
2037 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2039 2011-05-27 Ben Konrath <ben@bagu.org>
2041 Fix problem with onlineglom.properties file loading.
2043 The old way worked in Eclipse but not on the server. Loading the
2044 onlineglom.properties file now works in Eclipse and on the server.
2046 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2048 2011-05-24 Ben Konrath <ben@bagu.org>
2050 Update gwt-log from 3.1.0 to 3.1.2.
2052 Gwt-log 3.1.0 has been marked as depreciated.
2056 2011-05-24 Ben Konrath <ben@bagu.org>
2058 Add comment to ListActivity.goTo() method.
2060 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2062 2011-05-24 Ben Konrath <ben@bagu.org>
2064 Remove FIXME in convertGdkColorToHtmlColour()
2066 The Gdk::Color value returned by libglom is 16-bits per channel on both
2067 64 and 32-bit platforms.
2069 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2071 2011-05-19 Ben Konrath <ben@bagu.org>
2073 Improve performance of initial ListView load.
2075 I removed a round trip to the server for getting the default table name
2076 and then requesting information about that table. This also removes a potential
2077 problem with the table change handler not being setup in time to receive the
2078 table change event from the ListActivity.
2080 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2081 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2082 getDefaultLayoutListTable() method. Improve comments.
2083 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2084 getDefaultLayoutListTable() method instead of firing a table change
2085 event to get the table to load.
2086 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2087 implementation of getDefaultLayoutListTable() method.
2088 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2091 2011-05-19 Ben Konrath <ben@bagu.org>
2093 Override toDebugString() in TableChangeEvent.
2095 This is useful to have for debugging.
2097 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2099 2011-05-19 Ben Konrath <ben@bagu.org>
2101 Add a "Back to List" link when at the DetailsPlace.
2103 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2104 Populate the CellTable based on the selected table of the ListBox if
2105 it's set otherwise use the default table. This allows the "Back to
2107 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2108 Remove Place from constructors. Add a setPlace() method. Add
2109 goToPlace() method. Set class as presenter for TableSelectionView.
2110 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2111 Use the same TableSelectionActivity when switching between the List and
2113 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2114 Subclass the new HasSelectableTablePlace. This removes some duplicate
2116 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2117 New class to represent Places that display the TableSelectionView.
2118 * src/main/java/org/glom/web/client/place/ListPlace.java:
2119 Subclass the new HasSelectableTablePlace. This removes some duplicate
2121 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2122 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2123 Add Presenter interface. Add setBackLinkVisible() method. Add
2124 setBackLink() method.
2126 2011-05-18 Ben Konrath <ben@bagu.org>
2128 Enable the "Details" buttons.
2130 Right now only an empty details view is displayed.
2132 * src/main/java/org/glom/web/client/ClientFactory.java:
2133 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2134 Add DetailsView to ClientFactory.
2135 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2136 A basic activity for the details view.
2137 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2138 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2140 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2141 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2143 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2144 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2145 unnecessary super() in constructor.
2146 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2147 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2148 really shouldn't create a new TableSelectionActivity for both the ListPlace
2149 and the DetailsPlace so this should be considered a temporary solution.
2150 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2151 New file. Represents a URL for the details view.
2152 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2153 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2154 A basic details view interface and implementation.
2155 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2156 Enable the "Details" buttons.
2158 2011-05-12 Ben Konrath <ben@bagu.org>
2160 Use a LayoutPanel with multiple display areas for main layout.
2162 This is mostly a refactor in that there are no changes from the user
2163 point of view. These changes are required so that we can swap out the list view
2164 with the details view when the user clicks the "Details" button.
2166 * src/main/java/org/glom/web/client/ClientFactory.java:
2167 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2168 OnlineGlomView. Add TableSelectionView, ListView and
2169 AuthenticationPopup.
2170 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2171 for main layout. Add display regions for main activities. Add
2172 activity manager for for main activities.
2173 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2174 file from parts of the deleted OnlineGlomActivity.
2175 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2176 New file from parts of the deleted OnlineGlomActivity.
2177 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2178 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2179 New files for app wide table change event.
2180 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2181 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2182 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2183 Activity mappers for the main activities replace the deleted app-wide
2185 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2186 Fix a spelling error in he comment.
2187 * src/main/java/org/glom/web/client/ui/ListView.java:
2188 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2189 Renamed from LayoutListView and modified for MVP. This still not a
2190 proper dumb view as prescribed by the MVP pattern but it works for now.
2191 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2192 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2193 New widget stripped out of the deleted OnlineGlomView.
2194 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2195 Remove hack that is fixed by this patch.
2197 2011-05-06 Ben Konrath <ben@bagu.org>
2199 Rename OnlineGlomPlace to ListPlace.
2201 The only change besides the rename is that url will now display #list
2202 instead of #Document.
2204 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2205 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2206 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2207 * src/main/java/org/glom/web/client/place/ListPlace.java:
2208 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2210 2011-05-06 Ben Konrath <ben@bagu.org>
2212 Use Presenter for app navigation.
2214 This is the proper way to deal with Place (URL) changes with the MVP
2217 * src/main/java/org/glom/web/client/ClientFactory.java:
2218 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2219 PlaceHistoryMapper and PlaceHistoryHandler.
2220 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2221 PlaceHistoryMapper and PlaceHistoryHandler.
2222 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2223 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2224 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2225 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2226 Add Presenter interface and setPresenter methods. Rename addHyperLink
2227 to addDocumentLink taking only the document title as a parameter.
2229 2011-04-14 Ben Konrath <ben@bagu.org>
2231 Prompt for db username/password if they haven't been set.
2233 This is implemented with a popup widget that is contained within the
2234 OnlineGlomView and managed by the OnlineGlomActivity.
2236 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2237 methods for checking and setting the database username and password.
2238 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2239 new methods for checking and setting the database username and
2241 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2242 Display authentication popup if the JDBC connection to the database
2243 has not been authenticated.
2244 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2246 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2247 for dealing with the authentication popup.
2248 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2249 Implement the methods for dealing with the authentication popup.
2250 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2251 try to executed queries if the database connection hasn't been
2252 authenticated. Implement methods for checking and setting the
2253 database username and password.
2255 2011-04-12 Ben Konrath <ben@bagu.org>
2257 Make log messages a little clearer.
2259 Add a dash betweeen the document title and the table name.
2261 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2263 2011-04-12 Ben Konrath <ben@bagu.org>
2265 Protect against NPEs when cleaning up database resources.
2267 While this isn't strictly necessary because the exception is caught,
2268 not protecting against the NPEs makes it harder to find the real error
2271 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2273 2011-04-12 Ben Konrath <ben@bagu.org>
2275 Move configuration of the servlet to the constructor.
2277 The servlet will be initialized even if the database authentication
2278 information is not set or correct. I still need to add the UI for prompting
2279 the user for the authentication information when it's required.
2281 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2282 javadocs for getDocumentTitles() method.
2283 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2284 Set error message when RPC fails.
2285 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2286 glom files directory from the configuration file. Try to set the
2287 database authentication information for the specific document if it's
2288 set and works otherwise try to use the global authentication
2289 information set for the directory.
2290 * src/main/resources/onlineglom.properties: Moved from
2291 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2292 Added detailed comments for the new keys.
2294 2011-04-11 Ben Konrath <ben@bagu.org>
2296 Remove unnecessary @Override in DocumentSelectionViewImpl.
2298 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2300 2011-04-11 Ben Konrath <ben@bagu.org>
2302 Remove center alignment in DocumentSelectionView.
2304 The title element is still centred but the document titles and bottom
2305 sentence are both left-aligned.
2307 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2309 2011-04-11 Ben Konrath <ben@bagu.org>
2311 Change 'Demo' naming convention to 'Document'.
2313 This is just a rename refactor with no functional changes to the code.
2315 * src/main/java/org/glom/web/client/ClientFactory.java:
2316 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2317 * src/main/java/org/glom/web/client/OnlineGlom.java:
2318 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2319 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2320 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2321 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2322 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2323 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2324 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2325 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2326 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2327 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2329 2011-04-08 Ben Konrath <ben@bagu.org>
2331 Remove FIXME from safeLongToInt() method.
2333 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2336 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2338 2011-04-08 Ben Konrath <ben@bagu.org>
2340 Display an error if no glom documents are found in the specified directory.
2342 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2343 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2344 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2345 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2347 2011-04-08 Ben Konrath <ben@bagu.org>
2349 Add copyright header to one more file ... oops.
2351 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2353 2011-04-08 Ben Konrath <ben@bagu.org>
2355 Add copyright header to files without it.
2357 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2358 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2359 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2360 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2361 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2362 * src/main/java/org/glom/web/shared/GlomField.java:
2364 2011-04-08 Ben Konrath <ben@bagu.org>
2366 Add support for accessing multiple glom documents in the servlet.
2368 This completes the demo selection functionality.
2370 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2371 document title to methods.
2372 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2373 document title to methods.
2374 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2375 Set browser window title when the activity starts. Correct name of
2376 document title variable.
2377 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2378 Set browser window title when the activity starts. Set the table
2379 selector change handler after table selector has been set. Clear the
2380 OnlineGlomView when the activity has been stopped.
2381 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2382 document title as the place token. Use "#Document:" instead of
2383 "#OnlineGlomPlace:" in the URL.
2384 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2385 Change heading to "Online Glom"
2386 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2387 document title in RPC methods.
2388 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2389 setDocumentTitle() method. Add clear() method.
2390 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2391 setDocumentTitle() method. Implement clear() method which removes the
2392 change handler on the ListBox, clears the ListBox and clears the
2394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2395 Implement methods with document title. Keep track for the configured
2396 glom documents and their corresponding JDBC configurations in a hash
2397 table. This information is retrieved using the document title as the
2398 key in the hash table.
2399 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2400 document title field as it's no longer needed.
2402 2011-04-08 Ben Konrath <ben@bagu.org>
2404 Update the Eclipse JDT configuration.
2406 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2407 methods. Automatically add the copyright header to new files.
2409 2011-04-05 Ben Konrath <ben@bagu.org>
2411 Add new page for demo selection.
2413 This patch adds all the components required to view and start an
2414 OnlineGlom demo by clicking on the desired hyperlink. The user is
2415 able to return to the demo selection page with the browser's back
2416 button. I still need to modify the servlet to work with multiple
2417 documents so all demo links will load the file defined in the
2418 OnlineGlom.properties.
2420 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2421 This is only useful during development so we don't need to save it.
2422 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2423 get a reference to the DemoSelectionView.
2424 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2425 method to get a reference to the DemoSelectionView.
2426 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2427 default view to DemoSelectionView.
2428 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2429 to get glom document titles for glom files in a hard-coded directory.
2430 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2431 method to get glom document titles for glom files in a hard-coded
2433 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2434 Presenter for DemoSelectionView.
2435 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2436 for DemoSelectionView.
2437 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2438 Update for DemoSelectionView.
2439 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2440 Basic 'Place' implementation for the DemoSelectionView.
2441 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2442 The interface for the DemoSelectionView.
2443 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2444 The implementation of the DemoSelectionView.
2445 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2446 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2447 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2448 implementation of method to get glom document titles for glom files
2449 in a hard-coded directory.
2450 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2451 on longer being used.
2452 * src/main/webapp/glom.png: Glom logo.
2454 2011-04-05 Ben Konrath <ben@bagu.org>
2456 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2458 This is the forth and final commit of a refactor that will allow
2459 OnlineGlom to be used with multiple documents.
2461 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2462 Move RPC code from OnlineGlomViewImpl to this class.
2463 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2465 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2466 RPC code to the presenter class (the P in MVP).
2468 2011-04-04 Ben Konrath <ben@bagu.org>
2470 Start moving the existing OnlineGlom code to MVP.
2472 This work is based on the GWT MVP framework that is documented here:
2474 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2476 This is the third commit of a refactor that will allow OnlineGlom to
2477 be used with multiple documents.
2479 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2480 Interface for client factory which is used to get instances of various
2481 classes throughout the app.
2482 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2483 Implementation of client factory.
2484 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2485 initialize the MVP framework.
2486 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2487 New file. Activity manager for the main container widget. This is the
2489 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2490 Maps place (URL) to its corresponding activity.
2491 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2492 New file. This is just a place holder for a generated file.
2493 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2494 New file. Represents the URL for the main Online Glom app.
2495 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2496 for changes in LayoutListViewImpl.
2497 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2498 interface for View. Move code to OnlineGlomViewImpl class.
2499 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2500 file. Implementation of OnlineGlomView.
2501 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2502 Place resources. Use ClientFactoryImpl by default.
2504 2011-04-04 Ben Konrath <ben@bagu.org>
2506 Move View classes to their own package.
2508 This is the second commit of a refactor that will allow OnlineGlom to
2509 be used with multiple documents.
2511 * src/main/java/org/glom/web/client/OnlineGlom.java:
2512 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2513 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2515 2011-04-02 Ben Konrath <ben@bagu.org>
2517 Move UI code from the main module to its own class.
2519 This is the first commit of a refactor that will allow OnlineGlom to be
2520 used with multiple documents.
2522 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2523 references to OnlineGlom to OnlineGlomView.
2524 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2525 OnlineGlomView and instantiate it here.
2526 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2527 represents the main OnlineGlomView with one document.
2529 2011-04-01 Ben Konrath <ben@bagu.org>
2531 Fix formatting of gwt.xml and add DTD.
2533 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2535 2011-03-30 Ben Konrath <ben@bagu.org>
2537 Propperly convert gdkColor string to html colour string.
2539 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2541 2011-03-28 Ben Konrath <ben@bagu.org>
2543 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2545 This implementation matches
2546 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2547 readable and is not tied to Swig.
2549 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2551 2011-03-28 Ben Konrath <ben@bagu.org>
2553 Use read-only checkboxes for boolean field types.
2555 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2556 in the CellTable based on the field type. It currently only
2557 distinguishes between boolean and text columns but I'll need to add
2558 support for more types.
2559 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2560 column type in the ColumnInfo object. Add method to convert between the
2561 glom field type enum in ColumnInfo and the glom field type in libglom.
2562 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2564 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2565 getting and setting booleans.
2567 2011-03-25 Ben Konrath <ben@bagu.org>
2569 Don't get the Date twice from the ResultSet.
2571 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2573 2011-03-25 Ben Konrath <ben@bagu.org>
2575 Cleanup code in the servlet.
2577 * TODO: Remove item about row count. Add item about testing row count
2578 query with large number of rows.
2579 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2580 spelling mistakes, change method parameter to be consistent with
2583 2011-03-25 Ben Konrath <ben@bagu.org>
2585 Add server side logging with the gwt-log library.
2587 * .gitignore: Ignore the log file we're now producing.
2588 * TODO: Add a couple TODO item for logging.
2589 * pom.xml: Add gwt-log and log4j as a dependency.
2590 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2591 logging of errors, warnings and some important info.
2592 * src/main/resources/log4j.properties: New file to configure log4j.
2594 2011-03-24 Ben Konrath <ben@bagu.org>
2596 Add a disable button for the Details view.
2598 * src/main/java/org/glom/web/client/LayoutListView.java:
2600 2011-03-22 Ben Konrath <ben@bagu.org>
2602 Use a count query to get the number of rows for the list view pager.
2604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2606 2011-03-22 Ben Konrath <ben@bagu.org>
2608 Add more TODO information about CellTable pager positioning.
2612 2011-03-19 Ben Konrath <ben@bagu.org>
2614 Add TODO item about CellTable pager positioning.
2618 2011-03-18 Ben Konrath <ben@bagu.org>
2620 Remove unneeded GlomFieldColumn class.
2622 This is just a small code cleanup.
2624 * src/main/java/org/glom/web/client/LayoutListView.java:
2626 2011-03-18 Ben Konrath <ben@bagu.org>
2628 Use cursor mode in the query that gets data for the list view.
2630 I still need to fix the potential memory problem when getting the row
2631 count for the list view.
2633 * TODO: Add note about testing memory usage with large data sets. Add
2634 item about fixing row counting with large data sets.
2635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2636 PostgreSQL JDBC driver into cursor mode when getting data for the
2639 2011-03-15 Ben Konrath <ben@bagu.org>
2641 Remove the GWT Container from the Eclipse build classpath.
2643 The GWT dependencies are set by Maven so this isn't needed.
2647 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2649 Added some earlier mockups to git, but not to the tarball dist.
2651 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2652 Openismus. These hopefully show how we might structure the HTML so that
2653 it can be styled easily with CSS. However, we probably need to adapt them
2654 for the CSS structure that GWT dictates for common widgets.
2656 2011-03-14 Ben Konrath <ben@bagu.org>
2658 Locate OnlineGlom.properties using the ServletContext.
2660 This is required to be able to locate the file in the deployed servlet.
2662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2663 Configure the database and glom document in in a helper method so
2664 that the ServletContext can be used to locate OnlineGlom.properties.
2665 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2666 src/main/webapp. This is the proper location for .properites files.
2668 2011-03-12 Ben Konrath <ben@bagu.org>
2670 Add note to README about why we're compiling down to obfuscated JavaScript.
2674 2011-03-11 Ben Konrath <ben@bagu.org>
2676 Use properties file to configure servlet.
2678 This allows people to change the glom file path, db username and db
2679 password without recompiling the code.
2681 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2682 * src/main/webapp/OnlineGlom.properties:
2684 2011-03-11 Ben Konrath <ben@bagu.org>
2686 Use table fields in layout list view if the layout list is not defined.
2688 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2689 Manually create a LayoutFieldVector for the query builder using the
2690 table fields when a layout list is not defined in the glom file.
2692 2011-03-11 Ben Konrath <ben@bagu.org>
2694 Only show FIXME string for images when there's an image.
2696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2697 in this change are some small code cleanups.
2699 2011-03-11 Ben Konrath <ben@bagu.org>
2701 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2703 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2705 2011-03-11 Ben Konrath <ben@bagu.org>
2707 Correctly set the index of the default table.
2709 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2710 Correctly set the index of the default table. Add commented out example
2713 2011-03-10 Ben Konrath <ben@bagu.org>
2715 Add comment to pom.xml about the previous change.
2717 * pom.xml: Add comment about the deployment issue so that it's obvious
2718 why java-libglom is set to the provided scope.
2720 2011-03-10 Ben Konrath <ben@bagu.org>
2722 Change java-libglom dependency from compile to provided in pom.xml.
2724 Since java-libglom uses jni it can only be loaded once and therefore
2725 must be placed in $CATALINA_HOME/lib and not included in each war.
2726 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2727 More information about this issue can be found in the Tomcat 6 release
2728 notes in the "JNI Based Applications" section:
2730 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2732 * README: Remove note about this issue. Deployment info should really
2733 be on the wiki anyway so I'll add it right now.
2734 * pom.xml: Change java-libglom dependency from compile to provided so
2735 that it's copied in to the packaged war.
2737 2011-03-09 Ben Konrath <ben@bagu.org>
2739 Change to using a neutral locale for currency, date and time formatting.
2741 This solves the problem of currency values being represented without a
2742 space between the currency code and the number (e.g. "EUR5.89" is now
2743 represented as "EUR 5.89"). More work is required when we implement
2744 a locale preference setting.
2746 * TODO: Add note about currency formatting issues with different
2748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2749 to using the neutral ROOT locale.
2751 2011-03-09 Ben Konrath <ben@bagu.org>
2753 Add support for currency codes that are not ISO 4217 codes.
2755 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2756 the currency code defined in the glom file when it's not 3 characters
2757 long or when Java doesn't recognize the string as an ISO 4217 code.
2759 2011-03-08 Ben Konrath <ben@bagu.org>
2761 Remove test classes, launch configurations and configuration.
2763 The test stuff was getting in the way when creating the war. To make
2764 the war file you can now do 'mvn clean package'. The packaged war file
2765 will be in the target directory.
2767 * .classpath: Remove unused classpathentry for tests and i18n.
2768 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2769 property. Don't run test or i18n goals when packaging the war.
2770 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2775 * OnlineGlomTest-dev.launch:
2776 * OnlineGlomTest-prod.launch:
2777 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2778 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2780 2011-03-07 Ben Konrath <ben@bagu.org>
2782 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2784 These fixes allow me to use 'mvn deploy' to create the war file.
2786 * .classpath: This generated config has been updated by Eclipse. This
2787 change was probably triggered by me updating from Eclipse 3.6.1 to
2789 * .gitignore: Add entry to ignore the directory
2790 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2791 * .project: The generated config has been updated by Eclipse. This
2792 change was probably triggered by me updating from Eclipse 3.6.1 to
2794 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2795 so that Eclipse doesn't complain
2796 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2797 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2798 'tests' directory to 'client' directory. This is the new
2799 gwt-maven-plugin convension.
2800 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2801 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2803 2011-03-07 Ben Konrath <ben@bagu.org>
2805 Add support for horizontal alignment in the LayoutList columns.
2807 * TODO: Remove item about horizontal alignment. Add item about
2808 improvements to ColumnInfo.
2809 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2810 alignment on the columns. Use ColumnInfo RPC object get the column
2811 title and horizontal alignment.
2812 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2813 LayoutListView creation with ColumnInfo RPC object.
2814 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2815 a ColumnInfo object for every LayoutList columnn. Convert the
2816 FieldFormatting.HorizontalAlignment to the correct
2817 ColumnnInfo.HorizontatlAlignment with the new
2818 getColumnInfoHorizontalAlignment helper method.
2819 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2820 to encapsulate column information like alignment and title. This
2821 could be used to set the colour instead of on a per cell field basis.
2822 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2823 column title storage and retrieval with ColumnInfo.
2825 2011-03-04 Ben Konrath <ben@bagu.org>
2827 Add support for column sorting.
2829 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2830 AsynDataProvider to be an anonymous inner class. Use new
2831 getSortedTableData RPC method when column sort is requested. Set all
2832 columns sortable and add an AsyncHandler to activate sorting in the
2834 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2835 method getSortedTableData(). Cleanup other method signatures.
2836 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2837 new method getSortedTableData(). Cleanup other method signatures.
2838 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2839 Implement getSortedTableData() and getTableData() methods by using a
2840 private helper method with the appropriate parameters filled in. Use
2841 user supplied sort clause when supplied, otherwise fall back to
2842 sorting by the primary key. Move destroy() method to be underneath
2843 constructor for readability. Cleanup comments.
2845 2011-03-03 Ben Konrath <ben@bagu.org>
2847 Add support for colour text and colour backgrounds to the layout list cells.
2849 Only the cell backgrounds are coloured which leaves a gap between the
2850 cells that isn't coloured. I need to figure out a way to set
2851 'style=background-colour:' on the whole column rather than just the
2854 * TODO: Add a note about colouring the background of the whole column.
2855 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2856 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2857 render the coloured text and backgrounds. Use GlomField[] for the row type.
2858 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2860 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2861 GlomField[] for the row type.
2862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2863 GlomField[] for the row type. Set the text, text colour and background
2864 colour in the GlomField objects as specified in the glom document. Add
2865 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2866 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2867 the glom field text, foreground colour and background colour.
2869 2011-03-02 Ben Konrath <ben@bagu.org>
2871 Don't display hidden tables in the combo box.
2873 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2875 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2876 code to ignore hidden tables using ArrayLists for the table names and
2878 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2879 tableNames to use ArrayLists instead of String[]. Update getter and setter
2882 2011-03-01 Ben Konrath <ben@bagu.org>
2884 Add support for Date and Time number types.
2886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2887 Implement formatting for Date and Time values. Change the default glom
2888 file to small business example.
2890 2011-03-01 Ben Konrath <ben@bagu.org>
2892 Add support for formatting glom types as specified in the glom file.
2894 Formatting isn't finished yet - I still need to add support for Date
2897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2898 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2899 checks for null values in JDBC cleanup code and catch all exceptions
2900 instead of just SQLExceptions.
2901 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2904 2011-03-01 Ben Konrath <ben@bagu.org>
2906 Use GWT 2.2.0 instead of 2.1.1.
2908 * pom.xml: Change GWT version numbers.
2910 2011-03-01 Ben Konrath <ben@bagu.org>
2912 A few small code cleanups.
2914 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2916 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2917 unnecessary object creation in constructor.
2918 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2919 unnecessary object creation in constructor.
2921 2011-02-28 Ben Konrath <ben@bagu.org>
2923 Add file for TODO list.
2927 2011-02-18 Ben Konrath <ben@bagu.org>
2929 Enable the CellTable Pager when more than 20 rows need to be viewed.
2931 The Pager will automatically become active when the results are larger
2932 than the CellTable size which is currently set to 20 lines.
2934 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2935 name on debug statment in RPC call in LayoutListDataProvider, add
2936 numRows parameter to LayoutListView constructor, propperly set rowCount
2938 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2939 name on debug statment in RPC call, use LayoutListTable object in RPC
2940 calls, pass rowCount to LayoutListView.
2941 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2942 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2944 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2945 interface for changes in OnlineGlomService.
2946 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2947 getLayoutListHeaders() to getLayoutListTable() and return
2948 LayoutListTable. Using this object allows me to pass other information
2949 about the LayoutList like the expected number of rows in the result set.
2950 The Connection object from the connection pool is now propperly closed.
2951 Only the requested number of lines are returned to the client in
2953 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2954 GlomTable and add columnTitles and numRows.
2956 2011-02-18 Ben Konrath <ben@bagu.org>
2958 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2960 This is a small performance boost. I'll use GlomTable to get the required
2961 layoutlist information.
2963 * src/main/java/org/glom/web/client/OnlineGlom.java:
2964 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2965 * src/main/java/org/glom/web/shared/GlomDocument.java:
2967 2011-02-18 Ben Konrath <ben@bagu.org>
2969 Add option to turn off formatting in JDT formatter preferences.
2971 * .settings/org.eclipse.jdt.core.prefs:
2973 2011-02-18 Ben Konrath <ben@bagu.org>
2975 Rename LayoutList to LayoutListView.
2977 I'm working towards setting things up to easily use MVP when the time
2980 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2982 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2985 2011-02-17 Ben Konrath <ben@bagu.org>
2987 Move LayoutListDataProvider class into LayoutList.java.
2989 * src/main/java/org/glom/web/client/LayoutList.java:
2991 2011-02-17 Ben Konrath <ben@bagu.org>
2993 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2995 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2997 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2998 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2999 from LibGlomServer.java.
3000 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3001 Rename from LibGlomServiceAsync.java.
3002 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3003 Rename from LibGlomServiceImpl.java.
3004 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3006 2011-02-17 Ben Konrath <ben@bagu.org>
3008 Update JDT settings.
3010 * .settings/org.eclipse.jdt.core.prefs:
3012 2011-02-17 Ben Konrath <ben@bagu.org>
3014 Move GWT-RPC objects to shared package (where they should be).
3016 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3017 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3018 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3019 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3020 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3021 org.glom.web.shared package.
3022 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3023 org.glom.web.shared package.
3024 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3025 directory in compilation to javascript.
3027 2011-02-16 Ben Konrath <ben@bagu.org>
3029 Add sort clause to the sql query that grabs table information.
3031 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3032 if one of the columns is a primary key.
3034 2011-02-16 Ben Konrath <ben@bagu.org>
3036 Disable generateAsync feature of gwt-maven.
3038 The generated interface does not correctly match the methods in LibGlomService
3039 and the generated singleton Util inner-class doesn't respect the servlet
3042 * pom.xml: Turn off generateAsync feature.
3043 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3044 with singleton Util inner-class.
3046 2011-02-14 Ben Konrath <ben@bagu.org>
3048 Add LGPL v3 licence notices.
3050 Followed directions listed here:
3051 http://www.gnu.org/licenses/gpl-howto.html
3053 * COPYING: This file is a copy of the GPL v3.
3054 * COPYING.LESSER: This file is a copy of the LGPL v3.
3055 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3057 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3059 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3061 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3063 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3065 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3067 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3070 2011-02-14 Ben Konrath <ben@bagu.org>
3072 Use ArrayList instead of Array in GWT-RPC calls.
3074 Apparently this gives a slight performance boost to the compiled
3077 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3079 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3082 2011-02-14 Ben Konrath <ben@bagu.org>
3084 Access data from a postgres db rather than the example glom file.
3086 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3087 compile down to obfuscated javascript.
3088 * pom.xml: Add c3p0 and postgres JDBC libraries.
3089 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3090 using a postgres db accessed through the c3p0 connection pooling library.
3092 2011-02-14 Ben Konrath <ben@bagu.org>
3094 Update Java formatter settings.
3096 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3098 2011-02-02 Ben Konrath <ben@bagu.org>
3100 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3102 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3104 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3105 the compiled webapp directory that Eclipse uses as we're using Maven now.
3106 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3107 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3109 * pom.xml: Format file, change target Java version to 1.6.
3111 2011-02-02 Ben Konrath <ben@bagu.org>
3113 Add information about a deployment related issue.
3115 * README: Add Notes section with the problem outlined.
3117 2011-02-02 Ben Konrath <ben@bagu.org>
3119 Call Glom.libglom_deinit() when the servlet is shutdown.
3121 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3122 Glom.libglom_deinit() to destroy() method.
3124 2011-01-28 Ben Konrath <ben@bagu.org>
3126 Use generated Util class to get the RPC Async interface.
3128 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3130 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3131 getInstance() method to get a reference to the RPC Async interface.
3132 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3133 getInstance() method to get a reference to the RPC Async interface, remove
3134 the now unused getLibGlomServiceProxy() method.
3136 2011-01-27 Ben Konrath <ben@bagu.org>
3138 Cleanup ChangeLog entry from previous commit.
3140 * ChangeLog: Group logical changes together and add comments.
3142 2011-01-25 Ben Konrath <ben@bagu.org>
3144 Convert to gwt-maven project.
3146 * .gitignore: Update for new project structure.
3147 * README: New file with a link to the online documentation.
3148 * pom.xml: The generated maven configuration file with some tweaks.
3150 Add / update Eclipse settings. These files are a merge of the files that
3151 were generated with the gwt-maven plugin and the files we were previously
3155 * .settings/.jsdtscope:
3156 * .settings/com.google.gdt.eclipse.core.prefs:
3157 * .settings/com.google.gwt.eclipse.core.prefs:
3158 * .settings/org.eclipse.jdt.core.prefs:
3159 * .settings/org.eclipse.wst.common.component:
3160 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3161 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3162 * .settings/org.maven.ide.eclipse.prefs:
3163 * OnlineGlomTest-dev.launch:
3164 * OnlineGlomTest-prod.launch:
3166 Java source files moved from the 'src' directory to the directory structure
3168 * src/main/java/org/glom/web/client/GlomDocument.java:
3169 * src/main/java/org/glom/web/client/GlomTable.java:
3170 * src/main/java/org/glom/web/client/LayoutList.java:
3171 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3172 * src/main/java/org/glom/web/client/LibGlomService.java:
3173 * src/main/java/org/glom/web/client/OnlineGlom.java:
3174 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3176 Non-functional property file used for translations. I included this as
3177 reminder that it's something I need to sort out.
3178 * src/main/resources/org/glom/web/client/Messages.properties:
3180 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3181 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3183 The servlet configuration files moved from the 'war' directory.
3184 * src/main/webapp/OnlineGlom.css:
3185 * src/main/webapp/OnlineGlom.html:
3186 * src/main/webapp/WEB-INF/web.xml:
3188 Generated test files with most of the code commented out. I included these
3189 so that it's easy to add tests when we're ready for them.
3190 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3191 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3193 2011-01-25 Ben Konrath <ben@bagu.org>
3195 Remove unused println.
3197 * src/org/glom/web/server/LibGlomServiceImpl.java:
3199 2011-01-25 Ben Konrath <ben@bagu.org>
3201 Add project specific JDT settings.
3203 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3204 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3206 2011-01-25 Ben Konrath <ben@bagu.org>
3208 Populate celltable with example data.
3210 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3211 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3212 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3213 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3214 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3215 asynchronously gets the example data.
3216 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3217 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3218 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3219 curently selected table to be retrieved by other widgets.
3220 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3221 implement getTableData() in a hacky way. This method needs to be updated
3222 to grab information from the database when database creating is
3225 2011-01-20 Ben Konrath <ben@bagu.org>
3227 Set table headers when table dropBox changes.
3229 * src/org/glom/web/client/GlomDocument.java: Correct some method
3231 * src/org/glom/web/client/LibGlomService.java: Add method
3232 to get list layout field names.
3233 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method