1 2011-11-29 Ben Konrath <ben@bagu.org>
3 Don't add group titles for Portals in Notebooks.
5 This reverts the previous patch and fixes a bug I introduced with
6 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
8 * src/main/java/org/glom/web/client/ui/details/Group.java:
9 * src/main/java/org/glom/web/client/ui/details/Portal.java:
11 2011-11-28 Ben Konrath <ben@bagu.org>
13 Remove unused boolean argument in Portal constructor.
17 * src/main/java/org/glom/web/client/ui/details/Group.java:
18 * src/main/java/org/glom/web/client/ui/details/Portal.java:
20 2011-11-28 Ben Konrath <ben@bagu.org>
22 Remove hack for glom 1.18 style glom files.
24 * src/main/java/org/glom/web/client/ui/details/Group.java:
25 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
26 * src/main/java/org/glom/web/client/ui/details/Portal.java:
28 2011-11-28 Ben Konrath <ben@bagu.org>
30 Use Gda Value version of primary key to log result too large error.
32 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
34 2011-11-28 Ben Konrath <ben@bagu.org>
36 Don't use TypedDataItem.getText() for Unknown types from the URL.
38 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
39 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
41 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
42 String field and getUnknown() method.
44 2011-11-28 Ben Konrath <ben@bagu.org>
46 Log an error message when the java-libglom .so is not present.
48 The error message was being set in the exception but not logged.
50 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
52 2011-11-28 Ben Konrath <ben@bagu.org>
54 Ignore LayoutItem_CalendarPortals.
56 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
57 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
59 2011-11-28 Ben Konrath <ben@bagu.org>
61 Extract method for creating the LayoutItemPortal DTO.
63 Just breaking the code up into smaller chunks.
65 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
67 2011-11-28 Ben Konrath <ben@bagu.org>
71 This should have been added with the refactor. Oops!
73 * src/main/java/org/glom/web/shared/TypedDataItem.java:
75 2011-11-28 Ben Konrath <ben@bagu.org>
77 Create primary key value from URL string using type from Glom document.
79 See this bug, comments 19 - 25:
81 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
83 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
84 create a TypeDataItem for the primary key here when loading from a
85 URL. Show the same string for the primary key value as was received
86 from the URL string (when loading from a URL).
87 * src/main/java/org/glom/web/server/Utils.java: Update method for
88 creating the Gda Value from the TypeDataItem to properly deal with
89 creating a Gda Value based on the Glom document type for the primary
90 key value string when loading from a URL.
91 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
92 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
93 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
94 Update for changed method name.
96 2011-11-27 Ben Konrath <ben@bagu.org>
98 Rename PrimaryKeyItem to TypedDataItem.
100 The name PrimaryKeyItem suggests what the class should be used for.
101 TypedDataItem is a neutral name that describes the class better.
103 This is a rename-only refactor.
105 * src/main/java/org/glom/web/client/OnlineGlomService.java:
106 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
107 * src/main/java/org/glom/web/client/Utils.java:
108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
109 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
110 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
111 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
112 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
113 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
114 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
115 * src/main/java/org/glom/web/server/Utils.java:
116 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
117 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
118 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
119 * src/main/java/org/glom/web/shared/NavigationRecord.java:
121 2011-11-25 Ben Konrath <ben@bagu.org>
123 Improve Gda Value conversion from PrimaryKeyItem.
125 The value from the PrimaryKeyItem is only used if its type match the
126 type from the glom document.
128 * src/main/java/org/glom/web/server/Utils.java:
130 2011-11-25 Ben Konrath <ben@bagu.org>
132 Manually check if the java-liblgom .so is visible to the JVM.
134 It seems that Tomcat has problems when a static initializer throws an
135 exception. This check is done before the first method call into
136 java-libglom so that execution doesn't continue if the .so is not
139 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
141 2011-11-25 Ben Konrath <ben@bagu.org>
143 Improve browser configuration error messages.
147 https://bugzilla.gnome.org/show_bug.cgi?id=662792
149 * src/main/java/org/glom/web/client/OnlineGlomService.java:
150 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
151 getConfigurationErrorMessage() method.
152 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
153 Get and display a specific configuration error message when no Glom
155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
156 Implement getConfigurationErrorMessage() method. Surround configuration
157 code in the init() method with a try/catch block. This allows the
158 errors to be caught while keeping the servlet available to retrieve the
159 configuration error message.
161 2011-11-25 Ben Konrath <ben@bagu.org>
163 Don't use Strings to hold primary key values.
165 The primary key values are now held in a new data object
166 (PrimaryKeyItem) that holds type information and the primary key value
167 using the correct type.
169 * src/main/java/org/glom/web/client/OnlineGlomService.java:
170 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
172 PrimaryKeyItem instead of String to hold the primary key value.
173 * src/main/java/org/glom/web/client/Utils.java: Remove
174 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
175 PrimaryKeyItem based on the GlomFieldType and the DataItem.
176 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
177 PrimaryKeyItem instead of String to hold the primary key value. Load
178 document selection page when the documentID has not been set correctly.
179 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
180 DetailsPlace -> URL and URL -> DetailsPlace conversion with
182 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
183 Return empty string for URL instead of "null".
184 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
185 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
186 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
187 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
188 PrimaryKeyItem instead of String to hold primary key values.
189 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
190 PrimaryKeyValue to a Gda Value.
191 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
192 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
193 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
194 Replace temporary database access code that uses the PrimaryKeyValue to
195 Gda Value conversion.
196 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
197 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
198 PrimaryKeyItem instead of String.
199 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
200 hold primary key values.
202 2011-11-24 Ben Konrath <ben@bagu.org>
204 Use newly added java-libglom API to create queries.
206 This isn't finished. I still need to stop using Strings for primary key
207 values in the client code.
209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
210 libglom to use fake connections so that retrieving the query string will
212 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
213 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
214 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
215 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
216 Use the newly added libglom sql methods and classes to create the
217 query. Add temporary hack to convert primary value strings to Gda
220 2011-11-23 Ben Konrath <ben@bagu.org>
222 Don't explicitly set the height of Portals.
224 See comments 6 - 10 of this bug for details:
226 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
228 * src/main/java/org/glom/web/client/ui/details/Portal.java:
230 2011-11-23 Ben Konrath <ben@bagu.org>
232 Use an HTML table instead of CSS for the FlowTable layout.
234 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
235 GWT's FlexTable to implement the FlowTable.
236 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
238 2011-11-18 Ben Konrath <ben@bagu.org>
240 Add boolean example to HTML table mockup.
242 * mockups/details-view-html-tables-text-entries.html:
244 2011-11-17 Ben Konrath <ben@bagu.org>
246 Ensure the pager buttons are always visible for related lists.
248 To accomplish this, I've turned off text wrapping in the list view and
249 related list tables for both the header and data text. The related list
250 table now has a fixed layout so the it doesn't overflow its container.
251 This is required to ensure that the cell text is clipped when it
252 overflows the cell and an ellipsis is added to the right side of the
253 cell when text is clipped.
255 A fixed table layout for the related list table in the details view
256 seems what we want for the details view anyway, so the side-effect is
259 The ellipsis will only be displayed in Firefox >= 7.
263 https://bugzilla.gnome.org/show_bug.cgi?id=662930
265 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
266 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
267 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
269 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
270 Set the 'table-layout: fixed' CSS property to the related list table.
271 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
272 'white-space: nowrap;' CSS property on both the list view and the
275 2011-11-16 Ben Konrath <ben@bagu.org>
277 Rework the fix for empty notebook tab labels.
279 Setting the empty group titles with its name caused problems for the
280 details layout. Instead of using libglom's
281 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
282 to the client when the title is empty. This allows the Notebook to use
283 the name when the title is empty without affecting anything else.
285 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
286 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
288 2011-11-16 Ben Konrath <ben@bagu.org>
290 Set group titles with name when title is empty.
292 This fixes a problem with an empty notebook tab label in the Lesson
293 Planner document. The forth tab in the notebook should be "Internet":
295 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
297 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
298 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
301 2011-11-16 Ben Konrath <ben@bagu.org>
303 Remove whitespace from the configured username properties.
305 This assumes that usernames won't have whitespace at the beginning
306 or end. But I think this is a reasonable assumption.
308 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
309 String.trim() to remove the whitespace from the username properties.
311 2011-11-15 Ben Konrath <ben@bagu.org>
313 Add details view mockup with HTML tables and text entries.
315 This is from the attachment on this bug:
317 https://bugzilla.gnome.org/show_bug.cgi?id=663109
319 * mockups/details-view-html-tables-text-entries.html:
321 2011-11-15 Ben Konrath <ben@bagu.org>
323 Add space between the columns of the flow table.
327 https://bugzilla.gnome.org/show_bug.cgi?id=662918
329 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
330 space between columns in the flow table.
332 2011-11-15 Ben Konrath <ben@bagu.org>
334 Add backup files to the .gitignore.
336 * .gitignore: Ignore files that end with ~.
338 2011-11-09 Ben Konrath <ben@bagu.org>
340 Use latest release of gwt-log.
342 Gwt-log releases are now being submitted to the maven central
343 repository so manual installation of the jar is no longer required.
345 * pom.xml: Update version and groupId of gwt-log dependency.
347 2011-10-31 Ben Konrath <ben@bagu.org>
349 Don't use GWT numeric formatting to override the glom currency formatting.
351 Currencies are now displayed like they are in Glom. See this bug:
353 https://bugzilla.gnome.org/show_bug.cgi?id=646216
355 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
357 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
358 currency code to constructor and set it when the cell is rendered.
359 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
360 currency code to the constructor of the NumericCell.
362 2011-10-27 Ben Konrath <ben@bagu.org>
364 Require the latest release of java-libglom (1.17.4).
368 2011-10-26 Ben Konrath <ben@bagu.org>
370 Add style to Notebook that matches current theme.
372 It's not the best style in the world but it's better than the default.
374 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
375 padding at the bottom of the child widgets.
376 * src/main/webapp/style.css: Add style for the Notebook.
378 2011-10-26 Ben Konrath <ben@bagu.org>
380 Move servlet initialization code to overridden init method.
382 This is half of the solution to getting proper error messages
383 displayed when configuration errors occur. Here's the relevant bug:
385 https://bugzilla.gnome.org/show_bug.cgi?id=662792
387 The rest of the solution involves surrounding the init method with a
388 try/catch block and setting a global variable with the error /
389 exception. A new async method should be created to retrieve and display
390 the error message / exception.
392 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
393 code from constructor to init method adding exceptions as needed.
395 2011-10-26 Ben Konrath <ben@bagu.org>
397 Add script to monitor and restart tomcat if required.
399 * utils/check-and-recover-tomcat.py: New file.
401 2011-10-26 Ben Konrath <ben@bagu.org>
403 Display the correct number of data items in the pager.
407 https://bugzilla.gnome.org/show_bug.cgi?id=661441
409 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
410 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
411 The implementation is the same for both tables: Keep track of the
412 number of non-empty rows and fire and RowCountChangeEvent after the data has
414 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
415 custom Pager class that subclasses SimplePager to handle displaying
416 the correct number when empty rows have been added.
418 2011-10-26 Ben Konrath <ben@bagu.org>
420 Correct error in previous commit.
422 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
423 eventBus parameter from listView.setCellTable().
425 2011-10-26 Ben Konrath <ben@bagu.org>
427 Fix error in TODO comment.
429 * src/main/java/org/glom/web/client/activity/ListActivity.java:
431 2011-10-24 Ben Konrath <ben@bagu.org>
433 Create Notebook widgets to the details view.
435 This isn't finished just yet - I still need to create a reasonable
436 style to match the current theme.
438 * src/main/java/org/glom/web/client/Utils.java: Add method for
439 calculating the height of a widget. This is used in the Notebook class.
440 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
441 new constructor method in Group.
442 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
443 method for creating child widget that can be used by subclasses
444 like Notebook. New constructor that allows disabling the group
445 titles - Notebooks don't set a group title for their child groups.
446 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
447 to make Notebooks using GWT's TabLayoutPanel.
448 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
449 constructor that allows disabling the group titles.
450 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
451 LayoutItemNotebook DTO.
452 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
453 DTO for Notebooks. It's just an empty class for now but we might need
454 it to transfer some specific information in the future.
456 2011-10-21 Ben Konrath <ben@bagu.org>
458 Add navigation buttons to related list tables.
460 * src/main/java/org/glom/web/client/OnlineGlomService.java:
461 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
462 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
463 method getSuitableRecordToViewDetails() for getting the table name
464 and primary key value for related list navigation buttons.
465 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
466 private cell renderer class to get the navigation information for
467 related list tables from the server. Extract the navigation
468 processing code from the details cell navigation and use it for the
469 related list navigation as well.
470 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
471 cell renderer class for the details open buttons. This was needed
472 because the related list navigation buttons and the list view
473 navigation buttons need to react differently when clicked.
474 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
475 the onEnterKeyDown() method because it's now overriden in the
476 subclasses that are specific to the related list tables and the list
478 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
479 the vertical size a little because the buttons add a bit of vertical
480 space to table. This is not a perfect solution because the vertical
481 size of with table fewer than 5 rows will be a little smaller.
482 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
483 changes in how navigation buttons are handled.
484 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
485 getSuitableRecordToViewDetails() using the new RelatedListNavigation
486 database access object.
487 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
488 to find the portal for a given relationship name from
489 RelatedListDBAccess. Add method to find a primary key field for a
491 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
492 Move code to find the portal for a given relationship name to
494 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
495 New file: database access object for getting the related list
496 navigation information (the table name and the primary key value).
497 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
498 DTO for transferring a table name to navigate to and a primary key
500 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
501 boolean and getter/setter to specifies if the related list should add
504 2011-10-24 Murray Cumming <murrayc@murrayc.com>
506 Use the master branch of java-libglom
508 * pom.xml: Depend on java-libglom 1.19 instead.
510 This is the master branch. See also the libglom-1-18 branch.
512 2011-10-11 Ben Konrath <ben@bagu.org>
514 Enable the open navigation button when the data has been set.
516 This avoids having active buttons that don't do anything when the data
519 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
521 2011-10-11 Ben Konrath <ben@bagu.org>
523 Use IsWidget interface for FlowTableItem.
525 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
526 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
528 2011-10-11 Ben Konrath <ben@bagu.org>
530 Remove GWT styling from open button in details view.
532 There are still some issues with how the details cell is arranged but
533 this should be made to match Glom 1.20. I'm going to leave fixing this
534 until I have Glom 1.20 up and running.
536 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
537 style name on open button.
538 * src/main/webapp/style.css: Move and edit details-navigation class.
539 Re-arrange some classes to make them appear in the same order as the
542 2011-10-07 Ben Konrath <ben@bagu.org>
546 * .gitignore: Ignore new cache directory.
547 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
548 * pom.xml: Change GWT and maven plugin to 2.4.0.
549 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
551 * src/main/java/org/glom/web/client/ClientFactory.java:
552 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
553 * src/main/java/org/glom/web/client/OnlineGlom.java:
554 Update source for API changes.
555 * utils/build-onlineglom-war.sh: Remove cache directory before the
558 2011-10-07 Ben Konrath <ben@bagu.org>
560 Add navigation buttons in the details view.
562 This isn't finished but I thought I'd commit what I have as it's a
563 pretty good start. I still need to:
565 1. Change the style so that it fits better into the current theme
566 2. Adjust the details cell to expand as much as possible.
568 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
569 click handlers to navigation buttons in the DetailsCells. Create a
570 refreshData() method to get just the data from the server without the
572 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
573 Update the tableSelector and browser title when the table name
574 changes without using the tableSelector.
575 * src/main/java/org/glom/web/client/ui/DetailsView.java:
576 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
577 getDetailsCells() to getCells(). Update variable names.
578 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
579 method to set click handler on navigation button. Rename a few
580 variables. Add navigation buttons where needed.
581 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
582 variables and methods.
583 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
584 navigation boolean and navigation table as required in the
586 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
587 variables for navigation along with getter/setter methods.
589 2011-10-07 Ben Konrath <ben@bagu.org>
591 Rename Field to DetailsCell.
593 This is a refactor-only commit. No functionality has been added or
596 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
597 Update variable and method names.
598 * src/main/java/org/glom/web/client/ui/DetailsView.java:
599 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
600 variable and method names.
601 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
603 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
604 variable and method names.
606 2011-10-07 Ben Konrath <ben@bagu.org>
608 Create separate methods for layout and data the details view.
610 This is a refactor-only commit. No functionality has been added or
613 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
614 private methods: setData(), createLayout().
616 2011-10-07 Ben Konrath <ben@bagu.org>
618 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
620 This is part of a change to get navigation buttons in the details view
621 but it should have been done this way from the start.
623 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
624 for method name change in TableSelectionView.
625 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
626 Create TableChangeEvent and set the browser title using the
627 TableSelectionView API.
628 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
629 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
630 Change getSelectedTable() to getSelectedTableName(). Add
631 getSelectedTableTitle().
633 2011-10-07 Ben Konrath <ben@bagu.org>
635 Use primaryKeyValue naming convention in constructor of DetailsPlace.
637 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
639 2011-10-07 Ben Konrath <ben@bagu.org>
641 Update TableChangeEvent to use newTableName naming convention.
643 This makes the class more consistent with GWT naming conventions.
645 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
646 Update for method name change in TableChangeEvent.
647 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
648 for method name change in TableChangeEvent.
649 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
650 newTableName variable and getter method. Make toDebugString()
653 2011-09-30 Ben Konrath <ben@bagu.org>
655 Disable the pager in the list tables when the data row count is less than the minimum.
657 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
658 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
660 2011-09-30 Ben Konrath <ben@bagu.org>
662 Add empty rows to the end of related list and list view tables.
664 I also extracted the cell rendering classes from the ListTable because
665 the code was becoming a little crazy with all the anonymous inner
666 classes. My plan is to use these cell rendering classes in the details
667 view as well so this refactor will be needed for that change.
669 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
670 set the row count in related list tables if the data has more rows
671 than the minimum number of rows visible.
672 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
673 row count in list view tables if the data has more rows than the
674 minimum number of rows visible.
675 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
676 for rendering TYPE_BOOLEAN cells. The code was extracted from the
678 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
679 for rendering TYPE_NUMERIC cells. The code was extracted from the
681 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
682 class for rendering cells with buttons in list views. The code was
683 extracted from the ListTable class.
684 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
685 for rendering TYPE_TEXT cells. The code was extracted from the
687 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
688 Add empty rows to the end of the data if required. Implement
689 ListTable.getMinNumVisibleRows().
690 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
691 cell renderer code to public classes. Return null in
692 Column.getValue() for empty rows. Add new abstract method:
693 getMinNumVisibleRows(). Move code to set the row count of the list view
694 table to ListViewImpl.
695 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
696 empty rows to the end of the data if required. Implement
697 ListTable.getMinNumVisibleRows().
700 2011-09-27 Ben Konrath <ben@bagu.org>
702 Use GWT.log for client-side debugging statements.
704 These are optimized out when deployed so I should have used this method
705 in the first place. These statements will eventually be replaced with some sort
706 of notification in the browser.
708 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
709 * src/main/java/org/glom/web/client/activity/ListActivity.java:
710 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
711 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
712 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
714 2011-09-27 Ben Konrath <ben@bagu.org>
716 Put tableselector on the right, back to list link on right.
718 The idea is that the table selector is acting like a label for the
719 currently displayed table so it should be placed below the document title. This
720 puts the table title in a similar position to where it is in Glom.
722 * mockups/details-contacts.html:
723 * mockups/details-projects.html:
724 * mockups/listview-contacts.html:
725 * mockups/listview-projects.html:
727 Update mockups to match how the interfaces currently look.
728 * src/main/webapp/style.css: Swap positions of backlink with the table
729 selector. Add some space on the left side of the table selector to
730 line things up with the document title.
732 2011-09-27 Ben Konrath <ben@bagu.org>
734 Add field colouring to details view.
736 This change re-works how field colouring works. The colour formatting
737 information is now set to the client with the layout information instead of
738 with the data. This eliminates the need to send the same colour strings for
739 data in list view column when colour information is set.
741 In order to set an alternate colour for negative numeric values, the
742 number is now sent to client and formatted with the GWT NumberFormat class.
744 This change also fixes:
746 https://bugzilla.gnome.org/show_bug.cgi?id=659752
748 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
749 internationalization framework which is needed for client side numeric
751 * src/main/java/org/glom/web/client/Utils.java: New file for some
752 client static utility methods.
753 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
754 the DataItem object to the Field class. Use a utility method to
755 create the foreignKeyValue string.
756 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
757 alignment and text colours in the constructor. Add setData(DataItem)
758 method. Remove setText(String) method.
759 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
760 colour information to GlomTextCell. Create and use GlomNumberCell for
761 rendering numbers. Use utility method to get the string for the
762 primary key of the key provider. Re-work how the horizontal alignment
764 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
765 formatting to layout information. Methods for converting the libglom
766 formatting information were moved from DBAccess.
767 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
768 numeric formatting (it's now done on the client side). Don't set text
769 colours in DataItem. Move libglom formatting conversion methods to
771 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
772 getters/setters for text colour information.
773 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
774 for transferring the libglom NumericFormat information to the client.
775 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
776 and getters/setters for: GlomNumericFormat, background colour and
777 foreground colour strings.
779 2011-09-26 Ben Konrath <ben@bagu.org>
781 Simplify code that iterates through the LayoutGroup.
783 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
785 2011-09-26 Ben Konrath <ben@bagu.org>
787 Accept Eclipse formatting for OnlineGlomServiceAsync.
789 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
791 2011-09-26 Ben Konrath <ben@bagu.org>
793 Don't use the ListDBAccess classes to get the primary key layout information.
795 This was causing a bug where the wrong index for the hidden primary key
796 was being sent to the client.
798 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
799 primary key while creating the LayoutGroup DTO. Create a
800 LayoutItemField DTO for hidden primary keys. Don't use the
801 RelatedListDBAccess because it was only used for getting the primary
803 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
804 access modifier from public to protected for getPrimaryKeyField() and
805 getPrimaryKeyLayoutItemField().
806 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
807 abstract method getExpectedResultSize() because RelatedListDBAccess
808 doesn't have enough info to implement it.
809 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
810 Remove @Override for getExpectedResultSize().
811 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
812 Remove method getExpectedResultSize().
814 2011-09-23 Ben Konrath <ben@bagu.org>
816 Log which layout (list or details) the ignored item is from.
818 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
820 2011-09-23 Ben Konrath <ben@bagu.org>
822 Remove annotations that turn off code formatting in DataItem.
824 * src/main/java/org/glom/web/shared/DataItem.java:
826 2011-09-23 Ben Konrath <ben@bagu.org>
828 Rename GlomField to DataItem and update associated methods.
830 This is a rename-only refactor. No functionality has been added or
833 * src/main/java/org/glom/web/client/OnlineGlomService.java:
834 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
835 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
836 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
837 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
838 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
839 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
840 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
841 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
842 * src/main/java/org/glom/web/server/database/DBAccess.java:
843 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
844 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
845 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
846 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
847 * src/main/java/org/glom/web/shared/DataItem.java:
848 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
849 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
851 2011-09-23 Ben Konrath <ben@bagu.org>
853 Rename GlomDocument to DocumentInfo and update associated methods.
855 This is a rename-only refactor. No functionality has been added or
858 * src/main/java/org/glom/web/client/OnlineGlomService.java:
859 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
860 * src/main/java/org/glom/web/client/activity/ListActivity.java:
861 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
862 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
863 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
864 * src/main/java/org/glom/web/shared/DocumentInfo.java:
866 2011-09-20 Ben Konrath <ben@bagu.org>
868 Require java-libglom 1.17.3.
870 This picks up the fix for the seg fault problem with the Scenes table
871 in the Openismus Film Manager example.
875 2011-09-20 Ben Konrath <ben@bagu.org>
877 Change the way sort clause is added for primary key when no sort clause is requested.
879 The primary key is now added to the LayoutFieldVector (fieldsToGet)
880 before the sort clause is created. When a sort clause is not requested, the
881 sort clause is created by finding the primary key in the LayoutFieldVector
884 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
886 2011-09-20 Ben Konrath <ben@bagu.org>
888 Log error message if no documents are found in the configured directory.
890 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
891 Extract the glom file extension string to a private static final class
892 variable (mostly as syntactic sugar). Accept a minor formatting change.
893 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
894 the example glom.document.directory configuration property to make it
895 more clear that it can any directory, not just the home directory.
897 2011-09-18 Ben Konrath <ben@bagu.org>
899 Add related lists to details view.
901 The related list table has support for paging and sorting just like the
902 table in the list view.
904 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
905 SQL queries for the related list tables.
906 * src/main/java/org/glom/web/client/OnlineGlomService.java:
907 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
908 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
909 Rename getList methods to getListView and add comments. Remove
910 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
911 it being unused. Add methods: getDetailsLayoutAndData(),
912 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
913 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
914 Create the layout and set the data for the fields in one async call
915 instead of two. Create related lists where appropriate.
916 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
917 for method name changes in OnlineGlomService.
918 * src/main/java/org/glom/web/client/ui/DetailsView.java:
919 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
920 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
922 * src/main/java/org/glom/web/client/ui/ListView.java:
923 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
924 tableName from setCellTable(). Create a ListViewTable instead of
926 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
927 represent a data field in the details view.
928 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
929 from addDetailsCell() to Field class. Keep track of the Fields and
930 Portals in the details view.
931 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
932 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
933 and add a method to get it. Add method to set the contents of the
935 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
936 New class for related list tables. This class has the data provider
937 for the related list table.
938 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
939 abstract class which is the base class for the ListViewTable and the
941 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
942 New class for list view tables. This class has the data provider for
944 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
945 methods for related list tables. Add more information to the
946 LayoutItemField and LayoutItemPortal DTOs.
947 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
948 Remove debugging print statement.
949 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
950 Remove debugging print statements. Add primary key field to SQL count
952 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
953 Remove unnecessary LayoutFieldVector parameter from
954 getResultSizeOfSQLQuery() method.
955 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
956 New class for related list table database access.
957 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
958 class that is a wrapper DTO for details view layout and data.
959 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
960 new 'fromField' string to this DTO.
961 * src/main/webapp/style.css: Remove bottom margin and override top
964 2011-09-15 Ben Konrath <ben@bagu.org>
966 Breakup the OnlineGlomServiceImpl class to make it more manageable.
968 This sets things up to make it easier to add the data retrieval for
969 related lists (portals). No user noticeable changes were made with
972 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
973 class has the code to retrieve the layouts and access the
974 database using the new database helper classes.
975 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
976 Most of the functionality has been removed from this class. This
977 class now represents the public interface for the client side
978 code. It also deals with configuring the servlet and cleaning
979 things up when the servlet is stopped.
980 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
981 of static methods into this utility class.
982 * src/main/java/org/glom/web/server/database/DBAccess.java:
983 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
984 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
985 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
986 These classes have the database retrieval code. The class hierarchy
987 has been setup to make it easy to reuse code for similar
990 2011-09-06 Ben Konrath <ben@bagu.org>
992 Create separate classes for list table code and the data provider.
994 As part of this refactor, I also split up the code a bit to make it
997 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
998 table code to two new classes (below).
999 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1000 with code from ListViewImpl.
1001 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1002 New file with code from ListViewImpl.
1004 2011-09-06 Ben Konrath <ben@bagu.org>
1006 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1008 This fixes the LayoutItemPortal DTO to match the libglom layout object
1011 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1013 2011-09-01 Ben Konrath <ben@bagu.org>
1015 Set title of Portals in the Details View.
1017 * pom.xml: Bump required version of java-libglom to 1.17.1.
1018 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1019 widget creation to its own class. Add comments to constructor.
1020 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1021 The code is mostly from the Group class with the title now set.
1022 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1023 title of Portal. Update some comments. Fix some code formatting.
1025 2011-09-01 Ben Konrath <ben@bagu.org>
1027 Remove TODO comment for the flow table column width.
1029 The flow table column width is working correctly and doesn't need to be
1030 changed. See this mailing list post for more info:
1032 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1034 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1036 2011-08-27 Ben Konrath <ben@bagu.org>
1038 Add document title (database name) to top of the browser page.
1040 I added the document title to the TableSelecitonView but that will
1041 change if / when we add a view that doesn't require table selection.
1043 * mockups/details-contacts.html:
1044 * mockups/details-projects.html:
1045 * mockups/listview-contacts.html:
1046 * mockups/listview-projects.html:
1047 * mockups/style.css: Add document title to mockups to keep things
1049 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1050 sizes to account for the document title.
1051 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1052 Set the document title when it has been retrieved from the server.
1053 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1054 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1055 and implement setDocumentTitle(String) method.
1056 * src/main/webapp/style.css: Add ID for document title style.
1058 2011-08-25 Ben Konrath <ben@bagu.org>
1060 Add NavigationType enum to LayoutItemPortal DTO.
1062 This is the start of adding support for Portals to the Details View.
1064 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1065 LayoutItem_Portal.navigation_type enum from libglom to
1066 LayoutItemPortal.NavigationType enum.
1067 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1068 NavigationType enum, field for storing the NavigationType and getter
1071 2011-08-25 Ben Konrath <ben@bagu.org>
1073 Implement the flow table layout in the Details View.
1075 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1076 FlowTable to Group to account for the renamed class.
1077 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1078 File. This is a container widget that implements the Glom details view
1079 flow table behaviour.
1080 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1081 org/glom/web/client/ui/FlowTable.java.
1082 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1083 so that the size of the subgroups are a closer match to the size of
1084 the Glom subgroups. This makes the flowtable layout match the layout
1085 in Glom for the Music Collection example file.
1087 2011-08-16 Ben Konrath <ben@bagu.org>
1089 Create container element for LayoutItemPortal in Details View.
1091 This will help me develop the layout for the FlowTable.
1093 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1094 fieldPanel variable to detailsCell.
1096 2011-08-15 Ben Konrath <ben@bagu.org>
1098 Set the height of the data element in the Details View.
1100 I changed the InlineLabels (text in a span element) to Labels (text in
1101 a div element) so that I could set the height of the details-data
1102 elements instead of the details-cell parent elements. This allows the
1103 the details-data element to display the correct height if style is
1104 applied that shows the height.
1106 This change has the added benefit of allowing the order of the labels
1107 and data elements to be changed for right-to-left languages.
1109 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1110 InlineLabels to Labels.
1111 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1112 InlineLabels to Labels. Set the height of the data element.
1113 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1114 multiline text height in the Formatting DTO.
1115 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1116 for multiline height along with getter and setter methods.
1117 * src/main/webapp/style.css: Adjust style to account for the change
1118 from span elements to div elements in the details cell.
1120 2011-08-15 Ben Konrath <ben@bagu.org>
1122 Make the List View appearance match the mockups.
1124 It doesn't match exactly but it's much better than it was.
1126 * mockups/listview-contacts.html: Remove unused css classes.
1127 * mockups/listview-projects.html: Remove unused css classes.
1128 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1129 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1130 for mainPanel instead of VerticalPanel (table). Set style name on
1131 CellTable. Set style name on Details column. Right-align Details
1133 * src/main/webapp/style.css: Adjust properties to match the mockups.
1135 2011-08-12 Ben Konrath <ben@bagu.org>
1137 Add better support for subgroups in the details view.
1139 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1140 changed FlowTable constructor.
1141 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1142 support for subgroups and subgroup-titles.
1143 * src/main/webapp/style.css: Add CSS class for subgroups and
1146 2011-08-12 Ben Konrath <ben@bagu.org>
1148 Return the top level LayoutGroup title.
1150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1152 2011-08-11 Ben Konrath <ben@bagu.org>
1154 Make the TableSelector header match the mockup.
1156 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1157 the layout panel. Properly lineup the table selection header with
1158 the list and details view.
1159 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1160 margin around the details view.
1161 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1162 Rename listBox variable to tableSelector. Set id for the style sheet.
1163 Use a FlowPanel instead of a HorizontalPanel.
1164 * src/main/webapp/style.css: Add properties to make the TableSelector
1165 box match the mockups.
1167 2011-07-13 Ben Konrath <ben@bagu.org>
1169 Update install script for java-libglom version change.
1171 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1174 2011-07-13 Ben Konrath <ben@bagu.org>
1176 Add support sub-group in the details view.
1178 I also removed the code that special-cased the default details view
1181 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1183 I still have to make a proper flowtable.
1185 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1186 Don't special-case default details view layout.
1187 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1188 addLayoutField() as I'm going to use it.
1189 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1190 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1192 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1193 extracted from DetailsViewImpl.GroupPanel. Add support for
1195 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1196 column count when getting the details layout.
1198 2011-07-12 Ben Konrath <ben@bagu.org>
1200 Set browser title with database and table titles.
1202 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1203 Set the browser title when the table changes and when the activity
1205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1206 title when retrieving document info (the GlomDocument object).
1207 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1208 with getter and setter methods. Remove unused convenience constructor.
1209 Use default code formatting.
1211 2011-07-12 Ben Konrath <ben@bagu.org>
1213 Ignore LayoutItemPortals in the details view.
1215 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1218 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1219 LayoutItemPortal layout objects.
1220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1221 LayoutItemPortal objects when retrieving the details layout.
1222 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1223 file. This is an empty class and just used to get type information for
1226 2011-07-12 Ben Konrath <ben@bagu.org>
1228 Use java-libglom 1.17.0.
1232 2011-07-11 Ben Konrath <ben@bagu.org>
1234 Remove "Table:" label from table selector.
1236 This matches a recent change in the Glom UI.
1238 * mockups/details-contacts.html:
1239 * mockups/details-projects.html:
1240 * mockups/listview-contacts.html:
1241 * mockups/listview-projects.html: Remove the "Table:" label from the
1243 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1245 2011-07-11 Ben Konrath <ben@bagu.org>
1247 Add main groups to the details view.
1249 This makes things look a little nicer in the details view. The next step
1250 is to implement the flowtable.
1252 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1253 resources from the standard gwt css theme. Standard.css is now
1254 included in OnlineGlom.html so that the online glom css rules have
1255 precedence over the gwt theme.
1256 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1257 the whole LayoutGroup to the DetailsView instead of just the titles.
1258 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1259 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1260 details layout with a helper class (GroupPanel). I might extract this
1261 class when I make the full flowtable.
1262 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1263 string as default so I don't have to worry about NPEs when processing
1265 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1266 note beside OnlineGlom.gwt.xml above).
1267 * src/main/webapp/style.css: Add default font-size to body to override
1268 the font-size set by the standard theme. Don't use h2 tags for
1269 group-title. Create new details-cell class.
1271 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1273 ConfiguredDocument: Set the port number too.
1275 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1276 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1277 Glom document. Presumably this worked sometimes so far because there is a
1278 default port number.
1280 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1282 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1284 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1285 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1286 correct, though we should throw an exception too.
1288 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1290 Fix a addDocuemnt typo.
1292 * src/main/java/org/glom/web/shared/Documents.java
1293 (Documents.addDocuemnt): Rename to addDocument().
1294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1295 (OnlineGlomServiceImpl.getDocuments): Adapt.
1297 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1299 Slightly improved log output when connection fails.
1301 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1302 (ConfiguredDocument.setUsernameAndPassword):
1303 We don't know for sure if it' the username/password that's wrong, so
1304 rephrase the message.
1305 Also ouput the exception message, though it's generic in this case.
1307 2011-07-08 Ben Konrath <ben@bagu.org>
1311 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1312 added braces to a one line if statement because the Eclipse formatter
1313 was getting confused.
1315 2011-07-07 Ben Konrath <ben@bagu.org>
1317 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1319 These should really be two separate tasks but I counldn't get things to
1320 work with GWT 2.2.0 and Eclipse 3.7.
1324 * .settings/org.eclipse.jdt.core.prefs:
1325 * .settings/org.eclipse.jdt.ui.prefs:
1326 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1327 * .settings/org.eclipse.m2e.core.prefs:
1328 Add new config files. Update current files. Remove references to the
1329 webtools plugins as we're not using any of the webtools features.
1330 * .gitignore: Add logs directory which is created when running with
1332 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1333 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1334 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1336 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1338 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1340 onlineglom.properties: Add explanatory comments.
1342 * src/main/resources/onlineglom.properties: Also change the default user
1343 from ben to someuser, to avoid the risk of people thinking we just
1344 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1346 2011-06-28 Ben Konrath <ben@bagu.org>
1348 Use filename in Log for incorrect passwords.
1350 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1351 getFileName(String) method to get the filename from the URI.
1353 2011-06-28 Ben Konrath <ben@bagu.org>
1355 Add the table name to the URL token for the ListPlace.
1357 This makes things consistent between the DetailsPlace and the
1358 ListPlace. It also allows the the ListPlace to be bookmarked.
1360 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1361 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1362 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1363 Remove getDefaultListLayout(). The default layout is now returned
1364 by the getListLayout() method when the table name is an empty string.
1365 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1366 Add table name field. Change to a new ListPlace when the table
1367 has been changed. Use getListLayout() for getting the default
1369 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1370 Add table name field. Set the correct table name in the list box
1371 when loading from bookmark. This corrects a problem for the
1373 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1374 Move table name to super-class (HasSelectableTable). Move document
1375 and table URL keys to super-class in HasSelectableTable.
1376 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1377 Add table name field. Add Tokenizer class with URL key common to
1378 the subclasses (DetailsPlace and ListPlace).
1379 * src/main/java/org/glom/web/client/place/ListPlace.java:
1380 Add table name. Add code to parse the URL token.
1381 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1382 Update ListPlace construction with empty table name string.
1383 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1384 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1385 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1386 Update ListPlace construction with table name string.
1387 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1388 Change defaultTableName field to tableName to reflect how it's now
1389 used. Update the getter and setter methods.
1391 2011-06-28 Ben Konrath <ben@bagu.org>
1393 Enable the table selector in the DetailsView.
1395 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1396 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1397 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1398 Remove getDefaultDetailsLayout(). The default layout is now returned
1399 by the getDetailsLayout() method when the table name is an empty
1401 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1402 event handler for table change event. Change to using
1403 getDetailsLayout() for the default details layout.
1404 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1406 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1407 when navigating to the details place.
1409 2011-06-27 Ben Konrath <ben@bagu.org>
1411 Use filename based unique document ID in URL and for RPC.
1413 The document ID is the glom document name with spaces (' ') replaced
1414 with pluses ('+') and without the .glom extension.
1416 This change is mostly a string substitution of 'documentTitle' for
1417 'documentID'. The only code change is the addition of a Documents DTO to get the
1418 filename to document title mappings as indicated below.
1420 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1421 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1422 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1423 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1424 Use Documents DTO to create the document links in the document
1426 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1427 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1428 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1429 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1430 * src/main/java/org/glom/web/client/place/ListPlace.java:
1431 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1432 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1433 * src/main/java/org/glom/web/client/ui/ListView.java:
1434 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1435 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1436 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1437 * src/main/java/org/glom/web/server/Log.java:
1438 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1439 getDocumentTitles() to getDocuments() and return the Documents DTO.
1440 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1441 transferring the filename to document title mappings.
1443 2011-06-25 Ben Konrath <ben@bagu.org>
1445 Make the authentication popup work again.
1447 This bug was introduced when I extracted ConfiguredDocument to its own class.
1449 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1450 correct success / fail status in setUsernameAndPassword().
1452 2011-06-25 Ben Konrath <ben@bagu.org>
1454 Use filename as unique key for configuring database usernames and passwords.
1456 This replaces the use of the Glom document title which could change
1457 depending on the locale. Thanks to Murray Cumming for pointing out this
1460 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1461 * src/main/resources/onlineglom.properties:
1463 2011-06-24 Ben Konrath <ben@bagu.org>
1465 Pass primary key value to DetailsView.
1467 This enables the DetailsView to load the correct data.
1469 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1470 primary key value field and set in constructor. Pass primary key
1471 value to getDetailsData().
1472 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1473 variables for document title and primary key value.
1474 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1475 key value to the DetailsPlace.
1477 2011-06-24 Ben Konrath <ben@bagu.org>
1479 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1481 This allows the primary key to be retrieved by the Details button. This
1482 functionality has not been implemented yet but it's in the works.
1484 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1485 the LayoutGroup result to ListView.setCellTable instead of all of its
1486 fields individually.
1487 * src/main/java/org/glom/web/client/ui/ListView.java:
1488 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1489 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1490 get the primary key for the table.
1491 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1492 index of the primary key in the LayoutGroup accounting for hidden
1493 primary keys. Rename getJavaNumberFormat() to
1494 convertToJavaNumberFormat() for consistency. Cleanup / add some
1496 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1497 field for primary key index and a field to indicate whether the
1498 primary key is hidden or not.
1500 2011-06-23 Ben Konrath <ben@bagu.org>
1502 Rename getTableData methods to getListData.
1504 This is a rename refactor for consistency with other methods.
1506 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1507 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1508 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1509 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1511 2011-06-23 Ben Konrath <ben@bagu.org>
1513 Extract the ConfiguredDocument innerclass into its own class.
1515 This makes the servlet code more object oriented.
1517 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1518 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1520 new ConfiguredDocument class.
1522 2011-06-21 Ben Konrath <ben@bagu.org>
1524 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1526 This makes things more inline with how libglom works and reduces code
1527 duplication. This refactor lays the groundwork for adding the primary key to
1528 the LayoutGroup object.
1530 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1531 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1533 Change method names to getListLayout and getDefaultListLayout for
1534 consistency. Use LayoutGroup as the DTO for the list layout instead of
1535 ColumnInfo and LayoutListTable.
1536 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1537 new method names along with the LayoutGroup object for transferring the
1539 * src/main/java/org/glom/web/client/ui/ListView.java:
1540 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1541 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1542 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1544 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1545 Replaced with LayoutGroup.
1546 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1547 expectedResultSize and defaultTableName fields which are needed for
1549 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1550 type field which is needed for the list layout but will also be
1551 useful for the details layout as things progress.
1552 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1553 Make class abstract. Remove the unnecessary
1554 getFormattingHorizontalAlignment method. Add setFormatting method.
1556 2011-06-16 Ben Konrath <ben@bagu.org>
1558 Add scripts for building and installing war.
1560 These will help when updating OnlineGlom but they're also good
1561 supplemental documentation of the build and deployment proceeding.
1563 * utils/build-onlineglom-war.sh: New file.
1564 * utils/install-onlineglom-war.sh: New file.
1566 2011-06-16 Ben Konrath <ben@bagu.org>
1568 Create wrapper class to create consistent log messages.
1570 I wrapped methods in the Log class of gwt-log to add the method names
1571 from the servlet and create consistent formatting of the document title
1572 and table names in the log messages.
1574 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1575 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1576 log methods to use methods from wrapped Log class.
1578 2011-06-16 Ben Konrath <ben@bagu.org>
1580 Remove superfluous conditional return.
1582 Thanks to Murray Cumming for pointing this out!
1584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1586 2011-06-15 Ben Konrath <ben@bagu.org>
1588 Return an ArrayList of LayoutGroups for the Details layout.
1590 This corrects a problem with the details layout as it can have more
1591 than one top level LayoutGroup.
1593 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1594 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1595 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1596 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1597 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1598 with ArrayList of LayoutGroups for the details view layout.
1599 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1600 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1601 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1602 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1603 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1604 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1606 2011-06-14 Ben Konrath <ben@bagu.org>
1608 Use cast_dynamic method to determine the libglom LayoutItem type.
1610 This is better than finding the LayoutItem type by using the string
1611 returned from the get_part_type_name() method.
1613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1615 2011-06-14 Ben Konrath <ben@bagu.org>
1617 Add method names to log entries in the servlet.
1619 This helps when tracking down deployment problems.
1621 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1623 2011-06-14 Ben Konrath <ben@bagu.org>
1625 Add data to the DetailsView using a hard-coded primary key value.
1627 The layout and functionality of the DetailsView is not complete. This
1628 is just a checkpoint so the patch doesn't get too big.
1630 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1631 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1632 Add getDetailsData() servlet method.
1633 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1634 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1635 LayoutFields are added to the DetailsView.
1636 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1637 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1638 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1639 take the string for the title instead of the object.
1640 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1641 Add implementation getDetailsData() along with some private helper
1643 * src/main/webapp/style.css: Add padding to details-data class. Add a
1644 details-label class with the same padding as the details-data class.
1646 2011-06-03 Ben Konrath <ben@bagu.org>
1648 Use presenter.goTo() to change to the DetailsPlace.
1650 This will make things easier when we need to open the DetailsView with
1651 data specific to the row that was clicked.
1653 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1655 2011-06-02 Ben Konrath <ben@bagu.org>
1657 Add CSS file from mockups.
1659 I'm adding this now because it's going to be useful to have when
1660 developing the DetailsView. The TableSelectionView and ListView aren't
1663 * src/main/webapp/OnlineGlom.html:
1664 * src/main/webapp/style.css:
1666 2011-06-02 Ben Konrath <ben@bagu.org>
1668 Use String.isEmpty() to check for empty string.
1670 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1672 2011-06-02 Ben Konrath <ben@bagu.org>
1674 Display main layout group titles in the DetailsView.
1676 This is the start of the DetailsActivity/DetailsView implementation.
1678 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1679 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1680 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1681 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1682 Get the layout information for the details view from the server and set
1683 the main layout group titles.
1684 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1685 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1686 Add addLayoutGroup() and addLayoutField() methods. This are just
1687 temporary methods for creating the the details view that will change
1689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1690 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1692 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1693 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1694 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1695 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1696 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1697 Data Transfer Objects that mimic the libglom object structure. These are
1698 used for transferring the details layout but could also be used for
1699 transferring the list layout.
1701 2011-05-27 Ben Konrath <ben@bagu.org>
1703 Reset the AuthenticationPopup when clearing the ListView.
1705 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1707 2011-05-27 Ben Konrath <ben@bagu.org>
1709 Fix problem with onlineglom.properties file loading.
1711 The old way worked in Eclipse but not on the server. Loading the
1712 onlineglom.properties file now works in Eclipse and on the server.
1714 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1716 2011-05-24 Ben Konrath <ben@bagu.org>
1718 Update gwt-log from 3.1.0 to 3.1.2.
1720 Gwt-log 3.1.0 has been marked as depreciated.
1724 2011-05-24 Ben Konrath <ben@bagu.org>
1726 Add comment to ListActivity.goTo() method.
1728 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1730 2011-05-24 Ben Konrath <ben@bagu.org>
1732 Remove FIXME in convertGdkColorToHtmlColour()
1734 The Gdk::Color value returned by libglom is 16-bits per channel on both
1735 64 and 32-bit platforms.
1737 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1739 2011-05-19 Ben Konrath <ben@bagu.org>
1741 Improve performance of initial ListView load.
1743 I removed a round trip to the server for getting the default table name
1744 and then requesting information about that table. This also removes a potential
1745 problem with the table change handler not being setup in time to receive the
1746 table change event from the ListActivity.
1748 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1749 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1750 getDefaultLayoutListTable() method. Improve comments.
1751 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1752 getDefaultLayoutListTable() method instead of firing a table change
1753 event to get the table to load.
1754 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1755 implementation of getDefaultLayoutListTable() method.
1756 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1759 2011-05-19 Ben Konrath <ben@bagu.org>
1761 Override toDebugString() in TableChangeEvent.
1763 This is useful to have for debugging.
1765 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1767 2011-05-19 Ben Konrath <ben@bagu.org>
1769 Add a "Back to List" link when at the DetailsPlace.
1771 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1772 Populate the CellTable based on the selected table of the ListBox if
1773 it's set otherwise use the default table. This allows the "Back to
1775 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1776 Remove Place from constructors. Add a setPlace() method. Add
1777 goToPlace() method. Set class as presenter for TableSelectionView.
1778 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1779 Use the same TableSelectionActivity when switching between the List and
1781 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1782 Subclass the new HasSelectableTablePlace. This removes some duplicate
1784 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1785 New class to represent Places that display the TableSelectionView.
1786 * src/main/java/org/glom/web/client/place/ListPlace.java:
1787 Subclass the new HasSelectableTablePlace. This removes some duplicate
1789 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1790 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1791 Add Presenter interface. Add setBackLinkVisible() method. Add
1792 setBackLink() method.
1794 2011-05-18 Ben Konrath <ben@bagu.org>
1796 Enable the "Details" buttons.
1798 Right now only an empty details view is displayed.
1800 * src/main/java/org/glom/web/client/ClientFactory.java:
1801 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1802 Add DetailsView to ClientFactory.
1803 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1804 A basic activity for the details view.
1805 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1806 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1808 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1809 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1811 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1812 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1813 unnecessary super() in constructor.
1814 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1815 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1816 really shouldn't create a new TableSelectionActivity for both the ListPlace
1817 and the DetailsPlace so this should be considered a temporary solution.
1818 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1819 New file. Represents a URL for the details view.
1820 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1821 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1822 A basic details view interface and implementation.
1823 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1824 Enable the "Details" buttons.
1826 2011-05-12 Ben Konrath <ben@bagu.org>
1828 Use a LayoutPanel with multiple display areas for main layout.
1830 This is mostly a refactor in that there are no changes from the user
1831 point of view. These changes are required so that we can swap out the list view
1832 with the details view when the user clicks the "Details" button.
1834 * src/main/java/org/glom/web/client/ClientFactory.java:
1835 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1836 OnlineGlomView. Add TableSelectionView, ListView and
1837 AuthenticationPopup.
1838 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1839 for main layout. Add display regions for main activities. Add
1840 activity manager for for main activities.
1841 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1842 file from parts of the deleted OnlineGlomActivity.
1843 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1844 New file from parts of the deleted OnlineGlomActivity.
1845 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1846 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1847 New files for app wide table change event.
1848 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1849 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1850 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1851 Activity mappers for the main activities replace the deleted app-wide
1853 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1854 Fix a spelling error in he comment.
1855 * src/main/java/org/glom/web/client/ui/ListView.java:
1856 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1857 Renamed from LayoutListView and modified for MVP. This still not a
1858 proper dumb view as prescribed by the MVP pattern but it works for now.
1859 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1860 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1861 New widget stripped out of the deleted OnlineGlomView.
1862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1863 Remove hack that is fixed by this patch.
1865 2011-05-06 Ben Konrath <ben@bagu.org>
1867 Rename OnlineGlomPlace to ListPlace.
1869 The only change besides the rename is that url will now display #list
1870 instead of #Document.
1872 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1873 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1874 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1875 * src/main/java/org/glom/web/client/place/ListPlace.java:
1876 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1878 2011-05-06 Ben Konrath <ben@bagu.org>
1880 Use Presenter for app navigation.
1882 This is the proper way to deal with Place (URL) changes with the MVP
1885 * src/main/java/org/glom/web/client/ClientFactory.java:
1886 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1887 PlaceHistoryMapper and PlaceHistoryHandler.
1888 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1889 PlaceHistoryMapper and PlaceHistoryHandler.
1890 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1891 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1892 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1893 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1894 Add Presenter interface and setPresenter methods. Rename addHyperLink
1895 to addDocumentLink taking only the document title as a parameter.
1897 2011-04-14 Ben Konrath <ben@bagu.org>
1899 Prompt for db username/password if they haven't been set.
1901 This is implemented with a popup widget that is contained within the
1902 OnlineGlomView and managed by the OnlineGlomActivity.
1904 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1905 methods for checking and setting the database username and password.
1906 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1907 new methods for checking and setting the database username and
1909 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1910 Display authentication popup if the JDBC connection to the database
1911 has not been authenticated.
1912 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1914 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1915 for dealing with the authentication popup.
1916 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1917 Implement the methods for dealing with the authentication popup.
1918 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1919 try to executed queries if the database connection hasn't been
1920 authenticated. Implement methods for checking and setting the
1921 database username and password.
1923 2011-04-12 Ben Konrath <ben@bagu.org>
1925 Make log messages a little clearer.
1927 Add a dash betweeen the document title and the table name.
1929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1931 2011-04-12 Ben Konrath <ben@bagu.org>
1933 Protect against NPEs when cleaning up database resources.
1935 While this isn't strictly necessary because the exception is caught,
1936 not protecting against the NPEs makes it harder to find the real error
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1941 2011-04-12 Ben Konrath <ben@bagu.org>
1943 Move configuration of the servlet to the constructor.
1945 The servlet will be initialized even if the database authentication
1946 information is not set or correct. I still need to add the UI for prompting
1947 the user for the authentication information when it's required.
1949 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1950 javadocs for getDocumentTitles() method.
1951 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1952 Set error message when RPC fails.
1953 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1954 glom files directory from the configuration file. Try to set the
1955 database authentication information for the specific document if it's
1956 set and works otherwise try to use the global authentication
1957 information set for the directory.
1958 * src/main/resources/onlineglom.properties: Moved from
1959 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1960 Added detailed comments for the new keys.
1962 2011-04-11 Ben Konrath <ben@bagu.org>
1964 Remove unnecessary @Override in DocumentSelectionViewImpl.
1966 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1968 2011-04-11 Ben Konrath <ben@bagu.org>
1970 Remove center alignment in DocumentSelectionView.
1972 The title element is still centred but the document titles and bottom
1973 sentence are both left-aligned.
1975 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1977 2011-04-11 Ben Konrath <ben@bagu.org>
1979 Change 'Demo' naming convention to 'Document'.
1981 This is just a rename refactor with no functional changes to the code.
1983 * src/main/java/org/glom/web/client/ClientFactory.java:
1984 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1985 * src/main/java/org/glom/web/client/OnlineGlom.java:
1986 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1987 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1988 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1989 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1990 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1991 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1992 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1993 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1994 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1997 2011-04-08 Ben Konrath <ben@bagu.org>
1999 Remove FIXME from safeLongToInt() method.
2001 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2004 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2006 2011-04-08 Ben Konrath <ben@bagu.org>
2008 Display an error if no glom documents are found in the specified directory.
2010 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2011 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2012 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2013 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2015 2011-04-08 Ben Konrath <ben@bagu.org>
2017 Add copyright header to one more file ... oops.
2019 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2021 2011-04-08 Ben Konrath <ben@bagu.org>
2023 Add copyright header to files without it.
2025 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2026 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2027 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2028 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2029 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2030 * src/main/java/org/glom/web/shared/GlomField.java:
2032 2011-04-08 Ben Konrath <ben@bagu.org>
2034 Add support for accessing multiple glom documents in the servlet.
2036 This completes the demo selection functionality.
2038 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2039 document title to methods.
2040 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2041 document title to methods.
2042 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2043 Set browser window title when the activity starts. Correct name of
2044 document title variable.
2045 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2046 Set browser window title when the activity starts. Set the table
2047 selector change handler after table selector has been set. Clear the
2048 OnlineGlomView when the activity has been stopped.
2049 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2050 document title as the place token. Use "#Document:" instead of
2051 "#OnlineGlomPlace:" in the URL.
2052 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2053 Change heading to "Online Glom"
2054 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2055 document title in RPC methods.
2056 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2057 setDocumentTitle() method. Add clear() method.
2058 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2059 setDocumentTitle() method. Implement clear() method which removes the
2060 change handler on the ListBox, clears the ListBox and clears the
2062 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2063 Implement methods with document title. Keep track for the configured
2064 glom documents and their corresponding JDBC configurations in a hash
2065 table. This information is retrieved using the document title as the
2066 key in the hash table.
2067 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2068 document title field as it's no longer needed.
2070 2011-04-08 Ben Konrath <ben@bagu.org>
2072 Update the Eclipse JDT configuration.
2074 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2075 methods. Automatically add the copyright header to new files.
2077 2011-04-05 Ben Konrath <ben@bagu.org>
2079 Add new page for demo selection.
2081 This patch adds all the components required to view and start an
2082 OnlineGlom demo by clicking on the desired hyperlink. The user is
2083 able to return to the demo selection page with the browser's back
2084 button. I still need to modify the servlet to work with multiple
2085 documents so all demo links will load the file defined in the
2086 OnlineGlom.properties.
2088 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2089 This is only useful during development so we don't need to save it.
2090 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2091 get a reference to the DemoSelectionView.
2092 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2093 method to get a reference to the DemoSelectionView.
2094 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2095 default view to DemoSelectionView.
2096 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2097 to get glom document titles for glom files in a hard-coded directory.
2098 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2099 method to get glom document titles for glom files in a hard-coded
2101 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2102 Presenter for DemoSelectionView.
2103 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2104 for DemoSelectionView.
2105 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2106 Update for DemoSelectionView.
2107 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2108 Basic 'Place' implementation for the DemoSelectionView.
2109 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2110 The interface for the DemoSelectionView.
2111 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2112 The implementation of the DemoSelectionView.
2113 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2114 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2115 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2116 implementation of method to get glom document titles for glom files
2117 in a hard-coded directory.
2118 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2119 on longer being used.
2120 * src/main/webapp/glom.png: Glom logo.
2122 2011-04-05 Ben Konrath <ben@bagu.org>
2124 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2126 This is the forth and final commit of a refactor that will allow
2127 OnlineGlom to be used with multiple documents.
2129 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2130 Move RPC code from OnlineGlomViewImpl to this class.
2131 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2133 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2134 RPC code to the presenter class (the P in MVP).
2136 2011-04-04 Ben Konrath <ben@bagu.org>
2138 Start moving the existing OnlineGlom code to MVP.
2140 This work is based on the GWT MVP framework that is documented here:
2142 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2144 This is the third commit of a refactor that will allow OnlineGlom to
2145 be used with multiple documents.
2147 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2148 Interface for client factory which is used to get instances of various
2149 classes throughout the app.
2150 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2151 Implementation of client factory.
2152 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2153 initialize the MVP framework.
2154 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2155 New file. Activity manager for the main container widget. This is the
2157 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2158 Maps place (URL) to its corresponding activity.
2159 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2160 New file. This is just a place holder for a generated file.
2161 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2162 New file. Represents the URL for the main Online Glom app.
2163 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2164 for changes in LayoutListViewImpl.
2165 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2166 interface for View. Move code to OnlineGlomViewImpl class.
2167 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2168 file. Implementation of OnlineGlomView.
2169 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2170 Place resources. Use ClientFactoryImpl by default.
2172 2011-04-04 Ben Konrath <ben@bagu.org>
2174 Move View classes to their own package.
2176 This is the second commit of a refactor that will allow OnlineGlom to
2177 be used with multiple documents.
2179 * src/main/java/org/glom/web/client/OnlineGlom.java:
2180 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2181 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2183 2011-04-02 Ben Konrath <ben@bagu.org>
2185 Move UI code from the main module to its own class.
2187 This is the first commit of a refactor that will allow OnlineGlom to be
2188 used with multiple documents.
2190 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2191 references to OnlineGlom to OnlineGlomView.
2192 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2193 OnlineGlomView and instantiate it here.
2194 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2195 represents the main OnlineGlomView with one document.
2197 2011-04-01 Ben Konrath <ben@bagu.org>
2199 Fix formatting of gwt.xml and add DTD.
2201 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2203 2011-03-30 Ben Konrath <ben@bagu.org>
2205 Propperly convert gdkColor string to html colour string.
2207 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2209 2011-03-28 Ben Konrath <ben@bagu.org>
2211 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2213 This implementation matches
2214 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2215 readable and is not tied to Swig.
2217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2219 2011-03-28 Ben Konrath <ben@bagu.org>
2221 Use read-only checkboxes for boolean field types.
2223 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2224 in the CellTable based on the field type. It currently only
2225 distinguishes between boolean and text columns but I'll need to add
2226 support for more types.
2227 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2228 column type in the ColumnInfo object. Add method to convert between the
2229 glom field type enum in ColumnInfo and the glom field type in libglom.
2230 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2232 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2233 getting and setting booleans.
2235 2011-03-25 Ben Konrath <ben@bagu.org>
2237 Don't get the Date twice from the ResultSet.
2239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2241 2011-03-25 Ben Konrath <ben@bagu.org>
2243 Cleanup code in the servlet.
2245 * TODO: Remove item about row count. Add item about testing row count
2246 query with large number of rows.
2247 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2248 spelling mistakes, change method parameter to be consistent with
2251 2011-03-25 Ben Konrath <ben@bagu.org>
2253 Add server side logging with the gwt-log library.
2255 * .gitignore: Ignore the log file we're now producing.
2256 * TODO: Add a couple TODO item for logging.
2257 * pom.xml: Add gwt-log and log4j as a dependency.
2258 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2259 logging of errors, warnings and some important info.
2260 * src/main/resources/log4j.properties: New file to configure log4j.
2262 2011-03-24 Ben Konrath <ben@bagu.org>
2264 Add a disable button for the Details view.
2266 * src/main/java/org/glom/web/client/LayoutListView.java:
2268 2011-03-22 Ben Konrath <ben@bagu.org>
2270 Use a count query to get the number of rows for the list view pager.
2272 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2274 2011-03-22 Ben Konrath <ben@bagu.org>
2276 Add more TODO information about CellTable pager positioning.
2280 2011-03-19 Ben Konrath <ben@bagu.org>
2282 Add TODO item about CellTable pager positioning.
2286 2011-03-18 Ben Konrath <ben@bagu.org>
2288 Remove unneeded GlomFieldColumn class.
2290 This is just a small code cleanup.
2292 * src/main/java/org/glom/web/client/LayoutListView.java:
2294 2011-03-18 Ben Konrath <ben@bagu.org>
2296 Use cursor mode in the query that gets data for the list view.
2298 I still need to fix the potential memory problem when getting the row
2299 count for the list view.
2301 * TODO: Add note about testing memory usage with large data sets. Add
2302 item about fixing row counting with large data sets.
2303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2304 PostgreSQL JDBC driver into cursor mode when getting data for the
2307 2011-03-15 Ben Konrath <ben@bagu.org>
2309 Remove the GWT Container from the Eclipse build classpath.
2311 The GWT dependencies are set by Maven so this isn't needed.
2315 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2317 Added some earlier mockups to git, but not to the tarball dist.
2319 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2320 Openismus. These hopefully show how we might structure the HTML so that
2321 it can be styled easily with CSS. However, we probably need to adapt them
2322 for the CSS structure that GWT dictates for common widgets.
2324 2011-03-14 Ben Konrath <ben@bagu.org>
2326 Locate OnlineGlom.properties using the ServletContext.
2328 This is required to be able to locate the file in the deployed servlet.
2330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2331 Configure the database and glom document in in a helper method so
2332 that the ServletContext can be used to locate OnlineGlom.properties.
2333 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2334 src/main/webapp. This is the proper location for .properites files.
2336 2011-03-12 Ben Konrath <ben@bagu.org>
2338 Add note to README about why we're compiling down to obfuscated JavaScript.
2342 2011-03-11 Ben Konrath <ben@bagu.org>
2344 Use properties file to configure servlet.
2346 This allows people to change the glom file path, db username and db
2347 password without recompiling the code.
2349 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2350 * src/main/webapp/OnlineGlom.properties:
2352 2011-03-11 Ben Konrath <ben@bagu.org>
2354 Use table fields in layout list view if the layout list is not defined.
2356 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2357 Manually create a LayoutFieldVector for the query builder using the
2358 table fields when a layout list is not defined in the glom file.
2360 2011-03-11 Ben Konrath <ben@bagu.org>
2362 Only show FIXME string for images when there's an image.
2364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2365 in this change are some small code cleanups.
2367 2011-03-11 Ben Konrath <ben@bagu.org>
2369 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2371 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2373 2011-03-11 Ben Konrath <ben@bagu.org>
2375 Correctly set the index of the default table.
2377 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2378 Correctly set the index of the default table. Add commented out example
2381 2011-03-10 Ben Konrath <ben@bagu.org>
2383 Add comment to pom.xml about the previous change.
2385 * pom.xml: Add comment about the deployment issue so that it's obvious
2386 why java-libglom is set to the provided scope.
2388 2011-03-10 Ben Konrath <ben@bagu.org>
2390 Change java-libglom dependency from compile to provided in pom.xml.
2392 Since java-libglom uses jni it can only be loaded once and therefore
2393 must be placed in $CATALINA_HOME/lib and not included in each war.
2394 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2395 More information about this issue can be found in the Tomcat 6 release
2396 notes in the "JNI Based Applications" section:
2398 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2400 * README: Remove note about this issue. Deployment info should really
2401 be on the wiki anyway so I'll add it right now.
2402 * pom.xml: Change java-libglom dependency from compile to provided so
2403 that it's copied in to the packaged war.
2405 2011-03-09 Ben Konrath <ben@bagu.org>
2407 Change to using a neutral locale for currency, date and time formatting.
2409 This solves the problem of currency values being represented without a
2410 space between the currency code and the number (e.g. "EUR5.89" is now
2411 represented as "EUR 5.89"). More work is required when we implement
2412 a locale preference setting.
2414 * TODO: Add note about currency formatting issues with different
2416 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2417 to using the neutral ROOT locale.
2419 2011-03-09 Ben Konrath <ben@bagu.org>
2421 Add support for currency codes that are not ISO 4217 codes.
2423 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2424 the currency code defined in the glom file when it's not 3 characters
2425 long or when Java doesn't recognize the string as an ISO 4217 code.
2427 2011-03-08 Ben Konrath <ben@bagu.org>
2429 Remove test classes, launch configurations and configuration.
2431 The test stuff was getting in the way when creating the war. To make
2432 the war file you can now do 'mvn clean package'. The packaged war file
2433 will be in the target directory.
2435 * .classpath: Remove unused classpathentry for tests and i18n.
2436 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2437 property. Don't run test or i18n goals when packaging the war.
2438 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2443 * OnlineGlomTest-dev.launch:
2444 * OnlineGlomTest-prod.launch:
2445 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2446 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2448 2011-03-07 Ben Konrath <ben@bagu.org>
2450 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2452 These fixes allow me to use 'mvn deploy' to create the war file.
2454 * .classpath: This generated config has been updated by Eclipse. This
2455 change was probably triggered by me updating from Eclipse 3.6.1 to
2457 * .gitignore: Add entry to ignore the directory
2458 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2459 * .project: The generated config has been updated by Eclipse. This
2460 change was probably triggered by me updating from Eclipse 3.6.1 to
2462 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2463 so that Eclipse doesn't complain
2464 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2465 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2466 'tests' directory to 'client' directory. This is the new
2467 gwt-maven-plugin convension.
2468 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2469 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2471 2011-03-07 Ben Konrath <ben@bagu.org>
2473 Add support for horizontal alignment in the LayoutList columns.
2475 * TODO: Remove item about horizontal alignment. Add item about
2476 improvements to ColumnInfo.
2477 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2478 alignment on the columns. Use ColumnInfo RPC object get the column
2479 title and horizontal alignment.
2480 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2481 LayoutListView creation with ColumnInfo RPC object.
2482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2483 a ColumnInfo object for every LayoutList columnn. Convert the
2484 FieldFormatting.HorizontalAlignment to the correct
2485 ColumnnInfo.HorizontatlAlignment with the new
2486 getColumnInfoHorizontalAlignment helper method.
2487 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2488 to encapsulate column information like alignment and title. This
2489 could be used to set the colour instead of on a per cell field basis.
2490 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2491 column title storage and retrieval with ColumnInfo.
2493 2011-03-04 Ben Konrath <ben@bagu.org>
2495 Add support for column sorting.
2497 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2498 AsynDataProvider to be an anonymous inner class. Use new
2499 getSortedTableData RPC method when column sort is requested. Set all
2500 columns sortable and add an AsyncHandler to activate sorting in the
2502 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2503 method getSortedTableData(). Cleanup other method signatures.
2504 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2505 new method getSortedTableData(). Cleanup other method signatures.
2506 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2507 Implement getSortedTableData() and getTableData() methods by using a
2508 private helper method with the appropriate parameters filled in. Use
2509 user supplied sort clause when supplied, otherwise fall back to
2510 sorting by the primary key. Move destroy() method to be underneath
2511 constructor for readability. Cleanup comments.
2513 2011-03-03 Ben Konrath <ben@bagu.org>
2515 Add support for colour text and colour backgrounds to the layout list cells.
2517 Only the cell backgrounds are coloured which leaves a gap between the
2518 cells that isn't coloured. I need to figure out a way to set
2519 'style=background-colour:' on the whole column rather than just the
2522 * TODO: Add a note about colouring the background of the whole column.
2523 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2524 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2525 render the coloured text and backgrounds. Use GlomField[] for the row type.
2526 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2528 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2529 GlomField[] for the row type.
2530 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2531 GlomField[] for the row type. Set the text, text colour and background
2532 colour in the GlomField objects as specified in the glom document. Add
2533 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2534 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2535 the glom field text, foreground colour and background colour.
2537 2011-03-02 Ben Konrath <ben@bagu.org>
2539 Don't display hidden tables in the combo box.
2541 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2544 code to ignore hidden tables using ArrayLists for the table names and
2546 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2547 tableNames to use ArrayLists instead of String[]. Update getter and setter
2550 2011-03-01 Ben Konrath <ben@bagu.org>
2552 Add support for Date and Time number types.
2554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2555 Implement formatting for Date and Time values. Change the default glom
2556 file to small business example.
2558 2011-03-01 Ben Konrath <ben@bagu.org>
2560 Add support for formatting glom types as specified in the glom file.
2562 Formatting isn't finished yet - I still need to add support for Date
2565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2566 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2567 checks for null values in JDBC cleanup code and catch all exceptions
2568 instead of just SQLExceptions.
2569 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2572 2011-03-01 Ben Konrath <ben@bagu.org>
2574 Use GWT 2.2.0 instead of 2.1.1.
2576 * pom.xml: Change GWT version numbers.
2578 2011-03-01 Ben Konrath <ben@bagu.org>
2580 A few small code cleanups.
2582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2584 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2585 unnecessary object creation in constructor.
2586 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2587 unnecessary object creation in constructor.
2589 2011-02-28 Ben Konrath <ben@bagu.org>
2591 Add file for TODO list.
2595 2011-02-18 Ben Konrath <ben@bagu.org>
2597 Enable the CellTable Pager when more than 20 rows need to be viewed.
2599 The Pager will automatically become active when the results are larger
2600 than the CellTable size which is currently set to 20 lines.
2602 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2603 name on debug statment in RPC call in LayoutListDataProvider, add
2604 numRows parameter to LayoutListView constructor, propperly set rowCount
2606 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2607 name on debug statment in RPC call, use LayoutListTable object in RPC
2608 calls, pass rowCount to LayoutListView.
2609 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2610 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2612 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2613 interface for changes in OnlineGlomService.
2614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2615 getLayoutListHeaders() to getLayoutListTable() and return
2616 LayoutListTable. Using this object allows me to pass other information
2617 about the LayoutList like the expected number of rows in the result set.
2618 The Connection object from the connection pool is now propperly closed.
2619 Only the requested number of lines are returned to the client in
2621 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2622 GlomTable and add columnTitles and numRows.
2624 2011-02-18 Ben Konrath <ben@bagu.org>
2626 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2628 This is a small performance boost. I'll use GlomTable to get the required
2629 layoutlist information.
2631 * src/main/java/org/glom/web/client/OnlineGlom.java:
2632 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2633 * src/main/java/org/glom/web/shared/GlomDocument.java:
2635 2011-02-18 Ben Konrath <ben@bagu.org>
2637 Add option to turn off formatting in JDT formatter preferences.
2639 * .settings/org.eclipse.jdt.core.prefs:
2641 2011-02-18 Ben Konrath <ben@bagu.org>
2643 Rename LayoutList to LayoutListView.
2645 I'm working towards setting things up to easily use MVP when the time
2648 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2650 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2653 2011-02-17 Ben Konrath <ben@bagu.org>
2655 Move LayoutListDataProvider class into LayoutList.java.
2657 * src/main/java/org/glom/web/client/LayoutList.java:
2659 2011-02-17 Ben Konrath <ben@bagu.org>
2661 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2663 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2665 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2666 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2667 from LibGlomServer.java.
2668 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2669 Rename from LibGlomServiceAsync.java.
2670 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2671 Rename from LibGlomServiceImpl.java.
2672 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2674 2011-02-17 Ben Konrath <ben@bagu.org>
2676 Update JDT settings.
2678 * .settings/org.eclipse.jdt.core.prefs:
2680 2011-02-17 Ben Konrath <ben@bagu.org>
2682 Move GWT-RPC objects to shared package (where they should be).
2684 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2685 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2686 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2687 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2688 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2689 org.glom.web.shared package.
2690 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2691 org.glom.web.shared package.
2692 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2693 directory in compilation to javascript.
2695 2011-02-16 Ben Konrath <ben@bagu.org>
2697 Add sort clause to the sql query that grabs table information.
2699 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2700 if one of the columns is a primary key.
2702 2011-02-16 Ben Konrath <ben@bagu.org>
2704 Disable generateAsync feature of gwt-maven.
2706 The generated interface does not correctly match the methods in LibGlomService
2707 and the generated singleton Util inner-class doesn't respect the servlet
2710 * pom.xml: Turn off generateAsync feature.
2711 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2712 with singleton Util inner-class.
2714 2011-02-14 Ben Konrath <ben@bagu.org>
2716 Add LGPL v3 licence notices.
2718 Followed directions listed here:
2719 http://www.gnu.org/licenses/gpl-howto.html
2721 * COPYING: This file is a copy of the GPL v3.
2722 * COPYING.LESSER: This file is a copy of the LGPL v3.
2723 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2725 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2727 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2729 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2731 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2733 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2735 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2738 2011-02-14 Ben Konrath <ben@bagu.org>
2740 Use ArrayList instead of Array in GWT-RPC calls.
2742 Apparently this gives a slight performance boost to the compiled
2745 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2747 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2750 2011-02-14 Ben Konrath <ben@bagu.org>
2752 Access data from a postgres db rather than the example glom file.
2754 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2755 compile down to obfuscated javascript.
2756 * pom.xml: Add c3p0 and postgres JDBC libraries.
2757 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2758 using a postgres db accessed through the c3p0 connection pooling library.
2760 2011-02-14 Ben Konrath <ben@bagu.org>
2762 Update Java formatter settings.
2764 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2766 2011-02-02 Ben Konrath <ben@bagu.org>
2768 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2770 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2772 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2773 the compiled webapp directory that Eclipse uses as we're using Maven now.
2774 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2775 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2777 * pom.xml: Format file, change target Java version to 1.6.
2779 2011-02-02 Ben Konrath <ben@bagu.org>
2781 Add information about a deployment related issue.
2783 * README: Add Notes section with the problem outlined.
2785 2011-02-02 Ben Konrath <ben@bagu.org>
2787 Call Glom.libglom_deinit() when the servlet is shutdown.
2789 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2790 Glom.libglom_deinit() to destroy() method.
2792 2011-01-28 Ben Konrath <ben@bagu.org>
2794 Use generated Util class to get the RPC Async interface.
2796 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2798 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2799 getInstance() method to get a reference to the RPC Async interface.
2800 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2801 getInstance() method to get a reference to the RPC Async interface, remove
2802 the now unused getLibGlomServiceProxy() method.
2804 2011-01-27 Ben Konrath <ben@bagu.org>
2806 Cleanup ChangeLog entry from previous commit.
2808 * ChangeLog: Group logical changes together and add comments.
2810 2011-01-25 Ben Konrath <ben@bagu.org>
2812 Convert to gwt-maven project.
2814 * .gitignore: Update for new project structure.
2815 * README: New file with a link to the online documentation.
2816 * pom.xml: The generated maven configuration file with some tweaks.
2818 Add / update Eclipse settings. These files are a merge of the files that
2819 were generated with the gwt-maven plugin and the files we were previously
2823 * .settings/.jsdtscope:
2824 * .settings/com.google.gdt.eclipse.core.prefs:
2825 * .settings/com.google.gwt.eclipse.core.prefs:
2826 * .settings/org.eclipse.jdt.core.prefs:
2827 * .settings/org.eclipse.wst.common.component:
2828 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2829 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2830 * .settings/org.maven.ide.eclipse.prefs:
2831 * OnlineGlomTest-dev.launch:
2832 * OnlineGlomTest-prod.launch:
2834 Java source files moved from the 'src' directory to the directory structure
2836 * src/main/java/org/glom/web/client/GlomDocument.java:
2837 * src/main/java/org/glom/web/client/GlomTable.java:
2838 * src/main/java/org/glom/web/client/LayoutList.java:
2839 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2840 * src/main/java/org/glom/web/client/LibGlomService.java:
2841 * src/main/java/org/glom/web/client/OnlineGlom.java:
2842 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2844 Non-functional property file used for translations. I included this as
2845 reminder that it's something I need to sort out.
2846 * src/main/resources/org/glom/web/client/Messages.properties:
2848 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2849 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2851 The servlet configuration files moved from the 'war' directory.
2852 * src/main/webapp/OnlineGlom.css:
2853 * src/main/webapp/OnlineGlom.html:
2854 * src/main/webapp/WEB-INF/web.xml:
2856 Generated test files with most of the code commented out. I included these
2857 so that it's easy to add tests when we're ready for them.
2858 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2859 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2861 2011-01-25 Ben Konrath <ben@bagu.org>
2863 Remove unused println.
2865 * src/org/glom/web/server/LibGlomServiceImpl.java:
2867 2011-01-25 Ben Konrath <ben@bagu.org>
2869 Add project specific JDT settings.
2871 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2872 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2874 2011-01-25 Ben Konrath <ben@bagu.org>
2876 Populate celltable with example data.
2878 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2879 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2880 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2881 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2882 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2883 asynchronously gets the example data.
2884 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2885 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2886 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2887 curently selected table to be retrieved by other widgets.
2888 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2889 implement getTableData() in a hacky way. This method needs to be updated
2890 to grab information from the database when database creating is
2893 2011-01-20 Ben Konrath <ben@bagu.org>
2895 Set table headers when table dropBox changes.
2897 * src/org/glom/web/client/GlomDocument.java: Correct some method
2899 * src/org/glom/web/client/LibGlomService.java: Add method
2900 to get list layout field names.
2901 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2902 to get list layout field names.
2903 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2904 widget for list layout table.
2905 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2906 the table drop box and add new updateTable() method to asynchronously
2907 get the layout list field names for the currently selected table.
2908 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2909 implementation of getLayoutListHeaders() method.
2910 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2912 2011-01-18 Ben Konrath <ben@bagu.org>
2914 Make a listBox with table titles instead of the flexTable demo.
2916 This is the start of something more useful.
2918 * .classpath: Exclude a bunch of packages from the JVM that are
2919 getting in the way of the Eclipse content assist.
2920 * src/org/glom/web/client/GlomDocument.java:
2921 * src/org/glom/web/client/GlomTable.java:
2922 * src/org/glom/web/client/LibGlomService.java:
2923 * src/org/glom/web/client/LibGlomServiceAsync.java:
2924 * src/org/glom/web/client/OnlineGlom.java:
2925 * src/org/glom/web/server/LibGlomServiceImpl.java:
2926 * war/OnlineGlom.html:
2927 * war/WEB-INF/web.xml:
2929 211-01-13 Ben Konrath <ben@bagu.org>
2931 Update to new java-libglom API.
2933 * .gitignore: Ignore OnlineGlom.war.
2934 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2936 2010-12-20 Ben Konrath <ben@bagu.org>
2938 Add some basic style to the table listing.
2940 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2941 header, print useful error message on async callback failure.
2942 * war/OnlineGlom.css: Add style for table header, remove defaults
2943 provided by the Eclipse project wizard.
2945 2010-12-20 Ben Konrath <ben@bagu.org>
2947 Load example file from installed glom dir.
2949 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2950 provided by java-libglom to find the example file.
2952 2010-12-20 Ben Konrath <ben@bagu.org>
2954 Update Eclipse settings.
2957 * .settings/com.google.gdt.eclipse.core.prefs:
2958 * .settings/com.google.gwt.eclipse.core.prefs:
2960 2010-12-17 Ben Konrath <ben@bagu.org>
2964 * .classpath: New file.
2965 * .gitignore: New file.
2966 * .project: New file.
2967 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2968 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2969 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2970 * src/org/glom/web/client/GlomTable.java: New file.
2971 * src/org/glom/web/client/OnlineGlom.java: New file.
2972 * src/org/glom/web/client/TableNameService.java: New file.
2973 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2974 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2975 * war/OnlineGlom.css: New file.
2976 * war/OnlineGlom.html: New file.
2977 * war/WEB-INF/web.xml: New file.
2978 * war/images/glom.png: New file.