1 2011-12-01 Ben Konrath <ben@bagu.org>
3 Make ListViewTable and RelatedListTable a consistent height.
5 The tables are now a consistent height regardless of the contents of
6 the table. A hidden button is added to empty rows to ensure that the
7 height of these rows will match the height of rows with data.
9 A navigation button column is now added to every table. The width of
10 the navigation column is set to 0px when a RelatedListTable shouldn't
11 have navigation buttons. This maintains the a consistent row height in
12 tables that don't show the navigation buttons.
14 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
15 navigation column when not needed.
16 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
17 arguments for navigation button to constructor of ListViewTable.
18 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
19 hidden button for empty data rows.
20 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
21 arguments for navigation button to constructor.
22 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
23 create navigation buttons. Add hideNavigationButtons() method.
24 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
25 arguments for navigation button to constructor.
27 2011-12-01 Ben Konrath <ben@bagu.org>
29 Use 'visibility: hidden' in Utils.getWidgetHeight().
31 This is better choice because hidden elements are invisible, don't
32 respond to events and are not part of the tab order. They will,
33 however, take up space which is required to be able to calculate the
36 * src/main/java/org/glom/web/client/Utils.java:
38 2011-12-01 Ben Konrath <ben@bagu.org>
40 Use Utils.getWidgetHeight() in FlowTable.
42 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
44 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
46 2011-12-01 Ben Konrath <ben@bagu.org>
48 Put the details css class name on the correct table column.
50 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
52 2011-11-30 Ben Konrath <ben@bagu.org>
54 Update for java-libglom API change.
56 The getters and setters on FieldFormatting and NumericFormat were
57 changed to remove the 'M'.
59 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
61 2011-11-29 Ben Konrath <ben@bagu.org>
63 Only allow RelatedListTables in Portals.
65 * src/main/java/org/glom/web/client/ui/details/Portal.java:
67 2011-11-29 Ben Konrath <ben@bagu.org>
69 Only create a contents panel for Portals when title is being set.
71 * src/main/java/org/glom/web/client/ui/details/Portal.java:
73 2011-11-29 Ben Konrath <ben@bagu.org>
75 Set TabLayoutPanel height based on calculated height its widgets.
77 This is a potential fix for this bug:
79 https://bugzilla.gnome.org/show_bug.cgi?id=665133
81 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
83 2011-11-29 Ben Konrath <ben@bagu.org>
85 Align details field labels and data with the Open buttons.
87 * src/main/webapp/style.css:
89 2011-11-29 Ben Konrath <ben@bagu.org>
91 Remove unnecessary <div> in the Notebook widget.
93 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
94 method to get container FlowPanel (<div>).
95 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
96 initWidget() method directly on the TabLayoutPanel widget instead of
97 Group's container widget.
99 2011-11-29 Ben Konrath <ben@bagu.org>
101 Don't add group titles for Portals in Notebooks.
103 This reverts the previous patch and fixes a bug I introduced with
104 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
106 * src/main/java/org/glom/web/client/ui/details/Group.java:
107 * src/main/java/org/glom/web/client/ui/details/Portal.java:
109 2011-11-28 Ben Konrath <ben@bagu.org>
111 Remove unused boolean argument in Portal constructor.
115 * src/main/java/org/glom/web/client/ui/details/Group.java:
116 * src/main/java/org/glom/web/client/ui/details/Portal.java:
118 2011-11-28 Ben Konrath <ben@bagu.org>
120 Remove hack for glom 1.18 style glom files.
122 * src/main/java/org/glom/web/client/ui/details/Group.java:
123 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
124 * src/main/java/org/glom/web/client/ui/details/Portal.java:
126 2011-11-28 Ben Konrath <ben@bagu.org>
128 Use Gda Value version of primary key to log result too large error.
130 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
132 2011-11-28 Ben Konrath <ben@bagu.org>
134 Don't use TypedDataItem.getText() for Unknown types from the URL.
136 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
137 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
138 instead of getText().
139 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
140 String field and getUnknown() method.
142 2011-11-28 Ben Konrath <ben@bagu.org>
144 Log an error message when the java-libglom .so is not present.
146 The error message was being set in the exception but not logged.
148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
150 2011-11-28 Ben Konrath <ben@bagu.org>
152 Ignore LayoutItem_CalendarPortals.
154 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
155 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
157 2011-11-28 Ben Konrath <ben@bagu.org>
159 Extract method for creating the LayoutItemPortal DTO.
161 Just breaking the code up into smaller chunks.
163 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
165 2011-11-28 Ben Konrath <ben@bagu.org>
169 This should have been added with the refactor. Oops!
171 * src/main/java/org/glom/web/shared/TypedDataItem.java:
173 2011-11-28 Ben Konrath <ben@bagu.org>
175 Create primary key value from URL string using type from Glom document.
177 See this bug, comments 19 - 25:
179 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
181 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
182 create a TypeDataItem for the primary key here when loading from a
183 URL. Show the same string for the primary key value as was received
184 from the URL string (when loading from a URL).
185 * src/main/java/org/glom/web/server/Utils.java: Update method for
186 creating the Gda Value from the TypeDataItem to properly deal with
187 creating a Gda Value based on the Glom document type for the primary
188 key value string when loading from a URL.
189 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
190 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
191 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
192 Update for changed method name.
194 2011-11-27 Ben Konrath <ben@bagu.org>
196 Rename PrimaryKeyItem to TypedDataItem.
198 The name PrimaryKeyItem suggests what the class should be used for.
199 TypedDataItem is a neutral name that describes the class better.
201 This is a rename-only refactor.
203 * src/main/java/org/glom/web/client/OnlineGlomService.java:
204 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
205 * src/main/java/org/glom/web/client/Utils.java:
206 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
207 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
208 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
209 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
210 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
211 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
212 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
213 * src/main/java/org/glom/web/server/Utils.java:
214 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
215 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
216 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
217 * src/main/java/org/glom/web/shared/NavigationRecord.java:
219 2011-11-25 Ben Konrath <ben@bagu.org>
221 Improve Gda Value conversion from PrimaryKeyItem.
223 The value from the PrimaryKeyItem is only used if its type match the
224 type from the glom document.
226 * src/main/java/org/glom/web/server/Utils.java:
228 2011-11-25 Ben Konrath <ben@bagu.org>
230 Manually check if the java-liblgom .so is visible to the JVM.
232 It seems that Tomcat has problems when a static initializer throws an
233 exception. This check is done before the first method call into
234 java-libglom so that execution doesn't continue if the .so is not
237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
239 2011-11-25 Ben Konrath <ben@bagu.org>
241 Improve browser configuration error messages.
245 https://bugzilla.gnome.org/show_bug.cgi?id=662792
247 * src/main/java/org/glom/web/client/OnlineGlomService.java:
248 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
249 getConfigurationErrorMessage() method.
250 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
251 Get and display a specific configuration error message when no Glom
253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
254 Implement getConfigurationErrorMessage() method. Surround configuration
255 code in the init() method with a try/catch block. This allows the
256 errors to be caught while keeping the servlet available to retrieve the
257 configuration error message.
259 2011-11-25 Ben Konrath <ben@bagu.org>
261 Don't use Strings to hold primary key values.
263 The primary key values are now held in a new data object
264 (PrimaryKeyItem) that holds type information and the primary key value
265 using the correct type.
267 * src/main/java/org/glom/web/client/OnlineGlomService.java:
268 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
270 PrimaryKeyItem instead of String to hold the primary key value.
271 * src/main/java/org/glom/web/client/Utils.java: Remove
272 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
273 PrimaryKeyItem based on the GlomFieldType and the DataItem.
274 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
275 PrimaryKeyItem instead of String to hold the primary key value. Load
276 document selection page when the documentID has not been set correctly.
277 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
278 DetailsPlace -> URL and URL -> DetailsPlace conversion with
280 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
281 Return empty string for URL instead of "null".
282 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
283 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
284 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
285 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
286 PrimaryKeyItem instead of String to hold primary key values.
287 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
288 PrimaryKeyValue to a Gda Value.
289 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
290 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
291 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
292 Replace temporary database access code that uses the PrimaryKeyValue to
293 Gda Value conversion.
294 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
295 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
296 PrimaryKeyItem instead of String.
297 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
298 hold primary key values.
300 2011-11-24 Ben Konrath <ben@bagu.org>
302 Use newly added java-libglom API to create queries.
304 This isn't finished. I still need to stop using Strings for primary key
305 values in the client code.
307 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
308 libglom to use fake connections so that retrieving the query string will
310 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
311 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
312 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
313 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
314 Use the newly added libglom sql methods and classes to create the
315 query. Add temporary hack to convert primary value strings to Gda
318 2011-11-23 Ben Konrath <ben@bagu.org>
320 Don't explicitly set the height of Portals.
322 See comments 6 - 10 of this bug for details:
324 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
326 * src/main/java/org/glom/web/client/ui/details/Portal.java:
328 2011-11-23 Ben Konrath <ben@bagu.org>
330 Use an HTML table instead of CSS for the FlowTable layout.
332 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
333 GWT's FlexTable to implement the FlowTable.
334 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
336 2011-11-18 Ben Konrath <ben@bagu.org>
338 Add boolean example to HTML table mockup.
340 * mockups/details-view-html-tables-text-entries.html:
342 2011-11-17 Ben Konrath <ben@bagu.org>
344 Ensure the pager buttons are always visible for related lists.
346 To accomplish this, I've turned off text wrapping in the list view and
347 related list tables for both the header and data text. The related list
348 table now has a fixed layout so the it doesn't overflow its container.
349 This is required to ensure that the cell text is clipped when it
350 overflows the cell and an ellipsis is added to the right side of the
351 cell when text is clipped.
353 A fixed table layout for the related list table in the details view
354 seems what we want for the details view anyway, so the side-effect is
357 The ellipsis will only be displayed in Firefox >= 7.
361 https://bugzilla.gnome.org/show_bug.cgi?id=662930
363 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
364 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
365 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
367 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
368 Set the 'table-layout: fixed' CSS property to the related list table.
369 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
370 'white-space: nowrap;' CSS property on both the list view and the
373 2011-11-16 Ben Konrath <ben@bagu.org>
375 Rework the fix for empty notebook tab labels.
377 Setting the empty group titles with its name caused problems for the
378 details layout. Instead of using libglom's
379 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
380 to the client when the title is empty. This allows the Notebook to use
381 the name when the title is empty without affecting anything else.
383 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
384 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
386 2011-11-16 Ben Konrath <ben@bagu.org>
388 Set group titles with name when title is empty.
390 This fixes a problem with an empty notebook tab label in the Lesson
391 Planner document. The forth tab in the notebook should be "Internet":
393 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
395 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
396 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
399 2011-11-16 Ben Konrath <ben@bagu.org>
401 Remove whitespace from the configured username properties.
403 This assumes that usernames won't have whitespace at the beginning
404 or end. But I think this is a reasonable assumption.
406 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
407 String.trim() to remove the whitespace from the username properties.
409 2011-11-15 Ben Konrath <ben@bagu.org>
411 Add details view mockup with HTML tables and text entries.
413 This is from the attachment on this bug:
415 https://bugzilla.gnome.org/show_bug.cgi?id=663109
417 * mockups/details-view-html-tables-text-entries.html:
419 2011-11-15 Ben Konrath <ben@bagu.org>
421 Add space between the columns of the flow table.
425 https://bugzilla.gnome.org/show_bug.cgi?id=662918
427 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
428 space between columns in the flow table.
430 2011-11-15 Ben Konrath <ben@bagu.org>
432 Add backup files to the .gitignore.
434 * .gitignore: Ignore files that end with ~.
436 2011-11-09 Ben Konrath <ben@bagu.org>
438 Use latest release of gwt-log.
440 Gwt-log releases are now being submitted to the maven central
441 repository so manual installation of the jar is no longer required.
443 * pom.xml: Update version and groupId of gwt-log dependency.
445 2011-10-31 Ben Konrath <ben@bagu.org>
447 Don't use GWT numeric formatting to override the glom currency formatting.
449 Currencies are now displayed like they are in Glom. See this bug:
451 https://bugzilla.gnome.org/show_bug.cgi?id=646216
453 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
455 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
456 currency code to constructor and set it when the cell is rendered.
457 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
458 currency code to the constructor of the NumericCell.
460 2011-10-27 Ben Konrath <ben@bagu.org>
462 Require the latest release of java-libglom (1.17.4).
466 2011-10-26 Ben Konrath <ben@bagu.org>
468 Add style to Notebook that matches current theme.
470 It's not the best style in the world but it's better than the default.
472 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
473 padding at the bottom of the child widgets.
474 * src/main/webapp/style.css: Add style for the Notebook.
476 2011-10-26 Ben Konrath <ben@bagu.org>
478 Move servlet initialization code to overridden init method.
480 This is half of the solution to getting proper error messages
481 displayed when configuration errors occur. Here's the relevant bug:
483 https://bugzilla.gnome.org/show_bug.cgi?id=662792
485 The rest of the solution involves surrounding the init method with a
486 try/catch block and setting a global variable with the error /
487 exception. A new async method should be created to retrieve and display
488 the error message / exception.
490 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
491 code from constructor to init method adding exceptions as needed.
493 2011-10-26 Ben Konrath <ben@bagu.org>
495 Add script to monitor and restart tomcat if required.
497 * utils/check-and-recover-tomcat.py: New file.
499 2011-10-26 Ben Konrath <ben@bagu.org>
501 Display the correct number of data items in the pager.
505 https://bugzilla.gnome.org/show_bug.cgi?id=661441
507 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
508 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
509 The implementation is the same for both tables: Keep track of the
510 number of non-empty rows and fire and RowCountChangeEvent after the data has
512 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
513 custom Pager class that subclasses SimplePager to handle displaying
514 the correct number when empty rows have been added.
516 2011-10-26 Ben Konrath <ben@bagu.org>
518 Correct error in previous commit.
520 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
521 eventBus parameter from listView.setCellTable().
523 2011-10-26 Ben Konrath <ben@bagu.org>
525 Fix error in TODO comment.
527 * src/main/java/org/glom/web/client/activity/ListActivity.java:
529 2011-10-24 Ben Konrath <ben@bagu.org>
531 Create Notebook widgets to the details view.
533 This isn't finished just yet - I still need to create a reasonable
534 style to match the current theme.
536 * src/main/java/org/glom/web/client/Utils.java: Add method for
537 calculating the height of a widget. This is used in the Notebook class.
538 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
539 new constructor method in Group.
540 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
541 method for creating child widget that can be used by subclasses
542 like Notebook. New constructor that allows disabling the group
543 titles - Notebooks don't set a group title for their child groups.
544 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
545 to make Notebooks using GWT's TabLayoutPanel.
546 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
547 constructor that allows disabling the group titles.
548 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
549 LayoutItemNotebook DTO.
550 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
551 DTO for Notebooks. It's just an empty class for now but we might need
552 it to transfer some specific information in the future.
554 2011-10-21 Ben Konrath <ben@bagu.org>
556 Add navigation buttons to related list tables.
558 * src/main/java/org/glom/web/client/OnlineGlomService.java:
559 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
560 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
561 method getSuitableRecordToViewDetails() for getting the table name
562 and primary key value for related list navigation buttons.
563 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
564 private cell renderer class to get the navigation information for
565 related list tables from the server. Extract the navigation
566 processing code from the details cell navigation and use it for the
567 related list navigation as well.
568 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
569 cell renderer class for the details open buttons. This was needed
570 because the related list navigation buttons and the list view
571 navigation buttons need to react differently when clicked.
572 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
573 the onEnterKeyDown() method because it's now overriden in the
574 subclasses that are specific to the related list tables and the list
576 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
577 the vertical size a little because the buttons add a bit of vertical
578 space to table. This is not a perfect solution because the vertical
579 size of with table fewer than 5 rows will be a little smaller.
580 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
581 changes in how navigation buttons are handled.
582 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
583 getSuitableRecordToViewDetails() using the new RelatedListNavigation
584 database access object.
585 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
586 to find the portal for a given relationship name from
587 RelatedListDBAccess. Add method to find a primary key field for a
589 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
590 Move code to find the portal for a given relationship name to
592 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
593 New file: database access object for getting the related list
594 navigation information (the table name and the primary key value).
595 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
596 DTO for transferring a table name to navigate to and a primary key
598 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
599 boolean and getter/setter to specifies if the related list should add
602 2011-10-24 Murray Cumming <murrayc@murrayc.com>
604 Use the master branch of java-libglom
606 * pom.xml: Depend on java-libglom 1.19 instead.
608 This is the master branch. See also the libglom-1-18 branch.
610 2011-10-11 Ben Konrath <ben@bagu.org>
612 Enable the open navigation button when the data has been set.
614 This avoids having active buttons that don't do anything when the data
617 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
619 2011-10-11 Ben Konrath <ben@bagu.org>
621 Use IsWidget interface for FlowTableItem.
623 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
624 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
626 2011-10-11 Ben Konrath <ben@bagu.org>
628 Remove GWT styling from open button in details view.
630 There are still some issues with how the details cell is arranged but
631 this should be made to match Glom 1.20. I'm going to leave fixing this
632 until I have Glom 1.20 up and running.
634 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
635 style name on open button.
636 * src/main/webapp/style.css: Move and edit details-navigation class.
637 Re-arrange some classes to make them appear in the same order as the
640 2011-10-07 Ben Konrath <ben@bagu.org>
644 * .gitignore: Ignore new cache directory.
645 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
646 * pom.xml: Change GWT and maven plugin to 2.4.0.
647 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
649 * src/main/java/org/glom/web/client/ClientFactory.java:
650 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
651 * src/main/java/org/glom/web/client/OnlineGlom.java:
652 Update source for API changes.
653 * utils/build-onlineglom-war.sh: Remove cache directory before the
656 2011-10-07 Ben Konrath <ben@bagu.org>
658 Add navigation buttons in the details view.
660 This isn't finished but I thought I'd commit what I have as it's a
661 pretty good start. I still need to:
663 1. Change the style so that it fits better into the current theme
664 2. Adjust the details cell to expand as much as possible.
666 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
667 click handlers to navigation buttons in the DetailsCells. Create a
668 refreshData() method to get just the data from the server without the
670 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
671 Update the tableSelector and browser title when the table name
672 changes without using the tableSelector.
673 * src/main/java/org/glom/web/client/ui/DetailsView.java:
674 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
675 getDetailsCells() to getCells(). Update variable names.
676 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
677 method to set click handler on navigation button. Rename a few
678 variables. Add navigation buttons where needed.
679 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
680 variables and methods.
681 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
682 navigation boolean and navigation table as required in the
684 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
685 variables for navigation along with getter/setter methods.
687 2011-10-07 Ben Konrath <ben@bagu.org>
689 Rename Field to DetailsCell.
691 This is a refactor-only commit. No functionality has been added or
694 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
695 Update variable and method names.
696 * src/main/java/org/glom/web/client/ui/DetailsView.java:
697 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
698 variable and method names.
699 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
701 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
702 variable and method names.
704 2011-10-07 Ben Konrath <ben@bagu.org>
706 Create separate methods for layout and data the details view.
708 This is a refactor-only commit. No functionality has been added or
711 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
712 private methods: setData(), createLayout().
714 2011-10-07 Ben Konrath <ben@bagu.org>
716 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
718 This is part of a change to get navigation buttons in the details view
719 but it should have been done this way from the start.
721 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
722 for method name change in TableSelectionView.
723 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
724 Create TableChangeEvent and set the browser title using the
725 TableSelectionView API.
726 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
727 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
728 Change getSelectedTable() to getSelectedTableName(). Add
729 getSelectedTableTitle().
731 2011-10-07 Ben Konrath <ben@bagu.org>
733 Use primaryKeyValue naming convention in constructor of DetailsPlace.
735 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
737 2011-10-07 Ben Konrath <ben@bagu.org>
739 Update TableChangeEvent to use newTableName naming convention.
741 This makes the class more consistent with GWT naming conventions.
743 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
744 Update for method name change in TableChangeEvent.
745 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
746 for method name change in TableChangeEvent.
747 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
748 newTableName variable and getter method. Make toDebugString()
751 2011-09-30 Ben Konrath <ben@bagu.org>
753 Disable the pager in the list tables when the data row count is less than the minimum.
755 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
756 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
758 2011-09-30 Ben Konrath <ben@bagu.org>
760 Add empty rows to the end of related list and list view tables.
762 I also extracted the cell rendering classes from the ListTable because
763 the code was becoming a little crazy with all the anonymous inner
764 classes. My plan is to use these cell rendering classes in the details
765 view as well so this refactor will be needed for that change.
767 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
768 set the row count in related list tables if the data has more rows
769 than the minimum number of rows visible.
770 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
771 row count in list view tables if the data has more rows than the
772 minimum number of rows visible.
773 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
774 for rendering TYPE_BOOLEAN cells. The code was extracted from the
776 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
777 for rendering TYPE_NUMERIC cells. The code was extracted from the
779 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
780 class for rendering cells with buttons in list views. The code was
781 extracted from the ListTable class.
782 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
783 for rendering TYPE_TEXT cells. The code was extracted from the
785 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
786 Add empty rows to the end of the data if required. Implement
787 ListTable.getMinNumVisibleRows().
788 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
789 cell renderer code to public classes. Return null in
790 Column.getValue() for empty rows. Add new abstract method:
791 getMinNumVisibleRows(). Move code to set the row count of the list view
792 table to ListViewImpl.
793 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
794 empty rows to the end of the data if required. Implement
795 ListTable.getMinNumVisibleRows().
798 2011-09-27 Ben Konrath <ben@bagu.org>
800 Use GWT.log for client-side debugging statements.
802 These are optimized out when deployed so I should have used this method
803 in the first place. These statements will eventually be replaced with some sort
804 of notification in the browser.
806 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
807 * src/main/java/org/glom/web/client/activity/ListActivity.java:
808 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
809 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
810 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
812 2011-09-27 Ben Konrath <ben@bagu.org>
814 Put tableselector on the right, back to list link on right.
816 The idea is that the table selector is acting like a label for the
817 currently displayed table so it should be placed below the document title. This
818 puts the table title in a similar position to where it is in Glom.
820 * mockups/details-contacts.html:
821 * mockups/details-projects.html:
822 * mockups/listview-contacts.html:
823 * mockups/listview-projects.html:
825 Update mockups to match how the interfaces currently look.
826 * src/main/webapp/style.css: Swap positions of backlink with the table
827 selector. Add some space on the left side of the table selector to
828 line things up with the document title.
830 2011-09-27 Ben Konrath <ben@bagu.org>
832 Add field colouring to details view.
834 This change re-works how field colouring works. The colour formatting
835 information is now set to the client with the layout information instead of
836 with the data. This eliminates the need to send the same colour strings for
837 data in list view column when colour information is set.
839 In order to set an alternate colour for negative numeric values, the
840 number is now sent to client and formatted with the GWT NumberFormat class.
842 This change also fixes:
844 https://bugzilla.gnome.org/show_bug.cgi?id=659752
846 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
847 internationalization framework which is needed for client side numeric
849 * src/main/java/org/glom/web/client/Utils.java: New file for some
850 client static utility methods.
851 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
852 the DataItem object to the Field class. Use a utility method to
853 create the foreignKeyValue string.
854 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
855 alignment and text colours in the constructor. Add setData(DataItem)
856 method. Remove setText(String) method.
857 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
858 colour information to GlomTextCell. Create and use GlomNumberCell for
859 rendering numbers. Use utility method to get the string for the
860 primary key of the key provider. Re-work how the horizontal alignment
862 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
863 formatting to layout information. Methods for converting the libglom
864 formatting information were moved from DBAccess.
865 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
866 numeric formatting (it's now done on the client side). Don't set text
867 colours in DataItem. Move libglom formatting conversion methods to
869 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
870 getters/setters for text colour information.
871 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
872 for transferring the libglom NumericFormat information to the client.
873 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
874 and getters/setters for: GlomNumericFormat, background colour and
875 foreground colour strings.
877 2011-09-26 Ben Konrath <ben@bagu.org>
879 Simplify code that iterates through the LayoutGroup.
881 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
883 2011-09-26 Ben Konrath <ben@bagu.org>
885 Accept Eclipse formatting for OnlineGlomServiceAsync.
887 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
889 2011-09-26 Ben Konrath <ben@bagu.org>
891 Don't use the ListDBAccess classes to get the primary key layout information.
893 This was causing a bug where the wrong index for the hidden primary key
894 was being sent to the client.
896 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
897 primary key while creating the LayoutGroup DTO. Create a
898 LayoutItemField DTO for hidden primary keys. Don't use the
899 RelatedListDBAccess because it was only used for getting the primary
901 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
902 access modifier from public to protected for getPrimaryKeyField() and
903 getPrimaryKeyLayoutItemField().
904 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
905 abstract method getExpectedResultSize() because RelatedListDBAccess
906 doesn't have enough info to implement it.
907 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
908 Remove @Override for getExpectedResultSize().
909 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
910 Remove method getExpectedResultSize().
912 2011-09-23 Ben Konrath <ben@bagu.org>
914 Log which layout (list or details) the ignored item is from.
916 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
918 2011-09-23 Ben Konrath <ben@bagu.org>
920 Remove annotations that turn off code formatting in DataItem.
922 * src/main/java/org/glom/web/shared/DataItem.java:
924 2011-09-23 Ben Konrath <ben@bagu.org>
926 Rename GlomField to DataItem and update associated methods.
928 This is a rename-only refactor. No functionality has been added or
931 * src/main/java/org/glom/web/client/OnlineGlomService.java:
932 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
933 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
934 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
935 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
936 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
937 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
938 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
940 * src/main/java/org/glom/web/server/database/DBAccess.java:
941 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
942 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
943 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
944 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
945 * src/main/java/org/glom/web/shared/DataItem.java:
946 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
947 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
949 2011-09-23 Ben Konrath <ben@bagu.org>
951 Rename GlomDocument to DocumentInfo and update associated methods.
953 This is a rename-only refactor. No functionality has been added or
956 * src/main/java/org/glom/web/client/OnlineGlomService.java:
957 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
958 * src/main/java/org/glom/web/client/activity/ListActivity.java:
959 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
960 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
961 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
962 * src/main/java/org/glom/web/shared/DocumentInfo.java:
964 2011-09-20 Ben Konrath <ben@bagu.org>
966 Require java-libglom 1.17.3.
968 This picks up the fix for the seg fault problem with the Scenes table
969 in the Openismus Film Manager example.
973 2011-09-20 Ben Konrath <ben@bagu.org>
975 Change the way sort clause is added for primary key when no sort clause is requested.
977 The primary key is now added to the LayoutFieldVector (fieldsToGet)
978 before the sort clause is created. When a sort clause is not requested, the
979 sort clause is created by finding the primary key in the LayoutFieldVector
982 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
984 2011-09-20 Ben Konrath <ben@bagu.org>
986 Log error message if no documents are found in the configured directory.
988 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
989 Extract the glom file extension string to a private static final class
990 variable (mostly as syntactic sugar). Accept a minor formatting change.
991 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
992 the example glom.document.directory configuration property to make it
993 more clear that it can any directory, not just the home directory.
995 2011-09-18 Ben Konrath <ben@bagu.org>
997 Add related lists to details view.
999 The related list table has support for paging and sorting just like the
1000 table in the list view.
1002 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1003 SQL queries for the related list tables.
1004 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1005 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1007 Rename getList methods to getListView and add comments. Remove
1008 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1009 it being unused. Add methods: getDetailsLayoutAndData(),
1010 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1011 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1012 Create the layout and set the data for the fields in one async call
1013 instead of two. Create related lists where appropriate.
1014 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1015 for method name changes in OnlineGlomService.
1016 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1017 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1018 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1020 * src/main/java/org/glom/web/client/ui/ListView.java:
1021 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1022 tableName from setCellTable(). Create a ListViewTable instead of
1024 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1025 represent a data field in the details view.
1026 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1027 from addDetailsCell() to Field class. Keep track of the Fields and
1028 Portals in the details view.
1029 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1030 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1031 and add a method to get it. Add method to set the contents of the
1033 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1034 New class for related list tables. This class has the data provider
1035 for the related list table.
1036 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1037 abstract class which is the base class for the ListViewTable and the
1039 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1040 New class for list view tables. This class has the data provider for
1041 the list view table.
1042 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1043 methods for related list tables. Add more information to the
1044 LayoutItemField and LayoutItemPortal DTOs.
1045 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1046 Remove debugging print statement.
1047 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1048 Remove debugging print statements. Add primary key field to SQL count
1050 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1051 Remove unnecessary LayoutFieldVector parameter from
1052 getResultSizeOfSQLQuery() method.
1053 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1054 New class for related list table database access.
1055 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1056 class that is a wrapper DTO for details view layout and data.
1057 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1058 new 'fromField' string to this DTO.
1059 * src/main/webapp/style.css: Remove bottom margin and override top
1062 2011-09-15 Ben Konrath <ben@bagu.org>
1064 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1066 This sets things up to make it easier to add the data retrieval for
1067 related lists (portals). No user noticeable changes were made with
1070 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1071 class has the code to retrieve the layouts and access the
1072 database using the new database helper classes.
1073 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1074 Most of the functionality has been removed from this class. This
1075 class now represents the public interface for the client side
1076 code. It also deals with configuring the servlet and cleaning
1077 things up when the servlet is stopped.
1078 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1079 of static methods into this utility class.
1080 * src/main/java/org/glom/web/server/database/DBAccess.java:
1081 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1082 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1083 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1084 These classes have the database retrieval code. The class hierarchy
1085 has been setup to make it easy to reuse code for similar
1088 2011-09-06 Ben Konrath <ben@bagu.org>
1090 Create separate classes for list table code and the data provider.
1092 As part of this refactor, I also split up the code a bit to make it
1095 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1096 table code to two new classes (below).
1097 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1098 with code from ListViewImpl.
1099 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1100 New file with code from ListViewImpl.
1102 2011-09-06 Ben Konrath <ben@bagu.org>
1104 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1106 This fixes the LayoutItemPortal DTO to match the libglom layout object
1109 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1111 2011-09-01 Ben Konrath <ben@bagu.org>
1113 Set title of Portals in the Details View.
1115 * pom.xml: Bump required version of java-libglom to 1.17.1.
1116 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1117 widget creation to its own class. Add comments to constructor.
1118 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1119 The code is mostly from the Group class with the title now set.
1120 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1121 title of Portal. Update some comments. Fix some code formatting.
1123 2011-09-01 Ben Konrath <ben@bagu.org>
1125 Remove TODO comment for the flow table column width.
1127 The flow table column width is working correctly and doesn't need to be
1128 changed. See this mailing list post for more info:
1130 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1132 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1134 2011-08-27 Ben Konrath <ben@bagu.org>
1136 Add document title (database name) to top of the browser page.
1138 I added the document title to the TableSelecitonView but that will
1139 change if / when we add a view that doesn't require table selection.
1141 * mockups/details-contacts.html:
1142 * mockups/details-projects.html:
1143 * mockups/listview-contacts.html:
1144 * mockups/listview-projects.html:
1145 * mockups/style.css: Add document title to mockups to keep things
1147 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1148 sizes to account for the document title.
1149 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1150 Set the document title when it has been retrieved from the server.
1151 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1152 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1153 and implement setDocumentTitle(String) method.
1154 * src/main/webapp/style.css: Add ID for document title style.
1156 2011-08-25 Ben Konrath <ben@bagu.org>
1158 Add NavigationType enum to LayoutItemPortal DTO.
1160 This is the start of adding support for Portals to the Details View.
1162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1163 LayoutItem_Portal.navigation_type enum from libglom to
1164 LayoutItemPortal.NavigationType enum.
1165 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1166 NavigationType enum, field for storing the NavigationType and getter
1169 2011-08-25 Ben Konrath <ben@bagu.org>
1171 Implement the flow table layout in the Details View.
1173 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1174 FlowTable to Group to account for the renamed class.
1175 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1176 File. This is a container widget that implements the Glom details view
1177 flow table behaviour.
1178 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1179 org/glom/web/client/ui/FlowTable.java.
1180 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1181 so that the size of the subgroups are a closer match to the size of
1182 the Glom subgroups. This makes the flowtable layout match the layout
1183 in Glom for the Music Collection example file.
1185 2011-08-16 Ben Konrath <ben@bagu.org>
1187 Create container element for LayoutItemPortal in Details View.
1189 This will help me develop the layout for the FlowTable.
1191 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1192 fieldPanel variable to detailsCell.
1194 2011-08-15 Ben Konrath <ben@bagu.org>
1196 Set the height of the data element in the Details View.
1198 I changed the InlineLabels (text in a span element) to Labels (text in
1199 a div element) so that I could set the height of the details-data
1200 elements instead of the details-cell parent elements. This allows the
1201 the details-data element to display the correct height if style is
1202 applied that shows the height.
1204 This change has the added benefit of allowing the order of the labels
1205 and data elements to be changed for right-to-left languages.
1207 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1208 InlineLabels to Labels.
1209 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1210 InlineLabels to Labels. Set the height of the data element.
1211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1212 multiline text height in the Formatting DTO.
1213 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1214 for multiline height along with getter and setter methods.
1215 * src/main/webapp/style.css: Adjust style to account for the change
1216 from span elements to div elements in the details cell.
1218 2011-08-15 Ben Konrath <ben@bagu.org>
1220 Make the List View appearance match the mockups.
1222 It doesn't match exactly but it's much better than it was.
1224 * mockups/listview-contacts.html: Remove unused css classes.
1225 * mockups/listview-projects.html: Remove unused css classes.
1226 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1227 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1228 for mainPanel instead of VerticalPanel (table). Set style name on
1229 CellTable. Set style name on Details column. Right-align Details
1231 * src/main/webapp/style.css: Adjust properties to match the mockups.
1233 2011-08-12 Ben Konrath <ben@bagu.org>
1235 Add better support for subgroups in the details view.
1237 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1238 changed FlowTable constructor.
1239 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1240 support for subgroups and subgroup-titles.
1241 * src/main/webapp/style.css: Add CSS class for subgroups and
1244 2011-08-12 Ben Konrath <ben@bagu.org>
1246 Return the top level LayoutGroup title.
1248 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1250 2011-08-11 Ben Konrath <ben@bagu.org>
1252 Make the TableSelector header match the mockup.
1254 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1255 the layout panel. Properly lineup the table selection header with
1256 the list and details view.
1257 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1258 margin around the details view.
1259 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1260 Rename listBox variable to tableSelector. Set id for the style sheet.
1261 Use a FlowPanel instead of a HorizontalPanel.
1262 * src/main/webapp/style.css: Add properties to make the TableSelector
1263 box match the mockups.
1265 2011-07-13 Ben Konrath <ben@bagu.org>
1267 Update install script for java-libglom version change.
1269 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1272 2011-07-13 Ben Konrath <ben@bagu.org>
1274 Add support sub-group in the details view.
1276 I also removed the code that special-cased the default details view
1279 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1281 I still have to make a proper flowtable.
1283 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1284 Don't special-case default details view layout.
1285 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1286 addLayoutField() as I'm going to use it.
1287 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1288 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1290 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1291 extracted from DetailsViewImpl.GroupPanel. Add support for
1293 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1294 column count when getting the details layout.
1296 2011-07-12 Ben Konrath <ben@bagu.org>
1298 Set browser title with database and table titles.
1300 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1301 Set the browser title when the table changes and when the activity
1303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1304 title when retrieving document info (the GlomDocument object).
1305 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1306 with getter and setter methods. Remove unused convenience constructor.
1307 Use default code formatting.
1309 2011-07-12 Ben Konrath <ben@bagu.org>
1311 Ignore LayoutItemPortals in the details view.
1313 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1316 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1317 LayoutItemPortal layout objects.
1318 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1319 LayoutItemPortal objects when retrieving the details layout.
1320 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1321 file. This is an empty class and just used to get type information for
1324 2011-07-12 Ben Konrath <ben@bagu.org>
1326 Use java-libglom 1.17.0.
1330 2011-07-11 Ben Konrath <ben@bagu.org>
1332 Remove "Table:" label from table selector.
1334 This matches a recent change in the Glom UI.
1336 * mockups/details-contacts.html:
1337 * mockups/details-projects.html:
1338 * mockups/listview-contacts.html:
1339 * mockups/listview-projects.html: Remove the "Table:" label from the
1341 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1343 2011-07-11 Ben Konrath <ben@bagu.org>
1345 Add main groups to the details view.
1347 This makes things look a little nicer in the details view. The next step
1348 is to implement the flowtable.
1350 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1351 resources from the standard gwt css theme. Standard.css is now
1352 included in OnlineGlom.html so that the online glom css rules have
1353 precedence over the gwt theme.
1354 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1355 the whole LayoutGroup to the DetailsView instead of just the titles.
1356 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1357 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1358 details layout with a helper class (GroupPanel). I might extract this
1359 class when I make the full flowtable.
1360 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1361 string as default so I don't have to worry about NPEs when processing
1363 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1364 note beside OnlineGlom.gwt.xml above).
1365 * src/main/webapp/style.css: Add default font-size to body to override
1366 the font-size set by the standard theme. Don't use h2 tags for
1367 group-title. Create new details-cell class.
1369 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1371 ConfiguredDocument: Set the port number too.
1373 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1374 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1375 Glom document. Presumably this worked sometimes so far because there is a
1376 default port number.
1378 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1380 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1382 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1383 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1384 correct, though we should throw an exception too.
1386 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1388 Fix a addDocuemnt typo.
1390 * src/main/java/org/glom/web/shared/Documents.java
1391 (Documents.addDocuemnt): Rename to addDocument().
1392 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1393 (OnlineGlomServiceImpl.getDocuments): Adapt.
1395 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1397 Slightly improved log output when connection fails.
1399 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1400 (ConfiguredDocument.setUsernameAndPassword):
1401 We don't know for sure if it' the username/password that's wrong, so
1402 rephrase the message.
1403 Also ouput the exception message, though it's generic in this case.
1405 2011-07-08 Ben Konrath <ben@bagu.org>
1409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1410 added braces to a one line if statement because the Eclipse formatter
1411 was getting confused.
1413 2011-07-07 Ben Konrath <ben@bagu.org>
1415 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1417 These should really be two separate tasks but I counldn't get things to
1418 work with GWT 2.2.0 and Eclipse 3.7.
1422 * .settings/org.eclipse.jdt.core.prefs:
1423 * .settings/org.eclipse.jdt.ui.prefs:
1424 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1425 * .settings/org.eclipse.m2e.core.prefs:
1426 Add new config files. Update current files. Remove references to the
1427 webtools plugins as we're not using any of the webtools features.
1428 * .gitignore: Add logs directory which is created when running with
1430 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1431 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1432 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1434 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1436 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1438 onlineglom.properties: Add explanatory comments.
1440 * src/main/resources/onlineglom.properties: Also change the default user
1441 from ben to someuser, to avoid the risk of people thinking we just
1442 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1444 2011-06-28 Ben Konrath <ben@bagu.org>
1446 Use filename in Log for incorrect passwords.
1448 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1449 getFileName(String) method to get the filename from the URI.
1451 2011-06-28 Ben Konrath <ben@bagu.org>
1453 Add the table name to the URL token for the ListPlace.
1455 This makes things consistent between the DetailsPlace and the
1456 ListPlace. It also allows the the ListPlace to be bookmarked.
1458 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1459 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1460 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1461 Remove getDefaultListLayout(). The default layout is now returned
1462 by the getListLayout() method when the table name is an empty string.
1463 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1464 Add table name field. Change to a new ListPlace when the table
1465 has been changed. Use getListLayout() for getting the default
1467 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1468 Add table name field. Set the correct table name in the list box
1469 when loading from bookmark. This corrects a problem for the
1471 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1472 Move table name to super-class (HasSelectableTable). Move document
1473 and table URL keys to super-class in HasSelectableTable.
1474 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1475 Add table name field. Add Tokenizer class with URL key common to
1476 the subclasses (DetailsPlace and ListPlace).
1477 * src/main/java/org/glom/web/client/place/ListPlace.java:
1478 Add table name. Add code to parse the URL token.
1479 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1480 Update ListPlace construction with empty table name string.
1481 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1482 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1483 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1484 Update ListPlace construction with table name string.
1485 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1486 Change defaultTableName field to tableName to reflect how it's now
1487 used. Update the getter and setter methods.
1489 2011-06-28 Ben Konrath <ben@bagu.org>
1491 Enable the table selector in the DetailsView.
1493 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1494 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1495 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1496 Remove getDefaultDetailsLayout(). The default layout is now returned
1497 by the getDetailsLayout() method when the table name is an empty
1499 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1500 event handler for table change event. Change to using
1501 getDetailsLayout() for the default details layout.
1502 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1504 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1505 when navigating to the details place.
1507 2011-06-27 Ben Konrath <ben@bagu.org>
1509 Use filename based unique document ID in URL and for RPC.
1511 The document ID is the glom document name with spaces (' ') replaced
1512 with pluses ('+') and without the .glom extension.
1514 This change is mostly a string substitution of 'documentTitle' for
1515 'documentID'. The only code change is the addition of a Documents DTO to get the
1516 filename to document title mappings as indicated below.
1518 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1519 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1520 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1521 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1522 Use Documents DTO to create the document links in the document
1524 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1525 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1526 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1527 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1528 * src/main/java/org/glom/web/client/place/ListPlace.java:
1529 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1530 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1531 * src/main/java/org/glom/web/client/ui/ListView.java:
1532 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1533 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1534 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1535 * src/main/java/org/glom/web/server/Log.java:
1536 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1537 getDocumentTitles() to getDocuments() and return the Documents DTO.
1538 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1539 transferring the filename to document title mappings.
1541 2011-06-25 Ben Konrath <ben@bagu.org>
1543 Make the authentication popup work again.
1545 This bug was introduced when I extracted ConfiguredDocument to its own class.
1547 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1548 correct success / fail status in setUsernameAndPassword().
1550 2011-06-25 Ben Konrath <ben@bagu.org>
1552 Use filename as unique key for configuring database usernames and passwords.
1554 This replaces the use of the Glom document title which could change
1555 depending on the locale. Thanks to Murray Cumming for pointing out this
1558 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1559 * src/main/resources/onlineglom.properties:
1561 2011-06-24 Ben Konrath <ben@bagu.org>
1563 Pass primary key value to DetailsView.
1565 This enables the DetailsView to load the correct data.
1567 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1568 primary key value field and set in constructor. Pass primary key
1569 value to getDetailsData().
1570 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1571 variables for document title and primary key value.
1572 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1573 key value to the DetailsPlace.
1575 2011-06-24 Ben Konrath <ben@bagu.org>
1577 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1579 This allows the primary key to be retrieved by the Details button. This
1580 functionality has not been implemented yet but it's in the works.
1582 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1583 the LayoutGroup result to ListView.setCellTable instead of all of its
1584 fields individually.
1585 * src/main/java/org/glom/web/client/ui/ListView.java:
1586 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1587 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1588 get the primary key for the table.
1589 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1590 index of the primary key in the LayoutGroup accounting for hidden
1591 primary keys. Rename getJavaNumberFormat() to
1592 convertToJavaNumberFormat() for consistency. Cleanup / add some
1594 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1595 field for primary key index and a field to indicate whether the
1596 primary key is hidden or not.
1598 2011-06-23 Ben Konrath <ben@bagu.org>
1600 Rename getTableData methods to getListData.
1602 This is a rename refactor for consistency with other methods.
1604 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1605 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1606 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1607 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1609 2011-06-23 Ben Konrath <ben@bagu.org>
1611 Extract the ConfiguredDocument innerclass into its own class.
1613 This makes the servlet code more object oriented.
1615 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1616 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1617 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1618 new ConfiguredDocument class.
1620 2011-06-21 Ben Konrath <ben@bagu.org>
1622 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1624 This makes things more inline with how libglom works and reduces code
1625 duplication. This refactor lays the groundwork for adding the primary key to
1626 the LayoutGroup object.
1628 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1629 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1630 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 Change method names to getListLayout and getDefaultListLayout for
1632 consistency. Use LayoutGroup as the DTO for the list layout instead of
1633 ColumnInfo and LayoutListTable.
1634 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1635 new method names along with the LayoutGroup object for transferring the
1637 * src/main/java/org/glom/web/client/ui/ListView.java:
1638 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1639 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1640 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1642 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1643 Replaced with LayoutGroup.
1644 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1645 expectedResultSize and defaultTableName fields which are needed for
1647 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1648 type field which is needed for the list layout but will also be
1649 useful for the details layout as things progress.
1650 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1651 Make class abstract. Remove the unnecessary
1652 getFormattingHorizontalAlignment method. Add setFormatting method.
1654 2011-06-16 Ben Konrath <ben@bagu.org>
1656 Add scripts for building and installing war.
1658 These will help when updating OnlineGlom but they're also good
1659 supplemental documentation of the build and deployment proceeding.
1661 * utils/build-onlineglom-war.sh: New file.
1662 * utils/install-onlineglom-war.sh: New file.
1664 2011-06-16 Ben Konrath <ben@bagu.org>
1666 Create wrapper class to create consistent log messages.
1668 I wrapped methods in the Log class of gwt-log to add the method names
1669 from the servlet and create consistent formatting of the document title
1670 and table names in the log messages.
1672 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1673 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1674 log methods to use methods from wrapped Log class.
1676 2011-06-16 Ben Konrath <ben@bagu.org>
1678 Remove superfluous conditional return.
1680 Thanks to Murray Cumming for pointing this out!
1682 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1684 2011-06-15 Ben Konrath <ben@bagu.org>
1686 Return an ArrayList of LayoutGroups for the Details layout.
1688 This corrects a problem with the details layout as it can have more
1689 than one top level LayoutGroup.
1691 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1692 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1693 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1694 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1695 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1696 with ArrayList of LayoutGroups for the details view layout.
1697 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1698 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1699 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1700 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1701 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1702 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1704 2011-06-14 Ben Konrath <ben@bagu.org>
1706 Use cast_dynamic method to determine the libglom LayoutItem type.
1708 This is better than finding the LayoutItem type by using the string
1709 returned from the get_part_type_name() method.
1711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1713 2011-06-14 Ben Konrath <ben@bagu.org>
1715 Add method names to log entries in the servlet.
1717 This helps when tracking down deployment problems.
1719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1721 2011-06-14 Ben Konrath <ben@bagu.org>
1723 Add data to the DetailsView using a hard-coded primary key value.
1725 The layout and functionality of the DetailsView is not complete. This
1726 is just a checkpoint so the patch doesn't get too big.
1728 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1729 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1730 Add getDetailsData() servlet method.
1731 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1732 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1733 LayoutFields are added to the DetailsView.
1734 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1735 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1736 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1737 take the string for the title instead of the object.
1738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1739 Add implementation getDetailsData() along with some private helper
1741 * src/main/webapp/style.css: Add padding to details-data class. Add a
1742 details-label class with the same padding as the details-data class.
1744 2011-06-03 Ben Konrath <ben@bagu.org>
1746 Use presenter.goTo() to change to the DetailsPlace.
1748 This will make things easier when we need to open the DetailsView with
1749 data specific to the row that was clicked.
1751 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1753 2011-06-02 Ben Konrath <ben@bagu.org>
1755 Add CSS file from mockups.
1757 I'm adding this now because it's going to be useful to have when
1758 developing the DetailsView. The TableSelectionView and ListView aren't
1761 * src/main/webapp/OnlineGlom.html:
1762 * src/main/webapp/style.css:
1764 2011-06-02 Ben Konrath <ben@bagu.org>
1766 Use String.isEmpty() to check for empty string.
1768 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1770 2011-06-02 Ben Konrath <ben@bagu.org>
1772 Display main layout group titles in the DetailsView.
1774 This is the start of the DetailsActivity/DetailsView implementation.
1776 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1777 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1778 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1779 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1780 Get the layout information for the details view from the server and set
1781 the main layout group titles.
1782 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1783 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1784 Add addLayoutGroup() and addLayoutField() methods. This are just
1785 temporary methods for creating the the details view that will change
1787 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1788 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1790 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1791 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1792 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1793 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1794 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1795 Data Transfer Objects that mimic the libglom object structure. These are
1796 used for transferring the details layout but could also be used for
1797 transferring the list layout.
1799 2011-05-27 Ben Konrath <ben@bagu.org>
1801 Reset the AuthenticationPopup when clearing the ListView.
1803 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1805 2011-05-27 Ben Konrath <ben@bagu.org>
1807 Fix problem with onlineglom.properties file loading.
1809 The old way worked in Eclipse but not on the server. Loading the
1810 onlineglom.properties file now works in Eclipse and on the server.
1812 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1814 2011-05-24 Ben Konrath <ben@bagu.org>
1816 Update gwt-log from 3.1.0 to 3.1.2.
1818 Gwt-log 3.1.0 has been marked as depreciated.
1822 2011-05-24 Ben Konrath <ben@bagu.org>
1824 Add comment to ListActivity.goTo() method.
1826 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1828 2011-05-24 Ben Konrath <ben@bagu.org>
1830 Remove FIXME in convertGdkColorToHtmlColour()
1832 The Gdk::Color value returned by libglom is 16-bits per channel on both
1833 64 and 32-bit platforms.
1835 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1837 2011-05-19 Ben Konrath <ben@bagu.org>
1839 Improve performance of initial ListView load.
1841 I removed a round trip to the server for getting the default table name
1842 and then requesting information about that table. This also removes a potential
1843 problem with the table change handler not being setup in time to receive the
1844 table change event from the ListActivity.
1846 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1847 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1848 getDefaultLayoutListTable() method. Improve comments.
1849 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1850 getDefaultLayoutListTable() method instead of firing a table change
1851 event to get the table to load.
1852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1853 implementation of getDefaultLayoutListTable() method.
1854 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1857 2011-05-19 Ben Konrath <ben@bagu.org>
1859 Override toDebugString() in TableChangeEvent.
1861 This is useful to have for debugging.
1863 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1865 2011-05-19 Ben Konrath <ben@bagu.org>
1867 Add a "Back to List" link when at the DetailsPlace.
1869 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1870 Populate the CellTable based on the selected table of the ListBox if
1871 it's set otherwise use the default table. This allows the "Back to
1873 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1874 Remove Place from constructors. Add a setPlace() method. Add
1875 goToPlace() method. Set class as presenter for TableSelectionView.
1876 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1877 Use the same TableSelectionActivity when switching between the List and
1879 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1880 Subclass the new HasSelectableTablePlace. This removes some duplicate
1882 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1883 New class to represent Places that display the TableSelectionView.
1884 * src/main/java/org/glom/web/client/place/ListPlace.java:
1885 Subclass the new HasSelectableTablePlace. This removes some duplicate
1887 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1888 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1889 Add Presenter interface. Add setBackLinkVisible() method. Add
1890 setBackLink() method.
1892 2011-05-18 Ben Konrath <ben@bagu.org>
1894 Enable the "Details" buttons.
1896 Right now only an empty details view is displayed.
1898 * src/main/java/org/glom/web/client/ClientFactory.java:
1899 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1900 Add DetailsView to ClientFactory.
1901 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1902 A basic activity for the details view.
1903 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1904 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1906 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1907 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1909 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1910 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1911 unnecessary super() in constructor.
1912 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1913 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1914 really shouldn't create a new TableSelectionActivity for both the ListPlace
1915 and the DetailsPlace so this should be considered a temporary solution.
1916 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1917 New file. Represents a URL for the details view.
1918 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1919 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1920 A basic details view interface and implementation.
1921 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1922 Enable the "Details" buttons.
1924 2011-05-12 Ben Konrath <ben@bagu.org>
1926 Use a LayoutPanel with multiple display areas for main layout.
1928 This is mostly a refactor in that there are no changes from the user
1929 point of view. These changes are required so that we can swap out the list view
1930 with the details view when the user clicks the "Details" button.
1932 * src/main/java/org/glom/web/client/ClientFactory.java:
1933 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1934 OnlineGlomView. Add TableSelectionView, ListView and
1935 AuthenticationPopup.
1936 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1937 for main layout. Add display regions for main activities. Add
1938 activity manager for for main activities.
1939 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1940 file from parts of the deleted OnlineGlomActivity.
1941 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1942 New file from parts of the deleted OnlineGlomActivity.
1943 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1944 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1945 New files for app wide table change event.
1946 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1947 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1948 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1949 Activity mappers for the main activities replace the deleted app-wide
1951 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1952 Fix a spelling error in he comment.
1953 * src/main/java/org/glom/web/client/ui/ListView.java:
1954 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1955 Renamed from LayoutListView and modified for MVP. This still not a
1956 proper dumb view as prescribed by the MVP pattern but it works for now.
1957 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1958 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1959 New widget stripped out of the deleted OnlineGlomView.
1960 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1961 Remove hack that is fixed by this patch.
1963 2011-05-06 Ben Konrath <ben@bagu.org>
1965 Rename OnlineGlomPlace to ListPlace.
1967 The only change besides the rename is that url will now display #list
1968 instead of #Document.
1970 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1971 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1972 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1973 * src/main/java/org/glom/web/client/place/ListPlace.java:
1974 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1976 2011-05-06 Ben Konrath <ben@bagu.org>
1978 Use Presenter for app navigation.
1980 This is the proper way to deal with Place (URL) changes with the MVP
1983 * src/main/java/org/glom/web/client/ClientFactory.java:
1984 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1985 PlaceHistoryMapper and PlaceHistoryHandler.
1986 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1987 PlaceHistoryMapper and PlaceHistoryHandler.
1988 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1989 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1990 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1991 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1992 Add Presenter interface and setPresenter methods. Rename addHyperLink
1993 to addDocumentLink taking only the document title as a parameter.
1995 2011-04-14 Ben Konrath <ben@bagu.org>
1997 Prompt for db username/password if they haven't been set.
1999 This is implemented with a popup widget that is contained within the
2000 OnlineGlomView and managed by the OnlineGlomActivity.
2002 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2003 methods for checking and setting the database username and password.
2004 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2005 new methods for checking and setting the database username and
2007 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2008 Display authentication popup if the JDBC connection to the database
2009 has not been authenticated.
2010 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2012 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2013 for dealing with the authentication popup.
2014 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2015 Implement the methods for dealing with the authentication popup.
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2017 try to executed queries if the database connection hasn't been
2018 authenticated. Implement methods for checking and setting the
2019 database username and password.
2021 2011-04-12 Ben Konrath <ben@bagu.org>
2023 Make log messages a little clearer.
2025 Add a dash betweeen the document title and the table name.
2027 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2029 2011-04-12 Ben Konrath <ben@bagu.org>
2031 Protect against NPEs when cleaning up database resources.
2033 While this isn't strictly necessary because the exception is caught,
2034 not protecting against the NPEs makes it harder to find the real error
2037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2039 2011-04-12 Ben Konrath <ben@bagu.org>
2041 Move configuration of the servlet to the constructor.
2043 The servlet will be initialized even if the database authentication
2044 information is not set or correct. I still need to add the UI for prompting
2045 the user for the authentication information when it's required.
2047 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2048 javadocs for getDocumentTitles() method.
2049 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2050 Set error message when RPC fails.
2051 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2052 glom files directory from the configuration file. Try to set the
2053 database authentication information for the specific document if it's
2054 set and works otherwise try to use the global authentication
2055 information set for the directory.
2056 * src/main/resources/onlineglom.properties: Moved from
2057 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2058 Added detailed comments for the new keys.
2060 2011-04-11 Ben Konrath <ben@bagu.org>
2062 Remove unnecessary @Override in DocumentSelectionViewImpl.
2064 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2066 2011-04-11 Ben Konrath <ben@bagu.org>
2068 Remove center alignment in DocumentSelectionView.
2070 The title element is still centred but the document titles and bottom
2071 sentence are both left-aligned.
2073 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2075 2011-04-11 Ben Konrath <ben@bagu.org>
2077 Change 'Demo' naming convention to 'Document'.
2079 This is just a rename refactor with no functional changes to the code.
2081 * src/main/java/org/glom/web/client/ClientFactory.java:
2082 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2083 * src/main/java/org/glom/web/client/OnlineGlom.java:
2084 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2085 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2086 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2087 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2088 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2089 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2090 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2091 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2092 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2093 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2095 2011-04-08 Ben Konrath <ben@bagu.org>
2097 Remove FIXME from safeLongToInt() method.
2099 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2102 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2104 2011-04-08 Ben Konrath <ben@bagu.org>
2106 Display an error if no glom documents are found in the specified directory.
2108 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2109 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2110 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2113 2011-04-08 Ben Konrath <ben@bagu.org>
2115 Add copyright header to one more file ... oops.
2117 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2119 2011-04-08 Ben Konrath <ben@bagu.org>
2121 Add copyright header to files without it.
2123 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2124 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2125 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2126 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2127 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2128 * src/main/java/org/glom/web/shared/GlomField.java:
2130 2011-04-08 Ben Konrath <ben@bagu.org>
2132 Add support for accessing multiple glom documents in the servlet.
2134 This completes the demo selection functionality.
2136 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2137 document title to methods.
2138 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2139 document title to methods.
2140 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2141 Set browser window title when the activity starts. Correct name of
2142 document title variable.
2143 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2144 Set browser window title when the activity starts. Set the table
2145 selector change handler after table selector has been set. Clear the
2146 OnlineGlomView when the activity has been stopped.
2147 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2148 document title as the place token. Use "#Document:" instead of
2149 "#OnlineGlomPlace:" in the URL.
2150 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2151 Change heading to "Online Glom"
2152 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2153 document title in RPC methods.
2154 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2155 setDocumentTitle() method. Add clear() method.
2156 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2157 setDocumentTitle() method. Implement clear() method which removes the
2158 change handler on the ListBox, clears the ListBox and clears the
2160 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2161 Implement methods with document title. Keep track for the configured
2162 glom documents and their corresponding JDBC configurations in a hash
2163 table. This information is retrieved using the document title as the
2164 key in the hash table.
2165 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2166 document title field as it's no longer needed.
2168 2011-04-08 Ben Konrath <ben@bagu.org>
2170 Update the Eclipse JDT configuration.
2172 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2173 methods. Automatically add the copyright header to new files.
2175 2011-04-05 Ben Konrath <ben@bagu.org>
2177 Add new page for demo selection.
2179 This patch adds all the components required to view and start an
2180 OnlineGlom demo by clicking on the desired hyperlink. The user is
2181 able to return to the demo selection page with the browser's back
2182 button. I still need to modify the servlet to work with multiple
2183 documents so all demo links will load the file defined in the
2184 OnlineGlom.properties.
2186 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2187 This is only useful during development so we don't need to save it.
2188 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2189 get a reference to the DemoSelectionView.
2190 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2191 method to get a reference to the DemoSelectionView.
2192 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2193 default view to DemoSelectionView.
2194 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2195 to get glom document titles for glom files in a hard-coded directory.
2196 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2197 method to get glom document titles for glom files in a hard-coded
2199 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2200 Presenter for DemoSelectionView.
2201 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2202 for DemoSelectionView.
2203 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2204 Update for DemoSelectionView.
2205 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2206 Basic 'Place' implementation for the DemoSelectionView.
2207 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2208 The interface for the DemoSelectionView.
2209 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2210 The implementation of the DemoSelectionView.
2211 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2212 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2213 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2214 implementation of method to get glom document titles for glom files
2215 in a hard-coded directory.
2216 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2217 on longer being used.
2218 * src/main/webapp/glom.png: Glom logo.
2220 2011-04-05 Ben Konrath <ben@bagu.org>
2222 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2224 This is the forth and final commit of a refactor that will allow
2225 OnlineGlom to be used with multiple documents.
2227 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2228 Move RPC code from OnlineGlomViewImpl to this class.
2229 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2231 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2232 RPC code to the presenter class (the P in MVP).
2234 2011-04-04 Ben Konrath <ben@bagu.org>
2236 Start moving the existing OnlineGlom code to MVP.
2238 This work is based on the GWT MVP framework that is documented here:
2240 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2242 This is the third commit of a refactor that will allow OnlineGlom to
2243 be used with multiple documents.
2245 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2246 Interface for client factory which is used to get instances of various
2247 classes throughout the app.
2248 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2249 Implementation of client factory.
2250 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2251 initialize the MVP framework.
2252 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2253 New file. Activity manager for the main container widget. This is the
2255 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2256 Maps place (URL) to its corresponding activity.
2257 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2258 New file. This is just a place holder for a generated file.
2259 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2260 New file. Represents the URL for the main Online Glom app.
2261 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2262 for changes in LayoutListViewImpl.
2263 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2264 interface for View. Move code to OnlineGlomViewImpl class.
2265 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2266 file. Implementation of OnlineGlomView.
2267 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2268 Place resources. Use ClientFactoryImpl by default.
2270 2011-04-04 Ben Konrath <ben@bagu.org>
2272 Move View classes to their own package.
2274 This is the second commit of a refactor that will allow OnlineGlom to
2275 be used with multiple documents.
2277 * src/main/java/org/glom/web/client/OnlineGlom.java:
2278 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2279 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2281 2011-04-02 Ben Konrath <ben@bagu.org>
2283 Move UI code from the main module to its own class.
2285 This is the first commit of a refactor that will allow OnlineGlom to be
2286 used with multiple documents.
2288 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2289 references to OnlineGlom to OnlineGlomView.
2290 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2291 OnlineGlomView and instantiate it here.
2292 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2293 represents the main OnlineGlomView with one document.
2295 2011-04-01 Ben Konrath <ben@bagu.org>
2297 Fix formatting of gwt.xml and add DTD.
2299 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2301 2011-03-30 Ben Konrath <ben@bagu.org>
2303 Propperly convert gdkColor string to html colour string.
2305 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2307 2011-03-28 Ben Konrath <ben@bagu.org>
2309 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2311 This implementation matches
2312 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2313 readable and is not tied to Swig.
2315 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2317 2011-03-28 Ben Konrath <ben@bagu.org>
2319 Use read-only checkboxes for boolean field types.
2321 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2322 in the CellTable based on the field type. It currently only
2323 distinguishes between boolean and text columns but I'll need to add
2324 support for more types.
2325 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2326 column type in the ColumnInfo object. Add method to convert between the
2327 glom field type enum in ColumnInfo and the glom field type in libglom.
2328 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2330 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2331 getting and setting booleans.
2333 2011-03-25 Ben Konrath <ben@bagu.org>
2335 Don't get the Date twice from the ResultSet.
2337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2339 2011-03-25 Ben Konrath <ben@bagu.org>
2341 Cleanup code in the servlet.
2343 * TODO: Remove item about row count. Add item about testing row count
2344 query with large number of rows.
2345 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2346 spelling mistakes, change method parameter to be consistent with
2349 2011-03-25 Ben Konrath <ben@bagu.org>
2351 Add server side logging with the gwt-log library.
2353 * .gitignore: Ignore the log file we're now producing.
2354 * TODO: Add a couple TODO item for logging.
2355 * pom.xml: Add gwt-log and log4j as a dependency.
2356 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2357 logging of errors, warnings and some important info.
2358 * src/main/resources/log4j.properties: New file to configure log4j.
2360 2011-03-24 Ben Konrath <ben@bagu.org>
2362 Add a disable button for the Details view.
2364 * src/main/java/org/glom/web/client/LayoutListView.java:
2366 2011-03-22 Ben Konrath <ben@bagu.org>
2368 Use a count query to get the number of rows for the list view pager.
2370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2372 2011-03-22 Ben Konrath <ben@bagu.org>
2374 Add more TODO information about CellTable pager positioning.
2378 2011-03-19 Ben Konrath <ben@bagu.org>
2380 Add TODO item about CellTable pager positioning.
2384 2011-03-18 Ben Konrath <ben@bagu.org>
2386 Remove unneeded GlomFieldColumn class.
2388 This is just a small code cleanup.
2390 * src/main/java/org/glom/web/client/LayoutListView.java:
2392 2011-03-18 Ben Konrath <ben@bagu.org>
2394 Use cursor mode in the query that gets data for the list view.
2396 I still need to fix the potential memory problem when getting the row
2397 count for the list view.
2399 * TODO: Add note about testing memory usage with large data sets. Add
2400 item about fixing row counting with large data sets.
2401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2402 PostgreSQL JDBC driver into cursor mode when getting data for the
2405 2011-03-15 Ben Konrath <ben@bagu.org>
2407 Remove the GWT Container from the Eclipse build classpath.
2409 The GWT dependencies are set by Maven so this isn't needed.
2413 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2415 Added some earlier mockups to git, but not to the tarball dist.
2417 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2418 Openismus. These hopefully show how we might structure the HTML so that
2419 it can be styled easily with CSS. However, we probably need to adapt them
2420 for the CSS structure that GWT dictates for common widgets.
2422 2011-03-14 Ben Konrath <ben@bagu.org>
2424 Locate OnlineGlom.properties using the ServletContext.
2426 This is required to be able to locate the file in the deployed servlet.
2428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2429 Configure the database and glom document in in a helper method so
2430 that the ServletContext can be used to locate OnlineGlom.properties.
2431 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2432 src/main/webapp. This is the proper location for .properites files.
2434 2011-03-12 Ben Konrath <ben@bagu.org>
2436 Add note to README about why we're compiling down to obfuscated JavaScript.
2440 2011-03-11 Ben Konrath <ben@bagu.org>
2442 Use properties file to configure servlet.
2444 This allows people to change the glom file path, db username and db
2445 password without recompiling the code.
2447 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2448 * src/main/webapp/OnlineGlom.properties:
2450 2011-03-11 Ben Konrath <ben@bagu.org>
2452 Use table fields in layout list view if the layout list is not defined.
2454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2455 Manually create a LayoutFieldVector for the query builder using the
2456 table fields when a layout list is not defined in the glom file.
2458 2011-03-11 Ben Konrath <ben@bagu.org>
2460 Only show FIXME string for images when there's an image.
2462 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2463 in this change are some small code cleanups.
2465 2011-03-11 Ben Konrath <ben@bagu.org>
2467 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2471 2011-03-11 Ben Konrath <ben@bagu.org>
2473 Correctly set the index of the default table.
2475 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2476 Correctly set the index of the default table. Add commented out example
2479 2011-03-10 Ben Konrath <ben@bagu.org>
2481 Add comment to pom.xml about the previous change.
2483 * pom.xml: Add comment about the deployment issue so that it's obvious
2484 why java-libglom is set to the provided scope.
2486 2011-03-10 Ben Konrath <ben@bagu.org>
2488 Change java-libglom dependency from compile to provided in pom.xml.
2490 Since java-libglom uses jni it can only be loaded once and therefore
2491 must be placed in $CATALINA_HOME/lib and not included in each war.
2492 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2493 More information about this issue can be found in the Tomcat 6 release
2494 notes in the "JNI Based Applications" section:
2496 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2498 * README: Remove note about this issue. Deployment info should really
2499 be on the wiki anyway so I'll add it right now.
2500 * pom.xml: Change java-libglom dependency from compile to provided so
2501 that it's copied in to the packaged war.
2503 2011-03-09 Ben Konrath <ben@bagu.org>
2505 Change to using a neutral locale for currency, date and time formatting.
2507 This solves the problem of currency values being represented without a
2508 space between the currency code and the number (e.g. "EUR5.89" is now
2509 represented as "EUR 5.89"). More work is required when we implement
2510 a locale preference setting.
2512 * TODO: Add note about currency formatting issues with different
2514 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2515 to using the neutral ROOT locale.
2517 2011-03-09 Ben Konrath <ben@bagu.org>
2519 Add support for currency codes that are not ISO 4217 codes.
2521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2522 the currency code defined in the glom file when it's not 3 characters
2523 long or when Java doesn't recognize the string as an ISO 4217 code.
2525 2011-03-08 Ben Konrath <ben@bagu.org>
2527 Remove test classes, launch configurations and configuration.
2529 The test stuff was getting in the way when creating the war. To make
2530 the war file you can now do 'mvn clean package'. The packaged war file
2531 will be in the target directory.
2533 * .classpath: Remove unused classpathentry for tests and i18n.
2534 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2535 property. Don't run test or i18n goals when packaging the war.
2536 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2541 * OnlineGlomTest-dev.launch:
2542 * OnlineGlomTest-prod.launch:
2543 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2544 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2546 2011-03-07 Ben Konrath <ben@bagu.org>
2548 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2550 These fixes allow me to use 'mvn deploy' to create the war file.
2552 * .classpath: This generated config has been updated by Eclipse. This
2553 change was probably triggered by me updating from Eclipse 3.6.1 to
2555 * .gitignore: Add entry to ignore the directory
2556 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2557 * .project: The generated config has been updated by Eclipse. This
2558 change was probably triggered by me updating from Eclipse 3.6.1 to
2560 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2561 so that Eclipse doesn't complain
2562 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2563 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2564 'tests' directory to 'client' directory. This is the new
2565 gwt-maven-plugin convension.
2566 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2567 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2569 2011-03-07 Ben Konrath <ben@bagu.org>
2571 Add support for horizontal alignment in the LayoutList columns.
2573 * TODO: Remove item about horizontal alignment. Add item about
2574 improvements to ColumnInfo.
2575 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2576 alignment on the columns. Use ColumnInfo RPC object get the column
2577 title and horizontal alignment.
2578 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2579 LayoutListView creation with ColumnInfo RPC object.
2580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2581 a ColumnInfo object for every LayoutList columnn. Convert the
2582 FieldFormatting.HorizontalAlignment to the correct
2583 ColumnnInfo.HorizontatlAlignment with the new
2584 getColumnInfoHorizontalAlignment helper method.
2585 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2586 to encapsulate column information like alignment and title. This
2587 could be used to set the colour instead of on a per cell field basis.
2588 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2589 column title storage and retrieval with ColumnInfo.
2591 2011-03-04 Ben Konrath <ben@bagu.org>
2593 Add support for column sorting.
2595 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2596 AsynDataProvider to be an anonymous inner class. Use new
2597 getSortedTableData RPC method when column sort is requested. Set all
2598 columns sortable and add an AsyncHandler to activate sorting in the
2600 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2601 method getSortedTableData(). Cleanup other method signatures.
2602 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2603 new method getSortedTableData(). Cleanup other method signatures.
2604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2605 Implement getSortedTableData() and getTableData() methods by using a
2606 private helper method with the appropriate parameters filled in. Use
2607 user supplied sort clause when supplied, otherwise fall back to
2608 sorting by the primary key. Move destroy() method to be underneath
2609 constructor for readability. Cleanup comments.
2611 2011-03-03 Ben Konrath <ben@bagu.org>
2613 Add support for colour text and colour backgrounds to the layout list cells.
2615 Only the cell backgrounds are coloured which leaves a gap between the
2616 cells that isn't coloured. I need to figure out a way to set
2617 'style=background-colour:' on the whole column rather than just the
2620 * TODO: Add a note about colouring the background of the whole column.
2621 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2622 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2623 render the coloured text and backgrounds. Use GlomField[] for the row type.
2624 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2626 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2627 GlomField[] for the row type.
2628 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2629 GlomField[] for the row type. Set the text, text colour and background
2630 colour in the GlomField objects as specified in the glom document. Add
2631 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2632 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2633 the glom field text, foreground colour and background colour.
2635 2011-03-02 Ben Konrath <ben@bagu.org>
2637 Don't display hidden tables in the combo box.
2639 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2641 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2642 code to ignore hidden tables using ArrayLists for the table names and
2644 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2645 tableNames to use ArrayLists instead of String[]. Update getter and setter
2648 2011-03-01 Ben Konrath <ben@bagu.org>
2650 Add support for Date and Time number types.
2652 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2653 Implement formatting for Date and Time values. Change the default glom
2654 file to small business example.
2656 2011-03-01 Ben Konrath <ben@bagu.org>
2658 Add support for formatting glom types as specified in the glom file.
2660 Formatting isn't finished yet - I still need to add support for Date
2663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2664 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2665 checks for null values in JDBC cleanup code and catch all exceptions
2666 instead of just SQLExceptions.
2667 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2670 2011-03-01 Ben Konrath <ben@bagu.org>
2672 Use GWT 2.2.0 instead of 2.1.1.
2674 * pom.xml: Change GWT version numbers.
2676 2011-03-01 Ben Konrath <ben@bagu.org>
2678 A few small code cleanups.
2680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2682 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2683 unnecessary object creation in constructor.
2684 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2685 unnecessary object creation in constructor.
2687 2011-02-28 Ben Konrath <ben@bagu.org>
2689 Add file for TODO list.
2693 2011-02-18 Ben Konrath <ben@bagu.org>
2695 Enable the CellTable Pager when more than 20 rows need to be viewed.
2697 The Pager will automatically become active when the results are larger
2698 than the CellTable size which is currently set to 20 lines.
2700 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2701 name on debug statment in RPC call in LayoutListDataProvider, add
2702 numRows parameter to LayoutListView constructor, propperly set rowCount
2704 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2705 name on debug statment in RPC call, use LayoutListTable object in RPC
2706 calls, pass rowCount to LayoutListView.
2707 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2708 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2710 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2711 interface for changes in OnlineGlomService.
2712 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2713 getLayoutListHeaders() to getLayoutListTable() and return
2714 LayoutListTable. Using this object allows me to pass other information
2715 about the LayoutList like the expected number of rows in the result set.
2716 The Connection object from the connection pool is now propperly closed.
2717 Only the requested number of lines are returned to the client in
2719 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2720 GlomTable and add columnTitles and numRows.
2722 2011-02-18 Ben Konrath <ben@bagu.org>
2724 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2726 This is a small performance boost. I'll use GlomTable to get the required
2727 layoutlist information.
2729 * src/main/java/org/glom/web/client/OnlineGlom.java:
2730 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2731 * src/main/java/org/glom/web/shared/GlomDocument.java:
2733 2011-02-18 Ben Konrath <ben@bagu.org>
2735 Add option to turn off formatting in JDT formatter preferences.
2737 * .settings/org.eclipse.jdt.core.prefs:
2739 2011-02-18 Ben Konrath <ben@bagu.org>
2741 Rename LayoutList to LayoutListView.
2743 I'm working towards setting things up to easily use MVP when the time
2746 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2748 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2751 2011-02-17 Ben Konrath <ben@bagu.org>
2753 Move LayoutListDataProvider class into LayoutList.java.
2755 * src/main/java/org/glom/web/client/LayoutList.java:
2757 2011-02-17 Ben Konrath <ben@bagu.org>
2759 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2761 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2763 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2764 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2765 from LibGlomServer.java.
2766 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2767 Rename from LibGlomServiceAsync.java.
2768 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2769 Rename from LibGlomServiceImpl.java.
2770 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2772 2011-02-17 Ben Konrath <ben@bagu.org>
2774 Update JDT settings.
2776 * .settings/org.eclipse.jdt.core.prefs:
2778 2011-02-17 Ben Konrath <ben@bagu.org>
2780 Move GWT-RPC objects to shared package (where they should be).
2782 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2783 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2784 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2785 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2786 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2787 org.glom.web.shared package.
2788 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2789 org.glom.web.shared package.
2790 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2791 directory in compilation to javascript.
2793 2011-02-16 Ben Konrath <ben@bagu.org>
2795 Add sort clause to the sql query that grabs table information.
2797 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2798 if one of the columns is a primary key.
2800 2011-02-16 Ben Konrath <ben@bagu.org>
2802 Disable generateAsync feature of gwt-maven.
2804 The generated interface does not correctly match the methods in LibGlomService
2805 and the generated singleton Util inner-class doesn't respect the servlet
2808 * pom.xml: Turn off generateAsync feature.
2809 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2810 with singleton Util inner-class.
2812 2011-02-14 Ben Konrath <ben@bagu.org>
2814 Add LGPL v3 licence notices.
2816 Followed directions listed here:
2817 http://www.gnu.org/licenses/gpl-howto.html
2819 * COPYING: This file is a copy of the GPL v3.
2820 * COPYING.LESSER: This file is a copy of the LGPL v3.
2821 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2823 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2825 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2827 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2829 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2831 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2833 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2836 2011-02-14 Ben Konrath <ben@bagu.org>
2838 Use ArrayList instead of Array in GWT-RPC calls.
2840 Apparently this gives a slight performance boost to the compiled
2843 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2845 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2848 2011-02-14 Ben Konrath <ben@bagu.org>
2850 Access data from a postgres db rather than the example glom file.
2852 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2853 compile down to obfuscated javascript.
2854 * pom.xml: Add c3p0 and postgres JDBC libraries.
2855 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2856 using a postgres db accessed through the c3p0 connection pooling library.
2858 2011-02-14 Ben Konrath <ben@bagu.org>
2860 Update Java formatter settings.
2862 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2864 2011-02-02 Ben Konrath <ben@bagu.org>
2866 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2868 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2870 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2871 the compiled webapp directory that Eclipse uses as we're using Maven now.
2872 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2873 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2875 * pom.xml: Format file, change target Java version to 1.6.
2877 2011-02-02 Ben Konrath <ben@bagu.org>
2879 Add information about a deployment related issue.
2881 * README: Add Notes section with the problem outlined.
2883 2011-02-02 Ben Konrath <ben@bagu.org>
2885 Call Glom.libglom_deinit() when the servlet is shutdown.
2887 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2888 Glom.libglom_deinit() to destroy() method.
2890 2011-01-28 Ben Konrath <ben@bagu.org>
2892 Use generated Util class to get the RPC Async interface.
2894 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2896 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2897 getInstance() method to get a reference to the RPC Async interface.
2898 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2899 getInstance() method to get a reference to the RPC Async interface, remove
2900 the now unused getLibGlomServiceProxy() method.
2902 2011-01-27 Ben Konrath <ben@bagu.org>
2904 Cleanup ChangeLog entry from previous commit.
2906 * ChangeLog: Group logical changes together and add comments.
2908 2011-01-25 Ben Konrath <ben@bagu.org>
2910 Convert to gwt-maven project.
2912 * .gitignore: Update for new project structure.
2913 * README: New file with a link to the online documentation.
2914 * pom.xml: The generated maven configuration file with some tweaks.
2916 Add / update Eclipse settings. These files are a merge of the files that
2917 were generated with the gwt-maven plugin and the files we were previously
2921 * .settings/.jsdtscope:
2922 * .settings/com.google.gdt.eclipse.core.prefs:
2923 * .settings/com.google.gwt.eclipse.core.prefs:
2924 * .settings/org.eclipse.jdt.core.prefs:
2925 * .settings/org.eclipse.wst.common.component:
2926 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2927 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2928 * .settings/org.maven.ide.eclipse.prefs:
2929 * OnlineGlomTest-dev.launch:
2930 * OnlineGlomTest-prod.launch:
2932 Java source files moved from the 'src' directory to the directory structure
2934 * src/main/java/org/glom/web/client/GlomDocument.java:
2935 * src/main/java/org/glom/web/client/GlomTable.java:
2936 * src/main/java/org/glom/web/client/LayoutList.java:
2937 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2938 * src/main/java/org/glom/web/client/LibGlomService.java:
2939 * src/main/java/org/glom/web/client/OnlineGlom.java:
2940 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2942 Non-functional property file used for translations. I included this as
2943 reminder that it's something I need to sort out.
2944 * src/main/resources/org/glom/web/client/Messages.properties:
2946 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2947 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2949 The servlet configuration files moved from the 'war' directory.
2950 * src/main/webapp/OnlineGlom.css:
2951 * src/main/webapp/OnlineGlom.html:
2952 * src/main/webapp/WEB-INF/web.xml:
2954 Generated test files with most of the code commented out. I included these
2955 so that it's easy to add tests when we're ready for them.
2956 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2957 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2959 2011-01-25 Ben Konrath <ben@bagu.org>
2961 Remove unused println.
2963 * src/org/glom/web/server/LibGlomServiceImpl.java:
2965 2011-01-25 Ben Konrath <ben@bagu.org>
2967 Add project specific JDT settings.
2969 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2970 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2972 2011-01-25 Ben Konrath <ben@bagu.org>
2974 Populate celltable with example data.
2976 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2977 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2978 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2979 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2980 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2981 asynchronously gets the example data.
2982 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2983 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2984 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2985 curently selected table to be retrieved by other widgets.
2986 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2987 implement getTableData() in a hacky way. This method needs to be updated
2988 to grab information from the database when database creating is
2991 2011-01-20 Ben Konrath <ben@bagu.org>
2993 Set table headers when table dropBox changes.
2995 * src/org/glom/web/client/GlomDocument.java: Correct some method
2997 * src/org/glom/web/client/LibGlomService.java: Add method
2998 to get list layout field names.
2999 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3000 to get list layout field names.
3001 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3002 widget for list layout table.
3003 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3004 the table drop box and add new updateTable() method to asynchronously
3005 get the layout list field names for the currently selected table.
3006 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3007 implementation of getLayoutListHeaders() method.
3008 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3010 2011-01-18 Ben Konrath <ben@bagu.org>
3012 Make a listBox with table titles instead of the flexTable demo.
3014 This is the start of something more useful.
3016 * .classpath: Exclude a bunch of packages from the JVM that are
3017 getting in the way of the Eclipse content assist.
3018 * src/org/glom/web/client/GlomDocument.java:
3019 * src/org/glom/web/client/GlomTable.java:
3020 * src/org/glom/web/client/LibGlomService.java:
3021 * src/org/glom/web/client/LibGlomServiceAsync.java:
3022 * src/org/glom/web/client/OnlineGlom.java:
3023 * src/org/glom/web/server/LibGlomServiceImpl.java:
3024 * war/OnlineGlom.html:
3025 * war/WEB-INF/web.xml:
3027 211-01-13 Ben Konrath <ben@bagu.org>
3029 Update to new java-libglom API.
3031 * .gitignore: Ignore OnlineGlom.war.
3032 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3034 2010-12-20 Ben Konrath <ben@bagu.org>
3036 Add some basic style to the table listing.
3038 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3039 header, print useful error message on async callback failure.
3040 * war/OnlineGlom.css: Add style for table header, remove defaults
3041 provided by the Eclipse project wizard.
3043 2010-12-20 Ben Konrath <ben@bagu.org>
3045 Load example file from installed glom dir.
3047 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3048 provided by java-libglom to find the example file.
3050 2010-12-20 Ben Konrath <ben@bagu.org>
3052 Update Eclipse settings.
3055 * .settings/com.google.gdt.eclipse.core.prefs:
3056 * .settings/com.google.gwt.eclipse.core.prefs:
3058 2010-12-17 Ben Konrath <ben@bagu.org>
3062 * .classpath: New file.
3063 * .gitignore: New file.
3064 * .project: New file.
3065 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3066 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3067 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3068 * src/org/glom/web/client/GlomTable.java: New file.
3069 * src/org/glom/web/client/OnlineGlom.java: New file.
3070 * src/org/glom/web/client/TableNameService.java: New file.
3071 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3072 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3073 * war/OnlineGlom.css: New file.
3074 * war/OnlineGlom.html: New file.
3075 * war/WEB-INF/web.xml: New file.
3076 * war/images/glom.png: New file.