1 2011-12-02 Ben Konrath <ben@bagu.org>
3 Align TYPE_NUMERIC with AUTO alignment to the right in list tables.
5 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
7 2011-12-02 Ben Konrath <ben@bagu.org>
9 Display currency codes in the details view.
11 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
13 2011-12-02 Ben Konrath <ben@bagu.org>
15 Avoid duplicate JNI call.
17 JNI is not as efficient as pure Java and this is an easy (and small)
20 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
21 Use previously retrieved value for whereClauseToTableName instead of
24 2011-12-02 Ben Konrath <ben@bagu.org>
26 Rename a couple of variables in RelatedListNavigation.
28 This is a rename-only refactor.
30 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
32 2011-12-02 Ben Konrath <ben@bagu.org>
34 Indicate clearly that a mismatched primary key type is a bug.
36 * src/main/java/org/glom/web/server/Utils.java: Change log level from
37 warning to error. Add 'This is a bug.' to message.
39 2011-12-02 Ben Konrath <ben@bagu.org>
41 Update / fix some comments.
43 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
45 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
47 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
48 Fix comments. Add some TODOs.
50 2011-12-02 Ben Konrath <ben@bagu.org>
52 Enable navigation to details view with string primary key from related list.
54 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
55 Create a text primary key value when return type of result is
56 java.sql.Types.VARCHAR.
58 2011-12-02 Ben Konrath <ben@bagu.org>
60 Use checkboxes for booleans in the details view.
62 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
64 2011-12-01 Ben Konrath <ben@bagu.org>
66 Improve performance of related list height calculation.
68 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
69 Put code to calculate the expected height in a static initializer so
70 that that it's only called once.
72 2011-12-01 Ben Konrath <ben@bagu.org>
74 Show related list tables in notebooks (again).
76 Calculate the height of the related list tables so the Notebook can be
77 set the correct height. The height of the related list table is also needed by
78 FlowTable to be able decide how to create the layout.
80 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
81 and set the Portal height based on the height of the related list
82 table and the Portal container.
83 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
84 Add method to calculate the height of the related list tables.
85 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
86 * src/main/webapp/style.css: Add css class for Pager. This is needed to
87 calculate the height of the Pager widget.
89 2011-12-01 Ben Konrath <ben@bagu.org>
91 Use CellTable API for table property instead of setting style on Element.
93 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
95 2011-12-01 Ben Konrath <ben@bagu.org>
97 Make ListViewTable and RelatedListTable a consistent height.
99 The tables are now a consistent height regardless of the contents of
100 the table. A hidden button is added to empty rows to ensure that the
101 height of these rows will match the height of rows with data.
103 A navigation button column is now added to every table. The width of
104 the navigation column is set to 0px when a RelatedListTable shouldn't
105 have navigation buttons. This maintains the a consistent row height in
106 tables that don't show the navigation buttons.
108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
109 navigation column when not needed.
110 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
111 arguments for navigation button to constructor of ListViewTable.
112 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
113 hidden button for empty data rows.
114 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
115 arguments for navigation button to constructor.
116 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
117 create navigation buttons. Add hideNavigationButtons() method.
118 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
119 arguments for navigation button to constructor.
121 2011-12-01 Ben Konrath <ben@bagu.org>
123 Use 'visibility: hidden' in Utils.getWidgetHeight().
125 This is better choice because hidden elements are invisible, don't
126 respond to events and are not part of the tab order. They will,
127 however, take up space which is required to be able to calculate the
128 height of the widget.
130 * src/main/java/org/glom/web/client/Utils.java:
132 2011-12-01 Ben Konrath <ben@bagu.org>
134 Use Utils.getWidgetHeight() in FlowTable.
136 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
138 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
140 2011-12-01 Ben Konrath <ben@bagu.org>
142 Put the details css class name on the correct table column.
144 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
146 2011-11-30 Ben Konrath <ben@bagu.org>
148 Update for java-libglom API change.
150 The getters and setters on FieldFormatting and NumericFormat were
151 changed to remove the 'M'.
153 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
155 2011-11-29 Ben Konrath <ben@bagu.org>
157 Only allow RelatedListTables in Portals.
159 * src/main/java/org/glom/web/client/ui/details/Portal.java:
161 2011-11-29 Ben Konrath <ben@bagu.org>
163 Only create a contents panel for Portals when title is being set.
165 * src/main/java/org/glom/web/client/ui/details/Portal.java:
167 2011-11-29 Ben Konrath <ben@bagu.org>
169 Set TabLayoutPanel height based on calculated height its widgets.
171 This is a potential fix for this bug:
173 https://bugzilla.gnome.org/show_bug.cgi?id=665133
175 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
177 2011-11-29 Ben Konrath <ben@bagu.org>
179 Align details field labels and data with the Open buttons.
181 * src/main/webapp/style.css:
183 2011-11-29 Ben Konrath <ben@bagu.org>
185 Remove unnecessary <div> in the Notebook widget.
187 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
188 method to get container FlowPanel (<div>).
189 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
190 initWidget() method directly on the TabLayoutPanel widget instead of
191 Group's container widget.
193 2011-11-29 Ben Konrath <ben@bagu.org>
195 Don't add group titles for Portals in Notebooks.
197 This reverts the previous patch and fixes a bug I introduced with
198 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
200 * src/main/java/org/glom/web/client/ui/details/Group.java:
201 * src/main/java/org/glom/web/client/ui/details/Portal.java:
203 2011-11-28 Ben Konrath <ben@bagu.org>
205 Remove unused boolean argument in Portal constructor.
209 * src/main/java/org/glom/web/client/ui/details/Group.java:
210 * src/main/java/org/glom/web/client/ui/details/Portal.java:
212 2011-11-28 Ben Konrath <ben@bagu.org>
214 Remove hack for glom 1.18 style glom files.
216 * src/main/java/org/glom/web/client/ui/details/Group.java:
217 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
218 * src/main/java/org/glom/web/client/ui/details/Portal.java:
220 2011-11-28 Ben Konrath <ben@bagu.org>
222 Use Gda Value version of primary key to log result too large error.
224 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
226 2011-11-28 Ben Konrath <ben@bagu.org>
228 Don't use TypedDataItem.getText() for Unknown types from the URL.
230 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
231 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
232 instead of getText().
233 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
234 String field and getUnknown() method.
236 2011-11-28 Ben Konrath <ben@bagu.org>
238 Log an error message when the java-libglom .so is not present.
240 The error message was being set in the exception but not logged.
242 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
244 2011-11-28 Ben Konrath <ben@bagu.org>
246 Ignore LayoutItem_CalendarPortals.
248 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
249 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
251 2011-11-28 Ben Konrath <ben@bagu.org>
253 Extract method for creating the LayoutItemPortal DTO.
255 Just breaking the code up into smaller chunks.
257 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
259 2011-11-28 Ben Konrath <ben@bagu.org>
263 This should have been added with the refactor. Oops!
265 * src/main/java/org/glom/web/shared/TypedDataItem.java:
267 2011-11-28 Ben Konrath <ben@bagu.org>
269 Create primary key value from URL string using type from Glom document.
271 See this bug, comments 19 - 25:
273 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
275 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
276 create a TypeDataItem for the primary key here when loading from a
277 URL. Show the same string for the primary key value as was received
278 from the URL string (when loading from a URL).
279 * src/main/java/org/glom/web/server/Utils.java: Update method for
280 creating the Gda Value from the TypeDataItem to properly deal with
281 creating a Gda Value based on the Glom document type for the primary
282 key value string when loading from a URL.
283 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
284 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
285 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
286 Update for changed method name.
288 2011-11-27 Ben Konrath <ben@bagu.org>
290 Rename PrimaryKeyItem to TypedDataItem.
292 The name PrimaryKeyItem suggests what the class should be used for.
293 TypedDataItem is a neutral name that describes the class better.
295 This is a rename-only refactor.
297 * src/main/java/org/glom/web/client/OnlineGlomService.java:
298 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
299 * src/main/java/org/glom/web/client/Utils.java:
300 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
301 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
302 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
303 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
304 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
305 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
306 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
307 * src/main/java/org/glom/web/server/Utils.java:
308 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
309 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
310 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
311 * src/main/java/org/glom/web/shared/NavigationRecord.java:
313 2011-11-25 Ben Konrath <ben@bagu.org>
315 Improve Gda Value conversion from PrimaryKeyItem.
317 The value from the PrimaryKeyItem is only used if its type match the
318 type from the glom document.
320 * src/main/java/org/glom/web/server/Utils.java:
322 2011-11-25 Ben Konrath <ben@bagu.org>
324 Manually check if the java-liblgom .so is visible to the JVM.
326 It seems that Tomcat has problems when a static initializer throws an
327 exception. This check is done before the first method call into
328 java-libglom so that execution doesn't continue if the .so is not
331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
333 2011-11-25 Ben Konrath <ben@bagu.org>
335 Improve browser configuration error messages.
339 https://bugzilla.gnome.org/show_bug.cgi?id=662792
341 * src/main/java/org/glom/web/client/OnlineGlomService.java:
342 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
343 getConfigurationErrorMessage() method.
344 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
345 Get and display a specific configuration error message when no Glom
347 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
348 Implement getConfigurationErrorMessage() method. Surround configuration
349 code in the init() method with a try/catch block. This allows the
350 errors to be caught while keeping the servlet available to retrieve the
351 configuration error message.
353 2011-11-25 Ben Konrath <ben@bagu.org>
355 Don't use Strings to hold primary key values.
357 The primary key values are now held in a new data object
358 (PrimaryKeyItem) that holds type information and the primary key value
359 using the correct type.
361 * src/main/java/org/glom/web/client/OnlineGlomService.java:
362 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
364 PrimaryKeyItem instead of String to hold the primary key value.
365 * src/main/java/org/glom/web/client/Utils.java: Remove
366 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
367 PrimaryKeyItem based on the GlomFieldType and the DataItem.
368 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
369 PrimaryKeyItem instead of String to hold the primary key value. Load
370 document selection page when the documentID has not been set correctly.
371 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
372 DetailsPlace -> URL and URL -> DetailsPlace conversion with
374 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
375 Return empty string for URL instead of "null".
376 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
377 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
378 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
379 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
380 PrimaryKeyItem instead of String to hold primary key values.
381 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
382 PrimaryKeyValue to a Gda Value.
383 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
384 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
385 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
386 Replace temporary database access code that uses the PrimaryKeyValue to
387 Gda Value conversion.
388 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
389 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
390 PrimaryKeyItem instead of String.
391 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
392 hold primary key values.
394 2011-11-24 Ben Konrath <ben@bagu.org>
396 Use newly added java-libglom API to create queries.
398 This isn't finished. I still need to stop using Strings for primary key
399 values in the client code.
401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
402 libglom to use fake connections so that retrieving the query string will
404 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
405 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
406 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
407 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
408 Use the newly added libglom sql methods and classes to create the
409 query. Add temporary hack to convert primary value strings to Gda
412 2011-11-23 Ben Konrath <ben@bagu.org>
414 Don't explicitly set the height of Portals.
416 See comments 6 - 10 of this bug for details:
418 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
420 * src/main/java/org/glom/web/client/ui/details/Portal.java:
422 2011-11-23 Ben Konrath <ben@bagu.org>
424 Use an HTML table instead of CSS for the FlowTable layout.
426 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
427 GWT's FlexTable to implement the FlowTable.
428 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
430 2011-11-18 Ben Konrath <ben@bagu.org>
432 Add boolean example to HTML table mockup.
434 * mockups/details-view-html-tables-text-entries.html:
436 2011-11-17 Ben Konrath <ben@bagu.org>
438 Ensure the pager buttons are always visible for related lists.
440 To accomplish this, I've turned off text wrapping in the list view and
441 related list tables for both the header and data text. The related list
442 table now has a fixed layout so the it doesn't overflow its container.
443 This is required to ensure that the cell text is clipped when it
444 overflows the cell and an ellipsis is added to the right side of the
445 cell when text is clipped.
447 A fixed table layout for the related list table in the details view
448 seems what we want for the details view anyway, so the side-effect is
451 The ellipsis will only be displayed in Firefox >= 7.
455 https://bugzilla.gnome.org/show_bug.cgi?id=662930
457 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
458 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
459 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
461 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
462 Set the 'table-layout: fixed' CSS property to the related list table.
463 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
464 'white-space: nowrap;' CSS property on both the list view and the
467 2011-11-16 Ben Konrath <ben@bagu.org>
469 Rework the fix for empty notebook tab labels.
471 Setting the empty group titles with its name caused problems for the
472 details layout. Instead of using libglom's
473 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
474 to the client when the title is empty. This allows the Notebook to use
475 the name when the title is empty without affecting anything else.
477 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
478 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
480 2011-11-16 Ben Konrath <ben@bagu.org>
482 Set group titles with name when title is empty.
484 This fixes a problem with an empty notebook tab label in the Lesson
485 Planner document. The forth tab in the notebook should be "Internet":
487 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
489 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
490 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
493 2011-11-16 Ben Konrath <ben@bagu.org>
495 Remove whitespace from the configured username properties.
497 This assumes that usernames won't have whitespace at the beginning
498 or end. But I think this is a reasonable assumption.
500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
501 String.trim() to remove the whitespace from the username properties.
503 2011-11-15 Ben Konrath <ben@bagu.org>
505 Add details view mockup with HTML tables and text entries.
507 This is from the attachment on this bug:
509 https://bugzilla.gnome.org/show_bug.cgi?id=663109
511 * mockups/details-view-html-tables-text-entries.html:
513 2011-11-15 Ben Konrath <ben@bagu.org>
515 Add space between the columns of the flow table.
519 https://bugzilla.gnome.org/show_bug.cgi?id=662918
521 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
522 space between columns in the flow table.
524 2011-11-15 Ben Konrath <ben@bagu.org>
526 Add backup files to the .gitignore.
528 * .gitignore: Ignore files that end with ~.
530 2011-11-09 Ben Konrath <ben@bagu.org>
532 Use latest release of gwt-log.
534 Gwt-log releases are now being submitted to the maven central
535 repository so manual installation of the jar is no longer required.
537 * pom.xml: Update version and groupId of gwt-log dependency.
539 2011-10-31 Ben Konrath <ben@bagu.org>
541 Don't use GWT numeric formatting to override the glom currency formatting.
543 Currencies are now displayed like they are in Glom. See this bug:
545 https://bugzilla.gnome.org/show_bug.cgi?id=646216
547 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
549 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
550 currency code to constructor and set it when the cell is rendered.
551 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
552 currency code to the constructor of the NumericCell.
554 2011-10-27 Ben Konrath <ben@bagu.org>
556 Require the latest release of java-libglom (1.17.4).
560 2011-10-26 Ben Konrath <ben@bagu.org>
562 Add style to Notebook that matches current theme.
564 It's not the best style in the world but it's better than the default.
566 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
567 padding at the bottom of the child widgets.
568 * src/main/webapp/style.css: Add style for the Notebook.
570 2011-10-26 Ben Konrath <ben@bagu.org>
572 Move servlet initialization code to overridden init method.
574 This is half of the solution to getting proper error messages
575 displayed when configuration errors occur. Here's the relevant bug:
577 https://bugzilla.gnome.org/show_bug.cgi?id=662792
579 The rest of the solution involves surrounding the init method with a
580 try/catch block and setting a global variable with the error /
581 exception. A new async method should be created to retrieve and display
582 the error message / exception.
584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
585 code from constructor to init method adding exceptions as needed.
587 2011-10-26 Ben Konrath <ben@bagu.org>
589 Add script to monitor and restart tomcat if required.
591 * utils/check-and-recover-tomcat.py: New file.
593 2011-10-26 Ben Konrath <ben@bagu.org>
595 Display the correct number of data items in the pager.
599 https://bugzilla.gnome.org/show_bug.cgi?id=661441
601 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
602 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
603 The implementation is the same for both tables: Keep track of the
604 number of non-empty rows and fire and RowCountChangeEvent after the data has
606 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
607 custom Pager class that subclasses SimplePager to handle displaying
608 the correct number when empty rows have been added.
610 2011-10-26 Ben Konrath <ben@bagu.org>
612 Correct error in previous commit.
614 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
615 eventBus parameter from listView.setCellTable().
617 2011-10-26 Ben Konrath <ben@bagu.org>
619 Fix error in TODO comment.
621 * src/main/java/org/glom/web/client/activity/ListActivity.java:
623 2011-10-24 Ben Konrath <ben@bagu.org>
625 Create Notebook widgets to the details view.
627 This isn't finished just yet - I still need to create a reasonable
628 style to match the current theme.
630 * src/main/java/org/glom/web/client/Utils.java: Add method for
631 calculating the height of a widget. This is used in the Notebook class.
632 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
633 new constructor method in Group.
634 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
635 method for creating child widget that can be used by subclasses
636 like Notebook. New constructor that allows disabling the group
637 titles - Notebooks don't set a group title for their child groups.
638 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
639 to make Notebooks using GWT's TabLayoutPanel.
640 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
641 constructor that allows disabling the group titles.
642 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
643 LayoutItemNotebook DTO.
644 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
645 DTO for Notebooks. It's just an empty class for now but we might need
646 it to transfer some specific information in the future.
648 2011-10-21 Ben Konrath <ben@bagu.org>
650 Add navigation buttons to related list tables.
652 * src/main/java/org/glom/web/client/OnlineGlomService.java:
653 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
655 method getSuitableRecordToViewDetails() for getting the table name
656 and primary key value for related list navigation buttons.
657 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
658 private cell renderer class to get the navigation information for
659 related list tables from the server. Extract the navigation
660 processing code from the details cell navigation and use it for the
661 related list navigation as well.
662 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
663 cell renderer class for the details open buttons. This was needed
664 because the related list navigation buttons and the list view
665 navigation buttons need to react differently when clicked.
666 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
667 the onEnterKeyDown() method because it's now overriden in the
668 subclasses that are specific to the related list tables and the list
670 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
671 the vertical size a little because the buttons add a bit of vertical
672 space to table. This is not a perfect solution because the vertical
673 size of with table fewer than 5 rows will be a little smaller.
674 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
675 changes in how navigation buttons are handled.
676 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
677 getSuitableRecordToViewDetails() using the new RelatedListNavigation
678 database access object.
679 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
680 to find the portal for a given relationship name from
681 RelatedListDBAccess. Add method to find a primary key field for a
683 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
684 Move code to find the portal for a given relationship name to
686 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
687 New file: database access object for getting the related list
688 navigation information (the table name and the primary key value).
689 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
690 DTO for transferring a table name to navigate to and a primary key
692 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
693 boolean and getter/setter to specifies if the related list should add
696 2011-10-24 Murray Cumming <murrayc@murrayc.com>
698 Use the master branch of java-libglom
700 * pom.xml: Depend on java-libglom 1.19 instead.
702 This is the master branch. See also the libglom-1-18 branch.
704 2011-10-11 Ben Konrath <ben@bagu.org>
706 Enable the open navigation button when the data has been set.
708 This avoids having active buttons that don't do anything when the data
711 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
713 2011-10-11 Ben Konrath <ben@bagu.org>
715 Use IsWidget interface for FlowTableItem.
717 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
718 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
720 2011-10-11 Ben Konrath <ben@bagu.org>
722 Remove GWT styling from open button in details view.
724 There are still some issues with how the details cell is arranged but
725 this should be made to match Glom 1.20. I'm going to leave fixing this
726 until I have Glom 1.20 up and running.
728 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
729 style name on open button.
730 * src/main/webapp/style.css: Move and edit details-navigation class.
731 Re-arrange some classes to make them appear in the same order as the
734 2011-10-07 Ben Konrath <ben@bagu.org>
738 * .gitignore: Ignore new cache directory.
739 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
740 * pom.xml: Change GWT and maven plugin to 2.4.0.
741 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
743 * src/main/java/org/glom/web/client/ClientFactory.java:
744 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
745 * src/main/java/org/glom/web/client/OnlineGlom.java:
746 Update source for API changes.
747 * utils/build-onlineglom-war.sh: Remove cache directory before the
750 2011-10-07 Ben Konrath <ben@bagu.org>
752 Add navigation buttons in the details view.
754 This isn't finished but I thought I'd commit what I have as it's a
755 pretty good start. I still need to:
757 1. Change the style so that it fits better into the current theme
758 2. Adjust the details cell to expand as much as possible.
760 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
761 click handlers to navigation buttons in the DetailsCells. Create a
762 refreshData() method to get just the data from the server without the
764 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
765 Update the tableSelector and browser title when the table name
766 changes without using the tableSelector.
767 * src/main/java/org/glom/web/client/ui/DetailsView.java:
768 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
769 getDetailsCells() to getCells(). Update variable names.
770 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
771 method to set click handler on navigation button. Rename a few
772 variables. Add navigation buttons where needed.
773 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
774 variables and methods.
775 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
776 navigation boolean and navigation table as required in the
778 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
779 variables for navigation along with getter/setter methods.
781 2011-10-07 Ben Konrath <ben@bagu.org>
783 Rename Field to DetailsCell.
785 This is a refactor-only commit. No functionality has been added or
788 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
789 Update variable and method names.
790 * src/main/java/org/glom/web/client/ui/DetailsView.java:
791 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
792 variable and method names.
793 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
795 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
796 variable and method names.
798 2011-10-07 Ben Konrath <ben@bagu.org>
800 Create separate methods for layout and data the details view.
802 This is a refactor-only commit. No functionality has been added or
805 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
806 private methods: setData(), createLayout().
808 2011-10-07 Ben Konrath <ben@bagu.org>
810 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
812 This is part of a change to get navigation buttons in the details view
813 but it should have been done this way from the start.
815 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
816 for method name change in TableSelectionView.
817 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
818 Create TableChangeEvent and set the browser title using the
819 TableSelectionView API.
820 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
821 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
822 Change getSelectedTable() to getSelectedTableName(). Add
823 getSelectedTableTitle().
825 2011-10-07 Ben Konrath <ben@bagu.org>
827 Use primaryKeyValue naming convention in constructor of DetailsPlace.
829 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
831 2011-10-07 Ben Konrath <ben@bagu.org>
833 Update TableChangeEvent to use newTableName naming convention.
835 This makes the class more consistent with GWT naming conventions.
837 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
838 Update for method name change in TableChangeEvent.
839 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
840 for method name change in TableChangeEvent.
841 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
842 newTableName variable and getter method. Make toDebugString()
845 2011-09-30 Ben Konrath <ben@bagu.org>
847 Disable the pager in the list tables when the data row count is less than the minimum.
849 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
850 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
852 2011-09-30 Ben Konrath <ben@bagu.org>
854 Add empty rows to the end of related list and list view tables.
856 I also extracted the cell rendering classes from the ListTable because
857 the code was becoming a little crazy with all the anonymous inner
858 classes. My plan is to use these cell rendering classes in the details
859 view as well so this refactor will be needed for that change.
861 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
862 set the row count in related list tables if the data has more rows
863 than the minimum number of rows visible.
864 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
865 row count in list view tables if the data has more rows than the
866 minimum number of rows visible.
867 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
868 for rendering TYPE_BOOLEAN cells. The code was extracted from the
870 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
871 for rendering TYPE_NUMERIC cells. The code was extracted from the
873 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
874 class for rendering cells with buttons in list views. The code was
875 extracted from the ListTable class.
876 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
877 for rendering TYPE_TEXT cells. The code was extracted from the
879 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
880 Add empty rows to the end of the data if required. Implement
881 ListTable.getMinNumVisibleRows().
882 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
883 cell renderer code to public classes. Return null in
884 Column.getValue() for empty rows. Add new abstract method:
885 getMinNumVisibleRows(). Move code to set the row count of the list view
886 table to ListViewImpl.
887 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
888 empty rows to the end of the data if required. Implement
889 ListTable.getMinNumVisibleRows().
892 2011-09-27 Ben Konrath <ben@bagu.org>
894 Use GWT.log for client-side debugging statements.
896 These are optimized out when deployed so I should have used this method
897 in the first place. These statements will eventually be replaced with some sort
898 of notification in the browser.
900 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
901 * src/main/java/org/glom/web/client/activity/ListActivity.java:
902 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
903 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
904 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
906 2011-09-27 Ben Konrath <ben@bagu.org>
908 Put tableselector on the right, back to list link on right.
910 The idea is that the table selector is acting like a label for the
911 currently displayed table so it should be placed below the document title. This
912 puts the table title in a similar position to where it is in Glom.
914 * mockups/details-contacts.html:
915 * mockups/details-projects.html:
916 * mockups/listview-contacts.html:
917 * mockups/listview-projects.html:
919 Update mockups to match how the interfaces currently look.
920 * src/main/webapp/style.css: Swap positions of backlink with the table
921 selector. Add some space on the left side of the table selector to
922 line things up with the document title.
924 2011-09-27 Ben Konrath <ben@bagu.org>
926 Add field colouring to details view.
928 This change re-works how field colouring works. The colour formatting
929 information is now set to the client with the layout information instead of
930 with the data. This eliminates the need to send the same colour strings for
931 data in list view column when colour information is set.
933 In order to set an alternate colour for negative numeric values, the
934 number is now sent to client and formatted with the GWT NumberFormat class.
936 This change also fixes:
938 https://bugzilla.gnome.org/show_bug.cgi?id=659752
940 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
941 internationalization framework which is needed for client side numeric
943 * src/main/java/org/glom/web/client/Utils.java: New file for some
944 client static utility methods.
945 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
946 the DataItem object to the Field class. Use a utility method to
947 create the foreignKeyValue string.
948 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
949 alignment and text colours in the constructor. Add setData(DataItem)
950 method. Remove setText(String) method.
951 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
952 colour information to GlomTextCell. Create and use GlomNumberCell for
953 rendering numbers. Use utility method to get the string for the
954 primary key of the key provider. Re-work how the horizontal alignment
956 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
957 formatting to layout information. Methods for converting the libglom
958 formatting information were moved from DBAccess.
959 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
960 numeric formatting (it's now done on the client side). Don't set text
961 colours in DataItem. Move libglom formatting conversion methods to
963 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
964 getters/setters for text colour information.
965 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
966 for transferring the libglom NumericFormat information to the client.
967 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
968 and getters/setters for: GlomNumericFormat, background colour and
969 foreground colour strings.
971 2011-09-26 Ben Konrath <ben@bagu.org>
973 Simplify code that iterates through the LayoutGroup.
975 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
977 2011-09-26 Ben Konrath <ben@bagu.org>
979 Accept Eclipse formatting for OnlineGlomServiceAsync.
981 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
983 2011-09-26 Ben Konrath <ben@bagu.org>
985 Don't use the ListDBAccess classes to get the primary key layout information.
987 This was causing a bug where the wrong index for the hidden primary key
988 was being sent to the client.
990 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
991 primary key while creating the LayoutGroup DTO. Create a
992 LayoutItemField DTO for hidden primary keys. Don't use the
993 RelatedListDBAccess because it was only used for getting the primary
995 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
996 access modifier from public to protected for getPrimaryKeyField() and
997 getPrimaryKeyLayoutItemField().
998 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
999 abstract method getExpectedResultSize() because RelatedListDBAccess
1000 doesn't have enough info to implement it.
1001 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1002 Remove @Override for getExpectedResultSize().
1003 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1004 Remove method getExpectedResultSize().
1006 2011-09-23 Ben Konrath <ben@bagu.org>
1008 Log which layout (list or details) the ignored item is from.
1010 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1012 2011-09-23 Ben Konrath <ben@bagu.org>
1014 Remove annotations that turn off code formatting in DataItem.
1016 * src/main/java/org/glom/web/shared/DataItem.java:
1018 2011-09-23 Ben Konrath <ben@bagu.org>
1020 Rename GlomField to DataItem and update associated methods.
1022 This is a rename-only refactor. No functionality has been added or
1025 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1026 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1027 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1028 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1029 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1030 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1031 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1032 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1033 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1034 * src/main/java/org/glom/web/server/database/DBAccess.java:
1035 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1036 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1037 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1038 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1039 * src/main/java/org/glom/web/shared/DataItem.java:
1040 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1041 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1043 2011-09-23 Ben Konrath <ben@bagu.org>
1045 Rename GlomDocument to DocumentInfo and update associated methods.
1047 This is a rename-only refactor. No functionality has been added or
1050 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1051 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1052 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1053 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1054 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1056 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1058 2011-09-20 Ben Konrath <ben@bagu.org>
1060 Require java-libglom 1.17.3.
1062 This picks up the fix for the seg fault problem with the Scenes table
1063 in the Openismus Film Manager example.
1067 2011-09-20 Ben Konrath <ben@bagu.org>
1069 Change the way sort clause is added for primary key when no sort clause is requested.
1071 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1072 before the sort clause is created. When a sort clause is not requested, the
1073 sort clause is created by finding the primary key in the LayoutFieldVector
1076 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1078 2011-09-20 Ben Konrath <ben@bagu.org>
1080 Log error message if no documents are found in the configured directory.
1082 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1083 Extract the glom file extension string to a private static final class
1084 variable (mostly as syntactic sugar). Accept a minor formatting change.
1085 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1086 the example glom.document.directory configuration property to make it
1087 more clear that it can any directory, not just the home directory.
1089 2011-09-18 Ben Konrath <ben@bagu.org>
1091 Add related lists to details view.
1093 The related list table has support for paging and sorting just like the
1094 table in the list view.
1096 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1097 SQL queries for the related list tables.
1098 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1099 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1101 Rename getList methods to getListView and add comments. Remove
1102 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1103 it being unused. Add methods: getDetailsLayoutAndData(),
1104 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1105 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1106 Create the layout and set the data for the fields in one async call
1107 instead of two. Create related lists where appropriate.
1108 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1109 for method name changes in OnlineGlomService.
1110 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1111 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1112 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1114 * src/main/java/org/glom/web/client/ui/ListView.java:
1115 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1116 tableName from setCellTable(). Create a ListViewTable instead of
1118 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1119 represent a data field in the details view.
1120 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1121 from addDetailsCell() to Field class. Keep track of the Fields and
1122 Portals in the details view.
1123 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1124 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1125 and add a method to get it. Add method to set the contents of the
1127 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1128 New class for related list tables. This class has the data provider
1129 for the related list table.
1130 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1131 abstract class which is the base class for the ListViewTable and the
1133 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1134 New class for list view tables. This class has the data provider for
1135 the list view table.
1136 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1137 methods for related list tables. Add more information to the
1138 LayoutItemField and LayoutItemPortal DTOs.
1139 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1140 Remove debugging print statement.
1141 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1142 Remove debugging print statements. Add primary key field to SQL count
1144 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1145 Remove unnecessary LayoutFieldVector parameter from
1146 getResultSizeOfSQLQuery() method.
1147 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1148 New class for related list table database access.
1149 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1150 class that is a wrapper DTO for details view layout and data.
1151 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1152 new 'fromField' string to this DTO.
1153 * src/main/webapp/style.css: Remove bottom margin and override top
1156 2011-09-15 Ben Konrath <ben@bagu.org>
1158 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1160 This sets things up to make it easier to add the data retrieval for
1161 related lists (portals). No user noticeable changes were made with
1164 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1165 class has the code to retrieve the layouts and access the
1166 database using the new database helper classes.
1167 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1168 Most of the functionality has been removed from this class. This
1169 class now represents the public interface for the client side
1170 code. It also deals with configuring the servlet and cleaning
1171 things up when the servlet is stopped.
1172 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1173 of static methods into this utility class.
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 These classes have the database retrieval code. The class hierarchy
1179 has been setup to make it easy to reuse code for similar
1182 2011-09-06 Ben Konrath <ben@bagu.org>
1184 Create separate classes for list table code and the data provider.
1186 As part of this refactor, I also split up the code a bit to make it
1189 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1190 table code to two new classes (below).
1191 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1192 with code from ListViewImpl.
1193 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1194 New file with code from ListViewImpl.
1196 2011-09-06 Ben Konrath <ben@bagu.org>
1198 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1200 This fixes the LayoutItemPortal DTO to match the libglom layout object
1203 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1205 2011-09-01 Ben Konrath <ben@bagu.org>
1207 Set title of Portals in the Details View.
1209 * pom.xml: Bump required version of java-libglom to 1.17.1.
1210 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1211 widget creation to its own class. Add comments to constructor.
1212 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1213 The code is mostly from the Group class with the title now set.
1214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1215 title of Portal. Update some comments. Fix some code formatting.
1217 2011-09-01 Ben Konrath <ben@bagu.org>
1219 Remove TODO comment for the flow table column width.
1221 The flow table column width is working correctly and doesn't need to be
1222 changed. See this mailing list post for more info:
1224 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1226 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1228 2011-08-27 Ben Konrath <ben@bagu.org>
1230 Add document title (database name) to top of the browser page.
1232 I added the document title to the TableSelecitonView but that will
1233 change if / when we add a view that doesn't require table selection.
1235 * mockups/details-contacts.html:
1236 * mockups/details-projects.html:
1237 * mockups/listview-contacts.html:
1238 * mockups/listview-projects.html:
1239 * mockups/style.css: Add document title to mockups to keep things
1241 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1242 sizes to account for the document title.
1243 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1244 Set the document title when it has been retrieved from the server.
1245 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1246 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1247 and implement setDocumentTitle(String) method.
1248 * src/main/webapp/style.css: Add ID for document title style.
1250 2011-08-25 Ben Konrath <ben@bagu.org>
1252 Add NavigationType enum to LayoutItemPortal DTO.
1254 This is the start of adding support for Portals to the Details View.
1256 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1257 LayoutItem_Portal.navigation_type enum from libglom to
1258 LayoutItemPortal.NavigationType enum.
1259 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1260 NavigationType enum, field for storing the NavigationType and getter
1263 2011-08-25 Ben Konrath <ben@bagu.org>
1265 Implement the flow table layout in the Details View.
1267 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1268 FlowTable to Group to account for the renamed class.
1269 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1270 File. This is a container widget that implements the Glom details view
1271 flow table behaviour.
1272 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1273 org/glom/web/client/ui/FlowTable.java.
1274 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1275 so that the size of the subgroups are a closer match to the size of
1276 the Glom subgroups. This makes the flowtable layout match the layout
1277 in Glom for the Music Collection example file.
1279 2011-08-16 Ben Konrath <ben@bagu.org>
1281 Create container element for LayoutItemPortal in Details View.
1283 This will help me develop the layout for the FlowTable.
1285 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1286 fieldPanel variable to detailsCell.
1288 2011-08-15 Ben Konrath <ben@bagu.org>
1290 Set the height of the data element in the Details View.
1292 I changed the InlineLabels (text in a span element) to Labels (text in
1293 a div element) so that I could set the height of the details-data
1294 elements instead of the details-cell parent elements. This allows the
1295 the details-data element to display the correct height if style is
1296 applied that shows the height.
1298 This change has the added benefit of allowing the order of the labels
1299 and data elements to be changed for right-to-left languages.
1301 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1302 InlineLabels to Labels.
1303 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1304 InlineLabels to Labels. Set the height of the data element.
1305 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1306 multiline text height in the Formatting DTO.
1307 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1308 for multiline height along with getter and setter methods.
1309 * src/main/webapp/style.css: Adjust style to account for the change
1310 from span elements to div elements in the details cell.
1312 2011-08-15 Ben Konrath <ben@bagu.org>
1314 Make the List View appearance match the mockups.
1316 It doesn't match exactly but it's much better than it was.
1318 * mockups/listview-contacts.html: Remove unused css classes.
1319 * mockups/listview-projects.html: Remove unused css classes.
1320 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1321 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1322 for mainPanel instead of VerticalPanel (table). Set style name on
1323 CellTable. Set style name on Details column. Right-align Details
1325 * src/main/webapp/style.css: Adjust properties to match the mockups.
1327 2011-08-12 Ben Konrath <ben@bagu.org>
1329 Add better support for subgroups in the details view.
1331 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1332 changed FlowTable constructor.
1333 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1334 support for subgroups and subgroup-titles.
1335 * src/main/webapp/style.css: Add CSS class for subgroups and
1338 2011-08-12 Ben Konrath <ben@bagu.org>
1340 Return the top level LayoutGroup title.
1342 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1344 2011-08-11 Ben Konrath <ben@bagu.org>
1346 Make the TableSelector header match the mockup.
1348 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1349 the layout panel. Properly lineup the table selection header with
1350 the list and details view.
1351 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1352 margin around the details view.
1353 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1354 Rename listBox variable to tableSelector. Set id for the style sheet.
1355 Use a FlowPanel instead of a HorizontalPanel.
1356 * src/main/webapp/style.css: Add properties to make the TableSelector
1357 box match the mockups.
1359 2011-07-13 Ben Konrath <ben@bagu.org>
1361 Update install script for java-libglom version change.
1363 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1366 2011-07-13 Ben Konrath <ben@bagu.org>
1368 Add support sub-group in the details view.
1370 I also removed the code that special-cased the default details view
1373 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1375 I still have to make a proper flowtable.
1377 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1378 Don't special-case default details view layout.
1379 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1380 addLayoutField() as I'm going to use it.
1381 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1382 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1384 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1385 extracted from DetailsViewImpl.GroupPanel. Add support for
1387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1388 column count when getting the details layout.
1390 2011-07-12 Ben Konrath <ben@bagu.org>
1392 Set browser title with database and table titles.
1394 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1395 Set the browser title when the table changes and when the activity
1397 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1398 title when retrieving document info (the GlomDocument object).
1399 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1400 with getter and setter methods. Remove unused convenience constructor.
1401 Use default code formatting.
1403 2011-07-12 Ben Konrath <ben@bagu.org>
1405 Ignore LayoutItemPortals in the details view.
1407 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1410 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1411 LayoutItemPortal layout objects.
1412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1413 LayoutItemPortal objects when retrieving the details layout.
1414 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1415 file. This is an empty class and just used to get type information for
1418 2011-07-12 Ben Konrath <ben@bagu.org>
1420 Use java-libglom 1.17.0.
1424 2011-07-11 Ben Konrath <ben@bagu.org>
1426 Remove "Table:" label from table selector.
1428 This matches a recent change in the Glom UI.
1430 * mockups/details-contacts.html:
1431 * mockups/details-projects.html:
1432 * mockups/listview-contacts.html:
1433 * mockups/listview-projects.html: Remove the "Table:" label from the
1435 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1437 2011-07-11 Ben Konrath <ben@bagu.org>
1439 Add main groups to the details view.
1441 This makes things look a little nicer in the details view. The next step
1442 is to implement the flowtable.
1444 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1445 resources from the standard gwt css theme. Standard.css is now
1446 included in OnlineGlom.html so that the online glom css rules have
1447 precedence over the gwt theme.
1448 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1449 the whole LayoutGroup to the DetailsView instead of just the titles.
1450 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1451 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1452 details layout with a helper class (GroupPanel). I might extract this
1453 class when I make the full flowtable.
1454 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1455 string as default so I don't have to worry about NPEs when processing
1457 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1458 note beside OnlineGlom.gwt.xml above).
1459 * src/main/webapp/style.css: Add default font-size to body to override
1460 the font-size set by the standard theme. Don't use h2 tags for
1461 group-title. Create new details-cell class.
1463 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1465 ConfiguredDocument: Set the port number too.
1467 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1468 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1469 Glom document. Presumably this worked sometimes so far because there is a
1470 default port number.
1472 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1474 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1476 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1477 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1478 correct, though we should throw an exception too.
1480 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1482 Fix a addDocuemnt typo.
1484 * src/main/java/org/glom/web/shared/Documents.java
1485 (Documents.addDocuemnt): Rename to addDocument().
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1487 (OnlineGlomServiceImpl.getDocuments): Adapt.
1489 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1491 Slightly improved log output when connection fails.
1493 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1494 (ConfiguredDocument.setUsernameAndPassword):
1495 We don't know for sure if it' the username/password that's wrong, so
1496 rephrase the message.
1497 Also ouput the exception message, though it's generic in this case.
1499 2011-07-08 Ben Konrath <ben@bagu.org>
1503 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1504 added braces to a one line if statement because the Eclipse formatter
1505 was getting confused.
1507 2011-07-07 Ben Konrath <ben@bagu.org>
1509 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1511 These should really be two separate tasks but I counldn't get things to
1512 work with GWT 2.2.0 and Eclipse 3.7.
1516 * .settings/org.eclipse.jdt.core.prefs:
1517 * .settings/org.eclipse.jdt.ui.prefs:
1518 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1519 * .settings/org.eclipse.m2e.core.prefs:
1520 Add new config files. Update current files. Remove references to the
1521 webtools plugins as we're not using any of the webtools features.
1522 * .gitignore: Add logs directory which is created when running with
1524 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1525 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1526 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1528 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1530 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1532 onlineglom.properties: Add explanatory comments.
1534 * src/main/resources/onlineglom.properties: Also change the default user
1535 from ben to someuser, to avoid the risk of people thinking we just
1536 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1538 2011-06-28 Ben Konrath <ben@bagu.org>
1540 Use filename in Log for incorrect passwords.
1542 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1543 getFileName(String) method to get the filename from the URI.
1545 2011-06-28 Ben Konrath <ben@bagu.org>
1547 Add the table name to the URL token for the ListPlace.
1549 This makes things consistent between the DetailsPlace and the
1550 ListPlace. It also allows the the ListPlace to be bookmarked.
1552 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1553 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1555 Remove getDefaultListLayout(). The default layout is now returned
1556 by the getListLayout() method when the table name is an empty string.
1557 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1558 Add table name field. Change to a new ListPlace when the table
1559 has been changed. Use getListLayout() for getting the default
1561 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1562 Add table name field. Set the correct table name in the list box
1563 when loading from bookmark. This corrects a problem for the
1565 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1566 Move table name to super-class (HasSelectableTable). Move document
1567 and table URL keys to super-class in HasSelectableTable.
1568 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1569 Add table name field. Add Tokenizer class with URL key common to
1570 the subclasses (DetailsPlace and ListPlace).
1571 * src/main/java/org/glom/web/client/place/ListPlace.java:
1572 Add table name. Add code to parse the URL token.
1573 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1574 Update ListPlace construction with empty table name string.
1575 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1576 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1577 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1578 Update ListPlace construction with table name string.
1579 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1580 Change defaultTableName field to tableName to reflect how it's now
1581 used. Update the getter and setter methods.
1583 2011-06-28 Ben Konrath <ben@bagu.org>
1585 Enable the table selector in the DetailsView.
1587 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1588 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1589 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1590 Remove getDefaultDetailsLayout(). The default layout is now returned
1591 by the getDetailsLayout() method when the table name is an empty
1593 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1594 event handler for table change event. Change to using
1595 getDetailsLayout() for the default details layout.
1596 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1598 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1599 when navigating to the details place.
1601 2011-06-27 Ben Konrath <ben@bagu.org>
1603 Use filename based unique document ID in URL and for RPC.
1605 The document ID is the glom document name with spaces (' ') replaced
1606 with pluses ('+') and without the .glom extension.
1608 This change is mostly a string substitution of 'documentTitle' for
1609 'documentID'. The only code change is the addition of a Documents DTO to get the
1610 filename to document title mappings as indicated below.
1612 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1613 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1614 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1615 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1616 Use Documents DTO to create the document links in the document
1618 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1619 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1620 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1621 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1622 * src/main/java/org/glom/web/client/place/ListPlace.java:
1623 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1624 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1625 * src/main/java/org/glom/web/client/ui/ListView.java:
1626 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1627 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1628 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1629 * src/main/java/org/glom/web/server/Log.java:
1630 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1631 getDocumentTitles() to getDocuments() and return the Documents DTO.
1632 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1633 transferring the filename to document title mappings.
1635 2011-06-25 Ben Konrath <ben@bagu.org>
1637 Make the authentication popup work again.
1639 This bug was introduced when I extracted ConfiguredDocument to its own class.
1641 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1642 correct success / fail status in setUsernameAndPassword().
1644 2011-06-25 Ben Konrath <ben@bagu.org>
1646 Use filename as unique key for configuring database usernames and passwords.
1648 This replaces the use of the Glom document title which could change
1649 depending on the locale. Thanks to Murray Cumming for pointing out this
1652 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1653 * src/main/resources/onlineglom.properties:
1655 2011-06-24 Ben Konrath <ben@bagu.org>
1657 Pass primary key value to DetailsView.
1659 This enables the DetailsView to load the correct data.
1661 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1662 primary key value field and set in constructor. Pass primary key
1663 value to getDetailsData().
1664 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1665 variables for document title and primary key value.
1666 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1667 key value to the DetailsPlace.
1669 2011-06-24 Ben Konrath <ben@bagu.org>
1671 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1673 This allows the primary key to be retrieved by the Details button. This
1674 functionality has not been implemented yet but it's in the works.
1676 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1677 the LayoutGroup result to ListView.setCellTable instead of all of its
1678 fields individually.
1679 * src/main/java/org/glom/web/client/ui/ListView.java:
1680 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1681 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1682 get the primary key for the table.
1683 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1684 index of the primary key in the LayoutGroup accounting for hidden
1685 primary keys. Rename getJavaNumberFormat() to
1686 convertToJavaNumberFormat() for consistency. Cleanup / add some
1688 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1689 field for primary key index and a field to indicate whether the
1690 primary key is hidden or not.
1692 2011-06-23 Ben Konrath <ben@bagu.org>
1694 Rename getTableData methods to getListData.
1696 This is a rename refactor for consistency with other methods.
1698 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1699 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1700 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1701 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1703 2011-06-23 Ben Konrath <ben@bagu.org>
1705 Extract the ConfiguredDocument innerclass into its own class.
1707 This makes the servlet code more object oriented.
1709 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1710 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1712 new ConfiguredDocument class.
1714 2011-06-21 Ben Konrath <ben@bagu.org>
1716 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1718 This makes things more inline with how libglom works and reduces code
1719 duplication. This refactor lays the groundwork for adding the primary key to
1720 the LayoutGroup object.
1722 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1723 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1724 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1725 Change method names to getListLayout and getDefaultListLayout for
1726 consistency. Use LayoutGroup as the DTO for the list layout instead of
1727 ColumnInfo and LayoutListTable.
1728 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1729 new method names along with the LayoutGroup object for transferring the
1731 * src/main/java/org/glom/web/client/ui/ListView.java:
1732 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1733 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1734 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1736 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1737 Replaced with LayoutGroup.
1738 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1739 expectedResultSize and defaultTableName fields which are needed for
1741 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1742 type field which is needed for the list layout but will also be
1743 useful for the details layout as things progress.
1744 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1745 Make class abstract. Remove the unnecessary
1746 getFormattingHorizontalAlignment method. Add setFormatting method.
1748 2011-06-16 Ben Konrath <ben@bagu.org>
1750 Add scripts for building and installing war.
1752 These will help when updating OnlineGlom but they're also good
1753 supplemental documentation of the build and deployment proceeding.
1755 * utils/build-onlineglom-war.sh: New file.
1756 * utils/install-onlineglom-war.sh: New file.
1758 2011-06-16 Ben Konrath <ben@bagu.org>
1760 Create wrapper class to create consistent log messages.
1762 I wrapped methods in the Log class of gwt-log to add the method names
1763 from the servlet and create consistent formatting of the document title
1764 and table names in the log messages.
1766 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1768 log methods to use methods from wrapped Log class.
1770 2011-06-16 Ben Konrath <ben@bagu.org>
1772 Remove superfluous conditional return.
1774 Thanks to Murray Cumming for pointing this out!
1776 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1778 2011-06-15 Ben Konrath <ben@bagu.org>
1780 Return an ArrayList of LayoutGroups for the Details layout.
1782 This corrects a problem with the details layout as it can have more
1783 than one top level LayoutGroup.
1785 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1786 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1787 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1788 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1789 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1790 with ArrayList of LayoutGroups for the details view layout.
1791 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1792 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1793 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1794 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1795 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1796 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1798 2011-06-14 Ben Konrath <ben@bagu.org>
1800 Use cast_dynamic method to determine the libglom LayoutItem type.
1802 This is better than finding the LayoutItem type by using the string
1803 returned from the get_part_type_name() method.
1805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1807 2011-06-14 Ben Konrath <ben@bagu.org>
1809 Add method names to log entries in the servlet.
1811 This helps when tracking down deployment problems.
1813 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1815 2011-06-14 Ben Konrath <ben@bagu.org>
1817 Add data to the DetailsView using a hard-coded primary key value.
1819 The layout and functionality of the DetailsView is not complete. This
1820 is just a checkpoint so the patch doesn't get too big.
1822 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1823 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1824 Add getDetailsData() servlet method.
1825 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1826 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1827 LayoutFields are added to the DetailsView.
1828 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1829 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1830 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1831 take the string for the title instead of the object.
1832 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1833 Add implementation getDetailsData() along with some private helper
1835 * src/main/webapp/style.css: Add padding to details-data class. Add a
1836 details-label class with the same padding as the details-data class.
1838 2011-06-03 Ben Konrath <ben@bagu.org>
1840 Use presenter.goTo() to change to the DetailsPlace.
1842 This will make things easier when we need to open the DetailsView with
1843 data specific to the row that was clicked.
1845 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1847 2011-06-02 Ben Konrath <ben@bagu.org>
1849 Add CSS file from mockups.
1851 I'm adding this now because it's going to be useful to have when
1852 developing the DetailsView. The TableSelectionView and ListView aren't
1855 * src/main/webapp/OnlineGlom.html:
1856 * src/main/webapp/style.css:
1858 2011-06-02 Ben Konrath <ben@bagu.org>
1860 Use String.isEmpty() to check for empty string.
1862 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1864 2011-06-02 Ben Konrath <ben@bagu.org>
1866 Display main layout group titles in the DetailsView.
1868 This is the start of the DetailsActivity/DetailsView implementation.
1870 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1871 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1872 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1873 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1874 Get the layout information for the details view from the server and set
1875 the main layout group titles.
1876 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1877 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1878 Add addLayoutGroup() and addLayoutField() methods. This are just
1879 temporary methods for creating the the details view that will change
1881 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1882 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1884 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1885 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1886 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1887 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1888 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1889 Data Transfer Objects that mimic the libglom object structure. These are
1890 used for transferring the details layout but could also be used for
1891 transferring the list layout.
1893 2011-05-27 Ben Konrath <ben@bagu.org>
1895 Reset the AuthenticationPopup when clearing the ListView.
1897 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1899 2011-05-27 Ben Konrath <ben@bagu.org>
1901 Fix problem with onlineglom.properties file loading.
1903 The old way worked in Eclipse but not on the server. Loading the
1904 onlineglom.properties file now works in Eclipse and on the server.
1906 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1908 2011-05-24 Ben Konrath <ben@bagu.org>
1910 Update gwt-log from 3.1.0 to 3.1.2.
1912 Gwt-log 3.1.0 has been marked as depreciated.
1916 2011-05-24 Ben Konrath <ben@bagu.org>
1918 Add comment to ListActivity.goTo() method.
1920 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1922 2011-05-24 Ben Konrath <ben@bagu.org>
1924 Remove FIXME in convertGdkColorToHtmlColour()
1926 The Gdk::Color value returned by libglom is 16-bits per channel on both
1927 64 and 32-bit platforms.
1929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1931 2011-05-19 Ben Konrath <ben@bagu.org>
1933 Improve performance of initial ListView load.
1935 I removed a round trip to the server for getting the default table name
1936 and then requesting information about that table. This also removes a potential
1937 problem with the table change handler not being setup in time to receive the
1938 table change event from the ListActivity.
1940 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1941 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1942 getDefaultLayoutListTable() method. Improve comments.
1943 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1944 getDefaultLayoutListTable() method instead of firing a table change
1945 event to get the table to load.
1946 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1947 implementation of getDefaultLayoutListTable() method.
1948 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1951 2011-05-19 Ben Konrath <ben@bagu.org>
1953 Override toDebugString() in TableChangeEvent.
1955 This is useful to have for debugging.
1957 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1959 2011-05-19 Ben Konrath <ben@bagu.org>
1961 Add a "Back to List" link when at the DetailsPlace.
1963 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1964 Populate the CellTable based on the selected table of the ListBox if
1965 it's set otherwise use the default table. This allows the "Back to
1967 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1968 Remove Place from constructors. Add a setPlace() method. Add
1969 goToPlace() method. Set class as presenter for TableSelectionView.
1970 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1971 Use the same TableSelectionActivity when switching between the List and
1973 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1974 Subclass the new HasSelectableTablePlace. This removes some duplicate
1976 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1977 New class to represent Places that display the TableSelectionView.
1978 * src/main/java/org/glom/web/client/place/ListPlace.java:
1979 Subclass the new HasSelectableTablePlace. This removes some duplicate
1981 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1982 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1983 Add Presenter interface. Add setBackLinkVisible() method. Add
1984 setBackLink() method.
1986 2011-05-18 Ben Konrath <ben@bagu.org>
1988 Enable the "Details" buttons.
1990 Right now only an empty details view is displayed.
1992 * src/main/java/org/glom/web/client/ClientFactory.java:
1993 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1994 Add DetailsView to ClientFactory.
1995 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1996 A basic activity for the details view.
1997 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1998 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2000 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2001 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2003 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2004 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2005 unnecessary super() in constructor.
2006 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2007 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2008 really shouldn't create a new TableSelectionActivity for both the ListPlace
2009 and the DetailsPlace so this should be considered a temporary solution.
2010 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2011 New file. Represents a URL for the details view.
2012 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2013 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2014 A basic details view interface and implementation.
2015 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2016 Enable the "Details" buttons.
2018 2011-05-12 Ben Konrath <ben@bagu.org>
2020 Use a LayoutPanel with multiple display areas for main layout.
2022 This is mostly a refactor in that there are no changes from the user
2023 point of view. These changes are required so that we can swap out the list view
2024 with the details view when the user clicks the "Details" button.
2026 * src/main/java/org/glom/web/client/ClientFactory.java:
2027 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2028 OnlineGlomView. Add TableSelectionView, ListView and
2029 AuthenticationPopup.
2030 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2031 for main layout. Add display regions for main activities. Add
2032 activity manager for for main activities.
2033 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2034 file from parts of the deleted OnlineGlomActivity.
2035 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2036 New file from parts of the deleted OnlineGlomActivity.
2037 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2038 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2039 New files for app wide table change event.
2040 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2041 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2042 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2043 Activity mappers for the main activities replace the deleted app-wide
2045 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2046 Fix a spelling error in he comment.
2047 * src/main/java/org/glom/web/client/ui/ListView.java:
2048 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2049 Renamed from LayoutListView and modified for MVP. This still not a
2050 proper dumb view as prescribed by the MVP pattern but it works for now.
2051 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2052 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2053 New widget stripped out of the deleted OnlineGlomView.
2054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2055 Remove hack that is fixed by this patch.
2057 2011-05-06 Ben Konrath <ben@bagu.org>
2059 Rename OnlineGlomPlace to ListPlace.
2061 The only change besides the rename is that url will now display #list
2062 instead of #Document.
2064 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2065 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2066 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2067 * src/main/java/org/glom/web/client/place/ListPlace.java:
2068 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2070 2011-05-06 Ben Konrath <ben@bagu.org>
2072 Use Presenter for app navigation.
2074 This is the proper way to deal with Place (URL) changes with the MVP
2077 * src/main/java/org/glom/web/client/ClientFactory.java:
2078 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2079 PlaceHistoryMapper and PlaceHistoryHandler.
2080 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2081 PlaceHistoryMapper and PlaceHistoryHandler.
2082 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2083 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2084 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2085 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2086 Add Presenter interface and setPresenter methods. Rename addHyperLink
2087 to addDocumentLink taking only the document title as a parameter.
2089 2011-04-14 Ben Konrath <ben@bagu.org>
2091 Prompt for db username/password if they haven't been set.
2093 This is implemented with a popup widget that is contained within the
2094 OnlineGlomView and managed by the OnlineGlomActivity.
2096 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2097 methods for checking and setting the database username and password.
2098 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2099 new methods for checking and setting the database username and
2101 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2102 Display authentication popup if the JDBC connection to the database
2103 has not been authenticated.
2104 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2106 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2107 for dealing with the authentication popup.
2108 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2109 Implement the methods for dealing with the authentication popup.
2110 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2111 try to executed queries if the database connection hasn't been
2112 authenticated. Implement methods for checking and setting the
2113 database username and password.
2115 2011-04-12 Ben Konrath <ben@bagu.org>
2117 Make log messages a little clearer.
2119 Add a dash betweeen the document title and the table name.
2121 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2123 2011-04-12 Ben Konrath <ben@bagu.org>
2125 Protect against NPEs when cleaning up database resources.
2127 While this isn't strictly necessary because the exception is caught,
2128 not protecting against the NPEs makes it harder to find the real error
2131 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2133 2011-04-12 Ben Konrath <ben@bagu.org>
2135 Move configuration of the servlet to the constructor.
2137 The servlet will be initialized even if the database authentication
2138 information is not set or correct. I still need to add the UI for prompting
2139 the user for the authentication information when it's required.
2141 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2142 javadocs for getDocumentTitles() method.
2143 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2144 Set error message when RPC fails.
2145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2146 glom files directory from the configuration file. Try to set the
2147 database authentication information for the specific document if it's
2148 set and works otherwise try to use the global authentication
2149 information set for the directory.
2150 * src/main/resources/onlineglom.properties: Moved from
2151 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2152 Added detailed comments for the new keys.
2154 2011-04-11 Ben Konrath <ben@bagu.org>
2156 Remove unnecessary @Override in DocumentSelectionViewImpl.
2158 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2160 2011-04-11 Ben Konrath <ben@bagu.org>
2162 Remove center alignment in DocumentSelectionView.
2164 The title element is still centred but the document titles and bottom
2165 sentence are both left-aligned.
2167 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2169 2011-04-11 Ben Konrath <ben@bagu.org>
2171 Change 'Demo' naming convention to 'Document'.
2173 This is just a rename refactor with no functional changes to the code.
2175 * src/main/java/org/glom/web/client/ClientFactory.java:
2176 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2177 * src/main/java/org/glom/web/client/OnlineGlom.java:
2178 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2179 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2180 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2181 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2182 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2183 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2184 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2185 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2186 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2189 2011-04-08 Ben Konrath <ben@bagu.org>
2191 Remove FIXME from safeLongToInt() method.
2193 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2198 2011-04-08 Ben Konrath <ben@bagu.org>
2200 Display an error if no glom documents are found in the specified directory.
2202 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2203 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2204 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2207 2011-04-08 Ben Konrath <ben@bagu.org>
2209 Add copyright header to one more file ... oops.
2211 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2213 2011-04-08 Ben Konrath <ben@bagu.org>
2215 Add copyright header to files without it.
2217 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2218 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2219 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2220 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2221 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2222 * src/main/java/org/glom/web/shared/GlomField.java:
2224 2011-04-08 Ben Konrath <ben@bagu.org>
2226 Add support for accessing multiple glom documents in the servlet.
2228 This completes the demo selection functionality.
2230 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2231 document title to methods.
2232 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2233 document title to methods.
2234 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2235 Set browser window title when the activity starts. Correct name of
2236 document title variable.
2237 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2238 Set browser window title when the activity starts. Set the table
2239 selector change handler after table selector has been set. Clear the
2240 OnlineGlomView when the activity has been stopped.
2241 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2242 document title as the place token. Use "#Document:" instead of
2243 "#OnlineGlomPlace:" in the URL.
2244 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2245 Change heading to "Online Glom"
2246 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2247 document title in RPC methods.
2248 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2249 setDocumentTitle() method. Add clear() method.
2250 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2251 setDocumentTitle() method. Implement clear() method which removes the
2252 change handler on the ListBox, clears the ListBox and clears the
2254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2255 Implement methods with document title. Keep track for the configured
2256 glom documents and their corresponding JDBC configurations in a hash
2257 table. This information is retrieved using the document title as the
2258 key in the hash table.
2259 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2260 document title field as it's no longer needed.
2262 2011-04-08 Ben Konrath <ben@bagu.org>
2264 Update the Eclipse JDT configuration.
2266 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2267 methods. Automatically add the copyright header to new files.
2269 2011-04-05 Ben Konrath <ben@bagu.org>
2271 Add new page for demo selection.
2273 This patch adds all the components required to view and start an
2274 OnlineGlom demo by clicking on the desired hyperlink. The user is
2275 able to return to the demo selection page with the browser's back
2276 button. I still need to modify the servlet to work with multiple
2277 documents so all demo links will load the file defined in the
2278 OnlineGlom.properties.
2280 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2281 This is only useful during development so we don't need to save it.
2282 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2283 get a reference to the DemoSelectionView.
2284 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2285 method to get a reference to the DemoSelectionView.
2286 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2287 default view to DemoSelectionView.
2288 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2289 to get glom document titles for glom files in a hard-coded directory.
2290 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2291 method to get glom document titles for glom files in a hard-coded
2293 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2294 Presenter for DemoSelectionView.
2295 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2296 for DemoSelectionView.
2297 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2298 Update for DemoSelectionView.
2299 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2300 Basic 'Place' implementation for the DemoSelectionView.
2301 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2302 The interface for the DemoSelectionView.
2303 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2304 The implementation of the DemoSelectionView.
2305 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2306 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2307 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2308 implementation of method to get glom document titles for glom files
2309 in a hard-coded directory.
2310 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2311 on longer being used.
2312 * src/main/webapp/glom.png: Glom logo.
2314 2011-04-05 Ben Konrath <ben@bagu.org>
2316 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2318 This is the forth and final commit of a refactor that will allow
2319 OnlineGlom to be used with multiple documents.
2321 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2322 Move RPC code from OnlineGlomViewImpl to this class.
2323 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2325 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2326 RPC code to the presenter class (the P in MVP).
2328 2011-04-04 Ben Konrath <ben@bagu.org>
2330 Start moving the existing OnlineGlom code to MVP.
2332 This work is based on the GWT MVP framework that is documented here:
2334 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2336 This is the third commit of a refactor that will allow OnlineGlom to
2337 be used with multiple documents.
2339 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2340 Interface for client factory which is used to get instances of various
2341 classes throughout the app.
2342 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2343 Implementation of client factory.
2344 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2345 initialize the MVP framework.
2346 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2347 New file. Activity manager for the main container widget. This is the
2349 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2350 Maps place (URL) to its corresponding activity.
2351 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2352 New file. This is just a place holder for a generated file.
2353 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2354 New file. Represents the URL for the main Online Glom app.
2355 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2356 for changes in LayoutListViewImpl.
2357 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2358 interface for View. Move code to OnlineGlomViewImpl class.
2359 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2360 file. Implementation of OnlineGlomView.
2361 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2362 Place resources. Use ClientFactoryImpl by default.
2364 2011-04-04 Ben Konrath <ben@bagu.org>
2366 Move View classes to their own package.
2368 This is the second commit of a refactor that will allow OnlineGlom to
2369 be used with multiple documents.
2371 * src/main/java/org/glom/web/client/OnlineGlom.java:
2372 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2373 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2375 2011-04-02 Ben Konrath <ben@bagu.org>
2377 Move UI code from the main module to its own class.
2379 This is the first commit of a refactor that will allow OnlineGlom to be
2380 used with multiple documents.
2382 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2383 references to OnlineGlom to OnlineGlomView.
2384 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2385 OnlineGlomView and instantiate it here.
2386 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2387 represents the main OnlineGlomView with one document.
2389 2011-04-01 Ben Konrath <ben@bagu.org>
2391 Fix formatting of gwt.xml and add DTD.
2393 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2395 2011-03-30 Ben Konrath <ben@bagu.org>
2397 Propperly convert gdkColor string to html colour string.
2399 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2401 2011-03-28 Ben Konrath <ben@bagu.org>
2403 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2405 This implementation matches
2406 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2407 readable and is not tied to Swig.
2409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2411 2011-03-28 Ben Konrath <ben@bagu.org>
2413 Use read-only checkboxes for boolean field types.
2415 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2416 in the CellTable based on the field type. It currently only
2417 distinguishes between boolean and text columns but I'll need to add
2418 support for more types.
2419 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2420 column type in the ColumnInfo object. Add method to convert between the
2421 glom field type enum in ColumnInfo and the glom field type in libglom.
2422 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2424 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2425 getting and setting booleans.
2427 2011-03-25 Ben Konrath <ben@bagu.org>
2429 Don't get the Date twice from the ResultSet.
2431 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2433 2011-03-25 Ben Konrath <ben@bagu.org>
2435 Cleanup code in the servlet.
2437 * TODO: Remove item about row count. Add item about testing row count
2438 query with large number of rows.
2439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2440 spelling mistakes, change method parameter to be consistent with
2443 2011-03-25 Ben Konrath <ben@bagu.org>
2445 Add server side logging with the gwt-log library.
2447 * .gitignore: Ignore the log file we're now producing.
2448 * TODO: Add a couple TODO item for logging.
2449 * pom.xml: Add gwt-log and log4j as a dependency.
2450 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2451 logging of errors, warnings and some important info.
2452 * src/main/resources/log4j.properties: New file to configure log4j.
2454 2011-03-24 Ben Konrath <ben@bagu.org>
2456 Add a disable button for the Details view.
2458 * src/main/java/org/glom/web/client/LayoutListView.java:
2460 2011-03-22 Ben Konrath <ben@bagu.org>
2462 Use a count query to get the number of rows for the list view pager.
2464 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2466 2011-03-22 Ben Konrath <ben@bagu.org>
2468 Add more TODO information about CellTable pager positioning.
2472 2011-03-19 Ben Konrath <ben@bagu.org>
2474 Add TODO item about CellTable pager positioning.
2478 2011-03-18 Ben Konrath <ben@bagu.org>
2480 Remove unneeded GlomFieldColumn class.
2482 This is just a small code cleanup.
2484 * src/main/java/org/glom/web/client/LayoutListView.java:
2486 2011-03-18 Ben Konrath <ben@bagu.org>
2488 Use cursor mode in the query that gets data for the list view.
2490 I still need to fix the potential memory problem when getting the row
2491 count for the list view.
2493 * TODO: Add note about testing memory usage with large data sets. Add
2494 item about fixing row counting with large data sets.
2495 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2496 PostgreSQL JDBC driver into cursor mode when getting data for the
2499 2011-03-15 Ben Konrath <ben@bagu.org>
2501 Remove the GWT Container from the Eclipse build classpath.
2503 The GWT dependencies are set by Maven so this isn't needed.
2507 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2509 Added some earlier mockups to git, but not to the tarball dist.
2511 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2512 Openismus. These hopefully show how we might structure the HTML so that
2513 it can be styled easily with CSS. However, we probably need to adapt them
2514 for the CSS structure that GWT dictates for common widgets.
2516 2011-03-14 Ben Konrath <ben@bagu.org>
2518 Locate OnlineGlom.properties using the ServletContext.
2520 This is required to be able to locate the file in the deployed servlet.
2522 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2523 Configure the database and glom document in in a helper method so
2524 that the ServletContext can be used to locate OnlineGlom.properties.
2525 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2526 src/main/webapp. This is the proper location for .properites files.
2528 2011-03-12 Ben Konrath <ben@bagu.org>
2530 Add note to README about why we're compiling down to obfuscated JavaScript.
2534 2011-03-11 Ben Konrath <ben@bagu.org>
2536 Use properties file to configure servlet.
2538 This allows people to change the glom file path, db username and db
2539 password without recompiling the code.
2541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2542 * src/main/webapp/OnlineGlom.properties:
2544 2011-03-11 Ben Konrath <ben@bagu.org>
2546 Use table fields in layout list view if the layout list is not defined.
2548 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2549 Manually create a LayoutFieldVector for the query builder using the
2550 table fields when a layout list is not defined in the glom file.
2552 2011-03-11 Ben Konrath <ben@bagu.org>
2554 Only show FIXME string for images when there's an image.
2556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2557 in this change are some small code cleanups.
2559 2011-03-11 Ben Konrath <ben@bagu.org>
2561 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2565 2011-03-11 Ben Konrath <ben@bagu.org>
2567 Correctly set the index of the default table.
2569 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2570 Correctly set the index of the default table. Add commented out example
2573 2011-03-10 Ben Konrath <ben@bagu.org>
2575 Add comment to pom.xml about the previous change.
2577 * pom.xml: Add comment about the deployment issue so that it's obvious
2578 why java-libglom is set to the provided scope.
2580 2011-03-10 Ben Konrath <ben@bagu.org>
2582 Change java-libglom dependency from compile to provided in pom.xml.
2584 Since java-libglom uses jni it can only be loaded once and therefore
2585 must be placed in $CATALINA_HOME/lib and not included in each war.
2586 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2587 More information about this issue can be found in the Tomcat 6 release
2588 notes in the "JNI Based Applications" section:
2590 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2592 * README: Remove note about this issue. Deployment info should really
2593 be on the wiki anyway so I'll add it right now.
2594 * pom.xml: Change java-libglom dependency from compile to provided so
2595 that it's copied in to the packaged war.
2597 2011-03-09 Ben Konrath <ben@bagu.org>
2599 Change to using a neutral locale for currency, date and time formatting.
2601 This solves the problem of currency values being represented without a
2602 space between the currency code and the number (e.g. "EUR5.89" is now
2603 represented as "EUR 5.89"). More work is required when we implement
2604 a locale preference setting.
2606 * TODO: Add note about currency formatting issues with different
2608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2609 to using the neutral ROOT locale.
2611 2011-03-09 Ben Konrath <ben@bagu.org>
2613 Add support for currency codes that are not ISO 4217 codes.
2615 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2616 the currency code defined in the glom file when it's not 3 characters
2617 long or when Java doesn't recognize the string as an ISO 4217 code.
2619 2011-03-08 Ben Konrath <ben@bagu.org>
2621 Remove test classes, launch configurations and configuration.
2623 The test stuff was getting in the way when creating the war. To make
2624 the war file you can now do 'mvn clean package'. The packaged war file
2625 will be in the target directory.
2627 * .classpath: Remove unused classpathentry for tests and i18n.
2628 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2629 property. Don't run test or i18n goals when packaging the war.
2630 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2635 * OnlineGlomTest-dev.launch:
2636 * OnlineGlomTest-prod.launch:
2637 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2638 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2640 2011-03-07 Ben Konrath <ben@bagu.org>
2642 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2644 These fixes allow me to use 'mvn deploy' to create the war file.
2646 * .classpath: This generated config has been updated by Eclipse. This
2647 change was probably triggered by me updating from Eclipse 3.6.1 to
2649 * .gitignore: Add entry to ignore the directory
2650 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2651 * .project: The generated config has been updated by Eclipse. This
2652 change was probably triggered by me updating from Eclipse 3.6.1 to
2654 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2655 so that Eclipse doesn't complain
2656 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2657 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2658 'tests' directory to 'client' directory. This is the new
2659 gwt-maven-plugin convension.
2660 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2661 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2663 2011-03-07 Ben Konrath <ben@bagu.org>
2665 Add support for horizontal alignment in the LayoutList columns.
2667 * TODO: Remove item about horizontal alignment. Add item about
2668 improvements to ColumnInfo.
2669 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2670 alignment on the columns. Use ColumnInfo RPC object get the column
2671 title and horizontal alignment.
2672 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2673 LayoutListView creation with ColumnInfo RPC object.
2674 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2675 a ColumnInfo object for every LayoutList columnn. Convert the
2676 FieldFormatting.HorizontalAlignment to the correct
2677 ColumnnInfo.HorizontatlAlignment with the new
2678 getColumnInfoHorizontalAlignment helper method.
2679 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2680 to encapsulate column information like alignment and title. This
2681 could be used to set the colour instead of on a per cell field basis.
2682 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2683 column title storage and retrieval with ColumnInfo.
2685 2011-03-04 Ben Konrath <ben@bagu.org>
2687 Add support for column sorting.
2689 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2690 AsynDataProvider to be an anonymous inner class. Use new
2691 getSortedTableData RPC method when column sort is requested. Set all
2692 columns sortable and add an AsyncHandler to activate sorting in the
2694 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2695 method getSortedTableData(). Cleanup other method signatures.
2696 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2697 new method getSortedTableData(). Cleanup other method signatures.
2698 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2699 Implement getSortedTableData() and getTableData() methods by using a
2700 private helper method with the appropriate parameters filled in. Use
2701 user supplied sort clause when supplied, otherwise fall back to
2702 sorting by the primary key. Move destroy() method to be underneath
2703 constructor for readability. Cleanup comments.
2705 2011-03-03 Ben Konrath <ben@bagu.org>
2707 Add support for colour text and colour backgrounds to the layout list cells.
2709 Only the cell backgrounds are coloured which leaves a gap between the
2710 cells that isn't coloured. I need to figure out a way to set
2711 'style=background-colour:' on the whole column rather than just the
2714 * TODO: Add a note about colouring the background of the whole column.
2715 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2716 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2717 render the coloured text and backgrounds. Use GlomField[] for the row type.
2718 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2720 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2721 GlomField[] for the row type.
2722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2723 GlomField[] for the row type. Set the text, text colour and background
2724 colour in the GlomField objects as specified in the glom document. Add
2725 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2726 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2727 the glom field text, foreground colour and background colour.
2729 2011-03-02 Ben Konrath <ben@bagu.org>
2731 Don't display hidden tables in the combo box.
2733 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2736 code to ignore hidden tables using ArrayLists for the table names and
2738 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2739 tableNames to use ArrayLists instead of String[]. Update getter and setter
2742 2011-03-01 Ben Konrath <ben@bagu.org>
2744 Add support for Date and Time number types.
2746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2747 Implement formatting for Date and Time values. Change the default glom
2748 file to small business example.
2750 2011-03-01 Ben Konrath <ben@bagu.org>
2752 Add support for formatting glom types as specified in the glom file.
2754 Formatting isn't finished yet - I still need to add support for Date
2757 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2758 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2759 checks for null values in JDBC cleanup code and catch all exceptions
2760 instead of just SQLExceptions.
2761 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2764 2011-03-01 Ben Konrath <ben@bagu.org>
2766 Use GWT 2.2.0 instead of 2.1.1.
2768 * pom.xml: Change GWT version numbers.
2770 2011-03-01 Ben Konrath <ben@bagu.org>
2772 A few small code cleanups.
2774 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2776 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2777 unnecessary object creation in constructor.
2778 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2779 unnecessary object creation in constructor.
2781 2011-02-28 Ben Konrath <ben@bagu.org>
2783 Add file for TODO list.
2787 2011-02-18 Ben Konrath <ben@bagu.org>
2789 Enable the CellTable Pager when more than 20 rows need to be viewed.
2791 The Pager will automatically become active when the results are larger
2792 than the CellTable size which is currently set to 20 lines.
2794 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2795 name on debug statment in RPC call in LayoutListDataProvider, add
2796 numRows parameter to LayoutListView constructor, propperly set rowCount
2798 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2799 name on debug statment in RPC call, use LayoutListTable object in RPC
2800 calls, pass rowCount to LayoutListView.
2801 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2802 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2804 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2805 interface for changes in OnlineGlomService.
2806 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2807 getLayoutListHeaders() to getLayoutListTable() and return
2808 LayoutListTable. Using this object allows me to pass other information
2809 about the LayoutList like the expected number of rows in the result set.
2810 The Connection object from the connection pool is now propperly closed.
2811 Only the requested number of lines are returned to the client in
2813 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2814 GlomTable and add columnTitles and numRows.
2816 2011-02-18 Ben Konrath <ben@bagu.org>
2818 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2820 This is a small performance boost. I'll use GlomTable to get the required
2821 layoutlist information.
2823 * src/main/java/org/glom/web/client/OnlineGlom.java:
2824 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2825 * src/main/java/org/glom/web/shared/GlomDocument.java:
2827 2011-02-18 Ben Konrath <ben@bagu.org>
2829 Add option to turn off formatting in JDT formatter preferences.
2831 * .settings/org.eclipse.jdt.core.prefs:
2833 2011-02-18 Ben Konrath <ben@bagu.org>
2835 Rename LayoutList to LayoutListView.
2837 I'm working towards setting things up to easily use MVP when the time
2840 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2842 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2845 2011-02-17 Ben Konrath <ben@bagu.org>
2847 Move LayoutListDataProvider class into LayoutList.java.
2849 * src/main/java/org/glom/web/client/LayoutList.java:
2851 2011-02-17 Ben Konrath <ben@bagu.org>
2853 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2855 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2857 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2858 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2859 from LibGlomServer.java.
2860 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2861 Rename from LibGlomServiceAsync.java.
2862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2863 Rename from LibGlomServiceImpl.java.
2864 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2866 2011-02-17 Ben Konrath <ben@bagu.org>
2868 Update JDT settings.
2870 * .settings/org.eclipse.jdt.core.prefs:
2872 2011-02-17 Ben Konrath <ben@bagu.org>
2874 Move GWT-RPC objects to shared package (where they should be).
2876 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2877 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2878 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2879 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2880 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2881 org.glom.web.shared package.
2882 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2883 org.glom.web.shared package.
2884 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2885 directory in compilation to javascript.
2887 2011-02-16 Ben Konrath <ben@bagu.org>
2889 Add sort clause to the sql query that grabs table information.
2891 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2892 if one of the columns is a primary key.
2894 2011-02-16 Ben Konrath <ben@bagu.org>
2896 Disable generateAsync feature of gwt-maven.
2898 The generated interface does not correctly match the methods in LibGlomService
2899 and the generated singleton Util inner-class doesn't respect the servlet
2902 * pom.xml: Turn off generateAsync feature.
2903 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2904 with singleton Util inner-class.
2906 2011-02-14 Ben Konrath <ben@bagu.org>
2908 Add LGPL v3 licence notices.
2910 Followed directions listed here:
2911 http://www.gnu.org/licenses/gpl-howto.html
2913 * COPYING: This file is a copy of the GPL v3.
2914 * COPYING.LESSER: This file is a copy of the LGPL v3.
2915 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2917 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2919 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2921 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2923 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2925 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2927 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2930 2011-02-14 Ben Konrath <ben@bagu.org>
2932 Use ArrayList instead of Array in GWT-RPC calls.
2934 Apparently this gives a slight performance boost to the compiled
2937 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2939 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2942 2011-02-14 Ben Konrath <ben@bagu.org>
2944 Access data from a postgres db rather than the example glom file.
2946 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2947 compile down to obfuscated javascript.
2948 * pom.xml: Add c3p0 and postgres JDBC libraries.
2949 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2950 using a postgres db accessed through the c3p0 connection pooling library.
2952 2011-02-14 Ben Konrath <ben@bagu.org>
2954 Update Java formatter settings.
2956 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2958 2011-02-02 Ben Konrath <ben@bagu.org>
2960 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2962 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2964 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2965 the compiled webapp directory that Eclipse uses as we're using Maven now.
2966 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2967 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2969 * pom.xml: Format file, change target Java version to 1.6.
2971 2011-02-02 Ben Konrath <ben@bagu.org>
2973 Add information about a deployment related issue.
2975 * README: Add Notes section with the problem outlined.
2977 2011-02-02 Ben Konrath <ben@bagu.org>
2979 Call Glom.libglom_deinit() when the servlet is shutdown.
2981 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2982 Glom.libglom_deinit() to destroy() method.
2984 2011-01-28 Ben Konrath <ben@bagu.org>
2986 Use generated Util class to get the RPC Async interface.
2988 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2990 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2991 getInstance() method to get a reference to the RPC Async interface.
2992 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2993 getInstance() method to get a reference to the RPC Async interface, remove
2994 the now unused getLibGlomServiceProxy() method.
2996 2011-01-27 Ben Konrath <ben@bagu.org>
2998 Cleanup ChangeLog entry from previous commit.
3000 * ChangeLog: Group logical changes together and add comments.
3002 2011-01-25 Ben Konrath <ben@bagu.org>
3004 Convert to gwt-maven project.
3006 * .gitignore: Update for new project structure.
3007 * README: New file with a link to the online documentation.
3008 * pom.xml: The generated maven configuration file with some tweaks.
3010 Add / update Eclipse settings. These files are a merge of the files that
3011 were generated with the gwt-maven plugin and the files we were previously
3015 * .settings/.jsdtscope:
3016 * .settings/com.google.gdt.eclipse.core.prefs:
3017 * .settings/com.google.gwt.eclipse.core.prefs:
3018 * .settings/org.eclipse.jdt.core.prefs:
3019 * .settings/org.eclipse.wst.common.component:
3020 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3021 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3022 * .settings/org.maven.ide.eclipse.prefs:
3023 * OnlineGlomTest-dev.launch:
3024 * OnlineGlomTest-prod.launch:
3026 Java source files moved from the 'src' directory to the directory structure
3028 * src/main/java/org/glom/web/client/GlomDocument.java:
3029 * src/main/java/org/glom/web/client/GlomTable.java:
3030 * src/main/java/org/glom/web/client/LayoutList.java:
3031 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3032 * src/main/java/org/glom/web/client/LibGlomService.java:
3033 * src/main/java/org/glom/web/client/OnlineGlom.java:
3034 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3036 Non-functional property file used for translations. I included this as
3037 reminder that it's something I need to sort out.
3038 * src/main/resources/org/glom/web/client/Messages.properties:
3040 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3041 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3043 The servlet configuration files moved from the 'war' directory.
3044 * src/main/webapp/OnlineGlom.css:
3045 * src/main/webapp/OnlineGlom.html:
3046 * src/main/webapp/WEB-INF/web.xml:
3048 Generated test files with most of the code commented out. I included these
3049 so that it's easy to add tests when we're ready for them.
3050 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3051 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3053 2011-01-25 Ben Konrath <ben@bagu.org>
3055 Remove unused println.
3057 * src/org/glom/web/server/LibGlomServiceImpl.java:
3059 2011-01-25 Ben Konrath <ben@bagu.org>
3061 Add project specific JDT settings.
3063 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3064 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3066 2011-01-25 Ben Konrath <ben@bagu.org>
3068 Populate celltable with example data.
3070 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3071 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3072 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3073 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3074 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3075 asynchronously gets the example data.
3076 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3077 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3078 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3079 curently selected table to be retrieved by other widgets.
3080 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3081 implement getTableData() in a hacky way. This method needs to be updated
3082 to grab information from the database when database creating is
3085 2011-01-20 Ben Konrath <ben@bagu.org>
3087 Set table headers when table dropBox changes.
3089 * src/org/glom/web/client/GlomDocument.java: Correct some method
3091 * src/org/glom/web/client/LibGlomService.java: Add method
3092 to get list layout field names.
3093 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3094 to get list layout field names.
3095 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3096 widget for list layout table.
3097 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3098 the table drop box and add new updateTable() method to asynchronously
3099 get the layout list field names for the currently selected table.
3100 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3101 implementation of getLayoutListHeaders() method.
3102 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3104 2011-01-18 Ben Konrath <ben@bagu.org>
3106 Make a listBox with table titles instead of the flexTable demo.
3108 This is the start of something more useful.
3110 * .classpath: Exclude a bunch of packages from the JVM that are
3111 getting in the way of the Eclipse content assist.
3112 * src/org/glom/web/client/GlomDocument.java:
3113 * src/org/glom/web/client/GlomTable.java:
3114 * src/org/glom/web/client/LibGlomService.java:
3115 * src/org/glom/web/client/LibGlomServiceAsync.java:
3116 * src/org/glom/web/client/OnlineGlom.java:
3117 * src/org/glom/web/server/LibGlomServiceImpl.java:
3118 * war/OnlineGlom.html:
3119 * war/WEB-INF/web.xml:
3121 211-01-13 Ben Konrath <ben@bagu.org>
3123 Update to new java-libglom API.
3125 * .gitignore: Ignore OnlineGlom.war.
3126 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3128 2010-12-20 Ben Konrath <ben@bagu.org>
3130 Add some basic style to the table listing.
3132 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3133 header, print useful error message on async callback failure.
3134 * war/OnlineGlom.css: Add style for table header, remove defaults
3135 provided by the Eclipse project wizard.
3137 2010-12-20 Ben Konrath <ben@bagu.org>
3139 Load example file from installed glom dir.
3141 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3142 provided by java-libglom to find the example file.
3144 2010-12-20 Ben Konrath <ben@bagu.org>
3146 Update Eclipse settings.
3149 * .settings/com.google.gdt.eclipse.core.prefs:
3150 * .settings/com.google.gwt.eclipse.core.prefs:
3152 2010-12-17 Ben Konrath <ben@bagu.org>
3156 * .classpath: New file.
3157 * .gitignore: New file.
3158 * .project: New file.
3159 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3160 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3161 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3162 * src/org/glom/web/client/GlomTable.java: New file.
3163 * src/org/glom/web/client/OnlineGlom.java: New file.
3164 * src/org/glom/web/client/TableNameService.java: New file.
3165 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3166 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3167 * war/OnlineGlom.css: New file.
3168 * war/OnlineGlom.html: New file.
3169 * war/WEB-INF/web.xml: New file.
3170 * war/images/glom.png: New file.