1 2011-12-05 Ben Konrath <ben@bagu.org>
3 Properly support related list navigation.
5 Navigation from the "Repository Analyzer -> Package Scans ->
6 Dependencies" related table wasn't working because the primary key for
7 related tables wasn't being set properly. This commit fixes the
10 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
11 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
12 doesn't set the primary key properly for related list tables.
13 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
14 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
15 useful for getting the primary key for list view tables and for related
17 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
18 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
19 Move code to set the primary key for the table from the abstract
20 ListDBAccess class to ListViewDBAccess as it's only correct for list
22 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
23 Properly add primary key to related list tables.
25 2011-12-02 Ben Konrath <ben@bagu.org>
27 Properly set the horizontal alignment of fields.
29 This fix is for both the list tables and the details view.
31 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
32 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
33 to set the horizontal alignment of fields.
35 2011-12-02 Ben Konrath <ben@bagu.org>
37 Display currency codes in the details view.
39 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
41 2011-12-02 Ben Konrath <ben@bagu.org>
43 Avoid duplicate JNI call.
45 JNI is not as efficient as pure Java and this is an easy (and small)
48 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
49 Use previously retrieved value for whereClauseToTableName instead of
52 2011-12-02 Ben Konrath <ben@bagu.org>
54 Rename a couple of variables in RelatedListNavigation.
56 This is a rename-only refactor.
58 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
60 2011-12-02 Ben Konrath <ben@bagu.org>
62 Indicate clearly that a mismatched primary key type is a bug.
64 * src/main/java/org/glom/web/server/Utils.java: Change log level from
65 warning to error. Add 'This is a bug.' to message.
67 2011-12-02 Ben Konrath <ben@bagu.org>
69 Update / fix some comments.
71 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
73 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
75 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
76 Fix comments. Add some TODOs.
78 2011-12-02 Ben Konrath <ben@bagu.org>
80 Enable navigation to details view with string primary key from related list.
82 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
83 Create a text primary key value when return type of result is
84 java.sql.Types.VARCHAR.
86 2011-12-02 Ben Konrath <ben@bagu.org>
88 Use checkboxes for booleans in the details view.
90 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
92 2011-12-01 Ben Konrath <ben@bagu.org>
94 Improve performance of related list height calculation.
96 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
97 Put code to calculate the expected height in a static initializer so
98 that that it's only called once.
100 2011-12-01 Ben Konrath <ben@bagu.org>
102 Show related list tables in notebooks (again).
104 Calculate the height of the related list tables so the Notebook can be
105 set the correct height. The height of the related list table is also needed by
106 FlowTable to be able decide how to create the layout.
108 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
109 and set the Portal height based on the height of the related list
110 table and the Portal container.
111 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
112 Add method to calculate the height of the related list tables.
113 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
114 * src/main/webapp/style.css: Add css class for Pager. This is needed to
115 calculate the height of the Pager widget.
117 2011-12-01 Ben Konrath <ben@bagu.org>
119 Use CellTable API for table property instead of setting style on Element.
121 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
123 2011-12-01 Ben Konrath <ben@bagu.org>
125 Make ListViewTable and RelatedListTable a consistent height.
127 The tables are now a consistent height regardless of the contents of
128 the table. A hidden button is added to empty rows to ensure that the
129 height of these rows will match the height of rows with data.
131 A navigation button column is now added to every table. The width of
132 the navigation column is set to 0px when a RelatedListTable shouldn't
133 have navigation buttons. This maintains the a consistent row height in
134 tables that don't show the navigation buttons.
136 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
137 navigation column when not needed.
138 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
139 arguments for navigation button to constructor of ListViewTable.
140 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
141 hidden button for empty data rows.
142 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
143 arguments for navigation button to constructor.
144 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
145 create navigation buttons. Add hideNavigationButtons() method.
146 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
147 arguments for navigation button to constructor.
149 2011-12-01 Ben Konrath <ben@bagu.org>
151 Use 'visibility: hidden' in Utils.getWidgetHeight().
153 This is better choice because hidden elements are invisible, don't
154 respond to events and are not part of the tab order. They will,
155 however, take up space which is required to be able to calculate the
156 height of the widget.
158 * src/main/java/org/glom/web/client/Utils.java:
160 2011-12-01 Ben Konrath <ben@bagu.org>
162 Use Utils.getWidgetHeight() in FlowTable.
164 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
166 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
168 2011-12-01 Ben Konrath <ben@bagu.org>
170 Put the details css class name on the correct table column.
172 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
174 2011-11-30 Ben Konrath <ben@bagu.org>
176 Update for java-libglom API change.
178 The getters and setters on FieldFormatting and NumericFormat were
179 changed to remove the 'M'.
181 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
183 2011-11-29 Ben Konrath <ben@bagu.org>
185 Only allow RelatedListTables in Portals.
187 * src/main/java/org/glom/web/client/ui/details/Portal.java:
189 2011-11-29 Ben Konrath <ben@bagu.org>
191 Only create a contents panel for Portals when title is being set.
193 * src/main/java/org/glom/web/client/ui/details/Portal.java:
195 2011-11-29 Ben Konrath <ben@bagu.org>
197 Set TabLayoutPanel height based on calculated height its widgets.
199 This is a potential fix for this bug:
201 https://bugzilla.gnome.org/show_bug.cgi?id=665133
203 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
205 2011-11-29 Ben Konrath <ben@bagu.org>
207 Align details field labels and data with the Open buttons.
209 * src/main/webapp/style.css:
211 2011-11-29 Ben Konrath <ben@bagu.org>
213 Remove unnecessary <div> in the Notebook widget.
215 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
216 method to get container FlowPanel (<div>).
217 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
218 initWidget() method directly on the TabLayoutPanel widget instead of
219 Group's container widget.
221 2011-11-29 Ben Konrath <ben@bagu.org>
223 Don't add group titles for Portals in Notebooks.
225 This reverts the previous patch and fixes a bug I introduced with
226 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
228 * src/main/java/org/glom/web/client/ui/details/Group.java:
229 * src/main/java/org/glom/web/client/ui/details/Portal.java:
231 2011-11-28 Ben Konrath <ben@bagu.org>
233 Remove unused boolean argument in Portal constructor.
237 * src/main/java/org/glom/web/client/ui/details/Group.java:
238 * src/main/java/org/glom/web/client/ui/details/Portal.java:
240 2011-11-28 Ben Konrath <ben@bagu.org>
242 Remove hack for glom 1.18 style glom files.
244 * src/main/java/org/glom/web/client/ui/details/Group.java:
245 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
246 * src/main/java/org/glom/web/client/ui/details/Portal.java:
248 2011-11-28 Ben Konrath <ben@bagu.org>
250 Use Gda Value version of primary key to log result too large error.
252 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
254 2011-11-28 Ben Konrath <ben@bagu.org>
256 Don't use TypedDataItem.getText() for Unknown types from the URL.
258 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
259 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
260 instead of getText().
261 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
262 String field and getUnknown() method.
264 2011-11-28 Ben Konrath <ben@bagu.org>
266 Log an error message when the java-libglom .so is not present.
268 The error message was being set in the exception but not logged.
270 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
272 2011-11-28 Ben Konrath <ben@bagu.org>
274 Ignore LayoutItem_CalendarPortals.
276 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
277 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
279 2011-11-28 Ben Konrath <ben@bagu.org>
281 Extract method for creating the LayoutItemPortal DTO.
283 Just breaking the code up into smaller chunks.
285 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
287 2011-11-28 Ben Konrath <ben@bagu.org>
291 This should have been added with the refactor. Oops!
293 * src/main/java/org/glom/web/shared/TypedDataItem.java:
295 2011-11-28 Ben Konrath <ben@bagu.org>
297 Create primary key value from URL string using type from Glom document.
299 See this bug, comments 19 - 25:
301 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
303 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
304 create a TypeDataItem for the primary key here when loading from a
305 URL. Show the same string for the primary key value as was received
306 from the URL string (when loading from a URL).
307 * src/main/java/org/glom/web/server/Utils.java: Update method for
308 creating the Gda Value from the TypeDataItem to properly deal with
309 creating a Gda Value based on the Glom document type for the primary
310 key value string when loading from a URL.
311 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
312 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
313 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
314 Update for changed method name.
316 2011-11-27 Ben Konrath <ben@bagu.org>
318 Rename PrimaryKeyItem to TypedDataItem.
320 The name PrimaryKeyItem suggests what the class should be used for.
321 TypedDataItem is a neutral name that describes the class better.
323 This is a rename-only refactor.
325 * src/main/java/org/glom/web/client/OnlineGlomService.java:
326 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
327 * src/main/java/org/glom/web/client/Utils.java:
328 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
329 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
330 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
331 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
332 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
333 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
334 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
335 * src/main/java/org/glom/web/server/Utils.java:
336 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
337 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
338 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
339 * src/main/java/org/glom/web/shared/NavigationRecord.java:
341 2011-11-25 Ben Konrath <ben@bagu.org>
343 Improve Gda Value conversion from PrimaryKeyItem.
345 The value from the PrimaryKeyItem is only used if its type match the
346 type from the glom document.
348 * src/main/java/org/glom/web/server/Utils.java:
350 2011-11-25 Ben Konrath <ben@bagu.org>
352 Manually check if the java-liblgom .so is visible to the JVM.
354 It seems that Tomcat has problems when a static initializer throws an
355 exception. This check is done before the first method call into
356 java-libglom so that execution doesn't continue if the .so is not
359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
361 2011-11-25 Ben Konrath <ben@bagu.org>
363 Improve browser configuration error messages.
367 https://bugzilla.gnome.org/show_bug.cgi?id=662792
369 * src/main/java/org/glom/web/client/OnlineGlomService.java:
370 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
371 getConfigurationErrorMessage() method.
372 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
373 Get and display a specific configuration error message when no Glom
375 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
376 Implement getConfigurationErrorMessage() method. Surround configuration
377 code in the init() method with a try/catch block. This allows the
378 errors to be caught while keeping the servlet available to retrieve the
379 configuration error message.
381 2011-11-25 Ben Konrath <ben@bagu.org>
383 Don't use Strings to hold primary key values.
385 The primary key values are now held in a new data object
386 (PrimaryKeyItem) that holds type information and the primary key value
387 using the correct type.
389 * src/main/java/org/glom/web/client/OnlineGlomService.java:
390 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
391 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
392 PrimaryKeyItem instead of String to hold the primary key value.
393 * src/main/java/org/glom/web/client/Utils.java: Remove
394 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
395 PrimaryKeyItem based on the GlomFieldType and the DataItem.
396 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
397 PrimaryKeyItem instead of String to hold the primary key value. Load
398 document selection page when the documentID has not been set correctly.
399 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
400 DetailsPlace -> URL and URL -> DetailsPlace conversion with
402 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
403 Return empty string for URL instead of "null".
404 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
405 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
406 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
407 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
408 PrimaryKeyItem instead of String to hold primary key values.
409 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
410 PrimaryKeyValue to a Gda Value.
411 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
412 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
413 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
414 Replace temporary database access code that uses the PrimaryKeyValue to
415 Gda Value conversion.
416 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
417 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
418 PrimaryKeyItem instead of String.
419 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
420 hold primary key values.
422 2011-11-24 Ben Konrath <ben@bagu.org>
424 Use newly added java-libglom API to create queries.
426 This isn't finished. I still need to stop using Strings for primary key
427 values in the client code.
429 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
430 libglom to use fake connections so that retrieving the query string will
432 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
433 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
434 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
435 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
436 Use the newly added libglom sql methods and classes to create the
437 query. Add temporary hack to convert primary value strings to Gda
440 2011-11-23 Ben Konrath <ben@bagu.org>
442 Don't explicitly set the height of Portals.
444 See comments 6 - 10 of this bug for details:
446 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
448 * src/main/java/org/glom/web/client/ui/details/Portal.java:
450 2011-11-23 Ben Konrath <ben@bagu.org>
452 Use an HTML table instead of CSS for the FlowTable layout.
454 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
455 GWT's FlexTable to implement the FlowTable.
456 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
458 2011-11-18 Ben Konrath <ben@bagu.org>
460 Add boolean example to HTML table mockup.
462 * mockups/details-view-html-tables-text-entries.html:
464 2011-11-17 Ben Konrath <ben@bagu.org>
466 Ensure the pager buttons are always visible for related lists.
468 To accomplish this, I've turned off text wrapping in the list view and
469 related list tables for both the header and data text. The related list
470 table now has a fixed layout so the it doesn't overflow its container.
471 This is required to ensure that the cell text is clipped when it
472 overflows the cell and an ellipsis is added to the right side of the
473 cell when text is clipped.
475 A fixed table layout for the related list table in the details view
476 seems what we want for the details view anyway, so the side-effect is
479 The ellipsis will only be displayed in Firefox >= 7.
483 https://bugzilla.gnome.org/show_bug.cgi?id=662930
485 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
486 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
487 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
489 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
490 Set the 'table-layout: fixed' CSS property to the related list table.
491 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
492 'white-space: nowrap;' CSS property on both the list view and the
495 2011-11-16 Ben Konrath <ben@bagu.org>
497 Rework the fix for empty notebook tab labels.
499 Setting the empty group titles with its name caused problems for the
500 details layout. Instead of using libglom's
501 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
502 to the client when the title is empty. This allows the Notebook to use
503 the name when the title is empty without affecting anything else.
505 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
506 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
508 2011-11-16 Ben Konrath <ben@bagu.org>
510 Set group titles with name when title is empty.
512 This fixes a problem with an empty notebook tab label in the Lesson
513 Planner document. The forth tab in the notebook should be "Internet":
515 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
517 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
518 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
521 2011-11-16 Ben Konrath <ben@bagu.org>
523 Remove whitespace from the configured username properties.
525 This assumes that usernames won't have whitespace at the beginning
526 or end. But I think this is a reasonable assumption.
528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
529 String.trim() to remove the whitespace from the username properties.
531 2011-11-15 Ben Konrath <ben@bagu.org>
533 Add details view mockup with HTML tables and text entries.
535 This is from the attachment on this bug:
537 https://bugzilla.gnome.org/show_bug.cgi?id=663109
539 * mockups/details-view-html-tables-text-entries.html:
541 2011-11-15 Ben Konrath <ben@bagu.org>
543 Add space between the columns of the flow table.
547 https://bugzilla.gnome.org/show_bug.cgi?id=662918
549 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
550 space between columns in the flow table.
552 2011-11-15 Ben Konrath <ben@bagu.org>
554 Add backup files to the .gitignore.
556 * .gitignore: Ignore files that end with ~.
558 2011-11-09 Ben Konrath <ben@bagu.org>
560 Use latest release of gwt-log.
562 Gwt-log releases are now being submitted to the maven central
563 repository so manual installation of the jar is no longer required.
565 * pom.xml: Update version and groupId of gwt-log dependency.
567 2011-10-31 Ben Konrath <ben@bagu.org>
569 Don't use GWT numeric formatting to override the glom currency formatting.
571 Currencies are now displayed like they are in Glom. See this bug:
573 https://bugzilla.gnome.org/show_bug.cgi?id=646216
575 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
577 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
578 currency code to constructor and set it when the cell is rendered.
579 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
580 currency code to the constructor of the NumericCell.
582 2011-10-27 Ben Konrath <ben@bagu.org>
584 Require the latest release of java-libglom (1.17.4).
588 2011-10-26 Ben Konrath <ben@bagu.org>
590 Add style to Notebook that matches current theme.
592 It's not the best style in the world but it's better than the default.
594 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
595 padding at the bottom of the child widgets.
596 * src/main/webapp/style.css: Add style for the Notebook.
598 2011-10-26 Ben Konrath <ben@bagu.org>
600 Move servlet initialization code to overridden init method.
602 This is half of the solution to getting proper error messages
603 displayed when configuration errors occur. Here's the relevant bug:
605 https://bugzilla.gnome.org/show_bug.cgi?id=662792
607 The rest of the solution involves surrounding the init method with a
608 try/catch block and setting a global variable with the error /
609 exception. A new async method should be created to retrieve and display
610 the error message / exception.
612 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
613 code from constructor to init method adding exceptions as needed.
615 2011-10-26 Ben Konrath <ben@bagu.org>
617 Add script to monitor and restart tomcat if required.
619 * utils/check-and-recover-tomcat.py: New file.
621 2011-10-26 Ben Konrath <ben@bagu.org>
623 Display the correct number of data items in the pager.
627 https://bugzilla.gnome.org/show_bug.cgi?id=661441
629 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
630 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
631 The implementation is the same for both tables: Keep track of the
632 number of non-empty rows and fire and RowCountChangeEvent after the data has
634 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
635 custom Pager class that subclasses SimplePager to handle displaying
636 the correct number when empty rows have been added.
638 2011-10-26 Ben Konrath <ben@bagu.org>
640 Correct error in previous commit.
642 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
643 eventBus parameter from listView.setCellTable().
645 2011-10-26 Ben Konrath <ben@bagu.org>
647 Fix error in TODO comment.
649 * src/main/java/org/glom/web/client/activity/ListActivity.java:
651 2011-10-24 Ben Konrath <ben@bagu.org>
653 Create Notebook widgets to the details view.
655 This isn't finished just yet - I still need to create a reasonable
656 style to match the current theme.
658 * src/main/java/org/glom/web/client/Utils.java: Add method for
659 calculating the height of a widget. This is used in the Notebook class.
660 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
661 new constructor method in Group.
662 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
663 method for creating child widget that can be used by subclasses
664 like Notebook. New constructor that allows disabling the group
665 titles - Notebooks don't set a group title for their child groups.
666 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
667 to make Notebooks using GWT's TabLayoutPanel.
668 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
669 constructor that allows disabling the group titles.
670 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
671 LayoutItemNotebook DTO.
672 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
673 DTO for Notebooks. It's just an empty class for now but we might need
674 it to transfer some specific information in the future.
676 2011-10-21 Ben Konrath <ben@bagu.org>
678 Add navigation buttons to related list tables.
680 * src/main/java/org/glom/web/client/OnlineGlomService.java:
681 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
682 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
683 method getSuitableRecordToViewDetails() for getting the table name
684 and primary key value for related list navigation buttons.
685 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
686 private cell renderer class to get the navigation information for
687 related list tables from the server. Extract the navigation
688 processing code from the details cell navigation and use it for the
689 related list navigation as well.
690 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
691 cell renderer class for the details open buttons. This was needed
692 because the related list navigation buttons and the list view
693 navigation buttons need to react differently when clicked.
694 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
695 the onEnterKeyDown() method because it's now overriden in the
696 subclasses that are specific to the related list tables and the list
698 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
699 the vertical size a little because the buttons add a bit of vertical
700 space to table. This is not a perfect solution because the vertical
701 size of with table fewer than 5 rows will be a little smaller.
702 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
703 changes in how navigation buttons are handled.
704 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
705 getSuitableRecordToViewDetails() using the new RelatedListNavigation
706 database access object.
707 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
708 to find the portal for a given relationship name from
709 RelatedListDBAccess. Add method to find a primary key field for a
711 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
712 Move code to find the portal for a given relationship name to
714 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
715 New file: database access object for getting the related list
716 navigation information (the table name and the primary key value).
717 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
718 DTO for transferring a table name to navigate to and a primary key
720 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
721 boolean and getter/setter to specifies if the related list should add
724 2011-10-24 Murray Cumming <murrayc@murrayc.com>
726 Use the master branch of java-libglom
728 * pom.xml: Depend on java-libglom 1.19 instead.
730 This is the master branch. See also the libglom-1-18 branch.
732 2011-10-11 Ben Konrath <ben@bagu.org>
734 Enable the open navigation button when the data has been set.
736 This avoids having active buttons that don't do anything when the data
739 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
741 2011-10-11 Ben Konrath <ben@bagu.org>
743 Use IsWidget interface for FlowTableItem.
745 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
746 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
748 2011-10-11 Ben Konrath <ben@bagu.org>
750 Remove GWT styling from open button in details view.
752 There are still some issues with how the details cell is arranged but
753 this should be made to match Glom 1.20. I'm going to leave fixing this
754 until I have Glom 1.20 up and running.
756 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
757 style name on open button.
758 * src/main/webapp/style.css: Move and edit details-navigation class.
759 Re-arrange some classes to make them appear in the same order as the
762 2011-10-07 Ben Konrath <ben@bagu.org>
766 * .gitignore: Ignore new cache directory.
767 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
768 * pom.xml: Change GWT and maven plugin to 2.4.0.
769 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
771 * src/main/java/org/glom/web/client/ClientFactory.java:
772 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
773 * src/main/java/org/glom/web/client/OnlineGlom.java:
774 Update source for API changes.
775 * utils/build-onlineglom-war.sh: Remove cache directory before the
778 2011-10-07 Ben Konrath <ben@bagu.org>
780 Add navigation buttons in the details view.
782 This isn't finished but I thought I'd commit what I have as it's a
783 pretty good start. I still need to:
785 1. Change the style so that it fits better into the current theme
786 2. Adjust the details cell to expand as much as possible.
788 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
789 click handlers to navigation buttons in the DetailsCells. Create a
790 refreshData() method to get just the data from the server without the
792 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
793 Update the tableSelector and browser title when the table name
794 changes without using the tableSelector.
795 * src/main/java/org/glom/web/client/ui/DetailsView.java:
796 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
797 getDetailsCells() to getCells(). Update variable names.
798 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
799 method to set click handler on navigation button. Rename a few
800 variables. Add navigation buttons where needed.
801 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
802 variables and methods.
803 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
804 navigation boolean and navigation table as required in the
806 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
807 variables for navigation along with getter/setter methods.
809 2011-10-07 Ben Konrath <ben@bagu.org>
811 Rename Field to DetailsCell.
813 This is a refactor-only commit. No functionality has been added or
816 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
817 Update variable and method names.
818 * src/main/java/org/glom/web/client/ui/DetailsView.java:
819 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
820 variable and method names.
821 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
823 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
824 variable and method names.
826 2011-10-07 Ben Konrath <ben@bagu.org>
828 Create separate methods for layout and data the details view.
830 This is a refactor-only commit. No functionality has been added or
833 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
834 private methods: setData(), createLayout().
836 2011-10-07 Ben Konrath <ben@bagu.org>
838 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
840 This is part of a change to get navigation buttons in the details view
841 but it should have been done this way from the start.
843 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
844 for method name change in TableSelectionView.
845 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
846 Create TableChangeEvent and set the browser title using the
847 TableSelectionView API.
848 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
849 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
850 Change getSelectedTable() to getSelectedTableName(). Add
851 getSelectedTableTitle().
853 2011-10-07 Ben Konrath <ben@bagu.org>
855 Use primaryKeyValue naming convention in constructor of DetailsPlace.
857 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
859 2011-10-07 Ben Konrath <ben@bagu.org>
861 Update TableChangeEvent to use newTableName naming convention.
863 This makes the class more consistent with GWT naming conventions.
865 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
866 Update for method name change in TableChangeEvent.
867 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
868 for method name change in TableChangeEvent.
869 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
870 newTableName variable and getter method. Make toDebugString()
873 2011-09-30 Ben Konrath <ben@bagu.org>
875 Disable the pager in the list tables when the data row count is less than the minimum.
877 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
878 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
880 2011-09-30 Ben Konrath <ben@bagu.org>
882 Add empty rows to the end of related list and list view tables.
884 I also extracted the cell rendering classes from the ListTable because
885 the code was becoming a little crazy with all the anonymous inner
886 classes. My plan is to use these cell rendering classes in the details
887 view as well so this refactor will be needed for that change.
889 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
890 set the row count in related list tables if the data has more rows
891 than the minimum number of rows visible.
892 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
893 row count in list view tables if the data has more rows than the
894 minimum number of rows visible.
895 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
896 for rendering TYPE_BOOLEAN cells. The code was extracted from the
898 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
899 for rendering TYPE_NUMERIC cells. The code was extracted from the
901 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
902 class for rendering cells with buttons in list views. The code was
903 extracted from the ListTable class.
904 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
905 for rendering TYPE_TEXT cells. The code was extracted from the
907 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
908 Add empty rows to the end of the data if required. Implement
909 ListTable.getMinNumVisibleRows().
910 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
911 cell renderer code to public classes. Return null in
912 Column.getValue() for empty rows. Add new abstract method:
913 getMinNumVisibleRows(). Move code to set the row count of the list view
914 table to ListViewImpl.
915 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
916 empty rows to the end of the data if required. Implement
917 ListTable.getMinNumVisibleRows().
920 2011-09-27 Ben Konrath <ben@bagu.org>
922 Use GWT.log for client-side debugging statements.
924 These are optimized out when deployed so I should have used this method
925 in the first place. These statements will eventually be replaced with some sort
926 of notification in the browser.
928 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
929 * src/main/java/org/glom/web/client/activity/ListActivity.java:
930 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
931 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
932 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
934 2011-09-27 Ben Konrath <ben@bagu.org>
936 Put tableselector on the right, back to list link on right.
938 The idea is that the table selector is acting like a label for the
939 currently displayed table so it should be placed below the document title. This
940 puts the table title in a similar position to where it is in Glom.
942 * mockups/details-contacts.html:
943 * mockups/details-projects.html:
944 * mockups/listview-contacts.html:
945 * mockups/listview-projects.html:
947 Update mockups to match how the interfaces currently look.
948 * src/main/webapp/style.css: Swap positions of backlink with the table
949 selector. Add some space on the left side of the table selector to
950 line things up with the document title.
952 2011-09-27 Ben Konrath <ben@bagu.org>
954 Add field colouring to details view.
956 This change re-works how field colouring works. The colour formatting
957 information is now set to the client with the layout information instead of
958 with the data. This eliminates the need to send the same colour strings for
959 data in list view column when colour information is set.
961 In order to set an alternate colour for negative numeric values, the
962 number is now sent to client and formatted with the GWT NumberFormat class.
964 This change also fixes:
966 https://bugzilla.gnome.org/show_bug.cgi?id=659752
968 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
969 internationalization framework which is needed for client side numeric
971 * src/main/java/org/glom/web/client/Utils.java: New file for some
972 client static utility methods.
973 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
974 the DataItem object to the Field class. Use a utility method to
975 create the foreignKeyValue string.
976 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
977 alignment and text colours in the constructor. Add setData(DataItem)
978 method. Remove setText(String) method.
979 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
980 colour information to GlomTextCell. Create and use GlomNumberCell for
981 rendering numbers. Use utility method to get the string for the
982 primary key of the key provider. Re-work how the horizontal alignment
984 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
985 formatting to layout information. Methods for converting the libglom
986 formatting information were moved from DBAccess.
987 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
988 numeric formatting (it's now done on the client side). Don't set text
989 colours in DataItem. Move libglom formatting conversion methods to
991 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
992 getters/setters for text colour information.
993 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
994 for transferring the libglom NumericFormat information to the client.
995 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
996 and getters/setters for: GlomNumericFormat, background colour and
997 foreground colour strings.
999 2011-09-26 Ben Konrath <ben@bagu.org>
1001 Simplify code that iterates through the LayoutGroup.
1003 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1005 2011-09-26 Ben Konrath <ben@bagu.org>
1007 Accept Eclipse formatting for OnlineGlomServiceAsync.
1009 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1011 2011-09-26 Ben Konrath <ben@bagu.org>
1013 Don't use the ListDBAccess classes to get the primary key layout information.
1015 This was causing a bug where the wrong index for the hidden primary key
1016 was being sent to the client.
1018 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1019 primary key while creating the LayoutGroup DTO. Create a
1020 LayoutItemField DTO for hidden primary keys. Don't use the
1021 RelatedListDBAccess because it was only used for getting the primary
1023 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1024 access modifier from public to protected for getPrimaryKeyField() and
1025 getPrimaryKeyLayoutItemField().
1026 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1027 abstract method getExpectedResultSize() because RelatedListDBAccess
1028 doesn't have enough info to implement it.
1029 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1030 Remove @Override for getExpectedResultSize().
1031 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1032 Remove method getExpectedResultSize().
1034 2011-09-23 Ben Konrath <ben@bagu.org>
1036 Log which layout (list or details) the ignored item is from.
1038 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1040 2011-09-23 Ben Konrath <ben@bagu.org>
1042 Remove annotations that turn off code formatting in DataItem.
1044 * src/main/java/org/glom/web/shared/DataItem.java:
1046 2011-09-23 Ben Konrath <ben@bagu.org>
1048 Rename GlomField to DataItem and update associated methods.
1050 This is a rename-only refactor. No functionality has been added or
1053 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1054 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1055 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1056 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1057 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1058 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1059 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1060 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1061 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1062 * src/main/java/org/glom/web/server/database/DBAccess.java:
1063 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1064 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1065 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1066 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1067 * src/main/java/org/glom/web/shared/DataItem.java:
1068 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1069 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1071 2011-09-23 Ben Konrath <ben@bagu.org>
1073 Rename GlomDocument to DocumentInfo and update associated methods.
1075 This is a rename-only refactor. No functionality has been added or
1078 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1079 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1080 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1081 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1082 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1084 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1086 2011-09-20 Ben Konrath <ben@bagu.org>
1088 Require java-libglom 1.17.3.
1090 This picks up the fix for the seg fault problem with the Scenes table
1091 in the Openismus Film Manager example.
1095 2011-09-20 Ben Konrath <ben@bagu.org>
1097 Change the way sort clause is added for primary key when no sort clause is requested.
1099 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1100 before the sort clause is created. When a sort clause is not requested, the
1101 sort clause is created by finding the primary key in the LayoutFieldVector
1104 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1106 2011-09-20 Ben Konrath <ben@bagu.org>
1108 Log error message if no documents are found in the configured directory.
1110 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1111 Extract the glom file extension string to a private static final class
1112 variable (mostly as syntactic sugar). Accept a minor formatting change.
1113 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1114 the example glom.document.directory configuration property to make it
1115 more clear that it can any directory, not just the home directory.
1117 2011-09-18 Ben Konrath <ben@bagu.org>
1119 Add related lists to details view.
1121 The related list table has support for paging and sorting just like the
1122 table in the list view.
1124 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1125 SQL queries for the related list tables.
1126 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1127 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1129 Rename getList methods to getListView and add comments. Remove
1130 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1131 it being unused. Add methods: getDetailsLayoutAndData(),
1132 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1133 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1134 Create the layout and set the data for the fields in one async call
1135 instead of two. Create related lists where appropriate.
1136 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1137 for method name changes in OnlineGlomService.
1138 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1139 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1140 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1142 * src/main/java/org/glom/web/client/ui/ListView.java:
1143 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1144 tableName from setCellTable(). Create a ListViewTable instead of
1146 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1147 represent a data field in the details view.
1148 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1149 from addDetailsCell() to Field class. Keep track of the Fields and
1150 Portals in the details view.
1151 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1152 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1153 and add a method to get it. Add method to set the contents of the
1155 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1156 New class for related list tables. This class has the data provider
1157 for the related list table.
1158 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1159 abstract class which is the base class for the ListViewTable and the
1161 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1162 New class for list view tables. This class has the data provider for
1163 the list view table.
1164 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1165 methods for related list tables. Add more information to the
1166 LayoutItemField and LayoutItemPortal DTOs.
1167 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1168 Remove debugging print statement.
1169 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1170 Remove debugging print statements. Add primary key field to SQL count
1172 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1173 Remove unnecessary LayoutFieldVector parameter from
1174 getResultSizeOfSQLQuery() method.
1175 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1176 New class for related list table database access.
1177 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1178 class that is a wrapper DTO for details view layout and data.
1179 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1180 new 'fromField' string to this DTO.
1181 * src/main/webapp/style.css: Remove bottom margin and override top
1184 2011-09-15 Ben Konrath <ben@bagu.org>
1186 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1188 This sets things up to make it easier to add the data retrieval for
1189 related lists (portals). No user noticeable changes were made with
1192 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1193 class has the code to retrieve the layouts and access the
1194 database using the new database helper classes.
1195 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1196 Most of the functionality has been removed from this class. This
1197 class now represents the public interface for the client side
1198 code. It also deals with configuring the servlet and cleaning
1199 things up when the servlet is stopped.
1200 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1201 of static methods into this utility class.
1202 * src/main/java/org/glom/web/server/database/DBAccess.java:
1203 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1204 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1205 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1206 These classes have the database retrieval code. The class hierarchy
1207 has been setup to make it easy to reuse code for similar
1210 2011-09-06 Ben Konrath <ben@bagu.org>
1212 Create separate classes for list table code and the data provider.
1214 As part of this refactor, I also split up the code a bit to make it
1217 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1218 table code to two new classes (below).
1219 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1220 with code from ListViewImpl.
1221 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1222 New file with code from ListViewImpl.
1224 2011-09-06 Ben Konrath <ben@bagu.org>
1226 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1228 This fixes the LayoutItemPortal DTO to match the libglom layout object
1231 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1233 2011-09-01 Ben Konrath <ben@bagu.org>
1235 Set title of Portals in the Details View.
1237 * pom.xml: Bump required version of java-libglom to 1.17.1.
1238 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1239 widget creation to its own class. Add comments to constructor.
1240 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1241 The code is mostly from the Group class with the title now set.
1242 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1243 title of Portal. Update some comments. Fix some code formatting.
1245 2011-09-01 Ben Konrath <ben@bagu.org>
1247 Remove TODO comment for the flow table column width.
1249 The flow table column width is working correctly and doesn't need to be
1250 changed. See this mailing list post for more info:
1252 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1254 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1256 2011-08-27 Ben Konrath <ben@bagu.org>
1258 Add document title (database name) to top of the browser page.
1260 I added the document title to the TableSelecitonView but that will
1261 change if / when we add a view that doesn't require table selection.
1263 * mockups/details-contacts.html:
1264 * mockups/details-projects.html:
1265 * mockups/listview-contacts.html:
1266 * mockups/listview-projects.html:
1267 * mockups/style.css: Add document title to mockups to keep things
1269 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1270 sizes to account for the document title.
1271 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1272 Set the document title when it has been retrieved from the server.
1273 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1274 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1275 and implement setDocumentTitle(String) method.
1276 * src/main/webapp/style.css: Add ID for document title style.
1278 2011-08-25 Ben Konrath <ben@bagu.org>
1280 Add NavigationType enum to LayoutItemPortal DTO.
1282 This is the start of adding support for Portals to the Details View.
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1285 LayoutItem_Portal.navigation_type enum from libglom to
1286 LayoutItemPortal.NavigationType enum.
1287 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1288 NavigationType enum, field for storing the NavigationType and getter
1291 2011-08-25 Ben Konrath <ben@bagu.org>
1293 Implement the flow table layout in the Details View.
1295 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1296 FlowTable to Group to account for the renamed class.
1297 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1298 File. This is a container widget that implements the Glom details view
1299 flow table behaviour.
1300 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1301 org/glom/web/client/ui/FlowTable.java.
1302 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1303 so that the size of the subgroups are a closer match to the size of
1304 the Glom subgroups. This makes the flowtable layout match the layout
1305 in Glom for the Music Collection example file.
1307 2011-08-16 Ben Konrath <ben@bagu.org>
1309 Create container element for LayoutItemPortal in Details View.
1311 This will help me develop the layout for the FlowTable.
1313 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1314 fieldPanel variable to detailsCell.
1316 2011-08-15 Ben Konrath <ben@bagu.org>
1318 Set the height of the data element in the Details View.
1320 I changed the InlineLabels (text in a span element) to Labels (text in
1321 a div element) so that I could set the height of the details-data
1322 elements instead of the details-cell parent elements. This allows the
1323 the details-data element to display the correct height if style is
1324 applied that shows the height.
1326 This change has the added benefit of allowing the order of the labels
1327 and data elements to be changed for right-to-left languages.
1329 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1330 InlineLabels to Labels.
1331 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1332 InlineLabels to Labels. Set the height of the data element.
1333 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1334 multiline text height in the Formatting DTO.
1335 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1336 for multiline height along with getter and setter methods.
1337 * src/main/webapp/style.css: Adjust style to account for the change
1338 from span elements to div elements in the details cell.
1340 2011-08-15 Ben Konrath <ben@bagu.org>
1342 Make the List View appearance match the mockups.
1344 It doesn't match exactly but it's much better than it was.
1346 * mockups/listview-contacts.html: Remove unused css classes.
1347 * mockups/listview-projects.html: Remove unused css classes.
1348 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1349 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1350 for mainPanel instead of VerticalPanel (table). Set style name on
1351 CellTable. Set style name on Details column. Right-align Details
1353 * src/main/webapp/style.css: Adjust properties to match the mockups.
1355 2011-08-12 Ben Konrath <ben@bagu.org>
1357 Add better support for subgroups in the details view.
1359 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1360 changed FlowTable constructor.
1361 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1362 support for subgroups and subgroup-titles.
1363 * src/main/webapp/style.css: Add CSS class for subgroups and
1366 2011-08-12 Ben Konrath <ben@bagu.org>
1368 Return the top level LayoutGroup title.
1370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1372 2011-08-11 Ben Konrath <ben@bagu.org>
1374 Make the TableSelector header match the mockup.
1376 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1377 the layout panel. Properly lineup the table selection header with
1378 the list and details view.
1379 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1380 margin around the details view.
1381 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1382 Rename listBox variable to tableSelector. Set id for the style sheet.
1383 Use a FlowPanel instead of a HorizontalPanel.
1384 * src/main/webapp/style.css: Add properties to make the TableSelector
1385 box match the mockups.
1387 2011-07-13 Ben Konrath <ben@bagu.org>
1389 Update install script for java-libglom version change.
1391 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1394 2011-07-13 Ben Konrath <ben@bagu.org>
1396 Add support sub-group in the details view.
1398 I also removed the code that special-cased the default details view
1401 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1403 I still have to make a proper flowtable.
1405 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1406 Don't special-case default details view layout.
1407 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1408 addLayoutField() as I'm going to use it.
1409 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1410 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1412 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1413 extracted from DetailsViewImpl.GroupPanel. Add support for
1415 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1416 column count when getting the details layout.
1418 2011-07-12 Ben Konrath <ben@bagu.org>
1420 Set browser title with database and table titles.
1422 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1423 Set the browser title when the table changes and when the activity
1425 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1426 title when retrieving document info (the GlomDocument object).
1427 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1428 with getter and setter methods. Remove unused convenience constructor.
1429 Use default code formatting.
1431 2011-07-12 Ben Konrath <ben@bagu.org>
1433 Ignore LayoutItemPortals in the details view.
1435 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1438 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1439 LayoutItemPortal layout objects.
1440 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1441 LayoutItemPortal objects when retrieving the details layout.
1442 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1443 file. This is an empty class and just used to get type information for
1446 2011-07-12 Ben Konrath <ben@bagu.org>
1448 Use java-libglom 1.17.0.
1452 2011-07-11 Ben Konrath <ben@bagu.org>
1454 Remove "Table:" label from table selector.
1456 This matches a recent change in the Glom UI.
1458 * mockups/details-contacts.html:
1459 * mockups/details-projects.html:
1460 * mockups/listview-contacts.html:
1461 * mockups/listview-projects.html: Remove the "Table:" label from the
1463 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1465 2011-07-11 Ben Konrath <ben@bagu.org>
1467 Add main groups to the details view.
1469 This makes things look a little nicer in the details view. The next step
1470 is to implement the flowtable.
1472 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1473 resources from the standard gwt css theme. Standard.css is now
1474 included in OnlineGlom.html so that the online glom css rules have
1475 precedence over the gwt theme.
1476 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1477 the whole LayoutGroup to the DetailsView instead of just the titles.
1478 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1479 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1480 details layout with a helper class (GroupPanel). I might extract this
1481 class when I make the full flowtable.
1482 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1483 string as default so I don't have to worry about NPEs when processing
1485 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1486 note beside OnlineGlom.gwt.xml above).
1487 * src/main/webapp/style.css: Add default font-size to body to override
1488 the font-size set by the standard theme. Don't use h2 tags for
1489 group-title. Create new details-cell class.
1491 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1493 ConfiguredDocument: Set the port number too.
1495 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1496 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1497 Glom document. Presumably this worked sometimes so far because there is a
1498 default port number.
1500 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1502 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1504 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1505 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1506 correct, though we should throw an exception too.
1508 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1510 Fix a addDocuemnt typo.
1512 * src/main/java/org/glom/web/shared/Documents.java
1513 (Documents.addDocuemnt): Rename to addDocument().
1514 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1515 (OnlineGlomServiceImpl.getDocuments): Adapt.
1517 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1519 Slightly improved log output when connection fails.
1521 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1522 (ConfiguredDocument.setUsernameAndPassword):
1523 We don't know for sure if it' the username/password that's wrong, so
1524 rephrase the message.
1525 Also ouput the exception message, though it's generic in this case.
1527 2011-07-08 Ben Konrath <ben@bagu.org>
1531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1532 added braces to a one line if statement because the Eclipse formatter
1533 was getting confused.
1535 2011-07-07 Ben Konrath <ben@bagu.org>
1537 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1539 These should really be two separate tasks but I counldn't get things to
1540 work with GWT 2.2.0 and Eclipse 3.7.
1544 * .settings/org.eclipse.jdt.core.prefs:
1545 * .settings/org.eclipse.jdt.ui.prefs:
1546 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1547 * .settings/org.eclipse.m2e.core.prefs:
1548 Add new config files. Update current files. Remove references to the
1549 webtools plugins as we're not using any of the webtools features.
1550 * .gitignore: Add logs directory which is created when running with
1552 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1553 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1554 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1556 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1558 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1560 onlineglom.properties: Add explanatory comments.
1562 * src/main/resources/onlineglom.properties: Also change the default user
1563 from ben to someuser, to avoid the risk of people thinking we just
1564 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1566 2011-06-28 Ben Konrath <ben@bagu.org>
1568 Use filename in Log for incorrect passwords.
1570 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1571 getFileName(String) method to get the filename from the URI.
1573 2011-06-28 Ben Konrath <ben@bagu.org>
1575 Add the table name to the URL token for the ListPlace.
1577 This makes things consistent between the DetailsPlace and the
1578 ListPlace. It also allows the the ListPlace to be bookmarked.
1580 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1581 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1583 Remove getDefaultListLayout(). The default layout is now returned
1584 by the getListLayout() method when the table name is an empty string.
1585 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1586 Add table name field. Change to a new ListPlace when the table
1587 has been changed. Use getListLayout() for getting the default
1589 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1590 Add table name field. Set the correct table name in the list box
1591 when loading from bookmark. This corrects a problem for the
1593 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1594 Move table name to super-class (HasSelectableTable). Move document
1595 and table URL keys to super-class in HasSelectableTable.
1596 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1597 Add table name field. Add Tokenizer class with URL key common to
1598 the subclasses (DetailsPlace and ListPlace).
1599 * src/main/java/org/glom/web/client/place/ListPlace.java:
1600 Add table name. Add code to parse the URL token.
1601 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1602 Update ListPlace construction with empty table name string.
1603 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1604 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1605 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1606 Update ListPlace construction with table name string.
1607 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1608 Change defaultTableName field to tableName to reflect how it's now
1609 used. Update the getter and setter methods.
1611 2011-06-28 Ben Konrath <ben@bagu.org>
1613 Enable the table selector in the DetailsView.
1615 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1616 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1617 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1618 Remove getDefaultDetailsLayout(). The default layout is now returned
1619 by the getDetailsLayout() method when the table name is an empty
1621 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1622 event handler for table change event. Change to using
1623 getDetailsLayout() for the default details layout.
1624 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1626 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1627 when navigating to the details place.
1629 2011-06-27 Ben Konrath <ben@bagu.org>
1631 Use filename based unique document ID in URL and for RPC.
1633 The document ID is the glom document name with spaces (' ') replaced
1634 with pluses ('+') and without the .glom extension.
1636 This change is mostly a string substitution of 'documentTitle' for
1637 'documentID'. The only code change is the addition of a Documents DTO to get the
1638 filename to document title mappings as indicated below.
1640 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1641 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1642 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1643 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1644 Use Documents DTO to create the document links in the document
1646 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1647 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1648 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1649 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1650 * src/main/java/org/glom/web/client/place/ListPlace.java:
1651 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1652 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1653 * src/main/java/org/glom/web/client/ui/ListView.java:
1654 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1655 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1656 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1657 * src/main/java/org/glom/web/server/Log.java:
1658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1659 getDocumentTitles() to getDocuments() and return the Documents DTO.
1660 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1661 transferring the filename to document title mappings.
1663 2011-06-25 Ben Konrath <ben@bagu.org>
1665 Make the authentication popup work again.
1667 This bug was introduced when I extracted ConfiguredDocument to its own class.
1669 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1670 correct success / fail status in setUsernameAndPassword().
1672 2011-06-25 Ben Konrath <ben@bagu.org>
1674 Use filename as unique key for configuring database usernames and passwords.
1676 This replaces the use of the Glom document title which could change
1677 depending on the locale. Thanks to Murray Cumming for pointing out this
1680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1681 * src/main/resources/onlineglom.properties:
1683 2011-06-24 Ben Konrath <ben@bagu.org>
1685 Pass primary key value to DetailsView.
1687 This enables the DetailsView to load the correct data.
1689 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1690 primary key value field and set in constructor. Pass primary key
1691 value to getDetailsData().
1692 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1693 variables for document title and primary key value.
1694 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1695 key value to the DetailsPlace.
1697 2011-06-24 Ben Konrath <ben@bagu.org>
1699 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1701 This allows the primary key to be retrieved by the Details button. This
1702 functionality has not been implemented yet but it's in the works.
1704 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1705 the LayoutGroup result to ListView.setCellTable instead of all of its
1706 fields individually.
1707 * src/main/java/org/glom/web/client/ui/ListView.java:
1708 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1709 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1710 get the primary key for the table.
1711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1712 index of the primary key in the LayoutGroup accounting for hidden
1713 primary keys. Rename getJavaNumberFormat() to
1714 convertToJavaNumberFormat() for consistency. Cleanup / add some
1716 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1717 field for primary key index and a field to indicate whether the
1718 primary key is hidden or not.
1720 2011-06-23 Ben Konrath <ben@bagu.org>
1722 Rename getTableData methods to getListData.
1724 This is a rename refactor for consistency with other methods.
1726 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1727 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1728 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1729 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1731 2011-06-23 Ben Konrath <ben@bagu.org>
1733 Extract the ConfiguredDocument innerclass into its own class.
1735 This makes the servlet code more object oriented.
1737 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1738 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1739 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1740 new ConfiguredDocument class.
1742 2011-06-21 Ben Konrath <ben@bagu.org>
1744 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1746 This makes things more inline with how libglom works and reduces code
1747 duplication. This refactor lays the groundwork for adding the primary key to
1748 the LayoutGroup object.
1750 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1751 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1753 Change method names to getListLayout and getDefaultListLayout for
1754 consistency. Use LayoutGroup as the DTO for the list layout instead of
1755 ColumnInfo and LayoutListTable.
1756 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1757 new method names along with the LayoutGroup object for transferring the
1759 * src/main/java/org/glom/web/client/ui/ListView.java:
1760 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1761 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1762 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1764 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1765 Replaced with LayoutGroup.
1766 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1767 expectedResultSize and defaultTableName fields which are needed for
1769 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1770 type field which is needed for the list layout but will also be
1771 useful for the details layout as things progress.
1772 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1773 Make class abstract. Remove the unnecessary
1774 getFormattingHorizontalAlignment method. Add setFormatting method.
1776 2011-06-16 Ben Konrath <ben@bagu.org>
1778 Add scripts for building and installing war.
1780 These will help when updating OnlineGlom but they're also good
1781 supplemental documentation of the build and deployment proceeding.
1783 * utils/build-onlineglom-war.sh: New file.
1784 * utils/install-onlineglom-war.sh: New file.
1786 2011-06-16 Ben Konrath <ben@bagu.org>
1788 Create wrapper class to create consistent log messages.
1790 I wrapped methods in the Log class of gwt-log to add the method names
1791 from the servlet and create consistent formatting of the document title
1792 and table names in the log messages.
1794 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1795 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1796 log methods to use methods from wrapped Log class.
1798 2011-06-16 Ben Konrath <ben@bagu.org>
1800 Remove superfluous conditional return.
1802 Thanks to Murray Cumming for pointing this out!
1804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1806 2011-06-15 Ben Konrath <ben@bagu.org>
1808 Return an ArrayList of LayoutGroups for the Details layout.
1810 This corrects a problem with the details layout as it can have more
1811 than one top level LayoutGroup.
1813 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1814 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1815 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1816 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1817 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1818 with ArrayList of LayoutGroups for the details view layout.
1819 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1820 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1821 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1822 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1823 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1824 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1826 2011-06-14 Ben Konrath <ben@bagu.org>
1828 Use cast_dynamic method to determine the libglom LayoutItem type.
1830 This is better than finding the LayoutItem type by using the string
1831 returned from the get_part_type_name() method.
1833 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1835 2011-06-14 Ben Konrath <ben@bagu.org>
1837 Add method names to log entries in the servlet.
1839 This helps when tracking down deployment problems.
1841 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1843 2011-06-14 Ben Konrath <ben@bagu.org>
1845 Add data to the DetailsView using a hard-coded primary key value.
1847 The layout and functionality of the DetailsView is not complete. This
1848 is just a checkpoint so the patch doesn't get too big.
1850 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1851 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1852 Add getDetailsData() servlet method.
1853 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1854 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1855 LayoutFields are added to the DetailsView.
1856 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1857 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1858 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1859 take the string for the title instead of the object.
1860 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1861 Add implementation getDetailsData() along with some private helper
1863 * src/main/webapp/style.css: Add padding to details-data class. Add a
1864 details-label class with the same padding as the details-data class.
1866 2011-06-03 Ben Konrath <ben@bagu.org>
1868 Use presenter.goTo() to change to the DetailsPlace.
1870 This will make things easier when we need to open the DetailsView with
1871 data specific to the row that was clicked.
1873 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1875 2011-06-02 Ben Konrath <ben@bagu.org>
1877 Add CSS file from mockups.
1879 I'm adding this now because it's going to be useful to have when
1880 developing the DetailsView. The TableSelectionView and ListView aren't
1883 * src/main/webapp/OnlineGlom.html:
1884 * src/main/webapp/style.css:
1886 2011-06-02 Ben Konrath <ben@bagu.org>
1888 Use String.isEmpty() to check for empty string.
1890 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1892 2011-06-02 Ben Konrath <ben@bagu.org>
1894 Display main layout group titles in the DetailsView.
1896 This is the start of the DetailsActivity/DetailsView implementation.
1898 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1899 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1900 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1901 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1902 Get the layout information for the details view from the server and set
1903 the main layout group titles.
1904 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1905 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1906 Add addLayoutGroup() and addLayoutField() methods. This are just
1907 temporary methods for creating the the details view that will change
1909 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1910 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1912 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1913 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1914 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1915 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1916 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1917 Data Transfer Objects that mimic the libglom object structure. These are
1918 used for transferring the details layout but could also be used for
1919 transferring the list layout.
1921 2011-05-27 Ben Konrath <ben@bagu.org>
1923 Reset the AuthenticationPopup when clearing the ListView.
1925 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1927 2011-05-27 Ben Konrath <ben@bagu.org>
1929 Fix problem with onlineglom.properties file loading.
1931 The old way worked in Eclipse but not on the server. Loading the
1932 onlineglom.properties file now works in Eclipse and on the server.
1934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1936 2011-05-24 Ben Konrath <ben@bagu.org>
1938 Update gwt-log from 3.1.0 to 3.1.2.
1940 Gwt-log 3.1.0 has been marked as depreciated.
1944 2011-05-24 Ben Konrath <ben@bagu.org>
1946 Add comment to ListActivity.goTo() method.
1948 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1950 2011-05-24 Ben Konrath <ben@bagu.org>
1952 Remove FIXME in convertGdkColorToHtmlColour()
1954 The Gdk::Color value returned by libglom is 16-bits per channel on both
1955 64 and 32-bit platforms.
1957 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1959 2011-05-19 Ben Konrath <ben@bagu.org>
1961 Improve performance of initial ListView load.
1963 I removed a round trip to the server for getting the default table name
1964 and then requesting information about that table. This also removes a potential
1965 problem with the table change handler not being setup in time to receive the
1966 table change event from the ListActivity.
1968 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1969 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1970 getDefaultLayoutListTable() method. Improve comments.
1971 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1972 getDefaultLayoutListTable() method instead of firing a table change
1973 event to get the table to load.
1974 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1975 implementation of getDefaultLayoutListTable() method.
1976 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1979 2011-05-19 Ben Konrath <ben@bagu.org>
1981 Override toDebugString() in TableChangeEvent.
1983 This is useful to have for debugging.
1985 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1987 2011-05-19 Ben Konrath <ben@bagu.org>
1989 Add a "Back to List" link when at the DetailsPlace.
1991 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1992 Populate the CellTable based on the selected table of the ListBox if
1993 it's set otherwise use the default table. This allows the "Back to
1995 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1996 Remove Place from constructors. Add a setPlace() method. Add
1997 goToPlace() method. Set class as presenter for TableSelectionView.
1998 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1999 Use the same TableSelectionActivity when switching between the List and
2001 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2002 Subclass the new HasSelectableTablePlace. This removes some duplicate
2004 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2005 New class to represent Places that display the TableSelectionView.
2006 * src/main/java/org/glom/web/client/place/ListPlace.java:
2007 Subclass the new HasSelectableTablePlace. This removes some duplicate
2009 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2010 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2011 Add Presenter interface. Add setBackLinkVisible() method. Add
2012 setBackLink() method.
2014 2011-05-18 Ben Konrath <ben@bagu.org>
2016 Enable the "Details" buttons.
2018 Right now only an empty details view is displayed.
2020 * src/main/java/org/glom/web/client/ClientFactory.java:
2021 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2022 Add DetailsView to ClientFactory.
2023 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2024 A basic activity for the details view.
2025 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2026 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2028 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2029 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2031 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2032 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2033 unnecessary super() in constructor.
2034 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2035 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2036 really shouldn't create a new TableSelectionActivity for both the ListPlace
2037 and the DetailsPlace so this should be considered a temporary solution.
2038 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2039 New file. Represents a URL for the details view.
2040 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2041 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2042 A basic details view interface and implementation.
2043 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2044 Enable the "Details" buttons.
2046 2011-05-12 Ben Konrath <ben@bagu.org>
2048 Use a LayoutPanel with multiple display areas for main layout.
2050 This is mostly a refactor in that there are no changes from the user
2051 point of view. These changes are required so that we can swap out the list view
2052 with the details view when the user clicks the "Details" button.
2054 * src/main/java/org/glom/web/client/ClientFactory.java:
2055 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2056 OnlineGlomView. Add TableSelectionView, ListView and
2057 AuthenticationPopup.
2058 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2059 for main layout. Add display regions for main activities. Add
2060 activity manager for for main activities.
2061 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2062 file from parts of the deleted OnlineGlomActivity.
2063 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2064 New file from parts of the deleted OnlineGlomActivity.
2065 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2066 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2067 New files for app wide table change event.
2068 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2069 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2070 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2071 Activity mappers for the main activities replace the deleted app-wide
2073 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2074 Fix a spelling error in he comment.
2075 * src/main/java/org/glom/web/client/ui/ListView.java:
2076 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2077 Renamed from LayoutListView and modified for MVP. This still not a
2078 proper dumb view as prescribed by the MVP pattern but it works for now.
2079 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2080 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2081 New widget stripped out of the deleted OnlineGlomView.
2082 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2083 Remove hack that is fixed by this patch.
2085 2011-05-06 Ben Konrath <ben@bagu.org>
2087 Rename OnlineGlomPlace to ListPlace.
2089 The only change besides the rename is that url will now display #list
2090 instead of #Document.
2092 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2093 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2094 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2095 * src/main/java/org/glom/web/client/place/ListPlace.java:
2096 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2098 2011-05-06 Ben Konrath <ben@bagu.org>
2100 Use Presenter for app navigation.
2102 This is the proper way to deal with Place (URL) changes with the MVP
2105 * src/main/java/org/glom/web/client/ClientFactory.java:
2106 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2107 PlaceHistoryMapper and PlaceHistoryHandler.
2108 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2109 PlaceHistoryMapper and PlaceHistoryHandler.
2110 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2111 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2112 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2113 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2114 Add Presenter interface and setPresenter methods. Rename addHyperLink
2115 to addDocumentLink taking only the document title as a parameter.
2117 2011-04-14 Ben Konrath <ben@bagu.org>
2119 Prompt for db username/password if they haven't been set.
2121 This is implemented with a popup widget that is contained within the
2122 OnlineGlomView and managed by the OnlineGlomActivity.
2124 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2125 methods for checking and setting the database username and password.
2126 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2127 new methods for checking and setting the database username and
2129 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2130 Display authentication popup if the JDBC connection to the database
2131 has not been authenticated.
2132 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2134 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2135 for dealing with the authentication popup.
2136 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2137 Implement the methods for dealing with the authentication popup.
2138 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2139 try to executed queries if the database connection hasn't been
2140 authenticated. Implement methods for checking and setting the
2141 database username and password.
2143 2011-04-12 Ben Konrath <ben@bagu.org>
2145 Make log messages a little clearer.
2147 Add a dash betweeen the document title and the table name.
2149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2151 2011-04-12 Ben Konrath <ben@bagu.org>
2153 Protect against NPEs when cleaning up database resources.
2155 While this isn't strictly necessary because the exception is caught,
2156 not protecting against the NPEs makes it harder to find the real error
2159 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2161 2011-04-12 Ben Konrath <ben@bagu.org>
2163 Move configuration of the servlet to the constructor.
2165 The servlet will be initialized even if the database authentication
2166 information is not set or correct. I still need to add the UI for prompting
2167 the user for the authentication information when it's required.
2169 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2170 javadocs for getDocumentTitles() method.
2171 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2172 Set error message when RPC fails.
2173 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2174 glom files directory from the configuration file. Try to set the
2175 database authentication information for the specific document if it's
2176 set and works otherwise try to use the global authentication
2177 information set for the directory.
2178 * src/main/resources/onlineglom.properties: Moved from
2179 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2180 Added detailed comments for the new keys.
2182 2011-04-11 Ben Konrath <ben@bagu.org>
2184 Remove unnecessary @Override in DocumentSelectionViewImpl.
2186 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2188 2011-04-11 Ben Konrath <ben@bagu.org>
2190 Remove center alignment in DocumentSelectionView.
2192 The title element is still centred but the document titles and bottom
2193 sentence are both left-aligned.
2195 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2197 2011-04-11 Ben Konrath <ben@bagu.org>
2199 Change 'Demo' naming convention to 'Document'.
2201 This is just a rename refactor with no functional changes to the code.
2203 * src/main/java/org/glom/web/client/ClientFactory.java:
2204 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2205 * src/main/java/org/glom/web/client/OnlineGlom.java:
2206 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2207 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2208 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2209 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2210 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2211 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2212 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2213 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2214 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2217 2011-04-08 Ben Konrath <ben@bagu.org>
2219 Remove FIXME from safeLongToInt() method.
2221 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2226 2011-04-08 Ben Konrath <ben@bagu.org>
2228 Display an error if no glom documents are found in the specified directory.
2230 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2231 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2232 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2235 2011-04-08 Ben Konrath <ben@bagu.org>
2237 Add copyright header to one more file ... oops.
2239 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2241 2011-04-08 Ben Konrath <ben@bagu.org>
2243 Add copyright header to files without it.
2245 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2246 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2247 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2248 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2249 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2250 * src/main/java/org/glom/web/shared/GlomField.java:
2252 2011-04-08 Ben Konrath <ben@bagu.org>
2254 Add support for accessing multiple glom documents in the servlet.
2256 This completes the demo selection functionality.
2258 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2259 document title to methods.
2260 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2261 document title to methods.
2262 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2263 Set browser window title when the activity starts. Correct name of
2264 document title variable.
2265 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2266 Set browser window title when the activity starts. Set the table
2267 selector change handler after table selector has been set. Clear the
2268 OnlineGlomView when the activity has been stopped.
2269 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2270 document title as the place token. Use "#Document:" instead of
2271 "#OnlineGlomPlace:" in the URL.
2272 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2273 Change heading to "Online Glom"
2274 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2275 document title in RPC methods.
2276 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2277 setDocumentTitle() method. Add clear() method.
2278 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2279 setDocumentTitle() method. Implement clear() method which removes the
2280 change handler on the ListBox, clears the ListBox and clears the
2282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2283 Implement methods with document title. Keep track for the configured
2284 glom documents and their corresponding JDBC configurations in a hash
2285 table. This information is retrieved using the document title as the
2286 key in the hash table.
2287 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2288 document title field as it's no longer needed.
2290 2011-04-08 Ben Konrath <ben@bagu.org>
2292 Update the Eclipse JDT configuration.
2294 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2295 methods. Automatically add the copyright header to new files.
2297 2011-04-05 Ben Konrath <ben@bagu.org>
2299 Add new page for demo selection.
2301 This patch adds all the components required to view and start an
2302 OnlineGlom demo by clicking on the desired hyperlink. The user is
2303 able to return to the demo selection page with the browser's back
2304 button. I still need to modify the servlet to work with multiple
2305 documents so all demo links will load the file defined in the
2306 OnlineGlom.properties.
2308 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2309 This is only useful during development so we don't need to save it.
2310 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2311 get a reference to the DemoSelectionView.
2312 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2313 method to get a reference to the DemoSelectionView.
2314 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2315 default view to DemoSelectionView.
2316 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2317 to get glom document titles for glom files in a hard-coded directory.
2318 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2319 method to get glom document titles for glom files in a hard-coded
2321 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2322 Presenter for DemoSelectionView.
2323 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2324 for DemoSelectionView.
2325 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2326 Update for DemoSelectionView.
2327 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2328 Basic 'Place' implementation for the DemoSelectionView.
2329 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2330 The interface for the DemoSelectionView.
2331 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2332 The implementation of the DemoSelectionView.
2333 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2334 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2336 implementation of method to get glom document titles for glom files
2337 in a hard-coded directory.
2338 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2339 on longer being used.
2340 * src/main/webapp/glom.png: Glom logo.
2342 2011-04-05 Ben Konrath <ben@bagu.org>
2344 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2346 This is the forth and final commit of a refactor that will allow
2347 OnlineGlom to be used with multiple documents.
2349 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2350 Move RPC code from OnlineGlomViewImpl to this class.
2351 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2353 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2354 RPC code to the presenter class (the P in MVP).
2356 2011-04-04 Ben Konrath <ben@bagu.org>
2358 Start moving the existing OnlineGlom code to MVP.
2360 This work is based on the GWT MVP framework that is documented here:
2362 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2364 This is the third commit of a refactor that will allow OnlineGlom to
2365 be used with multiple documents.
2367 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2368 Interface for client factory which is used to get instances of various
2369 classes throughout the app.
2370 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2371 Implementation of client factory.
2372 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2373 initialize the MVP framework.
2374 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2375 New file. Activity manager for the main container widget. This is the
2377 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2378 Maps place (URL) to its corresponding activity.
2379 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2380 New file. This is just a place holder for a generated file.
2381 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2382 New file. Represents the URL for the main Online Glom app.
2383 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2384 for changes in LayoutListViewImpl.
2385 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2386 interface for View. Move code to OnlineGlomViewImpl class.
2387 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2388 file. Implementation of OnlineGlomView.
2389 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2390 Place resources. Use ClientFactoryImpl by default.
2392 2011-04-04 Ben Konrath <ben@bagu.org>
2394 Move View classes to their own package.
2396 This is the second commit of a refactor that will allow OnlineGlom to
2397 be used with multiple documents.
2399 * src/main/java/org/glom/web/client/OnlineGlom.java:
2400 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2401 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2403 2011-04-02 Ben Konrath <ben@bagu.org>
2405 Move UI code from the main module to its own class.
2407 This is the first commit of a refactor that will allow OnlineGlom to be
2408 used with multiple documents.
2410 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2411 references to OnlineGlom to OnlineGlomView.
2412 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2413 OnlineGlomView and instantiate it here.
2414 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2415 represents the main OnlineGlomView with one document.
2417 2011-04-01 Ben Konrath <ben@bagu.org>
2419 Fix formatting of gwt.xml and add DTD.
2421 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2423 2011-03-30 Ben Konrath <ben@bagu.org>
2425 Propperly convert gdkColor string to html colour string.
2427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2429 2011-03-28 Ben Konrath <ben@bagu.org>
2431 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2433 This implementation matches
2434 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2435 readable and is not tied to Swig.
2437 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2439 2011-03-28 Ben Konrath <ben@bagu.org>
2441 Use read-only checkboxes for boolean field types.
2443 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2444 in the CellTable based on the field type. It currently only
2445 distinguishes between boolean and text columns but I'll need to add
2446 support for more types.
2447 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2448 column type in the ColumnInfo object. Add method to convert between the
2449 glom field type enum in ColumnInfo and the glom field type in libglom.
2450 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2452 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2453 getting and setting booleans.
2455 2011-03-25 Ben Konrath <ben@bagu.org>
2457 Don't get the Date twice from the ResultSet.
2459 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2461 2011-03-25 Ben Konrath <ben@bagu.org>
2463 Cleanup code in the servlet.
2465 * TODO: Remove item about row count. Add item about testing row count
2466 query with large number of rows.
2467 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2468 spelling mistakes, change method parameter to be consistent with
2471 2011-03-25 Ben Konrath <ben@bagu.org>
2473 Add server side logging with the gwt-log library.
2475 * .gitignore: Ignore the log file we're now producing.
2476 * TODO: Add a couple TODO item for logging.
2477 * pom.xml: Add gwt-log and log4j as a dependency.
2478 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2479 logging of errors, warnings and some important info.
2480 * src/main/resources/log4j.properties: New file to configure log4j.
2482 2011-03-24 Ben Konrath <ben@bagu.org>
2484 Add a disable button for the Details view.
2486 * src/main/java/org/glom/web/client/LayoutListView.java:
2488 2011-03-22 Ben Konrath <ben@bagu.org>
2490 Use a count query to get the number of rows for the list view pager.
2492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2494 2011-03-22 Ben Konrath <ben@bagu.org>
2496 Add more TODO information about CellTable pager positioning.
2500 2011-03-19 Ben Konrath <ben@bagu.org>
2502 Add TODO item about CellTable pager positioning.
2506 2011-03-18 Ben Konrath <ben@bagu.org>
2508 Remove unneeded GlomFieldColumn class.
2510 This is just a small code cleanup.
2512 * src/main/java/org/glom/web/client/LayoutListView.java:
2514 2011-03-18 Ben Konrath <ben@bagu.org>
2516 Use cursor mode in the query that gets data for the list view.
2518 I still need to fix the potential memory problem when getting the row
2519 count for the list view.
2521 * TODO: Add note about testing memory usage with large data sets. Add
2522 item about fixing row counting with large data sets.
2523 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2524 PostgreSQL JDBC driver into cursor mode when getting data for the
2527 2011-03-15 Ben Konrath <ben@bagu.org>
2529 Remove the GWT Container from the Eclipse build classpath.
2531 The GWT dependencies are set by Maven so this isn't needed.
2535 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2537 Added some earlier mockups to git, but not to the tarball dist.
2539 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2540 Openismus. These hopefully show how we might structure the HTML so that
2541 it can be styled easily with CSS. However, we probably need to adapt them
2542 for the CSS structure that GWT dictates for common widgets.
2544 2011-03-14 Ben Konrath <ben@bagu.org>
2546 Locate OnlineGlom.properties using the ServletContext.
2548 This is required to be able to locate the file in the deployed servlet.
2550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2551 Configure the database and glom document in in a helper method so
2552 that the ServletContext can be used to locate OnlineGlom.properties.
2553 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2554 src/main/webapp. This is the proper location for .properites files.
2556 2011-03-12 Ben Konrath <ben@bagu.org>
2558 Add note to README about why we're compiling down to obfuscated JavaScript.
2562 2011-03-11 Ben Konrath <ben@bagu.org>
2564 Use properties file to configure servlet.
2566 This allows people to change the glom file path, db username and db
2567 password without recompiling the code.
2569 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2570 * src/main/webapp/OnlineGlom.properties:
2572 2011-03-11 Ben Konrath <ben@bagu.org>
2574 Use table fields in layout list view if the layout list is not defined.
2576 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2577 Manually create a LayoutFieldVector for the query builder using the
2578 table fields when a layout list is not defined in the glom file.
2580 2011-03-11 Ben Konrath <ben@bagu.org>
2582 Only show FIXME string for images when there's an image.
2584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2585 in this change are some small code cleanups.
2587 2011-03-11 Ben Konrath <ben@bagu.org>
2589 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2593 2011-03-11 Ben Konrath <ben@bagu.org>
2595 Correctly set the index of the default table.
2597 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2598 Correctly set the index of the default table. Add commented out example
2601 2011-03-10 Ben Konrath <ben@bagu.org>
2603 Add comment to pom.xml about the previous change.
2605 * pom.xml: Add comment about the deployment issue so that it's obvious
2606 why java-libglom is set to the provided scope.
2608 2011-03-10 Ben Konrath <ben@bagu.org>
2610 Change java-libglom dependency from compile to provided in pom.xml.
2612 Since java-libglom uses jni it can only be loaded once and therefore
2613 must be placed in $CATALINA_HOME/lib and not included in each war.
2614 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2615 More information about this issue can be found in the Tomcat 6 release
2616 notes in the "JNI Based Applications" section:
2618 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2620 * README: Remove note about this issue. Deployment info should really
2621 be on the wiki anyway so I'll add it right now.
2622 * pom.xml: Change java-libglom dependency from compile to provided so
2623 that it's copied in to the packaged war.
2625 2011-03-09 Ben Konrath <ben@bagu.org>
2627 Change to using a neutral locale for currency, date and time formatting.
2629 This solves the problem of currency values being represented without a
2630 space between the currency code and the number (e.g. "EUR5.89" is now
2631 represented as "EUR 5.89"). More work is required when we implement
2632 a locale preference setting.
2634 * TODO: Add note about currency formatting issues with different
2636 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2637 to using the neutral ROOT locale.
2639 2011-03-09 Ben Konrath <ben@bagu.org>
2641 Add support for currency codes that are not ISO 4217 codes.
2643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2644 the currency code defined in the glom file when it's not 3 characters
2645 long or when Java doesn't recognize the string as an ISO 4217 code.
2647 2011-03-08 Ben Konrath <ben@bagu.org>
2649 Remove test classes, launch configurations and configuration.
2651 The test stuff was getting in the way when creating the war. To make
2652 the war file you can now do 'mvn clean package'. The packaged war file
2653 will be in the target directory.
2655 * .classpath: Remove unused classpathentry for tests and i18n.
2656 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2657 property. Don't run test or i18n goals when packaging the war.
2658 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2663 * OnlineGlomTest-dev.launch:
2664 * OnlineGlomTest-prod.launch:
2665 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2666 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2668 2011-03-07 Ben Konrath <ben@bagu.org>
2670 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2672 These fixes allow me to use 'mvn deploy' to create the war file.
2674 * .classpath: This generated config has been updated by Eclipse. This
2675 change was probably triggered by me updating from Eclipse 3.6.1 to
2677 * .gitignore: Add entry to ignore the directory
2678 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2679 * .project: The generated config has been updated by Eclipse. This
2680 change was probably triggered by me updating from Eclipse 3.6.1 to
2682 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2683 so that Eclipse doesn't complain
2684 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2685 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2686 'tests' directory to 'client' directory. This is the new
2687 gwt-maven-plugin convension.
2688 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2689 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2691 2011-03-07 Ben Konrath <ben@bagu.org>
2693 Add support for horizontal alignment in the LayoutList columns.
2695 * TODO: Remove item about horizontal alignment. Add item about
2696 improvements to ColumnInfo.
2697 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2698 alignment on the columns. Use ColumnInfo RPC object get the column
2699 title and horizontal alignment.
2700 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2701 LayoutListView creation with ColumnInfo RPC object.
2702 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2703 a ColumnInfo object for every LayoutList columnn. Convert the
2704 FieldFormatting.HorizontalAlignment to the correct
2705 ColumnnInfo.HorizontatlAlignment with the new
2706 getColumnInfoHorizontalAlignment helper method.
2707 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2708 to encapsulate column information like alignment and title. This
2709 could be used to set the colour instead of on a per cell field basis.
2710 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2711 column title storage and retrieval with ColumnInfo.
2713 2011-03-04 Ben Konrath <ben@bagu.org>
2715 Add support for column sorting.
2717 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2718 AsynDataProvider to be an anonymous inner class. Use new
2719 getSortedTableData RPC method when column sort is requested. Set all
2720 columns sortable and add an AsyncHandler to activate sorting in the
2722 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2723 method getSortedTableData(). Cleanup other method signatures.
2724 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2725 new method getSortedTableData(). Cleanup other method signatures.
2726 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2727 Implement getSortedTableData() and getTableData() methods by using a
2728 private helper method with the appropriate parameters filled in. Use
2729 user supplied sort clause when supplied, otherwise fall back to
2730 sorting by the primary key. Move destroy() method to be underneath
2731 constructor for readability. Cleanup comments.
2733 2011-03-03 Ben Konrath <ben@bagu.org>
2735 Add support for colour text and colour backgrounds to the layout list cells.
2737 Only the cell backgrounds are coloured which leaves a gap between the
2738 cells that isn't coloured. I need to figure out a way to set
2739 'style=background-colour:' on the whole column rather than just the
2742 * TODO: Add a note about colouring the background of the whole column.
2743 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2744 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2745 render the coloured text and backgrounds. Use GlomField[] for the row type.
2746 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2748 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2749 GlomField[] for the row type.
2750 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2751 GlomField[] for the row type. Set the text, text colour and background
2752 colour in the GlomField objects as specified in the glom document. Add
2753 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2754 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2755 the glom field text, foreground colour and background colour.
2757 2011-03-02 Ben Konrath <ben@bagu.org>
2759 Don't display hidden tables in the combo box.
2761 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2764 code to ignore hidden tables using ArrayLists for the table names and
2766 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2767 tableNames to use ArrayLists instead of String[]. Update getter and setter
2770 2011-03-01 Ben Konrath <ben@bagu.org>
2772 Add support for Date and Time number types.
2774 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2775 Implement formatting for Date and Time values. Change the default glom
2776 file to small business example.
2778 2011-03-01 Ben Konrath <ben@bagu.org>
2780 Add support for formatting glom types as specified in the glom file.
2782 Formatting isn't finished yet - I still need to add support for Date
2785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2786 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2787 checks for null values in JDBC cleanup code and catch all exceptions
2788 instead of just SQLExceptions.
2789 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2792 2011-03-01 Ben Konrath <ben@bagu.org>
2794 Use GWT 2.2.0 instead of 2.1.1.
2796 * pom.xml: Change GWT version numbers.
2798 2011-03-01 Ben Konrath <ben@bagu.org>
2800 A few small code cleanups.
2802 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2804 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2805 unnecessary object creation in constructor.
2806 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2807 unnecessary object creation in constructor.
2809 2011-02-28 Ben Konrath <ben@bagu.org>
2811 Add file for TODO list.
2815 2011-02-18 Ben Konrath <ben@bagu.org>
2817 Enable the CellTable Pager when more than 20 rows need to be viewed.
2819 The Pager will automatically become active when the results are larger
2820 than the CellTable size which is currently set to 20 lines.
2822 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2823 name on debug statment in RPC call in LayoutListDataProvider, add
2824 numRows parameter to LayoutListView constructor, propperly set rowCount
2826 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2827 name on debug statment in RPC call, use LayoutListTable object in RPC
2828 calls, pass rowCount to LayoutListView.
2829 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2830 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2832 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2833 interface for changes in OnlineGlomService.
2834 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2835 getLayoutListHeaders() to getLayoutListTable() and return
2836 LayoutListTable. Using this object allows me to pass other information
2837 about the LayoutList like the expected number of rows in the result set.
2838 The Connection object from the connection pool is now propperly closed.
2839 Only the requested number of lines are returned to the client in
2841 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2842 GlomTable and add columnTitles and numRows.
2844 2011-02-18 Ben Konrath <ben@bagu.org>
2846 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2848 This is a small performance boost. I'll use GlomTable to get the required
2849 layoutlist information.
2851 * src/main/java/org/glom/web/client/OnlineGlom.java:
2852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2853 * src/main/java/org/glom/web/shared/GlomDocument.java:
2855 2011-02-18 Ben Konrath <ben@bagu.org>
2857 Add option to turn off formatting in JDT formatter preferences.
2859 * .settings/org.eclipse.jdt.core.prefs:
2861 2011-02-18 Ben Konrath <ben@bagu.org>
2863 Rename LayoutList to LayoutListView.
2865 I'm working towards setting things up to easily use MVP when the time
2868 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2870 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2873 2011-02-17 Ben Konrath <ben@bagu.org>
2875 Move LayoutListDataProvider class into LayoutList.java.
2877 * src/main/java/org/glom/web/client/LayoutList.java:
2879 2011-02-17 Ben Konrath <ben@bagu.org>
2881 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2883 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2885 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2886 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2887 from LibGlomServer.java.
2888 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2889 Rename from LibGlomServiceAsync.java.
2890 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2891 Rename from LibGlomServiceImpl.java.
2892 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2894 2011-02-17 Ben Konrath <ben@bagu.org>
2896 Update JDT settings.
2898 * .settings/org.eclipse.jdt.core.prefs:
2900 2011-02-17 Ben Konrath <ben@bagu.org>
2902 Move GWT-RPC objects to shared package (where they should be).
2904 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2905 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2906 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2907 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2908 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2909 org.glom.web.shared package.
2910 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2911 org.glom.web.shared package.
2912 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2913 directory in compilation to javascript.
2915 2011-02-16 Ben Konrath <ben@bagu.org>
2917 Add sort clause to the sql query that grabs table information.
2919 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2920 if one of the columns is a primary key.
2922 2011-02-16 Ben Konrath <ben@bagu.org>
2924 Disable generateAsync feature of gwt-maven.
2926 The generated interface does not correctly match the methods in LibGlomService
2927 and the generated singleton Util inner-class doesn't respect the servlet
2930 * pom.xml: Turn off generateAsync feature.
2931 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2932 with singleton Util inner-class.
2934 2011-02-14 Ben Konrath <ben@bagu.org>
2936 Add LGPL v3 licence notices.
2938 Followed directions listed here:
2939 http://www.gnu.org/licenses/gpl-howto.html
2941 * COPYING: This file is a copy of the GPL v3.
2942 * COPYING.LESSER: This file is a copy of the LGPL v3.
2943 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2945 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2947 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2949 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2951 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2953 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2955 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2958 2011-02-14 Ben Konrath <ben@bagu.org>
2960 Use ArrayList instead of Array in GWT-RPC calls.
2962 Apparently this gives a slight performance boost to the compiled
2965 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2967 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2970 2011-02-14 Ben Konrath <ben@bagu.org>
2972 Access data from a postgres db rather than the example glom file.
2974 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2975 compile down to obfuscated javascript.
2976 * pom.xml: Add c3p0 and postgres JDBC libraries.
2977 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2978 using a postgres db accessed through the c3p0 connection pooling library.
2980 2011-02-14 Ben Konrath <ben@bagu.org>
2982 Update Java formatter settings.
2984 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2986 2011-02-02 Ben Konrath <ben@bagu.org>
2988 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2990 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2992 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2993 the compiled webapp directory that Eclipse uses as we're using Maven now.
2994 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2995 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2997 * pom.xml: Format file, change target Java version to 1.6.
2999 2011-02-02 Ben Konrath <ben@bagu.org>
3001 Add information about a deployment related issue.
3003 * README: Add Notes section with the problem outlined.
3005 2011-02-02 Ben Konrath <ben@bagu.org>
3007 Call Glom.libglom_deinit() when the servlet is shutdown.
3009 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3010 Glom.libglom_deinit() to destroy() method.
3012 2011-01-28 Ben Konrath <ben@bagu.org>
3014 Use generated Util class to get the RPC Async interface.
3016 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3018 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3019 getInstance() method to get a reference to the RPC Async interface.
3020 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3021 getInstance() method to get a reference to the RPC Async interface, remove
3022 the now unused getLibGlomServiceProxy() method.
3024 2011-01-27 Ben Konrath <ben@bagu.org>
3026 Cleanup ChangeLog entry from previous commit.
3028 * ChangeLog: Group logical changes together and add comments.
3030 2011-01-25 Ben Konrath <ben@bagu.org>
3032 Convert to gwt-maven project.
3034 * .gitignore: Update for new project structure.
3035 * README: New file with a link to the online documentation.
3036 * pom.xml: The generated maven configuration file with some tweaks.
3038 Add / update Eclipse settings. These files are a merge of the files that
3039 were generated with the gwt-maven plugin and the files we were previously
3043 * .settings/.jsdtscope:
3044 * .settings/com.google.gdt.eclipse.core.prefs:
3045 * .settings/com.google.gwt.eclipse.core.prefs:
3046 * .settings/org.eclipse.jdt.core.prefs:
3047 * .settings/org.eclipse.wst.common.component:
3048 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3049 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3050 * .settings/org.maven.ide.eclipse.prefs:
3051 * OnlineGlomTest-dev.launch:
3052 * OnlineGlomTest-prod.launch:
3054 Java source files moved from the 'src' directory to the directory structure
3056 * src/main/java/org/glom/web/client/GlomDocument.java:
3057 * src/main/java/org/glom/web/client/GlomTable.java:
3058 * src/main/java/org/glom/web/client/LayoutList.java:
3059 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3060 * src/main/java/org/glom/web/client/LibGlomService.java:
3061 * src/main/java/org/glom/web/client/OnlineGlom.java:
3062 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3064 Non-functional property file used for translations. I included this as
3065 reminder that it's something I need to sort out.
3066 * src/main/resources/org/glom/web/client/Messages.properties:
3068 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3069 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3071 The servlet configuration files moved from the 'war' directory.
3072 * src/main/webapp/OnlineGlom.css:
3073 * src/main/webapp/OnlineGlom.html:
3074 * src/main/webapp/WEB-INF/web.xml:
3076 Generated test files with most of the code commented out. I included these
3077 so that it's easy to add tests when we're ready for them.
3078 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3079 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3081 2011-01-25 Ben Konrath <ben@bagu.org>
3083 Remove unused println.
3085 * src/org/glom/web/server/LibGlomServiceImpl.java:
3087 2011-01-25 Ben Konrath <ben@bagu.org>
3089 Add project specific JDT settings.
3091 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3092 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3094 2011-01-25 Ben Konrath <ben@bagu.org>
3096 Populate celltable with example data.
3098 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3099 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3100 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3101 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3102 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3103 asynchronously gets the example data.
3104 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3105 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3106 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3107 curently selected table to be retrieved by other widgets.
3108 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3109 implement getTableData() in a hacky way. This method needs to be updated
3110 to grab information from the database when database creating is
3113 2011-01-20 Ben Konrath <ben@bagu.org>
3115 Set table headers when table dropBox changes.
3117 * src/org/glom/web/client/GlomDocument.java: Correct some method
3119 * src/org/glom/web/client/LibGlomService.java: Add method
3120 to get list layout field names.
3121 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3122 to get list layout field names.
3123 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3124 widget for list layout table.
3125 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3126 the table drop box and add new updateTable() method to asynchronously
3127 get the layout list field names for the currently selected table.
3128 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3129 implementation of getLayoutListHeaders() method.
3130 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3132 2011-01-18 Ben Konrath <ben@bagu.org>
3134 Make a listBox with table titles instead of the flexTable demo.
3136 This is the start of something more useful.
3138 * .classpath: Exclude a bunch of packages from the JVM that are
3139 getting in the way of the Eclipse content assist.
3140 * src/org/glom/web/client/GlomDocument.java:
3141 * src/org/glom/web/client/GlomTable.java:
3142 * src/org/glom/web/client/LibGlomService.java:
3143 * src/org/glom/web/client/LibGlomServiceAsync.java:
3144 * src/org/glom/web/client/OnlineGlom.java:
3145 * src/org/glom/web/server/LibGlomServiceImpl.java:
3146 * war/OnlineGlom.html:
3147 * war/WEB-INF/web.xml:
3149 211-01-13 Ben Konrath <ben@bagu.org>
3151 Update to new java-libglom API.
3153 * .gitignore: Ignore OnlineGlom.war.
3154 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3156 2010-12-20 Ben Konrath <ben@bagu.org>
3158 Add some basic style to the table listing.
3160 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3161 header, print useful error message on async callback failure.
3162 * war/OnlineGlom.css: Add style for table header, remove defaults
3163 provided by the Eclipse project wizard.
3165 2010-12-20 Ben Konrath <ben@bagu.org>
3167 Load example file from installed glom dir.
3169 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3170 provided by java-libglom to find the example file.
3172 2010-12-20 Ben Konrath <ben@bagu.org>
3174 Update Eclipse settings.
3177 * .settings/com.google.gdt.eclipse.core.prefs:
3178 * .settings/com.google.gwt.eclipse.core.prefs:
3180 2010-12-17 Ben Konrath <ben@bagu.org>
3184 * .classpath: New file.
3185 * .gitignore: New file.
3186 * .project: New file.
3187 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3188 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3189 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3190 * src/org/glom/web/client/GlomTable.java: New file.
3191 * src/org/glom/web/client/OnlineGlom.java: New file.
3192 * src/org/glom/web/client/TableNameService.java: New file.
3193 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3194 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3195 * war/OnlineGlom.css: New file.
3196 * war/OnlineGlom.html: New file.
3197 * war/WEB-INF/web.xml: New file.
3198 * war/images/glom.png: New file.