1 2011-11-29 Ben Konrath <ben@bagu.org>
3 Set TabLayoutPanel height based on calculated height its widgets.
5 This is a potential fix for this bug:
7 https://bugzilla.gnome.org/show_bug.cgi?id=665133
9 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
11 2011-11-29 Ben Konrath <ben@bagu.org>
13 Align details field labels and data with the Open buttons.
15 * src/main/webapp/style.css:
17 2011-11-29 Ben Konrath <ben@bagu.org>
19 Remove unnecessary <div> in the Notebook widget.
21 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
22 method to get container FlowPanel (<div>).
23 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
24 initWidget() method directly on the TabLayoutPanel widget instead of
25 Group's container widget.
27 2011-11-29 Ben Konrath <ben@bagu.org>
29 Don't add group titles for Portals in Notebooks.
31 This reverts the previous patch and fixes a bug I introduced with
32 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
34 * src/main/java/org/glom/web/client/ui/details/Group.java:
35 * src/main/java/org/glom/web/client/ui/details/Portal.java:
37 2011-11-28 Ben Konrath <ben@bagu.org>
39 Remove unused boolean argument in Portal constructor.
43 * src/main/java/org/glom/web/client/ui/details/Group.java:
44 * src/main/java/org/glom/web/client/ui/details/Portal.java:
46 2011-11-28 Ben Konrath <ben@bagu.org>
48 Remove hack for glom 1.18 style glom files.
50 * src/main/java/org/glom/web/client/ui/details/Group.java:
51 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
52 * src/main/java/org/glom/web/client/ui/details/Portal.java:
54 2011-11-28 Ben Konrath <ben@bagu.org>
56 Use Gda Value version of primary key to log result too large error.
58 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
60 2011-11-28 Ben Konrath <ben@bagu.org>
62 Don't use TypedDataItem.getText() for Unknown types from the URL.
64 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
65 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
67 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
68 String field and getUnknown() method.
70 2011-11-28 Ben Konrath <ben@bagu.org>
72 Log an error message when the java-libglom .so is not present.
74 The error message was being set in the exception but not logged.
76 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
78 2011-11-28 Ben Konrath <ben@bagu.org>
80 Ignore LayoutItem_CalendarPortals.
82 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
83 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
85 2011-11-28 Ben Konrath <ben@bagu.org>
87 Extract method for creating the LayoutItemPortal DTO.
89 Just breaking the code up into smaller chunks.
91 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
93 2011-11-28 Ben Konrath <ben@bagu.org>
97 This should have been added with the refactor. Oops!
99 * src/main/java/org/glom/web/shared/TypedDataItem.java:
101 2011-11-28 Ben Konrath <ben@bagu.org>
103 Create primary key value from URL string using type from Glom document.
105 See this bug, comments 19 - 25:
107 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
109 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
110 create a TypeDataItem for the primary key here when loading from a
111 URL. Show the same string for the primary key value as was received
112 from the URL string (when loading from a URL).
113 * src/main/java/org/glom/web/server/Utils.java: Update method for
114 creating the Gda Value from the TypeDataItem to properly deal with
115 creating a Gda Value based on the Glom document type for the primary
116 key value string when loading from a URL.
117 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
118 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
119 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
120 Update for changed method name.
122 2011-11-27 Ben Konrath <ben@bagu.org>
124 Rename PrimaryKeyItem to TypedDataItem.
126 The name PrimaryKeyItem suggests what the class should be used for.
127 TypedDataItem is a neutral name that describes the class better.
129 This is a rename-only refactor.
131 * src/main/java/org/glom/web/client/OnlineGlomService.java:
132 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
133 * src/main/java/org/glom/web/client/Utils.java:
134 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
135 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
136 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
137 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
138 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
139 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
141 * src/main/java/org/glom/web/server/Utils.java:
142 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
143 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
144 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
145 * src/main/java/org/glom/web/shared/NavigationRecord.java:
147 2011-11-25 Ben Konrath <ben@bagu.org>
149 Improve Gda Value conversion from PrimaryKeyItem.
151 The value from the PrimaryKeyItem is only used if its type match the
152 type from the glom document.
154 * src/main/java/org/glom/web/server/Utils.java:
156 2011-11-25 Ben Konrath <ben@bagu.org>
158 Manually check if the java-liblgom .so is visible to the JVM.
160 It seems that Tomcat has problems when a static initializer throws an
161 exception. This check is done before the first method call into
162 java-libglom so that execution doesn't continue if the .so is not
165 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
167 2011-11-25 Ben Konrath <ben@bagu.org>
169 Improve browser configuration error messages.
173 https://bugzilla.gnome.org/show_bug.cgi?id=662792
175 * src/main/java/org/glom/web/client/OnlineGlomService.java:
176 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
177 getConfigurationErrorMessage() method.
178 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
179 Get and display a specific configuration error message when no Glom
181 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
182 Implement getConfigurationErrorMessage() method. Surround configuration
183 code in the init() method with a try/catch block. This allows the
184 errors to be caught while keeping the servlet available to retrieve the
185 configuration error message.
187 2011-11-25 Ben Konrath <ben@bagu.org>
189 Don't use Strings to hold primary key values.
191 The primary key values are now held in a new data object
192 (PrimaryKeyItem) that holds type information and the primary key value
193 using the correct type.
195 * src/main/java/org/glom/web/client/OnlineGlomService.java:
196 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
198 PrimaryKeyItem instead of String to hold the primary key value.
199 * src/main/java/org/glom/web/client/Utils.java: Remove
200 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
201 PrimaryKeyItem based on the GlomFieldType and the DataItem.
202 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
203 PrimaryKeyItem instead of String to hold the primary key value. Load
204 document selection page when the documentID has not been set correctly.
205 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
206 DetailsPlace -> URL and URL -> DetailsPlace conversion with
208 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
209 Return empty string for URL instead of "null".
210 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
211 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
212 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
213 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
214 PrimaryKeyItem instead of String to hold primary key values.
215 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
216 PrimaryKeyValue to a Gda Value.
217 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
218 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
219 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
220 Replace temporary database access code that uses the PrimaryKeyValue to
221 Gda Value conversion.
222 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
223 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
224 PrimaryKeyItem instead of String.
225 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
226 hold primary key values.
228 2011-11-24 Ben Konrath <ben@bagu.org>
230 Use newly added java-libglom API to create queries.
232 This isn't finished. I still need to stop using Strings for primary key
233 values in the client code.
235 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
236 libglom to use fake connections so that retrieving the query string will
238 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
239 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
240 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
241 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
242 Use the newly added libglom sql methods and classes to create the
243 query. Add temporary hack to convert primary value strings to Gda
246 2011-11-23 Ben Konrath <ben@bagu.org>
248 Don't explicitly set the height of Portals.
250 See comments 6 - 10 of this bug for details:
252 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
254 * src/main/java/org/glom/web/client/ui/details/Portal.java:
256 2011-11-23 Ben Konrath <ben@bagu.org>
258 Use an HTML table instead of CSS for the FlowTable layout.
260 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
261 GWT's FlexTable to implement the FlowTable.
262 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
264 2011-11-18 Ben Konrath <ben@bagu.org>
266 Add boolean example to HTML table mockup.
268 * mockups/details-view-html-tables-text-entries.html:
270 2011-11-17 Ben Konrath <ben@bagu.org>
272 Ensure the pager buttons are always visible for related lists.
274 To accomplish this, I've turned off text wrapping in the list view and
275 related list tables for both the header and data text. The related list
276 table now has a fixed layout so the it doesn't overflow its container.
277 This is required to ensure that the cell text is clipped when it
278 overflows the cell and an ellipsis is added to the right side of the
279 cell when text is clipped.
281 A fixed table layout for the related list table in the details view
282 seems what we want for the details view anyway, so the side-effect is
285 The ellipsis will only be displayed in Firefox >= 7.
289 https://bugzilla.gnome.org/show_bug.cgi?id=662930
291 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
292 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
293 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
295 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
296 Set the 'table-layout: fixed' CSS property to the related list table.
297 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
298 'white-space: nowrap;' CSS property on both the list view and the
301 2011-11-16 Ben Konrath <ben@bagu.org>
303 Rework the fix for empty notebook tab labels.
305 Setting the empty group titles with its name caused problems for the
306 details layout. Instead of using libglom's
307 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
308 to the client when the title is empty. This allows the Notebook to use
309 the name when the title is empty without affecting anything else.
311 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
312 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
314 2011-11-16 Ben Konrath <ben@bagu.org>
316 Set group titles with name when title is empty.
318 This fixes a problem with an empty notebook tab label in the Lesson
319 Planner document. The forth tab in the notebook should be "Internet":
321 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
323 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
324 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
327 2011-11-16 Ben Konrath <ben@bagu.org>
329 Remove whitespace from the configured username properties.
331 This assumes that usernames won't have whitespace at the beginning
332 or end. But I think this is a reasonable assumption.
334 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
335 String.trim() to remove the whitespace from the username properties.
337 2011-11-15 Ben Konrath <ben@bagu.org>
339 Add details view mockup with HTML tables and text entries.
341 This is from the attachment on this bug:
343 https://bugzilla.gnome.org/show_bug.cgi?id=663109
345 * mockups/details-view-html-tables-text-entries.html:
347 2011-11-15 Ben Konrath <ben@bagu.org>
349 Add space between the columns of the flow table.
353 https://bugzilla.gnome.org/show_bug.cgi?id=662918
355 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
356 space between columns in the flow table.
358 2011-11-15 Ben Konrath <ben@bagu.org>
360 Add backup files to the .gitignore.
362 * .gitignore: Ignore files that end with ~.
364 2011-11-09 Ben Konrath <ben@bagu.org>
366 Use latest release of gwt-log.
368 Gwt-log releases are now being submitted to the maven central
369 repository so manual installation of the jar is no longer required.
371 * pom.xml: Update version and groupId of gwt-log dependency.
373 2011-10-31 Ben Konrath <ben@bagu.org>
375 Don't use GWT numeric formatting to override the glom currency formatting.
377 Currencies are now displayed like they are in Glom. See this bug:
379 https://bugzilla.gnome.org/show_bug.cgi?id=646216
381 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
383 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
384 currency code to constructor and set it when the cell is rendered.
385 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
386 currency code to the constructor of the NumericCell.
388 2011-10-27 Ben Konrath <ben@bagu.org>
390 Require the latest release of java-libglom (1.17.4).
394 2011-10-26 Ben Konrath <ben@bagu.org>
396 Add style to Notebook that matches current theme.
398 It's not the best style in the world but it's better than the default.
400 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
401 padding at the bottom of the child widgets.
402 * src/main/webapp/style.css: Add style for the Notebook.
404 2011-10-26 Ben Konrath <ben@bagu.org>
406 Move servlet initialization code to overridden init method.
408 This is half of the solution to getting proper error messages
409 displayed when configuration errors occur. Here's the relevant bug:
411 https://bugzilla.gnome.org/show_bug.cgi?id=662792
413 The rest of the solution involves surrounding the init method with a
414 try/catch block and setting a global variable with the error /
415 exception. A new async method should be created to retrieve and display
416 the error message / exception.
418 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
419 code from constructor to init method adding exceptions as needed.
421 2011-10-26 Ben Konrath <ben@bagu.org>
423 Add script to monitor and restart tomcat if required.
425 * utils/check-and-recover-tomcat.py: New file.
427 2011-10-26 Ben Konrath <ben@bagu.org>
429 Display the correct number of data items in the pager.
433 https://bugzilla.gnome.org/show_bug.cgi?id=661441
435 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
436 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
437 The implementation is the same for both tables: Keep track of the
438 number of non-empty rows and fire and RowCountChangeEvent after the data has
440 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
441 custom Pager class that subclasses SimplePager to handle displaying
442 the correct number when empty rows have been added.
444 2011-10-26 Ben Konrath <ben@bagu.org>
446 Correct error in previous commit.
448 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
449 eventBus parameter from listView.setCellTable().
451 2011-10-26 Ben Konrath <ben@bagu.org>
453 Fix error in TODO comment.
455 * src/main/java/org/glom/web/client/activity/ListActivity.java:
457 2011-10-24 Ben Konrath <ben@bagu.org>
459 Create Notebook widgets to the details view.
461 This isn't finished just yet - I still need to create a reasonable
462 style to match the current theme.
464 * src/main/java/org/glom/web/client/Utils.java: Add method for
465 calculating the height of a widget. This is used in the Notebook class.
466 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
467 new constructor method in Group.
468 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
469 method for creating child widget that can be used by subclasses
470 like Notebook. New constructor that allows disabling the group
471 titles - Notebooks don't set a group title for their child groups.
472 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
473 to make Notebooks using GWT's TabLayoutPanel.
474 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
475 constructor that allows disabling the group titles.
476 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
477 LayoutItemNotebook DTO.
478 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
479 DTO for Notebooks. It's just an empty class for now but we might need
480 it to transfer some specific information in the future.
482 2011-10-21 Ben Konrath <ben@bagu.org>
484 Add navigation buttons to related list tables.
486 * src/main/java/org/glom/web/client/OnlineGlomService.java:
487 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
489 method getSuitableRecordToViewDetails() for getting the table name
490 and primary key value for related list navigation buttons.
491 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
492 private cell renderer class to get the navigation information for
493 related list tables from the server. Extract the navigation
494 processing code from the details cell navigation and use it for the
495 related list navigation as well.
496 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
497 cell renderer class for the details open buttons. This was needed
498 because the related list navigation buttons and the list view
499 navigation buttons need to react differently when clicked.
500 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
501 the onEnterKeyDown() method because it's now overriden in the
502 subclasses that are specific to the related list tables and the list
504 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
505 the vertical size a little because the buttons add a bit of vertical
506 space to table. This is not a perfect solution because the vertical
507 size of with table fewer than 5 rows will be a little smaller.
508 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
509 changes in how navigation buttons are handled.
510 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
511 getSuitableRecordToViewDetails() using the new RelatedListNavigation
512 database access object.
513 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
514 to find the portal for a given relationship name from
515 RelatedListDBAccess. Add method to find a primary key field for a
517 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
518 Move code to find the portal for a given relationship name to
520 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
521 New file: database access object for getting the related list
522 navigation information (the table name and the primary key value).
523 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
524 DTO for transferring a table name to navigate to and a primary key
526 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
527 boolean and getter/setter to specifies if the related list should add
530 2011-10-24 Murray Cumming <murrayc@murrayc.com>
532 Use the master branch of java-libglom
534 * pom.xml: Depend on java-libglom 1.19 instead.
536 This is the master branch. See also the libglom-1-18 branch.
538 2011-10-11 Ben Konrath <ben@bagu.org>
540 Enable the open navigation button when the data has been set.
542 This avoids having active buttons that don't do anything when the data
545 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
547 2011-10-11 Ben Konrath <ben@bagu.org>
549 Use IsWidget interface for FlowTableItem.
551 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
552 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
554 2011-10-11 Ben Konrath <ben@bagu.org>
556 Remove GWT styling from open button in details view.
558 There are still some issues with how the details cell is arranged but
559 this should be made to match Glom 1.20. I'm going to leave fixing this
560 until I have Glom 1.20 up and running.
562 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
563 style name on open button.
564 * src/main/webapp/style.css: Move and edit details-navigation class.
565 Re-arrange some classes to make them appear in the same order as the
568 2011-10-07 Ben Konrath <ben@bagu.org>
572 * .gitignore: Ignore new cache directory.
573 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
574 * pom.xml: Change GWT and maven plugin to 2.4.0.
575 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
577 * src/main/java/org/glom/web/client/ClientFactory.java:
578 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
579 * src/main/java/org/glom/web/client/OnlineGlom.java:
580 Update source for API changes.
581 * utils/build-onlineglom-war.sh: Remove cache directory before the
584 2011-10-07 Ben Konrath <ben@bagu.org>
586 Add navigation buttons in the details view.
588 This isn't finished but I thought I'd commit what I have as it's a
589 pretty good start. I still need to:
591 1. Change the style so that it fits better into the current theme
592 2. Adjust the details cell to expand as much as possible.
594 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
595 click handlers to navigation buttons in the DetailsCells. Create a
596 refreshData() method to get just the data from the server without the
598 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
599 Update the tableSelector and browser title when the table name
600 changes without using the tableSelector.
601 * src/main/java/org/glom/web/client/ui/DetailsView.java:
602 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
603 getDetailsCells() to getCells(). Update variable names.
604 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
605 method to set click handler on navigation button. Rename a few
606 variables. Add navigation buttons where needed.
607 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
608 variables and methods.
609 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
610 navigation boolean and navigation table as required in the
612 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
613 variables for navigation along with getter/setter methods.
615 2011-10-07 Ben Konrath <ben@bagu.org>
617 Rename Field to DetailsCell.
619 This is a refactor-only commit. No functionality has been added or
622 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
623 Update variable and method names.
624 * src/main/java/org/glom/web/client/ui/DetailsView.java:
625 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
626 variable and method names.
627 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
629 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
630 variable and method names.
632 2011-10-07 Ben Konrath <ben@bagu.org>
634 Create separate methods for layout and data the details view.
636 This is a refactor-only commit. No functionality has been added or
639 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
640 private methods: setData(), createLayout().
642 2011-10-07 Ben Konrath <ben@bagu.org>
644 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
646 This is part of a change to get navigation buttons in the details view
647 but it should have been done this way from the start.
649 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
650 for method name change in TableSelectionView.
651 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
652 Create TableChangeEvent and set the browser title using the
653 TableSelectionView API.
654 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
655 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
656 Change getSelectedTable() to getSelectedTableName(). Add
657 getSelectedTableTitle().
659 2011-10-07 Ben Konrath <ben@bagu.org>
661 Use primaryKeyValue naming convention in constructor of DetailsPlace.
663 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
665 2011-10-07 Ben Konrath <ben@bagu.org>
667 Update TableChangeEvent to use newTableName naming convention.
669 This makes the class more consistent with GWT naming conventions.
671 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
672 Update for method name change in TableChangeEvent.
673 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
674 for method name change in TableChangeEvent.
675 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
676 newTableName variable and getter method. Make toDebugString()
679 2011-09-30 Ben Konrath <ben@bagu.org>
681 Disable the pager in the list tables when the data row count is less than the minimum.
683 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
684 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
686 2011-09-30 Ben Konrath <ben@bagu.org>
688 Add empty rows to the end of related list and list view tables.
690 I also extracted the cell rendering classes from the ListTable because
691 the code was becoming a little crazy with all the anonymous inner
692 classes. My plan is to use these cell rendering classes in the details
693 view as well so this refactor will be needed for that change.
695 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
696 set the row count in related list tables if the data has more rows
697 than the minimum number of rows visible.
698 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
699 row count in list view tables if the data has more rows than the
700 minimum number of rows visible.
701 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
702 for rendering TYPE_BOOLEAN cells. The code was extracted from the
704 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
705 for rendering TYPE_NUMERIC cells. The code was extracted from the
707 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
708 class for rendering cells with buttons in list views. The code was
709 extracted from the ListTable class.
710 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
711 for rendering TYPE_TEXT cells. The code was extracted from the
713 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
714 Add empty rows to the end of the data if required. Implement
715 ListTable.getMinNumVisibleRows().
716 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
717 cell renderer code to public classes. Return null in
718 Column.getValue() for empty rows. Add new abstract method:
719 getMinNumVisibleRows(). Move code to set the row count of the list view
720 table to ListViewImpl.
721 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
722 empty rows to the end of the data if required. Implement
723 ListTable.getMinNumVisibleRows().
726 2011-09-27 Ben Konrath <ben@bagu.org>
728 Use GWT.log for client-side debugging statements.
730 These are optimized out when deployed so I should have used this method
731 in the first place. These statements will eventually be replaced with some sort
732 of notification in the browser.
734 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
735 * src/main/java/org/glom/web/client/activity/ListActivity.java:
736 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
737 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
738 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
740 2011-09-27 Ben Konrath <ben@bagu.org>
742 Put tableselector on the right, back to list link on right.
744 The idea is that the table selector is acting like a label for the
745 currently displayed table so it should be placed below the document title. This
746 puts the table title in a similar position to where it is in Glom.
748 * mockups/details-contacts.html:
749 * mockups/details-projects.html:
750 * mockups/listview-contacts.html:
751 * mockups/listview-projects.html:
753 Update mockups to match how the interfaces currently look.
754 * src/main/webapp/style.css: Swap positions of backlink with the table
755 selector. Add some space on the left side of the table selector to
756 line things up with the document title.
758 2011-09-27 Ben Konrath <ben@bagu.org>
760 Add field colouring to details view.
762 This change re-works how field colouring works. The colour formatting
763 information is now set to the client with the layout information instead of
764 with the data. This eliminates the need to send the same colour strings for
765 data in list view column when colour information is set.
767 In order to set an alternate colour for negative numeric values, the
768 number is now sent to client and formatted with the GWT NumberFormat class.
770 This change also fixes:
772 https://bugzilla.gnome.org/show_bug.cgi?id=659752
774 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
775 internationalization framework which is needed for client side numeric
777 * src/main/java/org/glom/web/client/Utils.java: New file for some
778 client static utility methods.
779 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
780 the DataItem object to the Field class. Use a utility method to
781 create the foreignKeyValue string.
782 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
783 alignment and text colours in the constructor. Add setData(DataItem)
784 method. Remove setText(String) method.
785 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
786 colour information to GlomTextCell. Create and use GlomNumberCell for
787 rendering numbers. Use utility method to get the string for the
788 primary key of the key provider. Re-work how the horizontal alignment
790 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
791 formatting to layout information. Methods for converting the libglom
792 formatting information were moved from DBAccess.
793 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
794 numeric formatting (it's now done on the client side). Don't set text
795 colours in DataItem. Move libglom formatting conversion methods to
797 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
798 getters/setters for text colour information.
799 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
800 for transferring the libglom NumericFormat information to the client.
801 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
802 and getters/setters for: GlomNumericFormat, background colour and
803 foreground colour strings.
805 2011-09-26 Ben Konrath <ben@bagu.org>
807 Simplify code that iterates through the LayoutGroup.
809 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
811 2011-09-26 Ben Konrath <ben@bagu.org>
813 Accept Eclipse formatting for OnlineGlomServiceAsync.
815 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
817 2011-09-26 Ben Konrath <ben@bagu.org>
819 Don't use the ListDBAccess classes to get the primary key layout information.
821 This was causing a bug where the wrong index for the hidden primary key
822 was being sent to the client.
824 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
825 primary key while creating the LayoutGroup DTO. Create a
826 LayoutItemField DTO for hidden primary keys. Don't use the
827 RelatedListDBAccess because it was only used for getting the primary
829 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
830 access modifier from public to protected for getPrimaryKeyField() and
831 getPrimaryKeyLayoutItemField().
832 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
833 abstract method getExpectedResultSize() because RelatedListDBAccess
834 doesn't have enough info to implement it.
835 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
836 Remove @Override for getExpectedResultSize().
837 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
838 Remove method getExpectedResultSize().
840 2011-09-23 Ben Konrath <ben@bagu.org>
842 Log which layout (list or details) the ignored item is from.
844 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
846 2011-09-23 Ben Konrath <ben@bagu.org>
848 Remove annotations that turn off code formatting in DataItem.
850 * src/main/java/org/glom/web/shared/DataItem.java:
852 2011-09-23 Ben Konrath <ben@bagu.org>
854 Rename GlomField to DataItem and update associated methods.
856 This is a rename-only refactor. No functionality has been added or
859 * src/main/java/org/glom/web/client/OnlineGlomService.java:
860 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
861 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
862 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
863 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
864 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
865 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
866 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
867 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
868 * src/main/java/org/glom/web/server/database/DBAccess.java:
869 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
870 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
871 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
872 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
873 * src/main/java/org/glom/web/shared/DataItem.java:
874 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
875 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
877 2011-09-23 Ben Konrath <ben@bagu.org>
879 Rename GlomDocument to DocumentInfo and update associated methods.
881 This is a rename-only refactor. No functionality has been added or
884 * src/main/java/org/glom/web/client/OnlineGlomService.java:
885 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
886 * src/main/java/org/glom/web/client/activity/ListActivity.java:
887 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
888 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
890 * src/main/java/org/glom/web/shared/DocumentInfo.java:
892 2011-09-20 Ben Konrath <ben@bagu.org>
894 Require java-libglom 1.17.3.
896 This picks up the fix for the seg fault problem with the Scenes table
897 in the Openismus Film Manager example.
901 2011-09-20 Ben Konrath <ben@bagu.org>
903 Change the way sort clause is added for primary key when no sort clause is requested.
905 The primary key is now added to the LayoutFieldVector (fieldsToGet)
906 before the sort clause is created. When a sort clause is not requested, the
907 sort clause is created by finding the primary key in the LayoutFieldVector
910 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
912 2011-09-20 Ben Konrath <ben@bagu.org>
914 Log error message if no documents are found in the configured directory.
916 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
917 Extract the glom file extension string to a private static final class
918 variable (mostly as syntactic sugar). Accept a minor formatting change.
919 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
920 the example glom.document.directory configuration property to make it
921 more clear that it can any directory, not just the home directory.
923 2011-09-18 Ben Konrath <ben@bagu.org>
925 Add related lists to details view.
927 The related list table has support for paging and sorting just like the
928 table in the list view.
930 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
931 SQL queries for the related list tables.
932 * src/main/java/org/glom/web/client/OnlineGlomService.java:
933 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
935 Rename getList methods to getListView and add comments. Remove
936 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
937 it being unused. Add methods: getDetailsLayoutAndData(),
938 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
939 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
940 Create the layout and set the data for the fields in one async call
941 instead of two. Create related lists where appropriate.
942 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
943 for method name changes in OnlineGlomService.
944 * src/main/java/org/glom/web/client/ui/DetailsView.java:
945 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
946 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
948 * src/main/java/org/glom/web/client/ui/ListView.java:
949 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
950 tableName from setCellTable(). Create a ListViewTable instead of
952 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
953 represent a data field in the details view.
954 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
955 from addDetailsCell() to Field class. Keep track of the Fields and
956 Portals in the details view.
957 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
958 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
959 and add a method to get it. Add method to set the contents of the
961 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
962 New class for related list tables. This class has the data provider
963 for the related list table.
964 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
965 abstract class which is the base class for the ListViewTable and the
967 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
968 New class for list view tables. This class has the data provider for
970 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
971 methods for related list tables. Add more information to the
972 LayoutItemField and LayoutItemPortal DTOs.
973 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
974 Remove debugging print statement.
975 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
976 Remove debugging print statements. Add primary key field to SQL count
978 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
979 Remove unnecessary LayoutFieldVector parameter from
980 getResultSizeOfSQLQuery() method.
981 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
982 New class for related list table database access.
983 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
984 class that is a wrapper DTO for details view layout and data.
985 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
986 new 'fromField' string to this DTO.
987 * src/main/webapp/style.css: Remove bottom margin and override top
990 2011-09-15 Ben Konrath <ben@bagu.org>
992 Breakup the OnlineGlomServiceImpl class to make it more manageable.
994 This sets things up to make it easier to add the data retrieval for
995 related lists (portals). No user noticeable changes were made with
998 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
999 class has the code to retrieve the layouts and access the
1000 database using the new database helper classes.
1001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1002 Most of the functionality has been removed from this class. This
1003 class now represents the public interface for the client side
1004 code. It also deals with configuring the servlet and cleaning
1005 things up when the servlet is stopped.
1006 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1007 of static methods into this utility class.
1008 * src/main/java/org/glom/web/server/database/DBAccess.java:
1009 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1010 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1011 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1012 These classes have the database retrieval code. The class hierarchy
1013 has been setup to make it easy to reuse code for similar
1016 2011-09-06 Ben Konrath <ben@bagu.org>
1018 Create separate classes for list table code and the data provider.
1020 As part of this refactor, I also split up the code a bit to make it
1023 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1024 table code to two new classes (below).
1025 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1026 with code from ListViewImpl.
1027 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1028 New file with code from ListViewImpl.
1030 2011-09-06 Ben Konrath <ben@bagu.org>
1032 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1034 This fixes the LayoutItemPortal DTO to match the libglom layout object
1037 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1039 2011-09-01 Ben Konrath <ben@bagu.org>
1041 Set title of Portals in the Details View.
1043 * pom.xml: Bump required version of java-libglom to 1.17.1.
1044 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1045 widget creation to its own class. Add comments to constructor.
1046 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1047 The code is mostly from the Group class with the title now set.
1048 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1049 title of Portal. Update some comments. Fix some code formatting.
1051 2011-09-01 Ben Konrath <ben@bagu.org>
1053 Remove TODO comment for the flow table column width.
1055 The flow table column width is working correctly and doesn't need to be
1056 changed. See this mailing list post for more info:
1058 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1060 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1062 2011-08-27 Ben Konrath <ben@bagu.org>
1064 Add document title (database name) to top of the browser page.
1066 I added the document title to the TableSelecitonView but that will
1067 change if / when we add a view that doesn't require table selection.
1069 * mockups/details-contacts.html:
1070 * mockups/details-projects.html:
1071 * mockups/listview-contacts.html:
1072 * mockups/listview-projects.html:
1073 * mockups/style.css: Add document title to mockups to keep things
1075 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1076 sizes to account for the document title.
1077 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1078 Set the document title when it has been retrieved from the server.
1079 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1080 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1081 and implement setDocumentTitle(String) method.
1082 * src/main/webapp/style.css: Add ID for document title style.
1084 2011-08-25 Ben Konrath <ben@bagu.org>
1086 Add NavigationType enum to LayoutItemPortal DTO.
1088 This is the start of adding support for Portals to the Details View.
1090 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1091 LayoutItem_Portal.navigation_type enum from libglom to
1092 LayoutItemPortal.NavigationType enum.
1093 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1094 NavigationType enum, field for storing the NavigationType and getter
1097 2011-08-25 Ben Konrath <ben@bagu.org>
1099 Implement the flow table layout in the Details View.
1101 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1102 FlowTable to Group to account for the renamed class.
1103 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1104 File. This is a container widget that implements the Glom details view
1105 flow table behaviour.
1106 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1107 org/glom/web/client/ui/FlowTable.java.
1108 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1109 so that the size of the subgroups are a closer match to the size of
1110 the Glom subgroups. This makes the flowtable layout match the layout
1111 in Glom for the Music Collection example file.
1113 2011-08-16 Ben Konrath <ben@bagu.org>
1115 Create container element for LayoutItemPortal in Details View.
1117 This will help me develop the layout for the FlowTable.
1119 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1120 fieldPanel variable to detailsCell.
1122 2011-08-15 Ben Konrath <ben@bagu.org>
1124 Set the height of the data element in the Details View.
1126 I changed the InlineLabels (text in a span element) to Labels (text in
1127 a div element) so that I could set the height of the details-data
1128 elements instead of the details-cell parent elements. This allows the
1129 the details-data element to display the correct height if style is
1130 applied that shows the height.
1132 This change has the added benefit of allowing the order of the labels
1133 and data elements to be changed for right-to-left languages.
1135 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1136 InlineLabels to Labels.
1137 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1138 InlineLabels to Labels. Set the height of the data element.
1139 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1140 multiline text height in the Formatting DTO.
1141 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1142 for multiline height along with getter and setter methods.
1143 * src/main/webapp/style.css: Adjust style to account for the change
1144 from span elements to div elements in the details cell.
1146 2011-08-15 Ben Konrath <ben@bagu.org>
1148 Make the List View appearance match the mockups.
1150 It doesn't match exactly but it's much better than it was.
1152 * mockups/listview-contacts.html: Remove unused css classes.
1153 * mockups/listview-projects.html: Remove unused css classes.
1154 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1155 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1156 for mainPanel instead of VerticalPanel (table). Set style name on
1157 CellTable. Set style name on Details column. Right-align Details
1159 * src/main/webapp/style.css: Adjust properties to match the mockups.
1161 2011-08-12 Ben Konrath <ben@bagu.org>
1163 Add better support for subgroups in the details view.
1165 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1166 changed FlowTable constructor.
1167 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1168 support for subgroups and subgroup-titles.
1169 * src/main/webapp/style.css: Add CSS class for subgroups and
1172 2011-08-12 Ben Konrath <ben@bagu.org>
1174 Return the top level LayoutGroup title.
1176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1178 2011-08-11 Ben Konrath <ben@bagu.org>
1180 Make the TableSelector header match the mockup.
1182 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1183 the layout panel. Properly lineup the table selection header with
1184 the list and details view.
1185 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1186 margin around the details view.
1187 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1188 Rename listBox variable to tableSelector. Set id for the style sheet.
1189 Use a FlowPanel instead of a HorizontalPanel.
1190 * src/main/webapp/style.css: Add properties to make the TableSelector
1191 box match the mockups.
1193 2011-07-13 Ben Konrath <ben@bagu.org>
1195 Update install script for java-libglom version change.
1197 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1200 2011-07-13 Ben Konrath <ben@bagu.org>
1202 Add support sub-group in the details view.
1204 I also removed the code that special-cased the default details view
1207 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1209 I still have to make a proper flowtable.
1211 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1212 Don't special-case default details view layout.
1213 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1214 addLayoutField() as I'm going to use it.
1215 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1216 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1218 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1219 extracted from DetailsViewImpl.GroupPanel. Add support for
1221 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1222 column count when getting the details layout.
1224 2011-07-12 Ben Konrath <ben@bagu.org>
1226 Set browser title with database and table titles.
1228 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1229 Set the browser title when the table changes and when the activity
1231 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1232 title when retrieving document info (the GlomDocument object).
1233 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1234 with getter and setter methods. Remove unused convenience constructor.
1235 Use default code formatting.
1237 2011-07-12 Ben Konrath <ben@bagu.org>
1239 Ignore LayoutItemPortals in the details view.
1241 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1244 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1245 LayoutItemPortal layout objects.
1246 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1247 LayoutItemPortal objects when retrieving the details layout.
1248 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1249 file. This is an empty class and just used to get type information for
1252 2011-07-12 Ben Konrath <ben@bagu.org>
1254 Use java-libglom 1.17.0.
1258 2011-07-11 Ben Konrath <ben@bagu.org>
1260 Remove "Table:" label from table selector.
1262 This matches a recent change in the Glom UI.
1264 * mockups/details-contacts.html:
1265 * mockups/details-projects.html:
1266 * mockups/listview-contacts.html:
1267 * mockups/listview-projects.html: Remove the "Table:" label from the
1269 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1271 2011-07-11 Ben Konrath <ben@bagu.org>
1273 Add main groups to the details view.
1275 This makes things look a little nicer in the details view. The next step
1276 is to implement the flowtable.
1278 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1279 resources from the standard gwt css theme. Standard.css is now
1280 included in OnlineGlom.html so that the online glom css rules have
1281 precedence over the gwt theme.
1282 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1283 the whole LayoutGroup to the DetailsView instead of just the titles.
1284 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1285 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1286 details layout with a helper class (GroupPanel). I might extract this
1287 class when I make the full flowtable.
1288 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1289 string as default so I don't have to worry about NPEs when processing
1291 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1292 note beside OnlineGlom.gwt.xml above).
1293 * src/main/webapp/style.css: Add default font-size to body to override
1294 the font-size set by the standard theme. Don't use h2 tags for
1295 group-title. Create new details-cell class.
1297 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1299 ConfiguredDocument: Set the port number too.
1301 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1302 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1303 Glom document. Presumably this worked sometimes so far because there is a
1304 default port number.
1306 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1308 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1310 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1311 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1312 correct, though we should throw an exception too.
1314 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1316 Fix a addDocuemnt typo.
1318 * src/main/java/org/glom/web/shared/Documents.java
1319 (Documents.addDocuemnt): Rename to addDocument().
1320 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1321 (OnlineGlomServiceImpl.getDocuments): Adapt.
1323 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1325 Slightly improved log output when connection fails.
1327 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1328 (ConfiguredDocument.setUsernameAndPassword):
1329 We don't know for sure if it' the username/password that's wrong, so
1330 rephrase the message.
1331 Also ouput the exception message, though it's generic in this case.
1333 2011-07-08 Ben Konrath <ben@bagu.org>
1337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1338 added braces to a one line if statement because the Eclipse formatter
1339 was getting confused.
1341 2011-07-07 Ben Konrath <ben@bagu.org>
1343 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1345 These should really be two separate tasks but I counldn't get things to
1346 work with GWT 2.2.0 and Eclipse 3.7.
1350 * .settings/org.eclipse.jdt.core.prefs:
1351 * .settings/org.eclipse.jdt.ui.prefs:
1352 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1353 * .settings/org.eclipse.m2e.core.prefs:
1354 Add new config files. Update current files. Remove references to the
1355 webtools plugins as we're not using any of the webtools features.
1356 * .gitignore: Add logs directory which is created when running with
1358 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1359 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1360 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1362 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1364 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1366 onlineglom.properties: Add explanatory comments.
1368 * src/main/resources/onlineglom.properties: Also change the default user
1369 from ben to someuser, to avoid the risk of people thinking we just
1370 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1372 2011-06-28 Ben Konrath <ben@bagu.org>
1374 Use filename in Log for incorrect passwords.
1376 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1377 getFileName(String) method to get the filename from the URI.
1379 2011-06-28 Ben Konrath <ben@bagu.org>
1381 Add the table name to the URL token for the ListPlace.
1383 This makes things consistent between the DetailsPlace and the
1384 ListPlace. It also allows the the ListPlace to be bookmarked.
1386 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1387 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1388 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1389 Remove getDefaultListLayout(). The default layout is now returned
1390 by the getListLayout() method when the table name is an empty string.
1391 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1392 Add table name field. Change to a new ListPlace when the table
1393 has been changed. Use getListLayout() for getting the default
1395 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1396 Add table name field. Set the correct table name in the list box
1397 when loading from bookmark. This corrects a problem for the
1399 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1400 Move table name to super-class (HasSelectableTable). Move document
1401 and table URL keys to super-class in HasSelectableTable.
1402 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1403 Add table name field. Add Tokenizer class with URL key common to
1404 the subclasses (DetailsPlace and ListPlace).
1405 * src/main/java/org/glom/web/client/place/ListPlace.java:
1406 Add table name. Add code to parse the URL token.
1407 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1408 Update ListPlace construction with empty table name string.
1409 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1410 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1411 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1412 Update ListPlace construction with table name string.
1413 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1414 Change defaultTableName field to tableName to reflect how it's now
1415 used. Update the getter and setter methods.
1417 2011-06-28 Ben Konrath <ben@bagu.org>
1419 Enable the table selector in the DetailsView.
1421 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1422 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1423 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1424 Remove getDefaultDetailsLayout(). The default layout is now returned
1425 by the getDetailsLayout() method when the table name is an empty
1427 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1428 event handler for table change event. Change to using
1429 getDetailsLayout() for the default details layout.
1430 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1432 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1433 when navigating to the details place.
1435 2011-06-27 Ben Konrath <ben@bagu.org>
1437 Use filename based unique document ID in URL and for RPC.
1439 The document ID is the glom document name with spaces (' ') replaced
1440 with pluses ('+') and without the .glom extension.
1442 This change is mostly a string substitution of 'documentTitle' for
1443 'documentID'. The only code change is the addition of a Documents DTO to get the
1444 filename to document title mappings as indicated below.
1446 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1447 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1448 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1449 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1450 Use Documents DTO to create the document links in the document
1452 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1453 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1454 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1455 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1456 * src/main/java/org/glom/web/client/place/ListPlace.java:
1457 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1458 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1459 * src/main/java/org/glom/web/client/ui/ListView.java:
1460 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1461 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1462 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1463 * src/main/java/org/glom/web/server/Log.java:
1464 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1465 getDocumentTitles() to getDocuments() and return the Documents DTO.
1466 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1467 transferring the filename to document title mappings.
1469 2011-06-25 Ben Konrath <ben@bagu.org>
1471 Make the authentication popup work again.
1473 This bug was introduced when I extracted ConfiguredDocument to its own class.
1475 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1476 correct success / fail status in setUsernameAndPassword().
1478 2011-06-25 Ben Konrath <ben@bagu.org>
1480 Use filename as unique key for configuring database usernames and passwords.
1482 This replaces the use of the Glom document title which could change
1483 depending on the locale. Thanks to Murray Cumming for pointing out this
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1487 * src/main/resources/onlineglom.properties:
1489 2011-06-24 Ben Konrath <ben@bagu.org>
1491 Pass primary key value to DetailsView.
1493 This enables the DetailsView to load the correct data.
1495 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1496 primary key value field and set in constructor. Pass primary key
1497 value to getDetailsData().
1498 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1499 variables for document title and primary key value.
1500 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1501 key value to the DetailsPlace.
1503 2011-06-24 Ben Konrath <ben@bagu.org>
1505 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1507 This allows the primary key to be retrieved by the Details button. This
1508 functionality has not been implemented yet but it's in the works.
1510 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1511 the LayoutGroup result to ListView.setCellTable instead of all of its
1512 fields individually.
1513 * src/main/java/org/glom/web/client/ui/ListView.java:
1514 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1515 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1516 get the primary key for the table.
1517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1518 index of the primary key in the LayoutGroup accounting for hidden
1519 primary keys. Rename getJavaNumberFormat() to
1520 convertToJavaNumberFormat() for consistency. Cleanup / add some
1522 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1523 field for primary key index and a field to indicate whether the
1524 primary key is hidden or not.
1526 2011-06-23 Ben Konrath <ben@bagu.org>
1528 Rename getTableData methods to getListData.
1530 This is a rename refactor for consistency with other methods.
1532 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1533 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1534 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1537 2011-06-23 Ben Konrath <ben@bagu.org>
1539 Extract the ConfiguredDocument innerclass into its own class.
1541 This makes the servlet code more object oriented.
1543 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1544 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1546 new ConfiguredDocument class.
1548 2011-06-21 Ben Konrath <ben@bagu.org>
1550 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1552 This makes things more inline with how libglom works and reduces code
1553 duplication. This refactor lays the groundwork for adding the primary key to
1554 the LayoutGroup object.
1556 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1557 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1558 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1559 Change method names to getListLayout and getDefaultListLayout for
1560 consistency. Use LayoutGroup as the DTO for the list layout instead of
1561 ColumnInfo and LayoutListTable.
1562 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1563 new method names along with the LayoutGroup object for transferring the
1565 * src/main/java/org/glom/web/client/ui/ListView.java:
1566 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1567 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1568 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1570 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1571 Replaced with LayoutGroup.
1572 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1573 expectedResultSize and defaultTableName fields which are needed for
1575 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1576 type field which is needed for the list layout but will also be
1577 useful for the details layout as things progress.
1578 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1579 Make class abstract. Remove the unnecessary
1580 getFormattingHorizontalAlignment method. Add setFormatting method.
1582 2011-06-16 Ben Konrath <ben@bagu.org>
1584 Add scripts for building and installing war.
1586 These will help when updating OnlineGlom but they're also good
1587 supplemental documentation of the build and deployment proceeding.
1589 * utils/build-onlineglom-war.sh: New file.
1590 * utils/install-onlineglom-war.sh: New file.
1592 2011-06-16 Ben Konrath <ben@bagu.org>
1594 Create wrapper class to create consistent log messages.
1596 I wrapped methods in the Log class of gwt-log to add the method names
1597 from the servlet and create consistent formatting of the document title
1598 and table names in the log messages.
1600 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1601 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1602 log methods to use methods from wrapped Log class.
1604 2011-06-16 Ben Konrath <ben@bagu.org>
1606 Remove superfluous conditional return.
1608 Thanks to Murray Cumming for pointing this out!
1610 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1612 2011-06-15 Ben Konrath <ben@bagu.org>
1614 Return an ArrayList of LayoutGroups for the Details layout.
1616 This corrects a problem with the details layout as it can have more
1617 than one top level LayoutGroup.
1619 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1620 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1621 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1622 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1624 with ArrayList of LayoutGroups for the details view layout.
1625 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1626 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1627 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1628 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1629 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1630 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1632 2011-06-14 Ben Konrath <ben@bagu.org>
1634 Use cast_dynamic method to determine the libglom LayoutItem type.
1636 This is better than finding the LayoutItem type by using the string
1637 returned from the get_part_type_name() method.
1639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1641 2011-06-14 Ben Konrath <ben@bagu.org>
1643 Add method names to log entries in the servlet.
1645 This helps when tracking down deployment problems.
1647 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1649 2011-06-14 Ben Konrath <ben@bagu.org>
1651 Add data to the DetailsView using a hard-coded primary key value.
1653 The layout and functionality of the DetailsView is not complete. This
1654 is just a checkpoint so the patch doesn't get too big.
1656 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1657 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1658 Add getDetailsData() servlet method.
1659 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1660 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1661 LayoutFields are added to the DetailsView.
1662 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1663 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1664 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1665 take the string for the title instead of the object.
1666 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1667 Add implementation getDetailsData() along with some private helper
1669 * src/main/webapp/style.css: Add padding to details-data class. Add a
1670 details-label class with the same padding as the details-data class.
1672 2011-06-03 Ben Konrath <ben@bagu.org>
1674 Use presenter.goTo() to change to the DetailsPlace.
1676 This will make things easier when we need to open the DetailsView with
1677 data specific to the row that was clicked.
1679 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1681 2011-06-02 Ben Konrath <ben@bagu.org>
1683 Add CSS file from mockups.
1685 I'm adding this now because it's going to be useful to have when
1686 developing the DetailsView. The TableSelectionView and ListView aren't
1689 * src/main/webapp/OnlineGlom.html:
1690 * src/main/webapp/style.css:
1692 2011-06-02 Ben Konrath <ben@bagu.org>
1694 Use String.isEmpty() to check for empty string.
1696 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1698 2011-06-02 Ben Konrath <ben@bagu.org>
1700 Display main layout group titles in the DetailsView.
1702 This is the start of the DetailsActivity/DetailsView implementation.
1704 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1705 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1706 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1707 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1708 Get the layout information for the details view from the server and set
1709 the main layout group titles.
1710 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1711 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1712 Add addLayoutGroup() and addLayoutField() methods. This are just
1713 temporary methods for creating the the details view that will change
1715 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1716 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1718 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1719 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1720 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1721 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1722 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1723 Data Transfer Objects that mimic the libglom object structure. These are
1724 used for transferring the details layout but could also be used for
1725 transferring the list layout.
1727 2011-05-27 Ben Konrath <ben@bagu.org>
1729 Reset the AuthenticationPopup when clearing the ListView.
1731 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1733 2011-05-27 Ben Konrath <ben@bagu.org>
1735 Fix problem with onlineglom.properties file loading.
1737 The old way worked in Eclipse but not on the server. Loading the
1738 onlineglom.properties file now works in Eclipse and on the server.
1740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1742 2011-05-24 Ben Konrath <ben@bagu.org>
1744 Update gwt-log from 3.1.0 to 3.1.2.
1746 Gwt-log 3.1.0 has been marked as depreciated.
1750 2011-05-24 Ben Konrath <ben@bagu.org>
1752 Add comment to ListActivity.goTo() method.
1754 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1756 2011-05-24 Ben Konrath <ben@bagu.org>
1758 Remove FIXME in convertGdkColorToHtmlColour()
1760 The Gdk::Color value returned by libglom is 16-bits per channel on both
1761 64 and 32-bit platforms.
1763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1765 2011-05-19 Ben Konrath <ben@bagu.org>
1767 Improve performance of initial ListView load.
1769 I removed a round trip to the server for getting the default table name
1770 and then requesting information about that table. This also removes a potential
1771 problem with the table change handler not being setup in time to receive the
1772 table change event from the ListActivity.
1774 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1775 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1776 getDefaultLayoutListTable() method. Improve comments.
1777 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1778 getDefaultLayoutListTable() method instead of firing a table change
1779 event to get the table to load.
1780 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1781 implementation of getDefaultLayoutListTable() method.
1782 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1785 2011-05-19 Ben Konrath <ben@bagu.org>
1787 Override toDebugString() in TableChangeEvent.
1789 This is useful to have for debugging.
1791 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1793 2011-05-19 Ben Konrath <ben@bagu.org>
1795 Add a "Back to List" link when at the DetailsPlace.
1797 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1798 Populate the CellTable based on the selected table of the ListBox if
1799 it's set otherwise use the default table. This allows the "Back to
1801 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1802 Remove Place from constructors. Add a setPlace() method. Add
1803 goToPlace() method. Set class as presenter for TableSelectionView.
1804 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1805 Use the same TableSelectionActivity when switching between the List and
1807 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1808 Subclass the new HasSelectableTablePlace. This removes some duplicate
1810 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1811 New class to represent Places that display the TableSelectionView.
1812 * src/main/java/org/glom/web/client/place/ListPlace.java:
1813 Subclass the new HasSelectableTablePlace. This removes some duplicate
1815 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1816 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1817 Add Presenter interface. Add setBackLinkVisible() method. Add
1818 setBackLink() method.
1820 2011-05-18 Ben Konrath <ben@bagu.org>
1822 Enable the "Details" buttons.
1824 Right now only an empty details view is displayed.
1826 * src/main/java/org/glom/web/client/ClientFactory.java:
1827 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1828 Add DetailsView to ClientFactory.
1829 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1830 A basic activity for the details view.
1831 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1832 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1834 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1835 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1837 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1838 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1839 unnecessary super() in constructor.
1840 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1841 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1842 really shouldn't create a new TableSelectionActivity for both the ListPlace
1843 and the DetailsPlace so this should be considered a temporary solution.
1844 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1845 New file. Represents a URL for the details view.
1846 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1847 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1848 A basic details view interface and implementation.
1849 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1850 Enable the "Details" buttons.
1852 2011-05-12 Ben Konrath <ben@bagu.org>
1854 Use a LayoutPanel with multiple display areas for main layout.
1856 This is mostly a refactor in that there are no changes from the user
1857 point of view. These changes are required so that we can swap out the list view
1858 with the details view when the user clicks the "Details" button.
1860 * src/main/java/org/glom/web/client/ClientFactory.java:
1861 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1862 OnlineGlomView. Add TableSelectionView, ListView and
1863 AuthenticationPopup.
1864 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1865 for main layout. Add display regions for main activities. Add
1866 activity manager for for main activities.
1867 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1868 file from parts of the deleted OnlineGlomActivity.
1869 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1870 New file from parts of the deleted OnlineGlomActivity.
1871 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1872 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1873 New files for app wide table change event.
1874 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1875 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1876 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1877 Activity mappers for the main activities replace the deleted app-wide
1879 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1880 Fix a spelling error in he comment.
1881 * src/main/java/org/glom/web/client/ui/ListView.java:
1882 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1883 Renamed from LayoutListView and modified for MVP. This still not a
1884 proper dumb view as prescribed by the MVP pattern but it works for now.
1885 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1886 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1887 New widget stripped out of the deleted OnlineGlomView.
1888 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1889 Remove hack that is fixed by this patch.
1891 2011-05-06 Ben Konrath <ben@bagu.org>
1893 Rename OnlineGlomPlace to ListPlace.
1895 The only change besides the rename is that url will now display #list
1896 instead of #Document.
1898 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1899 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1900 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1901 * src/main/java/org/glom/web/client/place/ListPlace.java:
1902 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1904 2011-05-06 Ben Konrath <ben@bagu.org>
1906 Use Presenter for app navigation.
1908 This is the proper way to deal with Place (URL) changes with the MVP
1911 * src/main/java/org/glom/web/client/ClientFactory.java:
1912 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1913 PlaceHistoryMapper and PlaceHistoryHandler.
1914 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1915 PlaceHistoryMapper and PlaceHistoryHandler.
1916 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1917 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1918 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1919 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1920 Add Presenter interface and setPresenter methods. Rename addHyperLink
1921 to addDocumentLink taking only the document title as a parameter.
1923 2011-04-14 Ben Konrath <ben@bagu.org>
1925 Prompt for db username/password if they haven't been set.
1927 This is implemented with a popup widget that is contained within the
1928 OnlineGlomView and managed by the OnlineGlomActivity.
1930 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1931 methods for checking and setting the database username and password.
1932 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1933 new methods for checking and setting the database username and
1935 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1936 Display authentication popup if the JDBC connection to the database
1937 has not been authenticated.
1938 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1940 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1941 for dealing with the authentication popup.
1942 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1943 Implement the methods for dealing with the authentication popup.
1944 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1945 try to executed queries if the database connection hasn't been
1946 authenticated. Implement methods for checking and setting the
1947 database username and password.
1949 2011-04-12 Ben Konrath <ben@bagu.org>
1951 Make log messages a little clearer.
1953 Add a dash betweeen the document title and the table name.
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1957 2011-04-12 Ben Konrath <ben@bagu.org>
1959 Protect against NPEs when cleaning up database resources.
1961 While this isn't strictly necessary because the exception is caught,
1962 not protecting against the NPEs makes it harder to find the real error
1965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1967 2011-04-12 Ben Konrath <ben@bagu.org>
1969 Move configuration of the servlet to the constructor.
1971 The servlet will be initialized even if the database authentication
1972 information is not set or correct. I still need to add the UI for prompting
1973 the user for the authentication information when it's required.
1975 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1976 javadocs for getDocumentTitles() method.
1977 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1978 Set error message when RPC fails.
1979 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1980 glom files directory from the configuration file. Try to set the
1981 database authentication information for the specific document if it's
1982 set and works otherwise try to use the global authentication
1983 information set for the directory.
1984 * src/main/resources/onlineglom.properties: Moved from
1985 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1986 Added detailed comments for the new keys.
1988 2011-04-11 Ben Konrath <ben@bagu.org>
1990 Remove unnecessary @Override in DocumentSelectionViewImpl.
1992 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1994 2011-04-11 Ben Konrath <ben@bagu.org>
1996 Remove center alignment in DocumentSelectionView.
1998 The title element is still centred but the document titles and bottom
1999 sentence are both left-aligned.
2001 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2003 2011-04-11 Ben Konrath <ben@bagu.org>
2005 Change 'Demo' naming convention to 'Document'.
2007 This is just a rename refactor with no functional changes to the code.
2009 * src/main/java/org/glom/web/client/ClientFactory.java:
2010 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2011 * src/main/java/org/glom/web/client/OnlineGlom.java:
2012 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2013 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2014 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2015 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2016 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2017 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2018 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2019 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2020 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2021 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2023 2011-04-08 Ben Konrath <ben@bagu.org>
2025 Remove FIXME from safeLongToInt() method.
2027 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2030 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2032 2011-04-08 Ben Konrath <ben@bagu.org>
2034 Display an error if no glom documents are found in the specified directory.
2036 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2037 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2038 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2039 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2041 2011-04-08 Ben Konrath <ben@bagu.org>
2043 Add copyright header to one more file ... oops.
2045 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2047 2011-04-08 Ben Konrath <ben@bagu.org>
2049 Add copyright header to files without it.
2051 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2052 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2053 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2054 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2055 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2056 * src/main/java/org/glom/web/shared/GlomField.java:
2058 2011-04-08 Ben Konrath <ben@bagu.org>
2060 Add support for accessing multiple glom documents in the servlet.
2062 This completes the demo selection functionality.
2064 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2065 document title to methods.
2066 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2067 document title to methods.
2068 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2069 Set browser window title when the activity starts. Correct name of
2070 document title variable.
2071 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2072 Set browser window title when the activity starts. Set the table
2073 selector change handler after table selector has been set. Clear the
2074 OnlineGlomView when the activity has been stopped.
2075 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2076 document title as the place token. Use "#Document:" instead of
2077 "#OnlineGlomPlace:" in the URL.
2078 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2079 Change heading to "Online Glom"
2080 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2081 document title in RPC methods.
2082 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2083 setDocumentTitle() method. Add clear() method.
2084 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2085 setDocumentTitle() method. Implement clear() method which removes the
2086 change handler on the ListBox, clears the ListBox and clears the
2088 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2089 Implement methods with document title. Keep track for the configured
2090 glom documents and their corresponding JDBC configurations in a hash
2091 table. This information is retrieved using the document title as the
2092 key in the hash table.
2093 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2094 document title field as it's no longer needed.
2096 2011-04-08 Ben Konrath <ben@bagu.org>
2098 Update the Eclipse JDT configuration.
2100 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2101 methods. Automatically add the copyright header to new files.
2103 2011-04-05 Ben Konrath <ben@bagu.org>
2105 Add new page for demo selection.
2107 This patch adds all the components required to view and start an
2108 OnlineGlom demo by clicking on the desired hyperlink. The user is
2109 able to return to the demo selection page with the browser's back
2110 button. I still need to modify the servlet to work with multiple
2111 documents so all demo links will load the file defined in the
2112 OnlineGlom.properties.
2114 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2115 This is only useful during development so we don't need to save it.
2116 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2117 get a reference to the DemoSelectionView.
2118 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2119 method to get a reference to the DemoSelectionView.
2120 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2121 default view to DemoSelectionView.
2122 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2123 to get glom document titles for glom files in a hard-coded directory.
2124 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2125 method to get glom document titles for glom files in a hard-coded
2127 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2128 Presenter for DemoSelectionView.
2129 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2130 for DemoSelectionView.
2131 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2132 Update for DemoSelectionView.
2133 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2134 Basic 'Place' implementation for the DemoSelectionView.
2135 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2136 The interface for the DemoSelectionView.
2137 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2138 The implementation of the DemoSelectionView.
2139 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2140 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2141 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2142 implementation of method to get glom document titles for glom files
2143 in a hard-coded directory.
2144 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2145 on longer being used.
2146 * src/main/webapp/glom.png: Glom logo.
2148 2011-04-05 Ben Konrath <ben@bagu.org>
2150 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2152 This is the forth and final commit of a refactor that will allow
2153 OnlineGlom to be used with multiple documents.
2155 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2156 Move RPC code from OnlineGlomViewImpl to this class.
2157 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2159 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2160 RPC code to the presenter class (the P in MVP).
2162 2011-04-04 Ben Konrath <ben@bagu.org>
2164 Start moving the existing OnlineGlom code to MVP.
2166 This work is based on the GWT MVP framework that is documented here:
2168 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2170 This is the third commit of a refactor that will allow OnlineGlom to
2171 be used with multiple documents.
2173 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2174 Interface for client factory which is used to get instances of various
2175 classes throughout the app.
2176 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2177 Implementation of client factory.
2178 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2179 initialize the MVP framework.
2180 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2181 New file. Activity manager for the main container widget. This is the
2183 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2184 Maps place (URL) to its corresponding activity.
2185 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2186 New file. This is just a place holder for a generated file.
2187 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2188 New file. Represents the URL for the main Online Glom app.
2189 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2190 for changes in LayoutListViewImpl.
2191 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2192 interface for View. Move code to OnlineGlomViewImpl class.
2193 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2194 file. Implementation of OnlineGlomView.
2195 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2196 Place resources. Use ClientFactoryImpl by default.
2198 2011-04-04 Ben Konrath <ben@bagu.org>
2200 Move View classes to their own package.
2202 This is the second commit of a refactor that will allow OnlineGlom to
2203 be used with multiple documents.
2205 * src/main/java/org/glom/web/client/OnlineGlom.java:
2206 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2207 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2209 2011-04-02 Ben Konrath <ben@bagu.org>
2211 Move UI code from the main module to its own class.
2213 This is the first commit of a refactor that will allow OnlineGlom to be
2214 used with multiple documents.
2216 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2217 references to OnlineGlom to OnlineGlomView.
2218 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2219 OnlineGlomView and instantiate it here.
2220 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2221 represents the main OnlineGlomView with one document.
2223 2011-04-01 Ben Konrath <ben@bagu.org>
2225 Fix formatting of gwt.xml and add DTD.
2227 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2229 2011-03-30 Ben Konrath <ben@bagu.org>
2231 Propperly convert gdkColor string to html colour string.
2233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2235 2011-03-28 Ben Konrath <ben@bagu.org>
2237 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2239 This implementation matches
2240 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2241 readable and is not tied to Swig.
2243 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2245 2011-03-28 Ben Konrath <ben@bagu.org>
2247 Use read-only checkboxes for boolean field types.
2249 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2250 in the CellTable based on the field type. It currently only
2251 distinguishes between boolean and text columns but I'll need to add
2252 support for more types.
2253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2254 column type in the ColumnInfo object. Add method to convert between the
2255 glom field type enum in ColumnInfo and the glom field type in libglom.
2256 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2258 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2259 getting and setting booleans.
2261 2011-03-25 Ben Konrath <ben@bagu.org>
2263 Don't get the Date twice from the ResultSet.
2265 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2267 2011-03-25 Ben Konrath <ben@bagu.org>
2269 Cleanup code in the servlet.
2271 * TODO: Remove item about row count. Add item about testing row count
2272 query with large number of rows.
2273 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2274 spelling mistakes, change method parameter to be consistent with
2277 2011-03-25 Ben Konrath <ben@bagu.org>
2279 Add server side logging with the gwt-log library.
2281 * .gitignore: Ignore the log file we're now producing.
2282 * TODO: Add a couple TODO item for logging.
2283 * pom.xml: Add gwt-log and log4j as a dependency.
2284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2285 logging of errors, warnings and some important info.
2286 * src/main/resources/log4j.properties: New file to configure log4j.
2288 2011-03-24 Ben Konrath <ben@bagu.org>
2290 Add a disable button for the Details view.
2292 * src/main/java/org/glom/web/client/LayoutListView.java:
2294 2011-03-22 Ben Konrath <ben@bagu.org>
2296 Use a count query to get the number of rows for the list view pager.
2298 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2300 2011-03-22 Ben Konrath <ben@bagu.org>
2302 Add more TODO information about CellTable pager positioning.
2306 2011-03-19 Ben Konrath <ben@bagu.org>
2308 Add TODO item about CellTable pager positioning.
2312 2011-03-18 Ben Konrath <ben@bagu.org>
2314 Remove unneeded GlomFieldColumn class.
2316 This is just a small code cleanup.
2318 * src/main/java/org/glom/web/client/LayoutListView.java:
2320 2011-03-18 Ben Konrath <ben@bagu.org>
2322 Use cursor mode in the query that gets data for the list view.
2324 I still need to fix the potential memory problem when getting the row
2325 count for the list view.
2327 * TODO: Add note about testing memory usage with large data sets. Add
2328 item about fixing row counting with large data sets.
2329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2330 PostgreSQL JDBC driver into cursor mode when getting data for the
2333 2011-03-15 Ben Konrath <ben@bagu.org>
2335 Remove the GWT Container from the Eclipse build classpath.
2337 The GWT dependencies are set by Maven so this isn't needed.
2341 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2343 Added some earlier mockups to git, but not to the tarball dist.
2345 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2346 Openismus. These hopefully show how we might structure the HTML so that
2347 it can be styled easily with CSS. However, we probably need to adapt them
2348 for the CSS structure that GWT dictates for common widgets.
2350 2011-03-14 Ben Konrath <ben@bagu.org>
2352 Locate OnlineGlom.properties using the ServletContext.
2354 This is required to be able to locate the file in the deployed servlet.
2356 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2357 Configure the database and glom document in in a helper method so
2358 that the ServletContext can be used to locate OnlineGlom.properties.
2359 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2360 src/main/webapp. This is the proper location for .properites files.
2362 2011-03-12 Ben Konrath <ben@bagu.org>
2364 Add note to README about why we're compiling down to obfuscated JavaScript.
2368 2011-03-11 Ben Konrath <ben@bagu.org>
2370 Use properties file to configure servlet.
2372 This allows people to change the glom file path, db username and db
2373 password without recompiling the code.
2375 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2376 * src/main/webapp/OnlineGlom.properties:
2378 2011-03-11 Ben Konrath <ben@bagu.org>
2380 Use table fields in layout list view if the layout list is not defined.
2382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2383 Manually create a LayoutFieldVector for the query builder using the
2384 table fields when a layout list is not defined in the glom file.
2386 2011-03-11 Ben Konrath <ben@bagu.org>
2388 Only show FIXME string for images when there's an image.
2390 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2391 in this change are some small code cleanups.
2393 2011-03-11 Ben Konrath <ben@bagu.org>
2395 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2397 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2399 2011-03-11 Ben Konrath <ben@bagu.org>
2401 Correctly set the index of the default table.
2403 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2404 Correctly set the index of the default table. Add commented out example
2407 2011-03-10 Ben Konrath <ben@bagu.org>
2409 Add comment to pom.xml about the previous change.
2411 * pom.xml: Add comment about the deployment issue so that it's obvious
2412 why java-libglom is set to the provided scope.
2414 2011-03-10 Ben Konrath <ben@bagu.org>
2416 Change java-libglom dependency from compile to provided in pom.xml.
2418 Since java-libglom uses jni it can only be loaded once and therefore
2419 must be placed in $CATALINA_HOME/lib and not included in each war.
2420 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2421 More information about this issue can be found in the Tomcat 6 release
2422 notes in the "JNI Based Applications" section:
2424 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2426 * README: Remove note about this issue. Deployment info should really
2427 be on the wiki anyway so I'll add it right now.
2428 * pom.xml: Change java-libglom dependency from compile to provided so
2429 that it's copied in to the packaged war.
2431 2011-03-09 Ben Konrath <ben@bagu.org>
2433 Change to using a neutral locale for currency, date and time formatting.
2435 This solves the problem of currency values being represented without a
2436 space between the currency code and the number (e.g. "EUR5.89" is now
2437 represented as "EUR 5.89"). More work is required when we implement
2438 a locale preference setting.
2440 * TODO: Add note about currency formatting issues with different
2442 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2443 to using the neutral ROOT locale.
2445 2011-03-09 Ben Konrath <ben@bagu.org>
2447 Add support for currency codes that are not ISO 4217 codes.
2449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2450 the currency code defined in the glom file when it's not 3 characters
2451 long or when Java doesn't recognize the string as an ISO 4217 code.
2453 2011-03-08 Ben Konrath <ben@bagu.org>
2455 Remove test classes, launch configurations and configuration.
2457 The test stuff was getting in the way when creating the war. To make
2458 the war file you can now do 'mvn clean package'. The packaged war file
2459 will be in the target directory.
2461 * .classpath: Remove unused classpathentry for tests and i18n.
2462 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2463 property. Don't run test or i18n goals when packaging the war.
2464 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2469 * OnlineGlomTest-dev.launch:
2470 * OnlineGlomTest-prod.launch:
2471 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2472 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2474 2011-03-07 Ben Konrath <ben@bagu.org>
2476 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2478 These fixes allow me to use 'mvn deploy' to create the war file.
2480 * .classpath: This generated config has been updated by Eclipse. This
2481 change was probably triggered by me updating from Eclipse 3.6.1 to
2483 * .gitignore: Add entry to ignore the directory
2484 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2485 * .project: The generated config has been updated by Eclipse. This
2486 change was probably triggered by me updating from Eclipse 3.6.1 to
2488 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2489 so that Eclipse doesn't complain
2490 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2491 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2492 'tests' directory to 'client' directory. This is the new
2493 gwt-maven-plugin convension.
2494 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2495 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2497 2011-03-07 Ben Konrath <ben@bagu.org>
2499 Add support for horizontal alignment in the LayoutList columns.
2501 * TODO: Remove item about horizontal alignment. Add item about
2502 improvements to ColumnInfo.
2503 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2504 alignment on the columns. Use ColumnInfo RPC object get the column
2505 title and horizontal alignment.
2506 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2507 LayoutListView creation with ColumnInfo RPC object.
2508 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2509 a ColumnInfo object for every LayoutList columnn. Convert the
2510 FieldFormatting.HorizontalAlignment to the correct
2511 ColumnnInfo.HorizontatlAlignment with the new
2512 getColumnInfoHorizontalAlignment helper method.
2513 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2514 to encapsulate column information like alignment and title. This
2515 could be used to set the colour instead of on a per cell field basis.
2516 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2517 column title storage and retrieval with ColumnInfo.
2519 2011-03-04 Ben Konrath <ben@bagu.org>
2521 Add support for column sorting.
2523 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2524 AsynDataProvider to be an anonymous inner class. Use new
2525 getSortedTableData RPC method when column sort is requested. Set all
2526 columns sortable and add an AsyncHandler to activate sorting in the
2528 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2529 method getSortedTableData(). Cleanup other method signatures.
2530 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2531 new method getSortedTableData(). Cleanup other method signatures.
2532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2533 Implement getSortedTableData() and getTableData() methods by using a
2534 private helper method with the appropriate parameters filled in. Use
2535 user supplied sort clause when supplied, otherwise fall back to
2536 sorting by the primary key. Move destroy() method to be underneath
2537 constructor for readability. Cleanup comments.
2539 2011-03-03 Ben Konrath <ben@bagu.org>
2541 Add support for colour text and colour backgrounds to the layout list cells.
2543 Only the cell backgrounds are coloured which leaves a gap between the
2544 cells that isn't coloured. I need to figure out a way to set
2545 'style=background-colour:' on the whole column rather than just the
2548 * TODO: Add a note about colouring the background of the whole column.
2549 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2550 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2551 render the coloured text and backgrounds. Use GlomField[] for the row type.
2552 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2554 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2555 GlomField[] for the row type.
2556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2557 GlomField[] for the row type. Set the text, text colour and background
2558 colour in the GlomField objects as specified in the glom document. Add
2559 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2560 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2561 the glom field text, foreground colour and background colour.
2563 2011-03-02 Ben Konrath <ben@bagu.org>
2565 Don't display hidden tables in the combo box.
2567 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2569 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2570 code to ignore hidden tables using ArrayLists for the table names and
2572 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2573 tableNames to use ArrayLists instead of String[]. Update getter and setter
2576 2011-03-01 Ben Konrath <ben@bagu.org>
2578 Add support for Date and Time number types.
2580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2581 Implement formatting for Date and Time values. Change the default glom
2582 file to small business example.
2584 2011-03-01 Ben Konrath <ben@bagu.org>
2586 Add support for formatting glom types as specified in the glom file.
2588 Formatting isn't finished yet - I still need to add support for Date
2591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2592 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2593 checks for null values in JDBC cleanup code and catch all exceptions
2594 instead of just SQLExceptions.
2595 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2598 2011-03-01 Ben Konrath <ben@bagu.org>
2600 Use GWT 2.2.0 instead of 2.1.1.
2602 * pom.xml: Change GWT version numbers.
2604 2011-03-01 Ben Konrath <ben@bagu.org>
2606 A few small code cleanups.
2608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2610 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2611 unnecessary object creation in constructor.
2612 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2613 unnecessary object creation in constructor.
2615 2011-02-28 Ben Konrath <ben@bagu.org>
2617 Add file for TODO list.
2621 2011-02-18 Ben Konrath <ben@bagu.org>
2623 Enable the CellTable Pager when more than 20 rows need to be viewed.
2625 The Pager will automatically become active when the results are larger
2626 than the CellTable size which is currently set to 20 lines.
2628 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2629 name on debug statment in RPC call in LayoutListDataProvider, add
2630 numRows parameter to LayoutListView constructor, propperly set rowCount
2632 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2633 name on debug statment in RPC call, use LayoutListTable object in RPC
2634 calls, pass rowCount to LayoutListView.
2635 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2636 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2638 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2639 interface for changes in OnlineGlomService.
2640 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2641 getLayoutListHeaders() to getLayoutListTable() and return
2642 LayoutListTable. Using this object allows me to pass other information
2643 about the LayoutList like the expected number of rows in the result set.
2644 The Connection object from the connection pool is now propperly closed.
2645 Only the requested number of lines are returned to the client in
2647 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2648 GlomTable and add columnTitles and numRows.
2650 2011-02-18 Ben Konrath <ben@bagu.org>
2652 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2654 This is a small performance boost. I'll use GlomTable to get the required
2655 layoutlist information.
2657 * src/main/java/org/glom/web/client/OnlineGlom.java:
2658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2659 * src/main/java/org/glom/web/shared/GlomDocument.java:
2661 2011-02-18 Ben Konrath <ben@bagu.org>
2663 Add option to turn off formatting in JDT formatter preferences.
2665 * .settings/org.eclipse.jdt.core.prefs:
2667 2011-02-18 Ben Konrath <ben@bagu.org>
2669 Rename LayoutList to LayoutListView.
2671 I'm working towards setting things up to easily use MVP when the time
2674 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2676 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2679 2011-02-17 Ben Konrath <ben@bagu.org>
2681 Move LayoutListDataProvider class into LayoutList.java.
2683 * src/main/java/org/glom/web/client/LayoutList.java:
2685 2011-02-17 Ben Konrath <ben@bagu.org>
2687 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2689 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2691 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2692 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2693 from LibGlomServer.java.
2694 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2695 Rename from LibGlomServiceAsync.java.
2696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2697 Rename from LibGlomServiceImpl.java.
2698 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2700 2011-02-17 Ben Konrath <ben@bagu.org>
2702 Update JDT settings.
2704 * .settings/org.eclipse.jdt.core.prefs:
2706 2011-02-17 Ben Konrath <ben@bagu.org>
2708 Move GWT-RPC objects to shared package (where they should be).
2710 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2711 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2712 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2713 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2714 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2715 org.glom.web.shared package.
2716 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2717 org.glom.web.shared package.
2718 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2719 directory in compilation to javascript.
2721 2011-02-16 Ben Konrath <ben@bagu.org>
2723 Add sort clause to the sql query that grabs table information.
2725 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2726 if one of the columns is a primary key.
2728 2011-02-16 Ben Konrath <ben@bagu.org>
2730 Disable generateAsync feature of gwt-maven.
2732 The generated interface does not correctly match the methods in LibGlomService
2733 and the generated singleton Util inner-class doesn't respect the servlet
2736 * pom.xml: Turn off generateAsync feature.
2737 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2738 with singleton Util inner-class.
2740 2011-02-14 Ben Konrath <ben@bagu.org>
2742 Add LGPL v3 licence notices.
2744 Followed directions listed here:
2745 http://www.gnu.org/licenses/gpl-howto.html
2747 * COPYING: This file is a copy of the GPL v3.
2748 * COPYING.LESSER: This file is a copy of the LGPL v3.
2749 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2751 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2753 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2755 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2757 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2759 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2761 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2764 2011-02-14 Ben Konrath <ben@bagu.org>
2766 Use ArrayList instead of Array in GWT-RPC calls.
2768 Apparently this gives a slight performance boost to the compiled
2771 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2773 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2776 2011-02-14 Ben Konrath <ben@bagu.org>
2778 Access data from a postgres db rather than the example glom file.
2780 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2781 compile down to obfuscated javascript.
2782 * pom.xml: Add c3p0 and postgres JDBC libraries.
2783 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2784 using a postgres db accessed through the c3p0 connection pooling library.
2786 2011-02-14 Ben Konrath <ben@bagu.org>
2788 Update Java formatter settings.
2790 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2792 2011-02-02 Ben Konrath <ben@bagu.org>
2794 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2796 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2798 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2799 the compiled webapp directory that Eclipse uses as we're using Maven now.
2800 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2801 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2803 * pom.xml: Format file, change target Java version to 1.6.
2805 2011-02-02 Ben Konrath <ben@bagu.org>
2807 Add information about a deployment related issue.
2809 * README: Add Notes section with the problem outlined.
2811 2011-02-02 Ben Konrath <ben@bagu.org>
2813 Call Glom.libglom_deinit() when the servlet is shutdown.
2815 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2816 Glom.libglom_deinit() to destroy() method.
2818 2011-01-28 Ben Konrath <ben@bagu.org>
2820 Use generated Util class to get the RPC Async interface.
2822 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2824 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2825 getInstance() method to get a reference to the RPC Async interface.
2826 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2827 getInstance() method to get a reference to the RPC Async interface, remove
2828 the now unused getLibGlomServiceProxy() method.
2830 2011-01-27 Ben Konrath <ben@bagu.org>
2832 Cleanup ChangeLog entry from previous commit.
2834 * ChangeLog: Group logical changes together and add comments.
2836 2011-01-25 Ben Konrath <ben@bagu.org>
2838 Convert to gwt-maven project.
2840 * .gitignore: Update for new project structure.
2841 * README: New file with a link to the online documentation.
2842 * pom.xml: The generated maven configuration file with some tweaks.
2844 Add / update Eclipse settings. These files are a merge of the files that
2845 were generated with the gwt-maven plugin and the files we were previously
2849 * .settings/.jsdtscope:
2850 * .settings/com.google.gdt.eclipse.core.prefs:
2851 * .settings/com.google.gwt.eclipse.core.prefs:
2852 * .settings/org.eclipse.jdt.core.prefs:
2853 * .settings/org.eclipse.wst.common.component:
2854 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2855 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2856 * .settings/org.maven.ide.eclipse.prefs:
2857 * OnlineGlomTest-dev.launch:
2858 * OnlineGlomTest-prod.launch:
2860 Java source files moved from the 'src' directory to the directory structure
2862 * src/main/java/org/glom/web/client/GlomDocument.java:
2863 * src/main/java/org/glom/web/client/GlomTable.java:
2864 * src/main/java/org/glom/web/client/LayoutList.java:
2865 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2866 * src/main/java/org/glom/web/client/LibGlomService.java:
2867 * src/main/java/org/glom/web/client/OnlineGlom.java:
2868 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2870 Non-functional property file used for translations. I included this as
2871 reminder that it's something I need to sort out.
2872 * src/main/resources/org/glom/web/client/Messages.properties:
2874 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2875 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2877 The servlet configuration files moved from the 'war' directory.
2878 * src/main/webapp/OnlineGlom.css:
2879 * src/main/webapp/OnlineGlom.html:
2880 * src/main/webapp/WEB-INF/web.xml:
2882 Generated test files with most of the code commented out. I included these
2883 so that it's easy to add tests when we're ready for them.
2884 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2885 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2887 2011-01-25 Ben Konrath <ben@bagu.org>
2889 Remove unused println.
2891 * src/org/glom/web/server/LibGlomServiceImpl.java:
2893 2011-01-25 Ben Konrath <ben@bagu.org>
2895 Add project specific JDT settings.
2897 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2898 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2900 2011-01-25 Ben Konrath <ben@bagu.org>
2902 Populate celltable with example data.
2904 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2905 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2906 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2907 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2908 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2909 asynchronously gets the example data.
2910 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2911 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2912 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2913 curently selected table to be retrieved by other widgets.
2914 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2915 implement getTableData() in a hacky way. This method needs to be updated
2916 to grab information from the database when database creating is
2919 2011-01-20 Ben Konrath <ben@bagu.org>
2921 Set table headers when table dropBox changes.
2923 * src/org/glom/web/client/GlomDocument.java: Correct some method
2925 * src/org/glom/web/client/LibGlomService.java: Add method
2926 to get list layout field names.
2927 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2928 to get list layout field names.
2929 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2930 widget for list layout table.
2931 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2932 the table drop box and add new updateTable() method to asynchronously
2933 get the layout list field names for the currently selected table.
2934 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2935 implementation of getLayoutListHeaders() method.
2936 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2938 2011-01-18 Ben Konrath <ben@bagu.org>
2940 Make a listBox with table titles instead of the flexTable demo.
2942 This is the start of something more useful.
2944 * .classpath: Exclude a bunch of packages from the JVM that are
2945 getting in the way of the Eclipse content assist.
2946 * src/org/glom/web/client/GlomDocument.java:
2947 * src/org/glom/web/client/GlomTable.java:
2948 * src/org/glom/web/client/LibGlomService.java:
2949 * src/org/glom/web/client/LibGlomServiceAsync.java:
2950 * src/org/glom/web/client/OnlineGlom.java:
2951 * src/org/glom/web/server/LibGlomServiceImpl.java:
2952 * war/OnlineGlom.html:
2953 * war/WEB-INF/web.xml:
2955 211-01-13 Ben Konrath <ben@bagu.org>
2957 Update to new java-libglom API.
2959 * .gitignore: Ignore OnlineGlom.war.
2960 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2962 2010-12-20 Ben Konrath <ben@bagu.org>
2964 Add some basic style to the table listing.
2966 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2967 header, print useful error message on async callback failure.
2968 * war/OnlineGlom.css: Add style for table header, remove defaults
2969 provided by the Eclipse project wizard.
2971 2010-12-20 Ben Konrath <ben@bagu.org>
2973 Load example file from installed glom dir.
2975 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2976 provided by java-libglom to find the example file.
2978 2010-12-20 Ben Konrath <ben@bagu.org>
2980 Update Eclipse settings.
2983 * .settings/com.google.gdt.eclipse.core.prefs:
2984 * .settings/com.google.gwt.eclipse.core.prefs:
2986 2010-12-17 Ben Konrath <ben@bagu.org>
2990 * .classpath: New file.
2991 * .gitignore: New file.
2992 * .project: New file.
2993 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2994 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2995 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2996 * src/org/glom/web/client/GlomTable.java: New file.
2997 * src/org/glom/web/client/OnlineGlom.java: New file.
2998 * src/org/glom/web/client/TableNameService.java: New file.
2999 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3000 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3001 * war/OnlineGlom.css: New file.
3002 * war/OnlineGlom.html: New file.
3003 * war/WEB-INF/web.xml: New file.
3004 * war/images/glom.png: New file.