1 2011-12-01 Ben Konrath <ben@bagu.org>
3 Use Utils.getWidgetHeight() in FlowTable.
5 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
7 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
9 2011-12-01 Ben Konrath <ben@bagu.org>
11 Put the details css class name on the correct table column.
13 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
15 2011-11-30 Ben Konrath <ben@bagu.org>
17 Update for java-libglom API change.
19 The getters and setters on FieldFormatting and NumericFormat were
20 changed to remove the 'M'.
22 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
24 2011-11-29 Ben Konrath <ben@bagu.org>
26 Only allow RelatedListTables in Portals.
28 * src/main/java/org/glom/web/client/ui/details/Portal.java:
30 2011-11-29 Ben Konrath <ben@bagu.org>
32 Only create a contents panel for Portals when title is being set.
34 * src/main/java/org/glom/web/client/ui/details/Portal.java:
36 2011-11-29 Ben Konrath <ben@bagu.org>
38 Set TabLayoutPanel height based on calculated height its widgets.
40 This is a potential fix for this bug:
42 https://bugzilla.gnome.org/show_bug.cgi?id=665133
44 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
46 2011-11-29 Ben Konrath <ben@bagu.org>
48 Align details field labels and data with the Open buttons.
50 * src/main/webapp/style.css:
52 2011-11-29 Ben Konrath <ben@bagu.org>
54 Remove unnecessary <div> in the Notebook widget.
56 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
57 method to get container FlowPanel (<div>).
58 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
59 initWidget() method directly on the TabLayoutPanel widget instead of
60 Group's container widget.
62 2011-11-29 Ben Konrath <ben@bagu.org>
64 Don't add group titles for Portals in Notebooks.
66 This reverts the previous patch and fixes a bug I introduced with
67 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
69 * src/main/java/org/glom/web/client/ui/details/Group.java:
70 * src/main/java/org/glom/web/client/ui/details/Portal.java:
72 2011-11-28 Ben Konrath <ben@bagu.org>
74 Remove unused boolean argument in Portal constructor.
78 * src/main/java/org/glom/web/client/ui/details/Group.java:
79 * src/main/java/org/glom/web/client/ui/details/Portal.java:
81 2011-11-28 Ben Konrath <ben@bagu.org>
83 Remove hack for glom 1.18 style glom files.
85 * src/main/java/org/glom/web/client/ui/details/Group.java:
86 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
87 * src/main/java/org/glom/web/client/ui/details/Portal.java:
89 2011-11-28 Ben Konrath <ben@bagu.org>
91 Use Gda Value version of primary key to log result too large error.
93 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
95 2011-11-28 Ben Konrath <ben@bagu.org>
97 Don't use TypedDataItem.getText() for Unknown types from the URL.
99 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
100 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
101 instead of getText().
102 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
103 String field and getUnknown() method.
105 2011-11-28 Ben Konrath <ben@bagu.org>
107 Log an error message when the java-libglom .so is not present.
109 The error message was being set in the exception but not logged.
111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
113 2011-11-28 Ben Konrath <ben@bagu.org>
115 Ignore LayoutItem_CalendarPortals.
117 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
118 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
120 2011-11-28 Ben Konrath <ben@bagu.org>
122 Extract method for creating the LayoutItemPortal DTO.
124 Just breaking the code up into smaller chunks.
126 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
128 2011-11-28 Ben Konrath <ben@bagu.org>
132 This should have been added with the refactor. Oops!
134 * src/main/java/org/glom/web/shared/TypedDataItem.java:
136 2011-11-28 Ben Konrath <ben@bagu.org>
138 Create primary key value from URL string using type from Glom document.
140 See this bug, comments 19 - 25:
142 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
144 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
145 create a TypeDataItem for the primary key here when loading from a
146 URL. Show the same string for the primary key value as was received
147 from the URL string (when loading from a URL).
148 * src/main/java/org/glom/web/server/Utils.java: Update method for
149 creating the Gda Value from the TypeDataItem to properly deal with
150 creating a Gda Value based on the Glom document type for the primary
151 key value string when loading from a URL.
152 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
153 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
154 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
155 Update for changed method name.
157 2011-11-27 Ben Konrath <ben@bagu.org>
159 Rename PrimaryKeyItem to TypedDataItem.
161 The name PrimaryKeyItem suggests what the class should be used for.
162 TypedDataItem is a neutral name that describes the class better.
164 This is a rename-only refactor.
166 * src/main/java/org/glom/web/client/OnlineGlomService.java:
167 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
168 * src/main/java/org/glom/web/client/Utils.java:
169 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
170 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
171 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
172 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
173 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
174 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
175 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
176 * src/main/java/org/glom/web/server/Utils.java:
177 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
178 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
179 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
180 * src/main/java/org/glom/web/shared/NavigationRecord.java:
182 2011-11-25 Ben Konrath <ben@bagu.org>
184 Improve Gda Value conversion from PrimaryKeyItem.
186 The value from the PrimaryKeyItem is only used if its type match the
187 type from the glom document.
189 * src/main/java/org/glom/web/server/Utils.java:
191 2011-11-25 Ben Konrath <ben@bagu.org>
193 Manually check if the java-liblgom .so is visible to the JVM.
195 It seems that Tomcat has problems when a static initializer throws an
196 exception. This check is done before the first method call into
197 java-libglom so that execution doesn't continue if the .so is not
200 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
202 2011-11-25 Ben Konrath <ben@bagu.org>
204 Improve browser configuration error messages.
208 https://bugzilla.gnome.org/show_bug.cgi?id=662792
210 * src/main/java/org/glom/web/client/OnlineGlomService.java:
211 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
212 getConfigurationErrorMessage() method.
213 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
214 Get and display a specific configuration error message when no Glom
216 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
217 Implement getConfigurationErrorMessage() method. Surround configuration
218 code in the init() method with a try/catch block. This allows the
219 errors to be caught while keeping the servlet available to retrieve the
220 configuration error message.
222 2011-11-25 Ben Konrath <ben@bagu.org>
224 Don't use Strings to hold primary key values.
226 The primary key values are now held in a new data object
227 (PrimaryKeyItem) that holds type information and the primary key value
228 using the correct type.
230 * src/main/java/org/glom/web/client/OnlineGlomService.java:
231 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
233 PrimaryKeyItem instead of String to hold the primary key value.
234 * src/main/java/org/glom/web/client/Utils.java: Remove
235 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
236 PrimaryKeyItem based on the GlomFieldType and the DataItem.
237 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
238 PrimaryKeyItem instead of String to hold the primary key value. Load
239 document selection page when the documentID has not been set correctly.
240 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
241 DetailsPlace -> URL and URL -> DetailsPlace conversion with
243 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
244 Return empty string for URL instead of "null".
245 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
246 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
247 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
248 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
249 PrimaryKeyItem instead of String to hold primary key values.
250 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
251 PrimaryKeyValue to a Gda Value.
252 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
253 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
254 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
255 Replace temporary database access code that uses the PrimaryKeyValue to
256 Gda Value conversion.
257 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
258 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
259 PrimaryKeyItem instead of String.
260 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
261 hold primary key values.
263 2011-11-24 Ben Konrath <ben@bagu.org>
265 Use newly added java-libglom API to create queries.
267 This isn't finished. I still need to stop using Strings for primary key
268 values in the client code.
270 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
271 libglom to use fake connections so that retrieving the query string will
273 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
274 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
275 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
276 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
277 Use the newly added libglom sql methods and classes to create the
278 query. Add temporary hack to convert primary value strings to Gda
281 2011-11-23 Ben Konrath <ben@bagu.org>
283 Don't explicitly set the height of Portals.
285 See comments 6 - 10 of this bug for details:
287 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
289 * src/main/java/org/glom/web/client/ui/details/Portal.java:
291 2011-11-23 Ben Konrath <ben@bagu.org>
293 Use an HTML table instead of CSS for the FlowTable layout.
295 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
296 GWT's FlexTable to implement the FlowTable.
297 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
299 2011-11-18 Ben Konrath <ben@bagu.org>
301 Add boolean example to HTML table mockup.
303 * mockups/details-view-html-tables-text-entries.html:
305 2011-11-17 Ben Konrath <ben@bagu.org>
307 Ensure the pager buttons are always visible for related lists.
309 To accomplish this, I've turned off text wrapping in the list view and
310 related list tables for both the header and data text. The related list
311 table now has a fixed layout so the it doesn't overflow its container.
312 This is required to ensure that the cell text is clipped when it
313 overflows the cell and an ellipsis is added to the right side of the
314 cell when text is clipped.
316 A fixed table layout for the related list table in the details view
317 seems what we want for the details view anyway, so the side-effect is
320 The ellipsis will only be displayed in Firefox >= 7.
324 https://bugzilla.gnome.org/show_bug.cgi?id=662930
326 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
327 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
328 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
330 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
331 Set the 'table-layout: fixed' CSS property to the related list table.
332 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
333 'white-space: nowrap;' CSS property on both the list view and the
336 2011-11-16 Ben Konrath <ben@bagu.org>
338 Rework the fix for empty notebook tab labels.
340 Setting the empty group titles with its name caused problems for the
341 details layout. Instead of using libglom's
342 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
343 to the client when the title is empty. This allows the Notebook to use
344 the name when the title is empty without affecting anything else.
346 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
347 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
349 2011-11-16 Ben Konrath <ben@bagu.org>
351 Set group titles with name when title is empty.
353 This fixes a problem with an empty notebook tab label in the Lesson
354 Planner document. The forth tab in the notebook should be "Internet":
356 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
358 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
359 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
362 2011-11-16 Ben Konrath <ben@bagu.org>
364 Remove whitespace from the configured username properties.
366 This assumes that usernames won't have whitespace at the beginning
367 or end. But I think this is a reasonable assumption.
369 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
370 String.trim() to remove the whitespace from the username properties.
372 2011-11-15 Ben Konrath <ben@bagu.org>
374 Add details view mockup with HTML tables and text entries.
376 This is from the attachment on this bug:
378 https://bugzilla.gnome.org/show_bug.cgi?id=663109
380 * mockups/details-view-html-tables-text-entries.html:
382 2011-11-15 Ben Konrath <ben@bagu.org>
384 Add space between the columns of the flow table.
388 https://bugzilla.gnome.org/show_bug.cgi?id=662918
390 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
391 space between columns in the flow table.
393 2011-11-15 Ben Konrath <ben@bagu.org>
395 Add backup files to the .gitignore.
397 * .gitignore: Ignore files that end with ~.
399 2011-11-09 Ben Konrath <ben@bagu.org>
401 Use latest release of gwt-log.
403 Gwt-log releases are now being submitted to the maven central
404 repository so manual installation of the jar is no longer required.
406 * pom.xml: Update version and groupId of gwt-log dependency.
408 2011-10-31 Ben Konrath <ben@bagu.org>
410 Don't use GWT numeric formatting to override the glom currency formatting.
412 Currencies are now displayed like they are in Glom. See this bug:
414 https://bugzilla.gnome.org/show_bug.cgi?id=646216
416 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
418 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
419 currency code to constructor and set it when the cell is rendered.
420 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
421 currency code to the constructor of the NumericCell.
423 2011-10-27 Ben Konrath <ben@bagu.org>
425 Require the latest release of java-libglom (1.17.4).
429 2011-10-26 Ben Konrath <ben@bagu.org>
431 Add style to Notebook that matches current theme.
433 It's not the best style in the world but it's better than the default.
435 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
436 padding at the bottom of the child widgets.
437 * src/main/webapp/style.css: Add style for the Notebook.
439 2011-10-26 Ben Konrath <ben@bagu.org>
441 Move servlet initialization code to overridden init method.
443 This is half of the solution to getting proper error messages
444 displayed when configuration errors occur. Here's the relevant bug:
446 https://bugzilla.gnome.org/show_bug.cgi?id=662792
448 The rest of the solution involves surrounding the init method with a
449 try/catch block and setting a global variable with the error /
450 exception. A new async method should be created to retrieve and display
451 the error message / exception.
453 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
454 code from constructor to init method adding exceptions as needed.
456 2011-10-26 Ben Konrath <ben@bagu.org>
458 Add script to monitor and restart tomcat if required.
460 * utils/check-and-recover-tomcat.py: New file.
462 2011-10-26 Ben Konrath <ben@bagu.org>
464 Display the correct number of data items in the pager.
468 https://bugzilla.gnome.org/show_bug.cgi?id=661441
470 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
471 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
472 The implementation is the same for both tables: Keep track of the
473 number of non-empty rows and fire and RowCountChangeEvent after the data has
475 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
476 custom Pager class that subclasses SimplePager to handle displaying
477 the correct number when empty rows have been added.
479 2011-10-26 Ben Konrath <ben@bagu.org>
481 Correct error in previous commit.
483 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
484 eventBus parameter from listView.setCellTable().
486 2011-10-26 Ben Konrath <ben@bagu.org>
488 Fix error in TODO comment.
490 * src/main/java/org/glom/web/client/activity/ListActivity.java:
492 2011-10-24 Ben Konrath <ben@bagu.org>
494 Create Notebook widgets to the details view.
496 This isn't finished just yet - I still need to create a reasonable
497 style to match the current theme.
499 * src/main/java/org/glom/web/client/Utils.java: Add method for
500 calculating the height of a widget. This is used in the Notebook class.
501 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
502 new constructor method in Group.
503 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
504 method for creating child widget that can be used by subclasses
505 like Notebook. New constructor that allows disabling the group
506 titles - Notebooks don't set a group title for their child groups.
507 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
508 to make Notebooks using GWT's TabLayoutPanel.
509 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
510 constructor that allows disabling the group titles.
511 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
512 LayoutItemNotebook DTO.
513 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
514 DTO for Notebooks. It's just an empty class for now but we might need
515 it to transfer some specific information in the future.
517 2011-10-21 Ben Konrath <ben@bagu.org>
519 Add navigation buttons to related list tables.
521 * src/main/java/org/glom/web/client/OnlineGlomService.java:
522 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
523 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
524 method getSuitableRecordToViewDetails() for getting the table name
525 and primary key value for related list navigation buttons.
526 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
527 private cell renderer class to get the navigation information for
528 related list tables from the server. Extract the navigation
529 processing code from the details cell navigation and use it for the
530 related list navigation as well.
531 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
532 cell renderer class for the details open buttons. This was needed
533 because the related list navigation buttons and the list view
534 navigation buttons need to react differently when clicked.
535 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
536 the onEnterKeyDown() method because it's now overriden in the
537 subclasses that are specific to the related list tables and the list
539 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
540 the vertical size a little because the buttons add a bit of vertical
541 space to table. This is not a perfect solution because the vertical
542 size of with table fewer than 5 rows will be a little smaller.
543 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
544 changes in how navigation buttons are handled.
545 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
546 getSuitableRecordToViewDetails() using the new RelatedListNavigation
547 database access object.
548 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
549 to find the portal for a given relationship name from
550 RelatedListDBAccess. Add method to find a primary key field for a
552 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
553 Move code to find the portal for a given relationship name to
555 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
556 New file: database access object for getting the related list
557 navigation information (the table name and the primary key value).
558 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
559 DTO for transferring a table name to navigate to and a primary key
561 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
562 boolean and getter/setter to specifies if the related list should add
565 2011-10-24 Murray Cumming <murrayc@murrayc.com>
567 Use the master branch of java-libglom
569 * pom.xml: Depend on java-libglom 1.19 instead.
571 This is the master branch. See also the libglom-1-18 branch.
573 2011-10-11 Ben Konrath <ben@bagu.org>
575 Enable the open navigation button when the data has been set.
577 This avoids having active buttons that don't do anything when the data
580 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
582 2011-10-11 Ben Konrath <ben@bagu.org>
584 Use IsWidget interface for FlowTableItem.
586 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
587 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
589 2011-10-11 Ben Konrath <ben@bagu.org>
591 Remove GWT styling from open button in details view.
593 There are still some issues with how the details cell is arranged but
594 this should be made to match Glom 1.20. I'm going to leave fixing this
595 until I have Glom 1.20 up and running.
597 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
598 style name on open button.
599 * src/main/webapp/style.css: Move and edit details-navigation class.
600 Re-arrange some classes to make them appear in the same order as the
603 2011-10-07 Ben Konrath <ben@bagu.org>
607 * .gitignore: Ignore new cache directory.
608 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
609 * pom.xml: Change GWT and maven plugin to 2.4.0.
610 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
612 * src/main/java/org/glom/web/client/ClientFactory.java:
613 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
614 * src/main/java/org/glom/web/client/OnlineGlom.java:
615 Update source for API changes.
616 * utils/build-onlineglom-war.sh: Remove cache directory before the
619 2011-10-07 Ben Konrath <ben@bagu.org>
621 Add navigation buttons in the details view.
623 This isn't finished but I thought I'd commit what I have as it's a
624 pretty good start. I still need to:
626 1. Change the style so that it fits better into the current theme
627 2. Adjust the details cell to expand as much as possible.
629 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
630 click handlers to navigation buttons in the DetailsCells. Create a
631 refreshData() method to get just the data from the server without the
633 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
634 Update the tableSelector and browser title when the table name
635 changes without using the tableSelector.
636 * src/main/java/org/glom/web/client/ui/DetailsView.java:
637 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
638 getDetailsCells() to getCells(). Update variable names.
639 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
640 method to set click handler on navigation button. Rename a few
641 variables. Add navigation buttons where needed.
642 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
643 variables and methods.
644 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
645 navigation boolean and navigation table as required in the
647 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
648 variables for navigation along with getter/setter methods.
650 2011-10-07 Ben Konrath <ben@bagu.org>
652 Rename Field to DetailsCell.
654 This is a refactor-only commit. No functionality has been added or
657 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
658 Update variable and method names.
659 * src/main/java/org/glom/web/client/ui/DetailsView.java:
660 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
661 variable and method names.
662 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
664 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
665 variable and method names.
667 2011-10-07 Ben Konrath <ben@bagu.org>
669 Create separate methods for layout and data the details view.
671 This is a refactor-only commit. No functionality has been added or
674 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
675 private methods: setData(), createLayout().
677 2011-10-07 Ben Konrath <ben@bagu.org>
679 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
681 This is part of a change to get navigation buttons in the details view
682 but it should have been done this way from the start.
684 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
685 for method name change in TableSelectionView.
686 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
687 Create TableChangeEvent and set the browser title using the
688 TableSelectionView API.
689 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
690 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
691 Change getSelectedTable() to getSelectedTableName(). Add
692 getSelectedTableTitle().
694 2011-10-07 Ben Konrath <ben@bagu.org>
696 Use primaryKeyValue naming convention in constructor of DetailsPlace.
698 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
700 2011-10-07 Ben Konrath <ben@bagu.org>
702 Update TableChangeEvent to use newTableName naming convention.
704 This makes the class more consistent with GWT naming conventions.
706 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
707 Update for method name change in TableChangeEvent.
708 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
709 for method name change in TableChangeEvent.
710 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
711 newTableName variable and getter method. Make toDebugString()
714 2011-09-30 Ben Konrath <ben@bagu.org>
716 Disable the pager in the list tables when the data row count is less than the minimum.
718 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
719 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
721 2011-09-30 Ben Konrath <ben@bagu.org>
723 Add empty rows to the end of related list and list view tables.
725 I also extracted the cell rendering classes from the ListTable because
726 the code was becoming a little crazy with all the anonymous inner
727 classes. My plan is to use these cell rendering classes in the details
728 view as well so this refactor will be needed for that change.
730 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
731 set the row count in related list tables if the data has more rows
732 than the minimum number of rows visible.
733 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
734 row count in list view tables if the data has more rows than the
735 minimum number of rows visible.
736 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
737 for rendering TYPE_BOOLEAN cells. The code was extracted from the
739 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
740 for rendering TYPE_NUMERIC cells. The code was extracted from the
742 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
743 class for rendering cells with buttons in list views. The code was
744 extracted from the ListTable class.
745 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
746 for rendering TYPE_TEXT cells. The code was extracted from the
748 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
749 Add empty rows to the end of the data if required. Implement
750 ListTable.getMinNumVisibleRows().
751 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
752 cell renderer code to public classes. Return null in
753 Column.getValue() for empty rows. Add new abstract method:
754 getMinNumVisibleRows(). Move code to set the row count of the list view
755 table to ListViewImpl.
756 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
757 empty rows to the end of the data if required. Implement
758 ListTable.getMinNumVisibleRows().
761 2011-09-27 Ben Konrath <ben@bagu.org>
763 Use GWT.log for client-side debugging statements.
765 These are optimized out when deployed so I should have used this method
766 in the first place. These statements will eventually be replaced with some sort
767 of notification in the browser.
769 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
770 * src/main/java/org/glom/web/client/activity/ListActivity.java:
771 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
772 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
773 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
775 2011-09-27 Ben Konrath <ben@bagu.org>
777 Put tableselector on the right, back to list link on right.
779 The idea is that the table selector is acting like a label for the
780 currently displayed table so it should be placed below the document title. This
781 puts the table title in a similar position to where it is in Glom.
783 * mockups/details-contacts.html:
784 * mockups/details-projects.html:
785 * mockups/listview-contacts.html:
786 * mockups/listview-projects.html:
788 Update mockups to match how the interfaces currently look.
789 * src/main/webapp/style.css: Swap positions of backlink with the table
790 selector. Add some space on the left side of the table selector to
791 line things up with the document title.
793 2011-09-27 Ben Konrath <ben@bagu.org>
795 Add field colouring to details view.
797 This change re-works how field colouring works. The colour formatting
798 information is now set to the client with the layout information instead of
799 with the data. This eliminates the need to send the same colour strings for
800 data in list view column when colour information is set.
802 In order to set an alternate colour for negative numeric values, the
803 number is now sent to client and formatted with the GWT NumberFormat class.
805 This change also fixes:
807 https://bugzilla.gnome.org/show_bug.cgi?id=659752
809 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
810 internationalization framework which is needed for client side numeric
812 * src/main/java/org/glom/web/client/Utils.java: New file for some
813 client static utility methods.
814 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
815 the DataItem object to the Field class. Use a utility method to
816 create the foreignKeyValue string.
817 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
818 alignment and text colours in the constructor. Add setData(DataItem)
819 method. Remove setText(String) method.
820 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
821 colour information to GlomTextCell. Create and use GlomNumberCell for
822 rendering numbers. Use utility method to get the string for the
823 primary key of the key provider. Re-work how the horizontal alignment
825 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
826 formatting to layout information. Methods for converting the libglom
827 formatting information were moved from DBAccess.
828 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
829 numeric formatting (it's now done on the client side). Don't set text
830 colours in DataItem. Move libglom formatting conversion methods to
832 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
833 getters/setters for text colour information.
834 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
835 for transferring the libglom NumericFormat information to the client.
836 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
837 and getters/setters for: GlomNumericFormat, background colour and
838 foreground colour strings.
840 2011-09-26 Ben Konrath <ben@bagu.org>
842 Simplify code that iterates through the LayoutGroup.
844 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
846 2011-09-26 Ben Konrath <ben@bagu.org>
848 Accept Eclipse formatting for OnlineGlomServiceAsync.
850 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
852 2011-09-26 Ben Konrath <ben@bagu.org>
854 Don't use the ListDBAccess classes to get the primary key layout information.
856 This was causing a bug where the wrong index for the hidden primary key
857 was being sent to the client.
859 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
860 primary key while creating the LayoutGroup DTO. Create a
861 LayoutItemField DTO for hidden primary keys. Don't use the
862 RelatedListDBAccess because it was only used for getting the primary
864 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
865 access modifier from public to protected for getPrimaryKeyField() and
866 getPrimaryKeyLayoutItemField().
867 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
868 abstract method getExpectedResultSize() because RelatedListDBAccess
869 doesn't have enough info to implement it.
870 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
871 Remove @Override for getExpectedResultSize().
872 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
873 Remove method getExpectedResultSize().
875 2011-09-23 Ben Konrath <ben@bagu.org>
877 Log which layout (list or details) the ignored item is from.
879 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
881 2011-09-23 Ben Konrath <ben@bagu.org>
883 Remove annotations that turn off code formatting in DataItem.
885 * src/main/java/org/glom/web/shared/DataItem.java:
887 2011-09-23 Ben Konrath <ben@bagu.org>
889 Rename GlomField to DataItem and update associated methods.
891 This is a rename-only refactor. No functionality has been added or
894 * src/main/java/org/glom/web/client/OnlineGlomService.java:
895 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
896 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
897 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
898 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
899 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
900 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
901 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
903 * src/main/java/org/glom/web/server/database/DBAccess.java:
904 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
905 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
906 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
907 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
908 * src/main/java/org/glom/web/shared/DataItem.java:
909 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
910 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
912 2011-09-23 Ben Konrath <ben@bagu.org>
914 Rename GlomDocument to DocumentInfo and update associated methods.
916 This is a rename-only refactor. No functionality has been added or
919 * src/main/java/org/glom/web/client/OnlineGlomService.java:
920 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
921 * src/main/java/org/glom/web/client/activity/ListActivity.java:
922 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
923 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
925 * src/main/java/org/glom/web/shared/DocumentInfo.java:
927 2011-09-20 Ben Konrath <ben@bagu.org>
929 Require java-libglom 1.17.3.
931 This picks up the fix for the seg fault problem with the Scenes table
932 in the Openismus Film Manager example.
936 2011-09-20 Ben Konrath <ben@bagu.org>
938 Change the way sort clause is added for primary key when no sort clause is requested.
940 The primary key is now added to the LayoutFieldVector (fieldsToGet)
941 before the sort clause is created. When a sort clause is not requested, the
942 sort clause is created by finding the primary key in the LayoutFieldVector
945 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
947 2011-09-20 Ben Konrath <ben@bagu.org>
949 Log error message if no documents are found in the configured directory.
951 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
952 Extract the glom file extension string to a private static final class
953 variable (mostly as syntactic sugar). Accept a minor formatting change.
954 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
955 the example glom.document.directory configuration property to make it
956 more clear that it can any directory, not just the home directory.
958 2011-09-18 Ben Konrath <ben@bagu.org>
960 Add related lists to details view.
962 The related list table has support for paging and sorting just like the
963 table in the list view.
965 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
966 SQL queries for the related list tables.
967 * src/main/java/org/glom/web/client/OnlineGlomService.java:
968 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
970 Rename getList methods to getListView and add comments. Remove
971 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
972 it being unused. Add methods: getDetailsLayoutAndData(),
973 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
974 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
975 Create the layout and set the data for the fields in one async call
976 instead of two. Create related lists where appropriate.
977 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
978 for method name changes in OnlineGlomService.
979 * src/main/java/org/glom/web/client/ui/DetailsView.java:
980 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
981 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
983 * src/main/java/org/glom/web/client/ui/ListView.java:
984 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
985 tableName from setCellTable(). Create a ListViewTable instead of
987 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
988 represent a data field in the details view.
989 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
990 from addDetailsCell() to Field class. Keep track of the Fields and
991 Portals in the details view.
992 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
993 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
994 and add a method to get it. Add method to set the contents of the
996 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
997 New class for related list tables. This class has the data provider
998 for the related list table.
999 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1000 abstract class which is the base class for the ListViewTable and the
1002 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1003 New class for list view tables. This class has the data provider for
1004 the list view table.
1005 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1006 methods for related list tables. Add more information to the
1007 LayoutItemField and LayoutItemPortal DTOs.
1008 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1009 Remove debugging print statement.
1010 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1011 Remove debugging print statements. Add primary key field to SQL count
1013 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1014 Remove unnecessary LayoutFieldVector parameter from
1015 getResultSizeOfSQLQuery() method.
1016 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1017 New class for related list table database access.
1018 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1019 class that is a wrapper DTO for details view layout and data.
1020 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1021 new 'fromField' string to this DTO.
1022 * src/main/webapp/style.css: Remove bottom margin and override top
1025 2011-09-15 Ben Konrath <ben@bagu.org>
1027 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1029 This sets things up to make it easier to add the data retrieval for
1030 related lists (portals). No user noticeable changes were made with
1033 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1034 class has the code to retrieve the layouts and access the
1035 database using the new database helper classes.
1036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1037 Most of the functionality has been removed from this class. This
1038 class now represents the public interface for the client side
1039 code. It also deals with configuring the servlet and cleaning
1040 things up when the servlet is stopped.
1041 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1042 of static methods into this utility class.
1043 * src/main/java/org/glom/web/server/database/DBAccess.java:
1044 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1045 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1046 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1047 These classes have the database retrieval code. The class hierarchy
1048 has been setup to make it easy to reuse code for similar
1051 2011-09-06 Ben Konrath <ben@bagu.org>
1053 Create separate classes for list table code and the data provider.
1055 As part of this refactor, I also split up the code a bit to make it
1058 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1059 table code to two new classes (below).
1060 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1061 with code from ListViewImpl.
1062 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1063 New file with code from ListViewImpl.
1065 2011-09-06 Ben Konrath <ben@bagu.org>
1067 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1069 This fixes the LayoutItemPortal DTO to match the libglom layout object
1072 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1074 2011-09-01 Ben Konrath <ben@bagu.org>
1076 Set title of Portals in the Details View.
1078 * pom.xml: Bump required version of java-libglom to 1.17.1.
1079 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1080 widget creation to its own class. Add comments to constructor.
1081 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1082 The code is mostly from the Group class with the title now set.
1083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1084 title of Portal. Update some comments. Fix some code formatting.
1086 2011-09-01 Ben Konrath <ben@bagu.org>
1088 Remove TODO comment for the flow table column width.
1090 The flow table column width is working correctly and doesn't need to be
1091 changed. See this mailing list post for more info:
1093 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1095 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1097 2011-08-27 Ben Konrath <ben@bagu.org>
1099 Add document title (database name) to top of the browser page.
1101 I added the document title to the TableSelecitonView but that will
1102 change if / when we add a view that doesn't require table selection.
1104 * mockups/details-contacts.html:
1105 * mockups/details-projects.html:
1106 * mockups/listview-contacts.html:
1107 * mockups/listview-projects.html:
1108 * mockups/style.css: Add document title to mockups to keep things
1110 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1111 sizes to account for the document title.
1112 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1113 Set the document title when it has been retrieved from the server.
1114 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1115 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1116 and implement setDocumentTitle(String) method.
1117 * src/main/webapp/style.css: Add ID for document title style.
1119 2011-08-25 Ben Konrath <ben@bagu.org>
1121 Add NavigationType enum to LayoutItemPortal DTO.
1123 This is the start of adding support for Portals to the Details View.
1125 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1126 LayoutItem_Portal.navigation_type enum from libglom to
1127 LayoutItemPortal.NavigationType enum.
1128 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1129 NavigationType enum, field for storing the NavigationType and getter
1132 2011-08-25 Ben Konrath <ben@bagu.org>
1134 Implement the flow table layout in the Details View.
1136 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1137 FlowTable to Group to account for the renamed class.
1138 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1139 File. This is a container widget that implements the Glom details view
1140 flow table behaviour.
1141 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1142 org/glom/web/client/ui/FlowTable.java.
1143 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1144 so that the size of the subgroups are a closer match to the size of
1145 the Glom subgroups. This makes the flowtable layout match the layout
1146 in Glom for the Music Collection example file.
1148 2011-08-16 Ben Konrath <ben@bagu.org>
1150 Create container element for LayoutItemPortal in Details View.
1152 This will help me develop the layout for the FlowTable.
1154 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1155 fieldPanel variable to detailsCell.
1157 2011-08-15 Ben Konrath <ben@bagu.org>
1159 Set the height of the data element in the Details View.
1161 I changed the InlineLabels (text in a span element) to Labels (text in
1162 a div element) so that I could set the height of the details-data
1163 elements instead of the details-cell parent elements. This allows the
1164 the details-data element to display the correct height if style is
1165 applied that shows the height.
1167 This change has the added benefit of allowing the order of the labels
1168 and data elements to be changed for right-to-left languages.
1170 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1171 InlineLabels to Labels.
1172 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1173 InlineLabels to Labels. Set the height of the data element.
1174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1175 multiline text height in the Formatting DTO.
1176 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1177 for multiline height along with getter and setter methods.
1178 * src/main/webapp/style.css: Adjust style to account for the change
1179 from span elements to div elements in the details cell.
1181 2011-08-15 Ben Konrath <ben@bagu.org>
1183 Make the List View appearance match the mockups.
1185 It doesn't match exactly but it's much better than it was.
1187 * mockups/listview-contacts.html: Remove unused css classes.
1188 * mockups/listview-projects.html: Remove unused css classes.
1189 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1190 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1191 for mainPanel instead of VerticalPanel (table). Set style name on
1192 CellTable. Set style name on Details column. Right-align Details
1194 * src/main/webapp/style.css: Adjust properties to match the mockups.
1196 2011-08-12 Ben Konrath <ben@bagu.org>
1198 Add better support for subgroups in the details view.
1200 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1201 changed FlowTable constructor.
1202 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1203 support for subgroups and subgroup-titles.
1204 * src/main/webapp/style.css: Add CSS class for subgroups and
1207 2011-08-12 Ben Konrath <ben@bagu.org>
1209 Return the top level LayoutGroup title.
1211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1213 2011-08-11 Ben Konrath <ben@bagu.org>
1215 Make the TableSelector header match the mockup.
1217 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1218 the layout panel. Properly lineup the table selection header with
1219 the list and details view.
1220 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1221 margin around the details view.
1222 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1223 Rename listBox variable to tableSelector. Set id for the style sheet.
1224 Use a FlowPanel instead of a HorizontalPanel.
1225 * src/main/webapp/style.css: Add properties to make the TableSelector
1226 box match the mockups.
1228 2011-07-13 Ben Konrath <ben@bagu.org>
1230 Update install script for java-libglom version change.
1232 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1235 2011-07-13 Ben Konrath <ben@bagu.org>
1237 Add support sub-group in the details view.
1239 I also removed the code that special-cased the default details view
1242 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1244 I still have to make a proper flowtable.
1246 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1247 Don't special-case default details view layout.
1248 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1249 addLayoutField() as I'm going to use it.
1250 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1251 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1253 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1254 extracted from DetailsViewImpl.GroupPanel. Add support for
1256 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1257 column count when getting the details layout.
1259 2011-07-12 Ben Konrath <ben@bagu.org>
1261 Set browser title with database and table titles.
1263 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1264 Set the browser title when the table changes and when the activity
1266 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1267 title when retrieving document info (the GlomDocument object).
1268 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1269 with getter and setter methods. Remove unused convenience constructor.
1270 Use default code formatting.
1272 2011-07-12 Ben Konrath <ben@bagu.org>
1274 Ignore LayoutItemPortals in the details view.
1276 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1279 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1280 LayoutItemPortal layout objects.
1281 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1282 LayoutItemPortal objects when retrieving the details layout.
1283 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1284 file. This is an empty class and just used to get type information for
1287 2011-07-12 Ben Konrath <ben@bagu.org>
1289 Use java-libglom 1.17.0.
1293 2011-07-11 Ben Konrath <ben@bagu.org>
1295 Remove "Table:" label from table selector.
1297 This matches a recent change in the Glom UI.
1299 * mockups/details-contacts.html:
1300 * mockups/details-projects.html:
1301 * mockups/listview-contacts.html:
1302 * mockups/listview-projects.html: Remove the "Table:" label from the
1304 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1306 2011-07-11 Ben Konrath <ben@bagu.org>
1308 Add main groups to the details view.
1310 This makes things look a little nicer in the details view. The next step
1311 is to implement the flowtable.
1313 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1314 resources from the standard gwt css theme. Standard.css is now
1315 included in OnlineGlom.html so that the online glom css rules have
1316 precedence over the gwt theme.
1317 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1318 the whole LayoutGroup to the DetailsView instead of just the titles.
1319 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1320 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1321 details layout with a helper class (GroupPanel). I might extract this
1322 class when I make the full flowtable.
1323 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1324 string as default so I don't have to worry about NPEs when processing
1326 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1327 note beside OnlineGlom.gwt.xml above).
1328 * src/main/webapp/style.css: Add default font-size to body to override
1329 the font-size set by the standard theme. Don't use h2 tags for
1330 group-title. Create new details-cell class.
1332 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1334 ConfiguredDocument: Set the port number too.
1336 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1337 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1338 Glom document. Presumably this worked sometimes so far because there is a
1339 default port number.
1341 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1343 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1345 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1346 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1347 correct, though we should throw an exception too.
1349 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1351 Fix a addDocuemnt typo.
1353 * src/main/java/org/glom/web/shared/Documents.java
1354 (Documents.addDocuemnt): Rename to addDocument().
1355 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1356 (OnlineGlomServiceImpl.getDocuments): Adapt.
1358 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1360 Slightly improved log output when connection fails.
1362 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1363 (ConfiguredDocument.setUsernameAndPassword):
1364 We don't know for sure if it' the username/password that's wrong, so
1365 rephrase the message.
1366 Also ouput the exception message, though it's generic in this case.
1368 2011-07-08 Ben Konrath <ben@bagu.org>
1372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1373 added braces to a one line if statement because the Eclipse formatter
1374 was getting confused.
1376 2011-07-07 Ben Konrath <ben@bagu.org>
1378 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1380 These should really be two separate tasks but I counldn't get things to
1381 work with GWT 2.2.0 and Eclipse 3.7.
1385 * .settings/org.eclipse.jdt.core.prefs:
1386 * .settings/org.eclipse.jdt.ui.prefs:
1387 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1388 * .settings/org.eclipse.m2e.core.prefs:
1389 Add new config files. Update current files. Remove references to the
1390 webtools plugins as we're not using any of the webtools features.
1391 * .gitignore: Add logs directory which is created when running with
1393 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1394 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1395 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1397 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1399 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1401 onlineglom.properties: Add explanatory comments.
1403 * src/main/resources/onlineglom.properties: Also change the default user
1404 from ben to someuser, to avoid the risk of people thinking we just
1405 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1407 2011-06-28 Ben Konrath <ben@bagu.org>
1409 Use filename in Log for incorrect passwords.
1411 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1412 getFileName(String) method to get the filename from the URI.
1414 2011-06-28 Ben Konrath <ben@bagu.org>
1416 Add the table name to the URL token for the ListPlace.
1418 This makes things consistent between the DetailsPlace and the
1419 ListPlace. It also allows the the ListPlace to be bookmarked.
1421 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1422 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1423 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1424 Remove getDefaultListLayout(). The default layout is now returned
1425 by the getListLayout() method when the table name is an empty string.
1426 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1427 Add table name field. Change to a new ListPlace when the table
1428 has been changed. Use getListLayout() for getting the default
1430 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1431 Add table name field. Set the correct table name in the list box
1432 when loading from bookmark. This corrects a problem for the
1434 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1435 Move table name to super-class (HasSelectableTable). Move document
1436 and table URL keys to super-class in HasSelectableTable.
1437 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1438 Add table name field. Add Tokenizer class with URL key common to
1439 the subclasses (DetailsPlace and ListPlace).
1440 * src/main/java/org/glom/web/client/place/ListPlace.java:
1441 Add table name. Add code to parse the URL token.
1442 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1443 Update ListPlace construction with empty table name string.
1444 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1445 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1446 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1447 Update ListPlace construction with table name string.
1448 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1449 Change defaultTableName field to tableName to reflect how it's now
1450 used. Update the getter and setter methods.
1452 2011-06-28 Ben Konrath <ben@bagu.org>
1454 Enable the table selector in the DetailsView.
1456 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1457 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1458 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1459 Remove getDefaultDetailsLayout(). The default layout is now returned
1460 by the getDetailsLayout() method when the table name is an empty
1462 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1463 event handler for table change event. Change to using
1464 getDetailsLayout() for the default details layout.
1465 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1467 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1468 when navigating to the details place.
1470 2011-06-27 Ben Konrath <ben@bagu.org>
1472 Use filename based unique document ID in URL and for RPC.
1474 The document ID is the glom document name with spaces (' ') replaced
1475 with pluses ('+') and without the .glom extension.
1477 This change is mostly a string substitution of 'documentTitle' for
1478 'documentID'. The only code change is the addition of a Documents DTO to get the
1479 filename to document title mappings as indicated below.
1481 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1482 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1483 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1484 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1485 Use Documents DTO to create the document links in the document
1487 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1488 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1489 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1490 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1491 * src/main/java/org/glom/web/client/place/ListPlace.java:
1492 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1493 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1494 * src/main/java/org/glom/web/client/ui/ListView.java:
1495 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1496 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1497 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1498 * src/main/java/org/glom/web/server/Log.java:
1499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1500 getDocumentTitles() to getDocuments() and return the Documents DTO.
1501 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1502 transferring the filename to document title mappings.
1504 2011-06-25 Ben Konrath <ben@bagu.org>
1506 Make the authentication popup work again.
1508 This bug was introduced when I extracted ConfiguredDocument to its own class.
1510 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1511 correct success / fail status in setUsernameAndPassword().
1513 2011-06-25 Ben Konrath <ben@bagu.org>
1515 Use filename as unique key for configuring database usernames and passwords.
1517 This replaces the use of the Glom document title which could change
1518 depending on the locale. Thanks to Murray Cumming for pointing out this
1521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1522 * src/main/resources/onlineglom.properties:
1524 2011-06-24 Ben Konrath <ben@bagu.org>
1526 Pass primary key value to DetailsView.
1528 This enables the DetailsView to load the correct data.
1530 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1531 primary key value field and set in constructor. Pass primary key
1532 value to getDetailsData().
1533 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1534 variables for document title and primary key value.
1535 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1536 key value to the DetailsPlace.
1538 2011-06-24 Ben Konrath <ben@bagu.org>
1540 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1542 This allows the primary key to be retrieved by the Details button. This
1543 functionality has not been implemented yet but it's in the works.
1545 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1546 the LayoutGroup result to ListView.setCellTable instead of all of its
1547 fields individually.
1548 * src/main/java/org/glom/web/client/ui/ListView.java:
1549 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1550 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1551 get the primary key for the table.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1553 index of the primary key in the LayoutGroup accounting for hidden
1554 primary keys. Rename getJavaNumberFormat() to
1555 convertToJavaNumberFormat() for consistency. Cleanup / add some
1557 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1558 field for primary key index and a field to indicate whether the
1559 primary key is hidden or not.
1561 2011-06-23 Ben Konrath <ben@bagu.org>
1563 Rename getTableData methods to getListData.
1565 This is a rename refactor for consistency with other methods.
1567 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1568 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1569 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1572 2011-06-23 Ben Konrath <ben@bagu.org>
1574 Extract the ConfiguredDocument innerclass into its own class.
1576 This makes the servlet code more object oriented.
1578 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1579 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1581 new ConfiguredDocument class.
1583 2011-06-21 Ben Konrath <ben@bagu.org>
1585 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1587 This makes things more inline with how libglom works and reduces code
1588 duplication. This refactor lays the groundwork for adding the primary key to
1589 the LayoutGroup object.
1591 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1592 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1594 Change method names to getListLayout and getDefaultListLayout for
1595 consistency. Use LayoutGroup as the DTO for the list layout instead of
1596 ColumnInfo and LayoutListTable.
1597 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1598 new method names along with the LayoutGroup object for transferring the
1600 * src/main/java/org/glom/web/client/ui/ListView.java:
1601 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1602 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1603 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1605 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1606 Replaced with LayoutGroup.
1607 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1608 expectedResultSize and defaultTableName fields which are needed for
1610 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1611 type field which is needed for the list layout but will also be
1612 useful for the details layout as things progress.
1613 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1614 Make class abstract. Remove the unnecessary
1615 getFormattingHorizontalAlignment method. Add setFormatting method.
1617 2011-06-16 Ben Konrath <ben@bagu.org>
1619 Add scripts for building and installing war.
1621 These will help when updating OnlineGlom but they're also good
1622 supplemental documentation of the build and deployment proceeding.
1624 * utils/build-onlineglom-war.sh: New file.
1625 * utils/install-onlineglom-war.sh: New file.
1627 2011-06-16 Ben Konrath <ben@bagu.org>
1629 Create wrapper class to create consistent log messages.
1631 I wrapped methods in the Log class of gwt-log to add the method names
1632 from the servlet and create consistent formatting of the document title
1633 and table names in the log messages.
1635 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1636 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1637 log methods to use methods from wrapped Log class.
1639 2011-06-16 Ben Konrath <ben@bagu.org>
1641 Remove superfluous conditional return.
1643 Thanks to Murray Cumming for pointing this out!
1645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1647 2011-06-15 Ben Konrath <ben@bagu.org>
1649 Return an ArrayList of LayoutGroups for the Details layout.
1651 This corrects a problem with the details layout as it can have more
1652 than one top level LayoutGroup.
1654 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1655 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1656 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1657 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1658 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1659 with ArrayList of LayoutGroups for the details view layout.
1660 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1661 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1662 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1663 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1664 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1665 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1667 2011-06-14 Ben Konrath <ben@bagu.org>
1669 Use cast_dynamic method to determine the libglom LayoutItem type.
1671 This is better than finding the LayoutItem type by using the string
1672 returned from the get_part_type_name() method.
1674 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1676 2011-06-14 Ben Konrath <ben@bagu.org>
1678 Add method names to log entries in the servlet.
1680 This helps when tracking down deployment problems.
1682 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1684 2011-06-14 Ben Konrath <ben@bagu.org>
1686 Add data to the DetailsView using a hard-coded primary key value.
1688 The layout and functionality of the DetailsView is not complete. This
1689 is just a checkpoint so the patch doesn't get too big.
1691 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1692 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1693 Add getDetailsData() servlet method.
1694 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1695 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1696 LayoutFields are added to the DetailsView.
1697 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1698 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1699 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1700 take the string for the title instead of the object.
1701 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1702 Add implementation getDetailsData() along with some private helper
1704 * src/main/webapp/style.css: Add padding to details-data class. Add a
1705 details-label class with the same padding as the details-data class.
1707 2011-06-03 Ben Konrath <ben@bagu.org>
1709 Use presenter.goTo() to change to the DetailsPlace.
1711 This will make things easier when we need to open the DetailsView with
1712 data specific to the row that was clicked.
1714 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1716 2011-06-02 Ben Konrath <ben@bagu.org>
1718 Add CSS file from mockups.
1720 I'm adding this now because it's going to be useful to have when
1721 developing the DetailsView. The TableSelectionView and ListView aren't
1724 * src/main/webapp/OnlineGlom.html:
1725 * src/main/webapp/style.css:
1727 2011-06-02 Ben Konrath <ben@bagu.org>
1729 Use String.isEmpty() to check for empty string.
1731 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1733 2011-06-02 Ben Konrath <ben@bagu.org>
1735 Display main layout group titles in the DetailsView.
1737 This is the start of the DetailsActivity/DetailsView implementation.
1739 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1740 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1741 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1742 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1743 Get the layout information for the details view from the server and set
1744 the main layout group titles.
1745 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1746 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1747 Add addLayoutGroup() and addLayoutField() methods. This are just
1748 temporary methods for creating the the details view that will change
1750 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1751 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1753 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1754 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1755 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1756 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1757 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1758 Data Transfer Objects that mimic the libglom object structure. These are
1759 used for transferring the details layout but could also be used for
1760 transferring the list layout.
1762 2011-05-27 Ben Konrath <ben@bagu.org>
1764 Reset the AuthenticationPopup when clearing the ListView.
1766 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1768 2011-05-27 Ben Konrath <ben@bagu.org>
1770 Fix problem with onlineglom.properties file loading.
1772 The old way worked in Eclipse but not on the server. Loading the
1773 onlineglom.properties file now works in Eclipse and on the server.
1775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1777 2011-05-24 Ben Konrath <ben@bagu.org>
1779 Update gwt-log from 3.1.0 to 3.1.2.
1781 Gwt-log 3.1.0 has been marked as depreciated.
1785 2011-05-24 Ben Konrath <ben@bagu.org>
1787 Add comment to ListActivity.goTo() method.
1789 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1791 2011-05-24 Ben Konrath <ben@bagu.org>
1793 Remove FIXME in convertGdkColorToHtmlColour()
1795 The Gdk::Color value returned by libglom is 16-bits per channel on both
1796 64 and 32-bit platforms.
1798 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1800 2011-05-19 Ben Konrath <ben@bagu.org>
1802 Improve performance of initial ListView load.
1804 I removed a round trip to the server for getting the default table name
1805 and then requesting information about that table. This also removes a potential
1806 problem with the table change handler not being setup in time to receive the
1807 table change event from the ListActivity.
1809 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1810 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1811 getDefaultLayoutListTable() method. Improve comments.
1812 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1813 getDefaultLayoutListTable() method instead of firing a table change
1814 event to get the table to load.
1815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1816 implementation of getDefaultLayoutListTable() method.
1817 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1820 2011-05-19 Ben Konrath <ben@bagu.org>
1822 Override toDebugString() in TableChangeEvent.
1824 This is useful to have for debugging.
1826 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1828 2011-05-19 Ben Konrath <ben@bagu.org>
1830 Add a "Back to List" link when at the DetailsPlace.
1832 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1833 Populate the CellTable based on the selected table of the ListBox if
1834 it's set otherwise use the default table. This allows the "Back to
1836 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1837 Remove Place from constructors. Add a setPlace() method. Add
1838 goToPlace() method. Set class as presenter for TableSelectionView.
1839 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1840 Use the same TableSelectionActivity when switching between the List and
1842 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1843 Subclass the new HasSelectableTablePlace. This removes some duplicate
1845 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1846 New class to represent Places that display the TableSelectionView.
1847 * src/main/java/org/glom/web/client/place/ListPlace.java:
1848 Subclass the new HasSelectableTablePlace. This removes some duplicate
1850 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1851 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1852 Add Presenter interface. Add setBackLinkVisible() method. Add
1853 setBackLink() method.
1855 2011-05-18 Ben Konrath <ben@bagu.org>
1857 Enable the "Details" buttons.
1859 Right now only an empty details view is displayed.
1861 * src/main/java/org/glom/web/client/ClientFactory.java:
1862 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1863 Add DetailsView to ClientFactory.
1864 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1865 A basic activity for the details view.
1866 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1867 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1869 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1870 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1872 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1873 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1874 unnecessary super() in constructor.
1875 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1876 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1877 really shouldn't create a new TableSelectionActivity for both the ListPlace
1878 and the DetailsPlace so this should be considered a temporary solution.
1879 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1880 New file. Represents a URL for the details view.
1881 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1882 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1883 A basic details view interface and implementation.
1884 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1885 Enable the "Details" buttons.
1887 2011-05-12 Ben Konrath <ben@bagu.org>
1889 Use a LayoutPanel with multiple display areas for main layout.
1891 This is mostly a refactor in that there are no changes from the user
1892 point of view. These changes are required so that we can swap out the list view
1893 with the details view when the user clicks the "Details" button.
1895 * src/main/java/org/glom/web/client/ClientFactory.java:
1896 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1897 OnlineGlomView. Add TableSelectionView, ListView and
1898 AuthenticationPopup.
1899 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1900 for main layout. Add display regions for main activities. Add
1901 activity manager for for main activities.
1902 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1903 file from parts of the deleted OnlineGlomActivity.
1904 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1905 New file from parts of the deleted OnlineGlomActivity.
1906 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1907 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1908 New files for app wide table change event.
1909 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1910 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1911 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1912 Activity mappers for the main activities replace the deleted app-wide
1914 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1915 Fix a spelling error in he comment.
1916 * src/main/java/org/glom/web/client/ui/ListView.java:
1917 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1918 Renamed from LayoutListView and modified for MVP. This still not a
1919 proper dumb view as prescribed by the MVP pattern but it works for now.
1920 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1921 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1922 New widget stripped out of the deleted OnlineGlomView.
1923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1924 Remove hack that is fixed by this patch.
1926 2011-05-06 Ben Konrath <ben@bagu.org>
1928 Rename OnlineGlomPlace to ListPlace.
1930 The only change besides the rename is that url will now display #list
1931 instead of #Document.
1933 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1934 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1935 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1936 * src/main/java/org/glom/web/client/place/ListPlace.java:
1937 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1939 2011-05-06 Ben Konrath <ben@bagu.org>
1941 Use Presenter for app navigation.
1943 This is the proper way to deal with Place (URL) changes with the MVP
1946 * src/main/java/org/glom/web/client/ClientFactory.java:
1947 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1948 PlaceHistoryMapper and PlaceHistoryHandler.
1949 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1950 PlaceHistoryMapper and PlaceHistoryHandler.
1951 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1952 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1953 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1954 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1955 Add Presenter interface and setPresenter methods. Rename addHyperLink
1956 to addDocumentLink taking only the document title as a parameter.
1958 2011-04-14 Ben Konrath <ben@bagu.org>
1960 Prompt for db username/password if they haven't been set.
1962 This is implemented with a popup widget that is contained within the
1963 OnlineGlomView and managed by the OnlineGlomActivity.
1965 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1966 methods for checking and setting the database username and password.
1967 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1968 new methods for checking and setting the database username and
1970 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1971 Display authentication popup if the JDBC connection to the database
1972 has not been authenticated.
1973 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1975 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1976 for dealing with the authentication popup.
1977 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1978 Implement the methods for dealing with the authentication popup.
1979 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1980 try to executed queries if the database connection hasn't been
1981 authenticated. Implement methods for checking and setting the
1982 database username and password.
1984 2011-04-12 Ben Konrath <ben@bagu.org>
1986 Make log messages a little clearer.
1988 Add a dash betweeen the document title and the table name.
1990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1992 2011-04-12 Ben Konrath <ben@bagu.org>
1994 Protect against NPEs when cleaning up database resources.
1996 While this isn't strictly necessary because the exception is caught,
1997 not protecting against the NPEs makes it harder to find the real error
2000 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2002 2011-04-12 Ben Konrath <ben@bagu.org>
2004 Move configuration of the servlet to the constructor.
2006 The servlet will be initialized even if the database authentication
2007 information is not set or correct. I still need to add the UI for prompting
2008 the user for the authentication information when it's required.
2010 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2011 javadocs for getDocumentTitles() method.
2012 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2013 Set error message when RPC fails.
2014 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2015 glom files directory from the configuration file. Try to set the
2016 database authentication information for the specific document if it's
2017 set and works otherwise try to use the global authentication
2018 information set for the directory.
2019 * src/main/resources/onlineglom.properties: Moved from
2020 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2021 Added detailed comments for the new keys.
2023 2011-04-11 Ben Konrath <ben@bagu.org>
2025 Remove unnecessary @Override in DocumentSelectionViewImpl.
2027 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2029 2011-04-11 Ben Konrath <ben@bagu.org>
2031 Remove center alignment in DocumentSelectionView.
2033 The title element is still centred but the document titles and bottom
2034 sentence are both left-aligned.
2036 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2038 2011-04-11 Ben Konrath <ben@bagu.org>
2040 Change 'Demo' naming convention to 'Document'.
2042 This is just a rename refactor with no functional changes to the code.
2044 * src/main/java/org/glom/web/client/ClientFactory.java:
2045 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2046 * src/main/java/org/glom/web/client/OnlineGlom.java:
2047 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2048 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2049 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2050 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2051 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2052 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2053 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2054 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2055 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2056 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2058 2011-04-08 Ben Konrath <ben@bagu.org>
2060 Remove FIXME from safeLongToInt() method.
2062 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2065 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2067 2011-04-08 Ben Konrath <ben@bagu.org>
2069 Display an error if no glom documents are found in the specified directory.
2071 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2072 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2073 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2074 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2076 2011-04-08 Ben Konrath <ben@bagu.org>
2078 Add copyright header to one more file ... oops.
2080 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2082 2011-04-08 Ben Konrath <ben@bagu.org>
2084 Add copyright header to files without it.
2086 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2087 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2088 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2089 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2090 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2091 * src/main/java/org/glom/web/shared/GlomField.java:
2093 2011-04-08 Ben Konrath <ben@bagu.org>
2095 Add support for accessing multiple glom documents in the servlet.
2097 This completes the demo selection functionality.
2099 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2100 document title to methods.
2101 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2102 document title to methods.
2103 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2104 Set browser window title when the activity starts. Correct name of
2105 document title variable.
2106 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2107 Set browser window title when the activity starts. Set the table
2108 selector change handler after table selector has been set. Clear the
2109 OnlineGlomView when the activity has been stopped.
2110 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2111 document title as the place token. Use "#Document:" instead of
2112 "#OnlineGlomPlace:" in the URL.
2113 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2114 Change heading to "Online Glom"
2115 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2116 document title in RPC methods.
2117 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2118 setDocumentTitle() method. Add clear() method.
2119 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2120 setDocumentTitle() method. Implement clear() method which removes the
2121 change handler on the ListBox, clears the ListBox and clears the
2123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2124 Implement methods with document title. Keep track for the configured
2125 glom documents and their corresponding JDBC configurations in a hash
2126 table. This information is retrieved using the document title as the
2127 key in the hash table.
2128 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2129 document title field as it's no longer needed.
2131 2011-04-08 Ben Konrath <ben@bagu.org>
2133 Update the Eclipse JDT configuration.
2135 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2136 methods. Automatically add the copyright header to new files.
2138 2011-04-05 Ben Konrath <ben@bagu.org>
2140 Add new page for demo selection.
2142 This patch adds all the components required to view and start an
2143 OnlineGlom demo by clicking on the desired hyperlink. The user is
2144 able to return to the demo selection page with the browser's back
2145 button. I still need to modify the servlet to work with multiple
2146 documents so all demo links will load the file defined in the
2147 OnlineGlom.properties.
2149 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2150 This is only useful during development so we don't need to save it.
2151 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2152 get a reference to the DemoSelectionView.
2153 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2154 method to get a reference to the DemoSelectionView.
2155 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2156 default view to DemoSelectionView.
2157 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2158 to get glom document titles for glom files in a hard-coded directory.
2159 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2160 method to get glom document titles for glom files in a hard-coded
2162 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2163 Presenter for DemoSelectionView.
2164 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2165 for DemoSelectionView.
2166 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2167 Update for DemoSelectionView.
2168 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2169 Basic 'Place' implementation for the DemoSelectionView.
2170 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2171 The interface for the DemoSelectionView.
2172 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2173 The implementation of the DemoSelectionView.
2174 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2175 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2177 implementation of method to get glom document titles for glom files
2178 in a hard-coded directory.
2179 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2180 on longer being used.
2181 * src/main/webapp/glom.png: Glom logo.
2183 2011-04-05 Ben Konrath <ben@bagu.org>
2185 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2187 This is the forth and final commit of a refactor that will allow
2188 OnlineGlom to be used with multiple documents.
2190 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2191 Move RPC code from OnlineGlomViewImpl to this class.
2192 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2194 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2195 RPC code to the presenter class (the P in MVP).
2197 2011-04-04 Ben Konrath <ben@bagu.org>
2199 Start moving the existing OnlineGlom code to MVP.
2201 This work is based on the GWT MVP framework that is documented here:
2203 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2205 This is the third commit of a refactor that will allow OnlineGlom to
2206 be used with multiple documents.
2208 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2209 Interface for client factory which is used to get instances of various
2210 classes throughout the app.
2211 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2212 Implementation of client factory.
2213 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2214 initialize the MVP framework.
2215 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2216 New file. Activity manager for the main container widget. This is the
2218 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2219 Maps place (URL) to its corresponding activity.
2220 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2221 New file. This is just a place holder for a generated file.
2222 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2223 New file. Represents the URL for the main Online Glom app.
2224 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2225 for changes in LayoutListViewImpl.
2226 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2227 interface for View. Move code to OnlineGlomViewImpl class.
2228 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2229 file. Implementation of OnlineGlomView.
2230 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2231 Place resources. Use ClientFactoryImpl by default.
2233 2011-04-04 Ben Konrath <ben@bagu.org>
2235 Move View classes to their own package.
2237 This is the second commit of a refactor that will allow OnlineGlom to
2238 be used with multiple documents.
2240 * src/main/java/org/glom/web/client/OnlineGlom.java:
2241 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2242 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2244 2011-04-02 Ben Konrath <ben@bagu.org>
2246 Move UI code from the main module to its own class.
2248 This is the first commit of a refactor that will allow OnlineGlom to be
2249 used with multiple documents.
2251 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2252 references to OnlineGlom to OnlineGlomView.
2253 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2254 OnlineGlomView and instantiate it here.
2255 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2256 represents the main OnlineGlomView with one document.
2258 2011-04-01 Ben Konrath <ben@bagu.org>
2260 Fix formatting of gwt.xml and add DTD.
2262 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2264 2011-03-30 Ben Konrath <ben@bagu.org>
2266 Propperly convert gdkColor string to html colour string.
2268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2270 2011-03-28 Ben Konrath <ben@bagu.org>
2272 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2274 This implementation matches
2275 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2276 readable and is not tied to Swig.
2278 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2280 2011-03-28 Ben Konrath <ben@bagu.org>
2282 Use read-only checkboxes for boolean field types.
2284 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2285 in the CellTable based on the field type. It currently only
2286 distinguishes between boolean and text columns but I'll need to add
2287 support for more types.
2288 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2289 column type in the ColumnInfo object. Add method to convert between the
2290 glom field type enum in ColumnInfo and the glom field type in libglom.
2291 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2293 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2294 getting and setting booleans.
2296 2011-03-25 Ben Konrath <ben@bagu.org>
2298 Don't get the Date twice from the ResultSet.
2300 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2302 2011-03-25 Ben Konrath <ben@bagu.org>
2304 Cleanup code in the servlet.
2306 * TODO: Remove item about row count. Add item about testing row count
2307 query with large number of rows.
2308 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2309 spelling mistakes, change method parameter to be consistent with
2312 2011-03-25 Ben Konrath <ben@bagu.org>
2314 Add server side logging with the gwt-log library.
2316 * .gitignore: Ignore the log file we're now producing.
2317 * TODO: Add a couple TODO item for logging.
2318 * pom.xml: Add gwt-log and log4j as a dependency.
2319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2320 logging of errors, warnings and some important info.
2321 * src/main/resources/log4j.properties: New file to configure log4j.
2323 2011-03-24 Ben Konrath <ben@bagu.org>
2325 Add a disable button for the Details view.
2327 * src/main/java/org/glom/web/client/LayoutListView.java:
2329 2011-03-22 Ben Konrath <ben@bagu.org>
2331 Use a count query to get the number of rows for the list view pager.
2333 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2335 2011-03-22 Ben Konrath <ben@bagu.org>
2337 Add more TODO information about CellTable pager positioning.
2341 2011-03-19 Ben Konrath <ben@bagu.org>
2343 Add TODO item about CellTable pager positioning.
2347 2011-03-18 Ben Konrath <ben@bagu.org>
2349 Remove unneeded GlomFieldColumn class.
2351 This is just a small code cleanup.
2353 * src/main/java/org/glom/web/client/LayoutListView.java:
2355 2011-03-18 Ben Konrath <ben@bagu.org>
2357 Use cursor mode in the query that gets data for the list view.
2359 I still need to fix the potential memory problem when getting the row
2360 count for the list view.
2362 * TODO: Add note about testing memory usage with large data sets. Add
2363 item about fixing row counting with large data sets.
2364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2365 PostgreSQL JDBC driver into cursor mode when getting data for the
2368 2011-03-15 Ben Konrath <ben@bagu.org>
2370 Remove the GWT Container from the Eclipse build classpath.
2372 The GWT dependencies are set by Maven so this isn't needed.
2376 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2378 Added some earlier mockups to git, but not to the tarball dist.
2380 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2381 Openismus. These hopefully show how we might structure the HTML so that
2382 it can be styled easily with CSS. However, we probably need to adapt them
2383 for the CSS structure that GWT dictates for common widgets.
2385 2011-03-14 Ben Konrath <ben@bagu.org>
2387 Locate OnlineGlom.properties using the ServletContext.
2389 This is required to be able to locate the file in the deployed servlet.
2391 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2392 Configure the database and glom document in in a helper method so
2393 that the ServletContext can be used to locate OnlineGlom.properties.
2394 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2395 src/main/webapp. This is the proper location for .properites files.
2397 2011-03-12 Ben Konrath <ben@bagu.org>
2399 Add note to README about why we're compiling down to obfuscated JavaScript.
2403 2011-03-11 Ben Konrath <ben@bagu.org>
2405 Use properties file to configure servlet.
2407 This allows people to change the glom file path, db username and db
2408 password without recompiling the code.
2410 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2411 * src/main/webapp/OnlineGlom.properties:
2413 2011-03-11 Ben Konrath <ben@bagu.org>
2415 Use table fields in layout list view if the layout list is not defined.
2417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2418 Manually create a LayoutFieldVector for the query builder using the
2419 table fields when a layout list is not defined in the glom file.
2421 2011-03-11 Ben Konrath <ben@bagu.org>
2423 Only show FIXME string for images when there's an image.
2425 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2426 in this change are some small code cleanups.
2428 2011-03-11 Ben Konrath <ben@bagu.org>
2430 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2432 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2434 2011-03-11 Ben Konrath <ben@bagu.org>
2436 Correctly set the index of the default table.
2438 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2439 Correctly set the index of the default table. Add commented out example
2442 2011-03-10 Ben Konrath <ben@bagu.org>
2444 Add comment to pom.xml about the previous change.
2446 * pom.xml: Add comment about the deployment issue so that it's obvious
2447 why java-libglom is set to the provided scope.
2449 2011-03-10 Ben Konrath <ben@bagu.org>
2451 Change java-libglom dependency from compile to provided in pom.xml.
2453 Since java-libglom uses jni it can only be loaded once and therefore
2454 must be placed in $CATALINA_HOME/lib and not included in each war.
2455 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2456 More information about this issue can be found in the Tomcat 6 release
2457 notes in the "JNI Based Applications" section:
2459 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2461 * README: Remove note about this issue. Deployment info should really
2462 be on the wiki anyway so I'll add it right now.
2463 * pom.xml: Change java-libglom dependency from compile to provided so
2464 that it's copied in to the packaged war.
2466 2011-03-09 Ben Konrath <ben@bagu.org>
2468 Change to using a neutral locale for currency, date and time formatting.
2470 This solves the problem of currency values being represented without a
2471 space between the currency code and the number (e.g. "EUR5.89" is now
2472 represented as "EUR 5.89"). More work is required when we implement
2473 a locale preference setting.
2475 * TODO: Add note about currency formatting issues with different
2477 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2478 to using the neutral ROOT locale.
2480 2011-03-09 Ben Konrath <ben@bagu.org>
2482 Add support for currency codes that are not ISO 4217 codes.
2484 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2485 the currency code defined in the glom file when it's not 3 characters
2486 long or when Java doesn't recognize the string as an ISO 4217 code.
2488 2011-03-08 Ben Konrath <ben@bagu.org>
2490 Remove test classes, launch configurations and configuration.
2492 The test stuff was getting in the way when creating the war. To make
2493 the war file you can now do 'mvn clean package'. The packaged war file
2494 will be in the target directory.
2496 * .classpath: Remove unused classpathentry for tests and i18n.
2497 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2498 property. Don't run test or i18n goals when packaging the war.
2499 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2504 * OnlineGlomTest-dev.launch:
2505 * OnlineGlomTest-prod.launch:
2506 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2507 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2509 2011-03-07 Ben Konrath <ben@bagu.org>
2511 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2513 These fixes allow me to use 'mvn deploy' to create the war file.
2515 * .classpath: This generated config has been updated by Eclipse. This
2516 change was probably triggered by me updating from Eclipse 3.6.1 to
2518 * .gitignore: Add entry to ignore the directory
2519 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2520 * .project: The generated config has been updated by Eclipse. This
2521 change was probably triggered by me updating from Eclipse 3.6.1 to
2523 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2524 so that Eclipse doesn't complain
2525 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2526 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2527 'tests' directory to 'client' directory. This is the new
2528 gwt-maven-plugin convension.
2529 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2530 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2532 2011-03-07 Ben Konrath <ben@bagu.org>
2534 Add support for horizontal alignment in the LayoutList columns.
2536 * TODO: Remove item about horizontal alignment. Add item about
2537 improvements to ColumnInfo.
2538 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2539 alignment on the columns. Use ColumnInfo RPC object get the column
2540 title and horizontal alignment.
2541 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2542 LayoutListView creation with ColumnInfo RPC object.
2543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2544 a ColumnInfo object for every LayoutList columnn. Convert the
2545 FieldFormatting.HorizontalAlignment to the correct
2546 ColumnnInfo.HorizontatlAlignment with the new
2547 getColumnInfoHorizontalAlignment helper method.
2548 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2549 to encapsulate column information like alignment and title. This
2550 could be used to set the colour instead of on a per cell field basis.
2551 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2552 column title storage and retrieval with ColumnInfo.
2554 2011-03-04 Ben Konrath <ben@bagu.org>
2556 Add support for column sorting.
2558 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2559 AsynDataProvider to be an anonymous inner class. Use new
2560 getSortedTableData RPC method when column sort is requested. Set all
2561 columns sortable and add an AsyncHandler to activate sorting in the
2563 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2564 method getSortedTableData(). Cleanup other method signatures.
2565 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2566 new method getSortedTableData(). Cleanup other method signatures.
2567 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2568 Implement getSortedTableData() and getTableData() methods by using a
2569 private helper method with the appropriate parameters filled in. Use
2570 user supplied sort clause when supplied, otherwise fall back to
2571 sorting by the primary key. Move destroy() method to be underneath
2572 constructor for readability. Cleanup comments.
2574 2011-03-03 Ben Konrath <ben@bagu.org>
2576 Add support for colour text and colour backgrounds to the layout list cells.
2578 Only the cell backgrounds are coloured which leaves a gap between the
2579 cells that isn't coloured. I need to figure out a way to set
2580 'style=background-colour:' on the whole column rather than just the
2583 * TODO: Add a note about colouring the background of the whole column.
2584 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2585 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2586 render the coloured text and backgrounds. Use GlomField[] for the row type.
2587 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2589 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2590 GlomField[] for the row type.
2591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2592 GlomField[] for the row type. Set the text, text colour and background
2593 colour in the GlomField objects as specified in the glom document. Add
2594 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2595 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2596 the glom field text, foreground colour and background colour.
2598 2011-03-02 Ben Konrath <ben@bagu.org>
2600 Don't display hidden tables in the combo box.
2602 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2605 code to ignore hidden tables using ArrayLists for the table names and
2607 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2608 tableNames to use ArrayLists instead of String[]. Update getter and setter
2611 2011-03-01 Ben Konrath <ben@bagu.org>
2613 Add support for Date and Time number types.
2615 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2616 Implement formatting for Date and Time values. Change the default glom
2617 file to small business example.
2619 2011-03-01 Ben Konrath <ben@bagu.org>
2621 Add support for formatting glom types as specified in the glom file.
2623 Formatting isn't finished yet - I still need to add support for Date
2626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2627 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2628 checks for null values in JDBC cleanup code and catch all exceptions
2629 instead of just SQLExceptions.
2630 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2633 2011-03-01 Ben Konrath <ben@bagu.org>
2635 Use GWT 2.2.0 instead of 2.1.1.
2637 * pom.xml: Change GWT version numbers.
2639 2011-03-01 Ben Konrath <ben@bagu.org>
2641 A few small code cleanups.
2643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2645 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2646 unnecessary object creation in constructor.
2647 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2648 unnecessary object creation in constructor.
2650 2011-02-28 Ben Konrath <ben@bagu.org>
2652 Add file for TODO list.
2656 2011-02-18 Ben Konrath <ben@bagu.org>
2658 Enable the CellTable Pager when more than 20 rows need to be viewed.
2660 The Pager will automatically become active when the results are larger
2661 than the CellTable size which is currently set to 20 lines.
2663 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2664 name on debug statment in RPC call in LayoutListDataProvider, add
2665 numRows parameter to LayoutListView constructor, propperly set rowCount
2667 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2668 name on debug statment in RPC call, use LayoutListTable object in RPC
2669 calls, pass rowCount to LayoutListView.
2670 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2671 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2673 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2674 interface for changes in OnlineGlomService.
2675 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2676 getLayoutListHeaders() to getLayoutListTable() and return
2677 LayoutListTable. Using this object allows me to pass other information
2678 about the LayoutList like the expected number of rows in the result set.
2679 The Connection object from the connection pool is now propperly closed.
2680 Only the requested number of lines are returned to the client in
2682 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2683 GlomTable and add columnTitles and numRows.
2685 2011-02-18 Ben Konrath <ben@bagu.org>
2687 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2689 This is a small performance boost. I'll use GlomTable to get the required
2690 layoutlist information.
2692 * src/main/java/org/glom/web/client/OnlineGlom.java:
2693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2694 * src/main/java/org/glom/web/shared/GlomDocument.java:
2696 2011-02-18 Ben Konrath <ben@bagu.org>
2698 Add option to turn off formatting in JDT formatter preferences.
2700 * .settings/org.eclipse.jdt.core.prefs:
2702 2011-02-18 Ben Konrath <ben@bagu.org>
2704 Rename LayoutList to LayoutListView.
2706 I'm working towards setting things up to easily use MVP when the time
2709 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2711 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2714 2011-02-17 Ben Konrath <ben@bagu.org>
2716 Move LayoutListDataProvider class into LayoutList.java.
2718 * src/main/java/org/glom/web/client/LayoutList.java:
2720 2011-02-17 Ben Konrath <ben@bagu.org>
2722 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2724 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2726 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2727 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2728 from LibGlomServer.java.
2729 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2730 Rename from LibGlomServiceAsync.java.
2731 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2732 Rename from LibGlomServiceImpl.java.
2733 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2735 2011-02-17 Ben Konrath <ben@bagu.org>
2737 Update JDT settings.
2739 * .settings/org.eclipse.jdt.core.prefs:
2741 2011-02-17 Ben Konrath <ben@bagu.org>
2743 Move GWT-RPC objects to shared package (where they should be).
2745 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2746 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2747 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2748 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2749 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2750 org.glom.web.shared package.
2751 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2752 org.glom.web.shared package.
2753 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2754 directory in compilation to javascript.
2756 2011-02-16 Ben Konrath <ben@bagu.org>
2758 Add sort clause to the sql query that grabs table information.
2760 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2761 if one of the columns is a primary key.
2763 2011-02-16 Ben Konrath <ben@bagu.org>
2765 Disable generateAsync feature of gwt-maven.
2767 The generated interface does not correctly match the methods in LibGlomService
2768 and the generated singleton Util inner-class doesn't respect the servlet
2771 * pom.xml: Turn off generateAsync feature.
2772 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2773 with singleton Util inner-class.
2775 2011-02-14 Ben Konrath <ben@bagu.org>
2777 Add LGPL v3 licence notices.
2779 Followed directions listed here:
2780 http://www.gnu.org/licenses/gpl-howto.html
2782 * COPYING: This file is a copy of the GPL v3.
2783 * COPYING.LESSER: This file is a copy of the LGPL v3.
2784 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2786 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2788 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2790 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2792 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2794 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2796 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2799 2011-02-14 Ben Konrath <ben@bagu.org>
2801 Use ArrayList instead of Array in GWT-RPC calls.
2803 Apparently this gives a slight performance boost to the compiled
2806 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2808 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2811 2011-02-14 Ben Konrath <ben@bagu.org>
2813 Access data from a postgres db rather than the example glom file.
2815 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2816 compile down to obfuscated javascript.
2817 * pom.xml: Add c3p0 and postgres JDBC libraries.
2818 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2819 using a postgres db accessed through the c3p0 connection pooling library.
2821 2011-02-14 Ben Konrath <ben@bagu.org>
2823 Update Java formatter settings.
2825 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2827 2011-02-02 Ben Konrath <ben@bagu.org>
2829 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2831 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2833 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2834 the compiled webapp directory that Eclipse uses as we're using Maven now.
2835 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2836 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2838 * pom.xml: Format file, change target Java version to 1.6.
2840 2011-02-02 Ben Konrath <ben@bagu.org>
2842 Add information about a deployment related issue.
2844 * README: Add Notes section with the problem outlined.
2846 2011-02-02 Ben Konrath <ben@bagu.org>
2848 Call Glom.libglom_deinit() when the servlet is shutdown.
2850 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2851 Glom.libglom_deinit() to destroy() method.
2853 2011-01-28 Ben Konrath <ben@bagu.org>
2855 Use generated Util class to get the RPC Async interface.
2857 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2859 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2860 getInstance() method to get a reference to the RPC Async interface.
2861 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2862 getInstance() method to get a reference to the RPC Async interface, remove
2863 the now unused getLibGlomServiceProxy() method.
2865 2011-01-27 Ben Konrath <ben@bagu.org>
2867 Cleanup ChangeLog entry from previous commit.
2869 * ChangeLog: Group logical changes together and add comments.
2871 2011-01-25 Ben Konrath <ben@bagu.org>
2873 Convert to gwt-maven project.
2875 * .gitignore: Update for new project structure.
2876 * README: New file with a link to the online documentation.
2877 * pom.xml: The generated maven configuration file with some tweaks.
2879 Add / update Eclipse settings. These files are a merge of the files that
2880 were generated with the gwt-maven plugin and the files we were previously
2884 * .settings/.jsdtscope:
2885 * .settings/com.google.gdt.eclipse.core.prefs:
2886 * .settings/com.google.gwt.eclipse.core.prefs:
2887 * .settings/org.eclipse.jdt.core.prefs:
2888 * .settings/org.eclipse.wst.common.component:
2889 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2890 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2891 * .settings/org.maven.ide.eclipse.prefs:
2892 * OnlineGlomTest-dev.launch:
2893 * OnlineGlomTest-prod.launch:
2895 Java source files moved from the 'src' directory to the directory structure
2897 * src/main/java/org/glom/web/client/GlomDocument.java:
2898 * src/main/java/org/glom/web/client/GlomTable.java:
2899 * src/main/java/org/glom/web/client/LayoutList.java:
2900 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2901 * src/main/java/org/glom/web/client/LibGlomService.java:
2902 * src/main/java/org/glom/web/client/OnlineGlom.java:
2903 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2905 Non-functional property file used for translations. I included this as
2906 reminder that it's something I need to sort out.
2907 * src/main/resources/org/glom/web/client/Messages.properties:
2909 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2910 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2912 The servlet configuration files moved from the 'war' directory.
2913 * src/main/webapp/OnlineGlom.css:
2914 * src/main/webapp/OnlineGlom.html:
2915 * src/main/webapp/WEB-INF/web.xml:
2917 Generated test files with most of the code commented out. I included these
2918 so that it's easy to add tests when we're ready for them.
2919 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2920 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2922 2011-01-25 Ben Konrath <ben@bagu.org>
2924 Remove unused println.
2926 * src/org/glom/web/server/LibGlomServiceImpl.java:
2928 2011-01-25 Ben Konrath <ben@bagu.org>
2930 Add project specific JDT settings.
2932 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2933 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2935 2011-01-25 Ben Konrath <ben@bagu.org>
2937 Populate celltable with example data.
2939 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2940 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2941 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2942 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2943 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2944 asynchronously gets the example data.
2945 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2946 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2947 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2948 curently selected table to be retrieved by other widgets.
2949 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2950 implement getTableData() in a hacky way. This method needs to be updated
2951 to grab information from the database when database creating is
2954 2011-01-20 Ben Konrath <ben@bagu.org>
2956 Set table headers when table dropBox changes.
2958 * src/org/glom/web/client/GlomDocument.java: Correct some method
2960 * src/org/glom/web/client/LibGlomService.java: Add method
2961 to get list layout field names.
2962 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2963 to get list layout field names.
2964 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2965 widget for list layout table.
2966 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2967 the table drop box and add new updateTable() method to asynchronously
2968 get the layout list field names for the currently selected table.
2969 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2970 implementation of getLayoutListHeaders() method.
2971 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2973 2011-01-18 Ben Konrath <ben@bagu.org>
2975 Make a listBox with table titles instead of the flexTable demo.
2977 This is the start of something more useful.
2979 * .classpath: Exclude a bunch of packages from the JVM that are
2980 getting in the way of the Eclipse content assist.
2981 * src/org/glom/web/client/GlomDocument.java:
2982 * src/org/glom/web/client/GlomTable.java:
2983 * src/org/glom/web/client/LibGlomService.java:
2984 * src/org/glom/web/client/LibGlomServiceAsync.java:
2985 * src/org/glom/web/client/OnlineGlom.java:
2986 * src/org/glom/web/server/LibGlomServiceImpl.java:
2987 * war/OnlineGlom.html:
2988 * war/WEB-INF/web.xml:
2990 211-01-13 Ben Konrath <ben@bagu.org>
2992 Update to new java-libglom API.
2994 * .gitignore: Ignore OnlineGlom.war.
2995 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2997 2010-12-20 Ben Konrath <ben@bagu.org>
2999 Add some basic style to the table listing.
3001 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3002 header, print useful error message on async callback failure.
3003 * war/OnlineGlom.css: Add style for table header, remove defaults
3004 provided by the Eclipse project wizard.
3006 2010-12-20 Ben Konrath <ben@bagu.org>
3008 Load example file from installed glom dir.
3010 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3011 provided by java-libglom to find the example file.
3013 2010-12-20 Ben Konrath <ben@bagu.org>
3015 Update Eclipse settings.
3018 * .settings/com.google.gdt.eclipse.core.prefs:
3019 * .settings/com.google.gwt.eclipse.core.prefs:
3021 2010-12-17 Ben Konrath <ben@bagu.org>
3025 * .classpath: New file.
3026 * .gitignore: New file.
3027 * .project: New file.
3028 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3029 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3030 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3031 * src/org/glom/web/client/GlomTable.java: New file.
3032 * src/org/glom/web/client/OnlineGlom.java: New file.
3033 * src/org/glom/web/client/TableNameService.java: New file.
3034 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3035 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3036 * war/OnlineGlom.css: New file.
3037 * war/OnlineGlom.html: New file.
3038 * war/WEB-INF/web.xml: New file.
3039 * war/images/glom.png: New file.