1 2011-11-29 Ben Konrath <ben@bagu.org>
3 Align details field labels and data with the Open buttons.
5 * src/main/webapp/style.css:
7 2011-11-29 Ben Konrath <ben@bagu.org>
9 Remove unnecessary <div> in the Notebook widget.
11 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
12 method to get container FlowPanel (<div>).
13 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
14 initWidget() method directly on the TabLayoutPanel widget instead of
15 Group's container widget.
17 2011-11-29 Ben Konrath <ben@bagu.org>
19 Don't add group titles for Portals in Notebooks.
21 This reverts the previous patch and fixes a bug I introduced with
22 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
24 * src/main/java/org/glom/web/client/ui/details/Group.java:
25 * src/main/java/org/glom/web/client/ui/details/Portal.java:
27 2011-11-28 Ben Konrath <ben@bagu.org>
29 Remove unused boolean argument in Portal constructor.
33 * src/main/java/org/glom/web/client/ui/details/Group.java:
34 * src/main/java/org/glom/web/client/ui/details/Portal.java:
36 2011-11-28 Ben Konrath <ben@bagu.org>
38 Remove hack for glom 1.18 style glom files.
40 * src/main/java/org/glom/web/client/ui/details/Group.java:
41 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
42 * src/main/java/org/glom/web/client/ui/details/Portal.java:
44 2011-11-28 Ben Konrath <ben@bagu.org>
46 Use Gda Value version of primary key to log result too large error.
48 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
50 2011-11-28 Ben Konrath <ben@bagu.org>
52 Don't use TypedDataItem.getText() for Unknown types from the URL.
54 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
55 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
57 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
58 String field and getUnknown() method.
60 2011-11-28 Ben Konrath <ben@bagu.org>
62 Log an error message when the java-libglom .so is not present.
64 The error message was being set in the exception but not logged.
66 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
68 2011-11-28 Ben Konrath <ben@bagu.org>
70 Ignore LayoutItem_CalendarPortals.
72 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
73 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
75 2011-11-28 Ben Konrath <ben@bagu.org>
77 Extract method for creating the LayoutItemPortal DTO.
79 Just breaking the code up into smaller chunks.
81 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
83 2011-11-28 Ben Konrath <ben@bagu.org>
87 This should have been added with the refactor. Oops!
89 * src/main/java/org/glom/web/shared/TypedDataItem.java:
91 2011-11-28 Ben Konrath <ben@bagu.org>
93 Create primary key value from URL string using type from Glom document.
95 See this bug, comments 19 - 25:
97 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
99 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
100 create a TypeDataItem for the primary key here when loading from a
101 URL. Show the same string for the primary key value as was received
102 from the URL string (when loading from a URL).
103 * src/main/java/org/glom/web/server/Utils.java: Update method for
104 creating the Gda Value from the TypeDataItem to properly deal with
105 creating a Gda Value based on the Glom document type for the primary
106 key value string when loading from a URL.
107 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
108 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
109 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
110 Update for changed method name.
112 2011-11-27 Ben Konrath <ben@bagu.org>
114 Rename PrimaryKeyItem to TypedDataItem.
116 The name PrimaryKeyItem suggests what the class should be used for.
117 TypedDataItem is a neutral name that describes the class better.
119 This is a rename-only refactor.
121 * src/main/java/org/glom/web/client/OnlineGlomService.java:
122 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
123 * src/main/java/org/glom/web/client/Utils.java:
124 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
125 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
126 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
127 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
128 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
129 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
131 * src/main/java/org/glom/web/server/Utils.java:
132 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
133 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
134 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
135 * src/main/java/org/glom/web/shared/NavigationRecord.java:
137 2011-11-25 Ben Konrath <ben@bagu.org>
139 Improve Gda Value conversion from PrimaryKeyItem.
141 The value from the PrimaryKeyItem is only used if its type match the
142 type from the glom document.
144 * src/main/java/org/glom/web/server/Utils.java:
146 2011-11-25 Ben Konrath <ben@bagu.org>
148 Manually check if the java-liblgom .so is visible to the JVM.
150 It seems that Tomcat has problems when a static initializer throws an
151 exception. This check is done before the first method call into
152 java-libglom so that execution doesn't continue if the .so is not
155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
157 2011-11-25 Ben Konrath <ben@bagu.org>
159 Improve browser configuration error messages.
163 https://bugzilla.gnome.org/show_bug.cgi?id=662792
165 * src/main/java/org/glom/web/client/OnlineGlomService.java:
166 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
167 getConfigurationErrorMessage() method.
168 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
169 Get and display a specific configuration error message when no Glom
171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
172 Implement getConfigurationErrorMessage() method. Surround configuration
173 code in the init() method with a try/catch block. This allows the
174 errors to be caught while keeping the servlet available to retrieve the
175 configuration error message.
177 2011-11-25 Ben Konrath <ben@bagu.org>
179 Don't use Strings to hold primary key values.
181 The primary key values are now held in a new data object
182 (PrimaryKeyItem) that holds type information and the primary key value
183 using the correct type.
185 * src/main/java/org/glom/web/client/OnlineGlomService.java:
186 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
188 PrimaryKeyItem instead of String to hold the primary key value.
189 * src/main/java/org/glom/web/client/Utils.java: Remove
190 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
191 PrimaryKeyItem based on the GlomFieldType and the DataItem.
192 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
193 PrimaryKeyItem instead of String to hold the primary key value. Load
194 document selection page when the documentID has not been set correctly.
195 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
196 DetailsPlace -> URL and URL -> DetailsPlace conversion with
198 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
199 Return empty string for URL instead of "null".
200 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
201 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
202 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
203 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
204 PrimaryKeyItem instead of String to hold primary key values.
205 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
206 PrimaryKeyValue to a Gda Value.
207 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
208 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
209 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
210 Replace temporary database access code that uses the PrimaryKeyValue to
211 Gda Value conversion.
212 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
213 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
214 PrimaryKeyItem instead of String.
215 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
216 hold primary key values.
218 2011-11-24 Ben Konrath <ben@bagu.org>
220 Use newly added java-libglom API to create queries.
222 This isn't finished. I still need to stop using Strings for primary key
223 values in the client code.
225 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
226 libglom to use fake connections so that retrieving the query string will
228 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
229 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
230 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
231 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
232 Use the newly added libglom sql methods and classes to create the
233 query. Add temporary hack to convert primary value strings to Gda
236 2011-11-23 Ben Konrath <ben@bagu.org>
238 Don't explicitly set the height of Portals.
240 See comments 6 - 10 of this bug for details:
242 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
244 * src/main/java/org/glom/web/client/ui/details/Portal.java:
246 2011-11-23 Ben Konrath <ben@bagu.org>
248 Use an HTML table instead of CSS for the FlowTable layout.
250 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
251 GWT's FlexTable to implement the FlowTable.
252 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
254 2011-11-18 Ben Konrath <ben@bagu.org>
256 Add boolean example to HTML table mockup.
258 * mockups/details-view-html-tables-text-entries.html:
260 2011-11-17 Ben Konrath <ben@bagu.org>
262 Ensure the pager buttons are always visible for related lists.
264 To accomplish this, I've turned off text wrapping in the list view and
265 related list tables for both the header and data text. The related list
266 table now has a fixed layout so the it doesn't overflow its container.
267 This is required to ensure that the cell text is clipped when it
268 overflows the cell and an ellipsis is added to the right side of the
269 cell when text is clipped.
271 A fixed table layout for the related list table in the details view
272 seems what we want for the details view anyway, so the side-effect is
275 The ellipsis will only be displayed in Firefox >= 7.
279 https://bugzilla.gnome.org/show_bug.cgi?id=662930
281 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
282 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
283 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
285 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
286 Set the 'table-layout: fixed' CSS property to the related list table.
287 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
288 'white-space: nowrap;' CSS property on both the list view and the
291 2011-11-16 Ben Konrath <ben@bagu.org>
293 Rework the fix for empty notebook tab labels.
295 Setting the empty group titles with its name caused problems for the
296 details layout. Instead of using libglom's
297 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
298 to the client when the title is empty. This allows the Notebook to use
299 the name when the title is empty without affecting anything else.
301 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
302 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
304 2011-11-16 Ben Konrath <ben@bagu.org>
306 Set group titles with name when title is empty.
308 This fixes a problem with an empty notebook tab label in the Lesson
309 Planner document. The forth tab in the notebook should be "Internet":
311 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
313 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
314 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
317 2011-11-16 Ben Konrath <ben@bagu.org>
319 Remove whitespace from the configured username properties.
321 This assumes that usernames won't have whitespace at the beginning
322 or end. But I think this is a reasonable assumption.
324 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
325 String.trim() to remove the whitespace from the username properties.
327 2011-11-15 Ben Konrath <ben@bagu.org>
329 Add details view mockup with HTML tables and text entries.
331 This is from the attachment on this bug:
333 https://bugzilla.gnome.org/show_bug.cgi?id=663109
335 * mockups/details-view-html-tables-text-entries.html:
337 2011-11-15 Ben Konrath <ben@bagu.org>
339 Add space between the columns of the flow table.
343 https://bugzilla.gnome.org/show_bug.cgi?id=662918
345 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
346 space between columns in the flow table.
348 2011-11-15 Ben Konrath <ben@bagu.org>
350 Add backup files to the .gitignore.
352 * .gitignore: Ignore files that end with ~.
354 2011-11-09 Ben Konrath <ben@bagu.org>
356 Use latest release of gwt-log.
358 Gwt-log releases are now being submitted to the maven central
359 repository so manual installation of the jar is no longer required.
361 * pom.xml: Update version and groupId of gwt-log dependency.
363 2011-10-31 Ben Konrath <ben@bagu.org>
365 Don't use GWT numeric formatting to override the glom currency formatting.
367 Currencies are now displayed like they are in Glom. See this bug:
369 https://bugzilla.gnome.org/show_bug.cgi?id=646216
371 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
373 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
374 currency code to constructor and set it when the cell is rendered.
375 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
376 currency code to the constructor of the NumericCell.
378 2011-10-27 Ben Konrath <ben@bagu.org>
380 Require the latest release of java-libglom (1.17.4).
384 2011-10-26 Ben Konrath <ben@bagu.org>
386 Add style to Notebook that matches current theme.
388 It's not the best style in the world but it's better than the default.
390 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
391 padding at the bottom of the child widgets.
392 * src/main/webapp/style.css: Add style for the Notebook.
394 2011-10-26 Ben Konrath <ben@bagu.org>
396 Move servlet initialization code to overridden init method.
398 This is half of the solution to getting proper error messages
399 displayed when configuration errors occur. Here's the relevant bug:
401 https://bugzilla.gnome.org/show_bug.cgi?id=662792
403 The rest of the solution involves surrounding the init method with a
404 try/catch block and setting a global variable with the error /
405 exception. A new async method should be created to retrieve and display
406 the error message / exception.
408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
409 code from constructor to init method adding exceptions as needed.
411 2011-10-26 Ben Konrath <ben@bagu.org>
413 Add script to monitor and restart tomcat if required.
415 * utils/check-and-recover-tomcat.py: New file.
417 2011-10-26 Ben Konrath <ben@bagu.org>
419 Display the correct number of data items in the pager.
423 https://bugzilla.gnome.org/show_bug.cgi?id=661441
425 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
426 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
427 The implementation is the same for both tables: Keep track of the
428 number of non-empty rows and fire and RowCountChangeEvent after the data has
430 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
431 custom Pager class that subclasses SimplePager to handle displaying
432 the correct number when empty rows have been added.
434 2011-10-26 Ben Konrath <ben@bagu.org>
436 Correct error in previous commit.
438 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
439 eventBus parameter from listView.setCellTable().
441 2011-10-26 Ben Konrath <ben@bagu.org>
443 Fix error in TODO comment.
445 * src/main/java/org/glom/web/client/activity/ListActivity.java:
447 2011-10-24 Ben Konrath <ben@bagu.org>
449 Create Notebook widgets to the details view.
451 This isn't finished just yet - I still need to create a reasonable
452 style to match the current theme.
454 * src/main/java/org/glom/web/client/Utils.java: Add method for
455 calculating the height of a widget. This is used in the Notebook class.
456 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
457 new constructor method in Group.
458 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
459 method for creating child widget that can be used by subclasses
460 like Notebook. New constructor that allows disabling the group
461 titles - Notebooks don't set a group title for their child groups.
462 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
463 to make Notebooks using GWT's TabLayoutPanel.
464 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
465 constructor that allows disabling the group titles.
466 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
467 LayoutItemNotebook DTO.
468 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
469 DTO for Notebooks. It's just an empty class for now but we might need
470 it to transfer some specific information in the future.
472 2011-10-21 Ben Konrath <ben@bagu.org>
474 Add navigation buttons to related list tables.
476 * src/main/java/org/glom/web/client/OnlineGlomService.java:
477 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
478 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
479 method getSuitableRecordToViewDetails() for getting the table name
480 and primary key value for related list navigation buttons.
481 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
482 private cell renderer class to get the navigation information for
483 related list tables from the server. Extract the navigation
484 processing code from the details cell navigation and use it for the
485 related list navigation as well.
486 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
487 cell renderer class for the details open buttons. This was needed
488 because the related list navigation buttons and the list view
489 navigation buttons need to react differently when clicked.
490 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
491 the onEnterKeyDown() method because it's now overriden in the
492 subclasses that are specific to the related list tables and the list
494 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
495 the vertical size a little because the buttons add a bit of vertical
496 space to table. This is not a perfect solution because the vertical
497 size of with table fewer than 5 rows will be a little smaller.
498 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
499 changes in how navigation buttons are handled.
500 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
501 getSuitableRecordToViewDetails() using the new RelatedListNavigation
502 database access object.
503 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
504 to find the portal for a given relationship name from
505 RelatedListDBAccess. Add method to find a primary key field for a
507 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
508 Move code to find the portal for a given relationship name to
510 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
511 New file: database access object for getting the related list
512 navigation information (the table name and the primary key value).
513 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
514 DTO for transferring a table name to navigate to and a primary key
516 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
517 boolean and getter/setter to specifies if the related list should add
520 2011-10-24 Murray Cumming <murrayc@murrayc.com>
522 Use the master branch of java-libglom
524 * pom.xml: Depend on java-libglom 1.19 instead.
526 This is the master branch. See also the libglom-1-18 branch.
528 2011-10-11 Ben Konrath <ben@bagu.org>
530 Enable the open navigation button when the data has been set.
532 This avoids having active buttons that don't do anything when the data
535 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
537 2011-10-11 Ben Konrath <ben@bagu.org>
539 Use IsWidget interface for FlowTableItem.
541 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
542 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
544 2011-10-11 Ben Konrath <ben@bagu.org>
546 Remove GWT styling from open button in details view.
548 There are still some issues with how the details cell is arranged but
549 this should be made to match Glom 1.20. I'm going to leave fixing this
550 until I have Glom 1.20 up and running.
552 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
553 style name on open button.
554 * src/main/webapp/style.css: Move and edit details-navigation class.
555 Re-arrange some classes to make them appear in the same order as the
558 2011-10-07 Ben Konrath <ben@bagu.org>
562 * .gitignore: Ignore new cache directory.
563 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
564 * pom.xml: Change GWT and maven plugin to 2.4.0.
565 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
567 * src/main/java/org/glom/web/client/ClientFactory.java:
568 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
569 * src/main/java/org/glom/web/client/OnlineGlom.java:
570 Update source for API changes.
571 * utils/build-onlineglom-war.sh: Remove cache directory before the
574 2011-10-07 Ben Konrath <ben@bagu.org>
576 Add navigation buttons in the details view.
578 This isn't finished but I thought I'd commit what I have as it's a
579 pretty good start. I still need to:
581 1. Change the style so that it fits better into the current theme
582 2. Adjust the details cell to expand as much as possible.
584 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
585 click handlers to navigation buttons in the DetailsCells. Create a
586 refreshData() method to get just the data from the server without the
588 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
589 Update the tableSelector and browser title when the table name
590 changes without using the tableSelector.
591 * src/main/java/org/glom/web/client/ui/DetailsView.java:
592 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
593 getDetailsCells() to getCells(). Update variable names.
594 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
595 method to set click handler on navigation button. Rename a few
596 variables. Add navigation buttons where needed.
597 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
598 variables and methods.
599 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
600 navigation boolean and navigation table as required in the
602 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
603 variables for navigation along with getter/setter methods.
605 2011-10-07 Ben Konrath <ben@bagu.org>
607 Rename Field to DetailsCell.
609 This is a refactor-only commit. No functionality has been added or
612 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
613 Update variable and method names.
614 * src/main/java/org/glom/web/client/ui/DetailsView.java:
615 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
616 variable and method names.
617 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
619 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
620 variable and method names.
622 2011-10-07 Ben Konrath <ben@bagu.org>
624 Create separate methods for layout and data the details view.
626 This is a refactor-only commit. No functionality has been added or
629 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
630 private methods: setData(), createLayout().
632 2011-10-07 Ben Konrath <ben@bagu.org>
634 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
636 This is part of a change to get navigation buttons in the details view
637 but it should have been done this way from the start.
639 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
640 for method name change in TableSelectionView.
641 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
642 Create TableChangeEvent and set the browser title using the
643 TableSelectionView API.
644 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
645 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
646 Change getSelectedTable() to getSelectedTableName(). Add
647 getSelectedTableTitle().
649 2011-10-07 Ben Konrath <ben@bagu.org>
651 Use primaryKeyValue naming convention in constructor of DetailsPlace.
653 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
655 2011-10-07 Ben Konrath <ben@bagu.org>
657 Update TableChangeEvent to use newTableName naming convention.
659 This makes the class more consistent with GWT naming conventions.
661 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
662 Update for method name change in TableChangeEvent.
663 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
664 for method name change in TableChangeEvent.
665 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
666 newTableName variable and getter method. Make toDebugString()
669 2011-09-30 Ben Konrath <ben@bagu.org>
671 Disable the pager in the list tables when the data row count is less than the minimum.
673 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
674 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
676 2011-09-30 Ben Konrath <ben@bagu.org>
678 Add empty rows to the end of related list and list view tables.
680 I also extracted the cell rendering classes from the ListTable because
681 the code was becoming a little crazy with all the anonymous inner
682 classes. My plan is to use these cell rendering classes in the details
683 view as well so this refactor will be needed for that change.
685 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
686 set the row count in related list tables if the data has more rows
687 than the minimum number of rows visible.
688 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
689 row count in list view tables if the data has more rows than the
690 minimum number of rows visible.
691 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
692 for rendering TYPE_BOOLEAN cells. The code was extracted from the
694 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
695 for rendering TYPE_NUMERIC cells. The code was extracted from the
697 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
698 class for rendering cells with buttons in list views. The code was
699 extracted from the ListTable class.
700 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
701 for rendering TYPE_TEXT cells. The code was extracted from the
703 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
704 Add empty rows to the end of the data if required. Implement
705 ListTable.getMinNumVisibleRows().
706 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
707 cell renderer code to public classes. Return null in
708 Column.getValue() for empty rows. Add new abstract method:
709 getMinNumVisibleRows(). Move code to set the row count of the list view
710 table to ListViewImpl.
711 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
712 empty rows to the end of the data if required. Implement
713 ListTable.getMinNumVisibleRows().
716 2011-09-27 Ben Konrath <ben@bagu.org>
718 Use GWT.log for client-side debugging statements.
720 These are optimized out when deployed so I should have used this method
721 in the first place. These statements will eventually be replaced with some sort
722 of notification in the browser.
724 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
725 * src/main/java/org/glom/web/client/activity/ListActivity.java:
726 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
727 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
728 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
730 2011-09-27 Ben Konrath <ben@bagu.org>
732 Put tableselector on the right, back to list link on right.
734 The idea is that the table selector is acting like a label for the
735 currently displayed table so it should be placed below the document title. This
736 puts the table title in a similar position to where it is in Glom.
738 * mockups/details-contacts.html:
739 * mockups/details-projects.html:
740 * mockups/listview-contacts.html:
741 * mockups/listview-projects.html:
743 Update mockups to match how the interfaces currently look.
744 * src/main/webapp/style.css: Swap positions of backlink with the table
745 selector. Add some space on the left side of the table selector to
746 line things up with the document title.
748 2011-09-27 Ben Konrath <ben@bagu.org>
750 Add field colouring to details view.
752 This change re-works how field colouring works. The colour formatting
753 information is now set to the client with the layout information instead of
754 with the data. This eliminates the need to send the same colour strings for
755 data in list view column when colour information is set.
757 In order to set an alternate colour for negative numeric values, the
758 number is now sent to client and formatted with the GWT NumberFormat class.
760 This change also fixes:
762 https://bugzilla.gnome.org/show_bug.cgi?id=659752
764 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
765 internationalization framework which is needed for client side numeric
767 * src/main/java/org/glom/web/client/Utils.java: New file for some
768 client static utility methods.
769 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
770 the DataItem object to the Field class. Use a utility method to
771 create the foreignKeyValue string.
772 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
773 alignment and text colours in the constructor. Add setData(DataItem)
774 method. Remove setText(String) method.
775 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
776 colour information to GlomTextCell. Create and use GlomNumberCell for
777 rendering numbers. Use utility method to get the string for the
778 primary key of the key provider. Re-work how the horizontal alignment
780 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
781 formatting to layout information. Methods for converting the libglom
782 formatting information were moved from DBAccess.
783 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
784 numeric formatting (it's now done on the client side). Don't set text
785 colours in DataItem. Move libglom formatting conversion methods to
787 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
788 getters/setters for text colour information.
789 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
790 for transferring the libglom NumericFormat information to the client.
791 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
792 and getters/setters for: GlomNumericFormat, background colour and
793 foreground colour strings.
795 2011-09-26 Ben Konrath <ben@bagu.org>
797 Simplify code that iterates through the LayoutGroup.
799 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
801 2011-09-26 Ben Konrath <ben@bagu.org>
803 Accept Eclipse formatting for OnlineGlomServiceAsync.
805 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
807 2011-09-26 Ben Konrath <ben@bagu.org>
809 Don't use the ListDBAccess classes to get the primary key layout information.
811 This was causing a bug where the wrong index for the hidden primary key
812 was being sent to the client.
814 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
815 primary key while creating the LayoutGroup DTO. Create a
816 LayoutItemField DTO for hidden primary keys. Don't use the
817 RelatedListDBAccess because it was only used for getting the primary
819 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
820 access modifier from public to protected for getPrimaryKeyField() and
821 getPrimaryKeyLayoutItemField().
822 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
823 abstract method getExpectedResultSize() because RelatedListDBAccess
824 doesn't have enough info to implement it.
825 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
826 Remove @Override for getExpectedResultSize().
827 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
828 Remove method getExpectedResultSize().
830 2011-09-23 Ben Konrath <ben@bagu.org>
832 Log which layout (list or details) the ignored item is from.
834 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
836 2011-09-23 Ben Konrath <ben@bagu.org>
838 Remove annotations that turn off code formatting in DataItem.
840 * src/main/java/org/glom/web/shared/DataItem.java:
842 2011-09-23 Ben Konrath <ben@bagu.org>
844 Rename GlomField to DataItem and update associated methods.
846 This is a rename-only refactor. No functionality has been added or
849 * src/main/java/org/glom/web/client/OnlineGlomService.java:
850 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
851 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
852 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
853 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
854 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
855 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
856 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
858 * src/main/java/org/glom/web/server/database/DBAccess.java:
859 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
860 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
861 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
862 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
863 * src/main/java/org/glom/web/shared/DataItem.java:
864 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
865 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
867 2011-09-23 Ben Konrath <ben@bagu.org>
869 Rename GlomDocument to DocumentInfo and update associated methods.
871 This is a rename-only refactor. No functionality has been added or
874 * src/main/java/org/glom/web/client/OnlineGlomService.java:
875 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
876 * src/main/java/org/glom/web/client/activity/ListActivity.java:
877 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
878 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
879 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
880 * src/main/java/org/glom/web/shared/DocumentInfo.java:
882 2011-09-20 Ben Konrath <ben@bagu.org>
884 Require java-libglom 1.17.3.
886 This picks up the fix for the seg fault problem with the Scenes table
887 in the Openismus Film Manager example.
891 2011-09-20 Ben Konrath <ben@bagu.org>
893 Change the way sort clause is added for primary key when no sort clause is requested.
895 The primary key is now added to the LayoutFieldVector (fieldsToGet)
896 before the sort clause is created. When a sort clause is not requested, the
897 sort clause is created by finding the primary key in the LayoutFieldVector
900 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
902 2011-09-20 Ben Konrath <ben@bagu.org>
904 Log error message if no documents are found in the configured directory.
906 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
907 Extract the glom file extension string to a private static final class
908 variable (mostly as syntactic sugar). Accept a minor formatting change.
909 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
910 the example glom.document.directory configuration property to make it
911 more clear that it can any directory, not just the home directory.
913 2011-09-18 Ben Konrath <ben@bagu.org>
915 Add related lists to details view.
917 The related list table has support for paging and sorting just like the
918 table in the list view.
920 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
921 SQL queries for the related list tables.
922 * src/main/java/org/glom/web/client/OnlineGlomService.java:
923 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
925 Rename getList methods to getListView and add comments. Remove
926 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
927 it being unused. Add methods: getDetailsLayoutAndData(),
928 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
929 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
930 Create the layout and set the data for the fields in one async call
931 instead of two. Create related lists where appropriate.
932 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
933 for method name changes in OnlineGlomService.
934 * src/main/java/org/glom/web/client/ui/DetailsView.java:
935 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
936 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
938 * src/main/java/org/glom/web/client/ui/ListView.java:
939 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
940 tableName from setCellTable(). Create a ListViewTable instead of
942 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
943 represent a data field in the details view.
944 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
945 from addDetailsCell() to Field class. Keep track of the Fields and
946 Portals in the details view.
947 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
948 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
949 and add a method to get it. Add method to set the contents of the
951 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
952 New class for related list tables. This class has the data provider
953 for the related list table.
954 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
955 abstract class which is the base class for the ListViewTable and the
957 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
958 New class for list view tables. This class has the data provider for
960 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
961 methods for related list tables. Add more information to the
962 LayoutItemField and LayoutItemPortal DTOs.
963 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
964 Remove debugging print statement.
965 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
966 Remove debugging print statements. Add primary key field to SQL count
968 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
969 Remove unnecessary LayoutFieldVector parameter from
970 getResultSizeOfSQLQuery() method.
971 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
972 New class for related list table database access.
973 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
974 class that is a wrapper DTO for details view layout and data.
975 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
976 new 'fromField' string to this DTO.
977 * src/main/webapp/style.css: Remove bottom margin and override top
980 2011-09-15 Ben Konrath <ben@bagu.org>
982 Breakup the OnlineGlomServiceImpl class to make it more manageable.
984 This sets things up to make it easier to add the data retrieval for
985 related lists (portals). No user noticeable changes were made with
988 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
989 class has the code to retrieve the layouts and access the
990 database using the new database helper classes.
991 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
992 Most of the functionality has been removed from this class. This
993 class now represents the public interface for the client side
994 code. It also deals with configuring the servlet and cleaning
995 things up when the servlet is stopped.
996 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
997 of static methods into this utility class.
998 * src/main/java/org/glom/web/server/database/DBAccess.java:
999 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1000 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1001 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1002 These classes have the database retrieval code. The class hierarchy
1003 has been setup to make it easy to reuse code for similar
1006 2011-09-06 Ben Konrath <ben@bagu.org>
1008 Create separate classes for list table code and the data provider.
1010 As part of this refactor, I also split up the code a bit to make it
1013 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1014 table code to two new classes (below).
1015 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1016 with code from ListViewImpl.
1017 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1018 New file with code from ListViewImpl.
1020 2011-09-06 Ben Konrath <ben@bagu.org>
1022 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1024 This fixes the LayoutItemPortal DTO to match the libglom layout object
1027 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1029 2011-09-01 Ben Konrath <ben@bagu.org>
1031 Set title of Portals in the Details View.
1033 * pom.xml: Bump required version of java-libglom to 1.17.1.
1034 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1035 widget creation to its own class. Add comments to constructor.
1036 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1037 The code is mostly from the Group class with the title now set.
1038 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1039 title of Portal. Update some comments. Fix some code formatting.
1041 2011-09-01 Ben Konrath <ben@bagu.org>
1043 Remove TODO comment for the flow table column width.
1045 The flow table column width is working correctly and doesn't need to be
1046 changed. See this mailing list post for more info:
1048 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1050 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1052 2011-08-27 Ben Konrath <ben@bagu.org>
1054 Add document title (database name) to top of the browser page.
1056 I added the document title to the TableSelecitonView but that will
1057 change if / when we add a view that doesn't require table selection.
1059 * mockups/details-contacts.html:
1060 * mockups/details-projects.html:
1061 * mockups/listview-contacts.html:
1062 * mockups/listview-projects.html:
1063 * mockups/style.css: Add document title to mockups to keep things
1065 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1066 sizes to account for the document title.
1067 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1068 Set the document title when it has been retrieved from the server.
1069 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1070 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1071 and implement setDocumentTitle(String) method.
1072 * src/main/webapp/style.css: Add ID for document title style.
1074 2011-08-25 Ben Konrath <ben@bagu.org>
1076 Add NavigationType enum to LayoutItemPortal DTO.
1078 This is the start of adding support for Portals to the Details View.
1080 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1081 LayoutItem_Portal.navigation_type enum from libglom to
1082 LayoutItemPortal.NavigationType enum.
1083 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1084 NavigationType enum, field for storing the NavigationType and getter
1087 2011-08-25 Ben Konrath <ben@bagu.org>
1089 Implement the flow table layout in the Details View.
1091 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1092 FlowTable to Group to account for the renamed class.
1093 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1094 File. This is a container widget that implements the Glom details view
1095 flow table behaviour.
1096 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1097 org/glom/web/client/ui/FlowTable.java.
1098 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1099 so that the size of the subgroups are a closer match to the size of
1100 the Glom subgroups. This makes the flowtable layout match the layout
1101 in Glom for the Music Collection example file.
1103 2011-08-16 Ben Konrath <ben@bagu.org>
1105 Create container element for LayoutItemPortal in Details View.
1107 This will help me develop the layout for the FlowTable.
1109 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1110 fieldPanel variable to detailsCell.
1112 2011-08-15 Ben Konrath <ben@bagu.org>
1114 Set the height of the data element in the Details View.
1116 I changed the InlineLabels (text in a span element) to Labels (text in
1117 a div element) so that I could set the height of the details-data
1118 elements instead of the details-cell parent elements. This allows the
1119 the details-data element to display the correct height if style is
1120 applied that shows the height.
1122 This change has the added benefit of allowing the order of the labels
1123 and data elements to be changed for right-to-left languages.
1125 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1126 InlineLabels to Labels.
1127 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1128 InlineLabels to Labels. Set the height of the data element.
1129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1130 multiline text height in the Formatting DTO.
1131 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1132 for multiline height along with getter and setter methods.
1133 * src/main/webapp/style.css: Adjust style to account for the change
1134 from span elements to div elements in the details cell.
1136 2011-08-15 Ben Konrath <ben@bagu.org>
1138 Make the List View appearance match the mockups.
1140 It doesn't match exactly but it's much better than it was.
1142 * mockups/listview-contacts.html: Remove unused css classes.
1143 * mockups/listview-projects.html: Remove unused css classes.
1144 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1145 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1146 for mainPanel instead of VerticalPanel (table). Set style name on
1147 CellTable. Set style name on Details column. Right-align Details
1149 * src/main/webapp/style.css: Adjust properties to match the mockups.
1151 2011-08-12 Ben Konrath <ben@bagu.org>
1153 Add better support for subgroups in the details view.
1155 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1156 changed FlowTable constructor.
1157 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1158 support for subgroups and subgroup-titles.
1159 * src/main/webapp/style.css: Add CSS class for subgroups and
1162 2011-08-12 Ben Konrath <ben@bagu.org>
1164 Return the top level LayoutGroup title.
1166 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1168 2011-08-11 Ben Konrath <ben@bagu.org>
1170 Make the TableSelector header match the mockup.
1172 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1173 the layout panel. Properly lineup the table selection header with
1174 the list and details view.
1175 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1176 margin around the details view.
1177 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1178 Rename listBox variable to tableSelector. Set id for the style sheet.
1179 Use a FlowPanel instead of a HorizontalPanel.
1180 * src/main/webapp/style.css: Add properties to make the TableSelector
1181 box match the mockups.
1183 2011-07-13 Ben Konrath <ben@bagu.org>
1185 Update install script for java-libglom version change.
1187 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1190 2011-07-13 Ben Konrath <ben@bagu.org>
1192 Add support sub-group in the details view.
1194 I also removed the code that special-cased the default details view
1197 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1199 I still have to make a proper flowtable.
1201 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1202 Don't special-case default details view layout.
1203 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1204 addLayoutField() as I'm going to use it.
1205 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1206 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1208 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1209 extracted from DetailsViewImpl.GroupPanel. Add support for
1211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1212 column count when getting the details layout.
1214 2011-07-12 Ben Konrath <ben@bagu.org>
1216 Set browser title with database and table titles.
1218 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1219 Set the browser title when the table changes and when the activity
1221 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1222 title when retrieving document info (the GlomDocument object).
1223 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1224 with getter and setter methods. Remove unused convenience constructor.
1225 Use default code formatting.
1227 2011-07-12 Ben Konrath <ben@bagu.org>
1229 Ignore LayoutItemPortals in the details view.
1231 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1234 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1235 LayoutItemPortal layout objects.
1236 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1237 LayoutItemPortal objects when retrieving the details layout.
1238 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1239 file. This is an empty class and just used to get type information for
1242 2011-07-12 Ben Konrath <ben@bagu.org>
1244 Use java-libglom 1.17.0.
1248 2011-07-11 Ben Konrath <ben@bagu.org>
1250 Remove "Table:" label from table selector.
1252 This matches a recent change in the Glom UI.
1254 * mockups/details-contacts.html:
1255 * mockups/details-projects.html:
1256 * mockups/listview-contacts.html:
1257 * mockups/listview-projects.html: Remove the "Table:" label from the
1259 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1261 2011-07-11 Ben Konrath <ben@bagu.org>
1263 Add main groups to the details view.
1265 This makes things look a little nicer in the details view. The next step
1266 is to implement the flowtable.
1268 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1269 resources from the standard gwt css theme. Standard.css is now
1270 included in OnlineGlom.html so that the online glom css rules have
1271 precedence over the gwt theme.
1272 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1273 the whole LayoutGroup to the DetailsView instead of just the titles.
1274 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1275 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1276 details layout with a helper class (GroupPanel). I might extract this
1277 class when I make the full flowtable.
1278 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1279 string as default so I don't have to worry about NPEs when processing
1281 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1282 note beside OnlineGlom.gwt.xml above).
1283 * src/main/webapp/style.css: Add default font-size to body to override
1284 the font-size set by the standard theme. Don't use h2 tags for
1285 group-title. Create new details-cell class.
1287 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1289 ConfiguredDocument: Set the port number too.
1291 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1292 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1293 Glom document. Presumably this worked sometimes so far because there is a
1294 default port number.
1296 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1298 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1300 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1301 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1302 correct, though we should throw an exception too.
1304 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1306 Fix a addDocuemnt typo.
1308 * src/main/java/org/glom/web/shared/Documents.java
1309 (Documents.addDocuemnt): Rename to addDocument().
1310 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1311 (OnlineGlomServiceImpl.getDocuments): Adapt.
1313 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1315 Slightly improved log output when connection fails.
1317 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1318 (ConfiguredDocument.setUsernameAndPassword):
1319 We don't know for sure if it' the username/password that's wrong, so
1320 rephrase the message.
1321 Also ouput the exception message, though it's generic in this case.
1323 2011-07-08 Ben Konrath <ben@bagu.org>
1327 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1328 added braces to a one line if statement because the Eclipse formatter
1329 was getting confused.
1331 2011-07-07 Ben Konrath <ben@bagu.org>
1333 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1335 These should really be two separate tasks but I counldn't get things to
1336 work with GWT 2.2.0 and Eclipse 3.7.
1340 * .settings/org.eclipse.jdt.core.prefs:
1341 * .settings/org.eclipse.jdt.ui.prefs:
1342 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1343 * .settings/org.eclipse.m2e.core.prefs:
1344 Add new config files. Update current files. Remove references to the
1345 webtools plugins as we're not using any of the webtools features.
1346 * .gitignore: Add logs directory which is created when running with
1348 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1349 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1350 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1352 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1354 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1356 onlineglom.properties: Add explanatory comments.
1358 * src/main/resources/onlineglom.properties: Also change the default user
1359 from ben to someuser, to avoid the risk of people thinking we just
1360 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1362 2011-06-28 Ben Konrath <ben@bagu.org>
1364 Use filename in Log for incorrect passwords.
1366 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1367 getFileName(String) method to get the filename from the URI.
1369 2011-06-28 Ben Konrath <ben@bagu.org>
1371 Add the table name to the URL token for the ListPlace.
1373 This makes things consistent between the DetailsPlace and the
1374 ListPlace. It also allows the the ListPlace to be bookmarked.
1376 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1377 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1378 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1379 Remove getDefaultListLayout(). The default layout is now returned
1380 by the getListLayout() method when the table name is an empty string.
1381 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1382 Add table name field. Change to a new ListPlace when the table
1383 has been changed. Use getListLayout() for getting the default
1385 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1386 Add table name field. Set the correct table name in the list box
1387 when loading from bookmark. This corrects a problem for the
1389 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1390 Move table name to super-class (HasSelectableTable). Move document
1391 and table URL keys to super-class in HasSelectableTable.
1392 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1393 Add table name field. Add Tokenizer class with URL key common to
1394 the subclasses (DetailsPlace and ListPlace).
1395 * src/main/java/org/glom/web/client/place/ListPlace.java:
1396 Add table name. Add code to parse the URL token.
1397 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1398 Update ListPlace construction with empty table name string.
1399 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1400 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1401 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1402 Update ListPlace construction with table name string.
1403 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1404 Change defaultTableName field to tableName to reflect how it's now
1405 used. Update the getter and setter methods.
1407 2011-06-28 Ben Konrath <ben@bagu.org>
1409 Enable the table selector in the DetailsView.
1411 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1412 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1413 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1414 Remove getDefaultDetailsLayout(). The default layout is now returned
1415 by the getDetailsLayout() method when the table name is an empty
1417 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1418 event handler for table change event. Change to using
1419 getDetailsLayout() for the default details layout.
1420 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1422 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1423 when navigating to the details place.
1425 2011-06-27 Ben Konrath <ben@bagu.org>
1427 Use filename based unique document ID in URL and for RPC.
1429 The document ID is the glom document name with spaces (' ') replaced
1430 with pluses ('+') and without the .glom extension.
1432 This change is mostly a string substitution of 'documentTitle' for
1433 'documentID'. The only code change is the addition of a Documents DTO to get the
1434 filename to document title mappings as indicated below.
1436 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1437 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1438 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1439 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1440 Use Documents DTO to create the document links in the document
1442 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1443 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1444 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1445 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1446 * src/main/java/org/glom/web/client/place/ListPlace.java:
1447 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1448 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1449 * src/main/java/org/glom/web/client/ui/ListView.java:
1450 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1451 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1452 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1453 * src/main/java/org/glom/web/server/Log.java:
1454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1455 getDocumentTitles() to getDocuments() and return the Documents DTO.
1456 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1457 transferring the filename to document title mappings.
1459 2011-06-25 Ben Konrath <ben@bagu.org>
1461 Make the authentication popup work again.
1463 This bug was introduced when I extracted ConfiguredDocument to its own class.
1465 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1466 correct success / fail status in setUsernameAndPassword().
1468 2011-06-25 Ben Konrath <ben@bagu.org>
1470 Use filename as unique key for configuring database usernames and passwords.
1472 This replaces the use of the Glom document title which could change
1473 depending on the locale. Thanks to Murray Cumming for pointing out this
1476 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1477 * src/main/resources/onlineglom.properties:
1479 2011-06-24 Ben Konrath <ben@bagu.org>
1481 Pass primary key value to DetailsView.
1483 This enables the DetailsView to load the correct data.
1485 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1486 primary key value field and set in constructor. Pass primary key
1487 value to getDetailsData().
1488 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1489 variables for document title and primary key value.
1490 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1491 key value to the DetailsPlace.
1493 2011-06-24 Ben Konrath <ben@bagu.org>
1495 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1497 This allows the primary key to be retrieved by the Details button. This
1498 functionality has not been implemented yet but it's in the works.
1500 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1501 the LayoutGroup result to ListView.setCellTable instead of all of its
1502 fields individually.
1503 * src/main/java/org/glom/web/client/ui/ListView.java:
1504 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1505 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1506 get the primary key for the table.
1507 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1508 index of the primary key in the LayoutGroup accounting for hidden
1509 primary keys. Rename getJavaNumberFormat() to
1510 convertToJavaNumberFormat() for consistency. Cleanup / add some
1512 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1513 field for primary key index and a field to indicate whether the
1514 primary key is hidden or not.
1516 2011-06-23 Ben Konrath <ben@bagu.org>
1518 Rename getTableData methods to getListData.
1520 This is a rename refactor for consistency with other methods.
1522 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1523 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1524 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1525 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1527 2011-06-23 Ben Konrath <ben@bagu.org>
1529 Extract the ConfiguredDocument innerclass into its own class.
1531 This makes the servlet code more object oriented.
1533 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1534 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1536 new ConfiguredDocument class.
1538 2011-06-21 Ben Konrath <ben@bagu.org>
1540 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1542 This makes things more inline with how libglom works and reduces code
1543 duplication. This refactor lays the groundwork for adding the primary key to
1544 the LayoutGroup object.
1546 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1547 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1548 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1549 Change method names to getListLayout and getDefaultListLayout for
1550 consistency. Use LayoutGroup as the DTO for the list layout instead of
1551 ColumnInfo and LayoutListTable.
1552 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1553 new method names along with the LayoutGroup object for transferring the
1555 * src/main/java/org/glom/web/client/ui/ListView.java:
1556 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1557 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1558 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1560 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1561 Replaced with LayoutGroup.
1562 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1563 expectedResultSize and defaultTableName fields which are needed for
1565 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1566 type field which is needed for the list layout but will also be
1567 useful for the details layout as things progress.
1568 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1569 Make class abstract. Remove the unnecessary
1570 getFormattingHorizontalAlignment method. Add setFormatting method.
1572 2011-06-16 Ben Konrath <ben@bagu.org>
1574 Add scripts for building and installing war.
1576 These will help when updating OnlineGlom but they're also good
1577 supplemental documentation of the build and deployment proceeding.
1579 * utils/build-onlineglom-war.sh: New file.
1580 * utils/install-onlineglom-war.sh: New file.
1582 2011-06-16 Ben Konrath <ben@bagu.org>
1584 Create wrapper class to create consistent log messages.
1586 I wrapped methods in the Log class of gwt-log to add the method names
1587 from the servlet and create consistent formatting of the document title
1588 and table names in the log messages.
1590 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1592 log methods to use methods from wrapped Log class.
1594 2011-06-16 Ben Konrath <ben@bagu.org>
1596 Remove superfluous conditional return.
1598 Thanks to Murray Cumming for pointing this out!
1600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1602 2011-06-15 Ben Konrath <ben@bagu.org>
1604 Return an ArrayList of LayoutGroups for the Details layout.
1606 This corrects a problem with the details layout as it can have more
1607 than one top level LayoutGroup.
1609 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1610 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1611 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1612 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1613 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1614 with ArrayList of LayoutGroups for the details view layout.
1615 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1616 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1617 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1618 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1619 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1620 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1622 2011-06-14 Ben Konrath <ben@bagu.org>
1624 Use cast_dynamic method to determine the libglom LayoutItem type.
1626 This is better than finding the LayoutItem type by using the string
1627 returned from the get_part_type_name() method.
1629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 2011-06-14 Ben Konrath <ben@bagu.org>
1633 Add method names to log entries in the servlet.
1635 This helps when tracking down deployment problems.
1637 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1639 2011-06-14 Ben Konrath <ben@bagu.org>
1641 Add data to the DetailsView using a hard-coded primary key value.
1643 The layout and functionality of the DetailsView is not complete. This
1644 is just a checkpoint so the patch doesn't get too big.
1646 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1647 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1648 Add getDetailsData() servlet method.
1649 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1650 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1651 LayoutFields are added to the DetailsView.
1652 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1653 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1654 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1655 take the string for the title instead of the object.
1656 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1657 Add implementation getDetailsData() along with some private helper
1659 * src/main/webapp/style.css: Add padding to details-data class. Add a
1660 details-label class with the same padding as the details-data class.
1662 2011-06-03 Ben Konrath <ben@bagu.org>
1664 Use presenter.goTo() to change to the DetailsPlace.
1666 This will make things easier when we need to open the DetailsView with
1667 data specific to the row that was clicked.
1669 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1671 2011-06-02 Ben Konrath <ben@bagu.org>
1673 Add CSS file from mockups.
1675 I'm adding this now because it's going to be useful to have when
1676 developing the DetailsView. The TableSelectionView and ListView aren't
1679 * src/main/webapp/OnlineGlom.html:
1680 * src/main/webapp/style.css:
1682 2011-06-02 Ben Konrath <ben@bagu.org>
1684 Use String.isEmpty() to check for empty string.
1686 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1688 2011-06-02 Ben Konrath <ben@bagu.org>
1690 Display main layout group titles in the DetailsView.
1692 This is the start of the DetailsActivity/DetailsView implementation.
1694 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1695 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1696 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1697 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1698 Get the layout information for the details view from the server and set
1699 the main layout group titles.
1700 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1701 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1702 Add addLayoutGroup() and addLayoutField() methods. This are just
1703 temporary methods for creating the the details view that will change
1705 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1706 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1708 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1709 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1710 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1711 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1712 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1713 Data Transfer Objects that mimic the libglom object structure. These are
1714 used for transferring the details layout but could also be used for
1715 transferring the list layout.
1717 2011-05-27 Ben Konrath <ben@bagu.org>
1719 Reset the AuthenticationPopup when clearing the ListView.
1721 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1723 2011-05-27 Ben Konrath <ben@bagu.org>
1725 Fix problem with onlineglom.properties file loading.
1727 The old way worked in Eclipse but not on the server. Loading the
1728 onlineglom.properties file now works in Eclipse and on the server.
1730 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1732 2011-05-24 Ben Konrath <ben@bagu.org>
1734 Update gwt-log from 3.1.0 to 3.1.2.
1736 Gwt-log 3.1.0 has been marked as depreciated.
1740 2011-05-24 Ben Konrath <ben@bagu.org>
1742 Add comment to ListActivity.goTo() method.
1744 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1746 2011-05-24 Ben Konrath <ben@bagu.org>
1748 Remove FIXME in convertGdkColorToHtmlColour()
1750 The Gdk::Color value returned by libglom is 16-bits per channel on both
1751 64 and 32-bit platforms.
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1755 2011-05-19 Ben Konrath <ben@bagu.org>
1757 Improve performance of initial ListView load.
1759 I removed a round trip to the server for getting the default table name
1760 and then requesting information about that table. This also removes a potential
1761 problem with the table change handler not being setup in time to receive the
1762 table change event from the ListActivity.
1764 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1765 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1766 getDefaultLayoutListTable() method. Improve comments.
1767 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1768 getDefaultLayoutListTable() method instead of firing a table change
1769 event to get the table to load.
1770 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1771 implementation of getDefaultLayoutListTable() method.
1772 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1775 2011-05-19 Ben Konrath <ben@bagu.org>
1777 Override toDebugString() in TableChangeEvent.
1779 This is useful to have for debugging.
1781 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1783 2011-05-19 Ben Konrath <ben@bagu.org>
1785 Add a "Back to List" link when at the DetailsPlace.
1787 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1788 Populate the CellTable based on the selected table of the ListBox if
1789 it's set otherwise use the default table. This allows the "Back to
1791 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1792 Remove Place from constructors. Add a setPlace() method. Add
1793 goToPlace() method. Set class as presenter for TableSelectionView.
1794 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1795 Use the same TableSelectionActivity when switching between the List and
1797 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1798 Subclass the new HasSelectableTablePlace. This removes some duplicate
1800 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1801 New class to represent Places that display the TableSelectionView.
1802 * src/main/java/org/glom/web/client/place/ListPlace.java:
1803 Subclass the new HasSelectableTablePlace. This removes some duplicate
1805 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1806 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1807 Add Presenter interface. Add setBackLinkVisible() method. Add
1808 setBackLink() method.
1810 2011-05-18 Ben Konrath <ben@bagu.org>
1812 Enable the "Details" buttons.
1814 Right now only an empty details view is displayed.
1816 * src/main/java/org/glom/web/client/ClientFactory.java:
1817 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1818 Add DetailsView to ClientFactory.
1819 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1820 A basic activity for the details view.
1821 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1822 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1824 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1825 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1827 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1828 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1829 unnecessary super() in constructor.
1830 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1831 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1832 really shouldn't create a new TableSelectionActivity for both the ListPlace
1833 and the DetailsPlace so this should be considered a temporary solution.
1834 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1835 New file. Represents a URL for the details view.
1836 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1837 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1838 A basic details view interface and implementation.
1839 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1840 Enable the "Details" buttons.
1842 2011-05-12 Ben Konrath <ben@bagu.org>
1844 Use a LayoutPanel with multiple display areas for main layout.
1846 This is mostly a refactor in that there are no changes from the user
1847 point of view. These changes are required so that we can swap out the list view
1848 with the details view when the user clicks the "Details" button.
1850 * src/main/java/org/glom/web/client/ClientFactory.java:
1851 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1852 OnlineGlomView. Add TableSelectionView, ListView and
1853 AuthenticationPopup.
1854 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1855 for main layout. Add display regions for main activities. Add
1856 activity manager for for main activities.
1857 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1858 file from parts of the deleted OnlineGlomActivity.
1859 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1860 New file from parts of the deleted OnlineGlomActivity.
1861 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1862 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1863 New files for app wide table change event.
1864 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1865 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1866 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1867 Activity mappers for the main activities replace the deleted app-wide
1869 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1870 Fix a spelling error in he comment.
1871 * src/main/java/org/glom/web/client/ui/ListView.java:
1872 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1873 Renamed from LayoutListView and modified for MVP. This still not a
1874 proper dumb view as prescribed by the MVP pattern but it works for now.
1875 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1876 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1877 New widget stripped out of the deleted OnlineGlomView.
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1879 Remove hack that is fixed by this patch.
1881 2011-05-06 Ben Konrath <ben@bagu.org>
1883 Rename OnlineGlomPlace to ListPlace.
1885 The only change besides the rename is that url will now display #list
1886 instead of #Document.
1888 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1889 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1890 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1891 * src/main/java/org/glom/web/client/place/ListPlace.java:
1892 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1894 2011-05-06 Ben Konrath <ben@bagu.org>
1896 Use Presenter for app navigation.
1898 This is the proper way to deal with Place (URL) changes with the MVP
1901 * src/main/java/org/glom/web/client/ClientFactory.java:
1902 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1903 PlaceHistoryMapper and PlaceHistoryHandler.
1904 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1905 PlaceHistoryMapper and PlaceHistoryHandler.
1906 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1907 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1908 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1909 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1910 Add Presenter interface and setPresenter methods. Rename addHyperLink
1911 to addDocumentLink taking only the document title as a parameter.
1913 2011-04-14 Ben Konrath <ben@bagu.org>
1915 Prompt for db username/password if they haven't been set.
1917 This is implemented with a popup widget that is contained within the
1918 OnlineGlomView and managed by the OnlineGlomActivity.
1920 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1921 methods for checking and setting the database username and password.
1922 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1923 new methods for checking and setting the database username and
1925 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1926 Display authentication popup if the JDBC connection to the database
1927 has not been authenticated.
1928 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1930 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1931 for dealing with the authentication popup.
1932 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1933 Implement the methods for dealing with the authentication popup.
1934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1935 try to executed queries if the database connection hasn't been
1936 authenticated. Implement methods for checking and setting the
1937 database username and password.
1939 2011-04-12 Ben Konrath <ben@bagu.org>
1941 Make log messages a little clearer.
1943 Add a dash betweeen the document title and the table name.
1945 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1947 2011-04-12 Ben Konrath <ben@bagu.org>
1949 Protect against NPEs when cleaning up database resources.
1951 While this isn't strictly necessary because the exception is caught,
1952 not protecting against the NPEs makes it harder to find the real error
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1957 2011-04-12 Ben Konrath <ben@bagu.org>
1959 Move configuration of the servlet to the constructor.
1961 The servlet will be initialized even if the database authentication
1962 information is not set or correct. I still need to add the UI for prompting
1963 the user for the authentication information when it's required.
1965 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1966 javadocs for getDocumentTitles() method.
1967 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1968 Set error message when RPC fails.
1969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1970 glom files directory from the configuration file. Try to set the
1971 database authentication information for the specific document if it's
1972 set and works otherwise try to use the global authentication
1973 information set for the directory.
1974 * src/main/resources/onlineglom.properties: Moved from
1975 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1976 Added detailed comments for the new keys.
1978 2011-04-11 Ben Konrath <ben@bagu.org>
1980 Remove unnecessary @Override in DocumentSelectionViewImpl.
1982 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1984 2011-04-11 Ben Konrath <ben@bagu.org>
1986 Remove center alignment in DocumentSelectionView.
1988 The title element is still centred but the document titles and bottom
1989 sentence are both left-aligned.
1991 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1993 2011-04-11 Ben Konrath <ben@bagu.org>
1995 Change 'Demo' naming convention to 'Document'.
1997 This is just a rename refactor with no functional changes to the code.
1999 * src/main/java/org/glom/web/client/ClientFactory.java:
2000 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2001 * src/main/java/org/glom/web/client/OnlineGlom.java:
2002 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2003 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2004 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2005 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2006 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2007 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2008 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2009 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2010 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2011 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2013 2011-04-08 Ben Konrath <ben@bagu.org>
2015 Remove FIXME from safeLongToInt() method.
2017 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2020 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2022 2011-04-08 Ben Konrath <ben@bagu.org>
2024 Display an error if no glom documents are found in the specified directory.
2026 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2027 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2028 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2029 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2031 2011-04-08 Ben Konrath <ben@bagu.org>
2033 Add copyright header to one more file ... oops.
2035 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2037 2011-04-08 Ben Konrath <ben@bagu.org>
2039 Add copyright header to files without it.
2041 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2042 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2043 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2044 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2045 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2046 * src/main/java/org/glom/web/shared/GlomField.java:
2048 2011-04-08 Ben Konrath <ben@bagu.org>
2050 Add support for accessing multiple glom documents in the servlet.
2052 This completes the demo selection functionality.
2054 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2055 document title to methods.
2056 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2057 document title to methods.
2058 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2059 Set browser window title when the activity starts. Correct name of
2060 document title variable.
2061 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2062 Set browser window title when the activity starts. Set the table
2063 selector change handler after table selector has been set. Clear the
2064 OnlineGlomView when the activity has been stopped.
2065 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2066 document title as the place token. Use "#Document:" instead of
2067 "#OnlineGlomPlace:" in the URL.
2068 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2069 Change heading to "Online Glom"
2070 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2071 document title in RPC methods.
2072 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2073 setDocumentTitle() method. Add clear() method.
2074 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2075 setDocumentTitle() method. Implement clear() method which removes the
2076 change handler on the ListBox, clears the ListBox and clears the
2078 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2079 Implement methods with document title. Keep track for the configured
2080 glom documents and their corresponding JDBC configurations in a hash
2081 table. This information is retrieved using the document title as the
2082 key in the hash table.
2083 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2084 document title field as it's no longer needed.
2086 2011-04-08 Ben Konrath <ben@bagu.org>
2088 Update the Eclipse JDT configuration.
2090 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2091 methods. Automatically add the copyright header to new files.
2093 2011-04-05 Ben Konrath <ben@bagu.org>
2095 Add new page for demo selection.
2097 This patch adds all the components required to view and start an
2098 OnlineGlom demo by clicking on the desired hyperlink. The user is
2099 able to return to the demo selection page with the browser's back
2100 button. I still need to modify the servlet to work with multiple
2101 documents so all demo links will load the file defined in the
2102 OnlineGlom.properties.
2104 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2105 This is only useful during development so we don't need to save it.
2106 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2107 get a reference to the DemoSelectionView.
2108 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2109 method to get a reference to the DemoSelectionView.
2110 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2111 default view to DemoSelectionView.
2112 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2113 to get glom document titles for glom files in a hard-coded directory.
2114 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2115 method to get glom document titles for glom files in a hard-coded
2117 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2118 Presenter for DemoSelectionView.
2119 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2120 for DemoSelectionView.
2121 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2122 Update for DemoSelectionView.
2123 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2124 Basic 'Place' implementation for the DemoSelectionView.
2125 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2126 The interface for the DemoSelectionView.
2127 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2128 The implementation of the DemoSelectionView.
2129 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2130 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2131 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2132 implementation of method to get glom document titles for glom files
2133 in a hard-coded directory.
2134 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2135 on longer being used.
2136 * src/main/webapp/glom.png: Glom logo.
2138 2011-04-05 Ben Konrath <ben@bagu.org>
2140 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2142 This is the forth and final commit of a refactor that will allow
2143 OnlineGlom to be used with multiple documents.
2145 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2146 Move RPC code from OnlineGlomViewImpl to this class.
2147 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2149 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2150 RPC code to the presenter class (the P in MVP).
2152 2011-04-04 Ben Konrath <ben@bagu.org>
2154 Start moving the existing OnlineGlom code to MVP.
2156 This work is based on the GWT MVP framework that is documented here:
2158 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2160 This is the third commit of a refactor that will allow OnlineGlom to
2161 be used with multiple documents.
2163 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2164 Interface for client factory which is used to get instances of various
2165 classes throughout the app.
2166 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2167 Implementation of client factory.
2168 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2169 initialize the MVP framework.
2170 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2171 New file. Activity manager for the main container widget. This is the
2173 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2174 Maps place (URL) to its corresponding activity.
2175 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2176 New file. This is just a place holder for a generated file.
2177 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2178 New file. Represents the URL for the main Online Glom app.
2179 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2180 for changes in LayoutListViewImpl.
2181 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2182 interface for View. Move code to OnlineGlomViewImpl class.
2183 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2184 file. Implementation of OnlineGlomView.
2185 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2186 Place resources. Use ClientFactoryImpl by default.
2188 2011-04-04 Ben Konrath <ben@bagu.org>
2190 Move View classes to their own package.
2192 This is the second commit of a refactor that will allow OnlineGlom to
2193 be used with multiple documents.
2195 * src/main/java/org/glom/web/client/OnlineGlom.java:
2196 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2197 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2199 2011-04-02 Ben Konrath <ben@bagu.org>
2201 Move UI code from the main module to its own class.
2203 This is the first commit of a refactor that will allow OnlineGlom to be
2204 used with multiple documents.
2206 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2207 references to OnlineGlom to OnlineGlomView.
2208 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2209 OnlineGlomView and instantiate it here.
2210 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2211 represents the main OnlineGlomView with one document.
2213 2011-04-01 Ben Konrath <ben@bagu.org>
2215 Fix formatting of gwt.xml and add DTD.
2217 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2219 2011-03-30 Ben Konrath <ben@bagu.org>
2221 Propperly convert gdkColor string to html colour string.
2223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2225 2011-03-28 Ben Konrath <ben@bagu.org>
2227 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2229 This implementation matches
2230 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2231 readable and is not tied to Swig.
2233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2235 2011-03-28 Ben Konrath <ben@bagu.org>
2237 Use read-only checkboxes for boolean field types.
2239 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2240 in the CellTable based on the field type. It currently only
2241 distinguishes between boolean and text columns but I'll need to add
2242 support for more types.
2243 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2244 column type in the ColumnInfo object. Add method to convert between the
2245 glom field type enum in ColumnInfo and the glom field type in libglom.
2246 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2248 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2249 getting and setting booleans.
2251 2011-03-25 Ben Konrath <ben@bagu.org>
2253 Don't get the Date twice from the ResultSet.
2255 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2257 2011-03-25 Ben Konrath <ben@bagu.org>
2259 Cleanup code in the servlet.
2261 * TODO: Remove item about row count. Add item about testing row count
2262 query with large number of rows.
2263 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2264 spelling mistakes, change method parameter to be consistent with
2267 2011-03-25 Ben Konrath <ben@bagu.org>
2269 Add server side logging with the gwt-log library.
2271 * .gitignore: Ignore the log file we're now producing.
2272 * TODO: Add a couple TODO item for logging.
2273 * pom.xml: Add gwt-log and log4j as a dependency.
2274 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2275 logging of errors, warnings and some important info.
2276 * src/main/resources/log4j.properties: New file to configure log4j.
2278 2011-03-24 Ben Konrath <ben@bagu.org>
2280 Add a disable button for the Details view.
2282 * src/main/java/org/glom/web/client/LayoutListView.java:
2284 2011-03-22 Ben Konrath <ben@bagu.org>
2286 Use a count query to get the number of rows for the list view pager.
2288 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2290 2011-03-22 Ben Konrath <ben@bagu.org>
2292 Add more TODO information about CellTable pager positioning.
2296 2011-03-19 Ben Konrath <ben@bagu.org>
2298 Add TODO item about CellTable pager positioning.
2302 2011-03-18 Ben Konrath <ben@bagu.org>
2304 Remove unneeded GlomFieldColumn class.
2306 This is just a small code cleanup.
2308 * src/main/java/org/glom/web/client/LayoutListView.java:
2310 2011-03-18 Ben Konrath <ben@bagu.org>
2312 Use cursor mode in the query that gets data for the list view.
2314 I still need to fix the potential memory problem when getting the row
2315 count for the list view.
2317 * TODO: Add note about testing memory usage with large data sets. Add
2318 item about fixing row counting with large data sets.
2319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2320 PostgreSQL JDBC driver into cursor mode when getting data for the
2323 2011-03-15 Ben Konrath <ben@bagu.org>
2325 Remove the GWT Container from the Eclipse build classpath.
2327 The GWT dependencies are set by Maven so this isn't needed.
2331 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2333 Added some earlier mockups to git, but not to the tarball dist.
2335 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2336 Openismus. These hopefully show how we might structure the HTML so that
2337 it can be styled easily with CSS. However, we probably need to adapt them
2338 for the CSS structure that GWT dictates for common widgets.
2340 2011-03-14 Ben Konrath <ben@bagu.org>
2342 Locate OnlineGlom.properties using the ServletContext.
2344 This is required to be able to locate the file in the deployed servlet.
2346 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2347 Configure the database and glom document in in a helper method so
2348 that the ServletContext can be used to locate OnlineGlom.properties.
2349 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2350 src/main/webapp. This is the proper location for .properites files.
2352 2011-03-12 Ben Konrath <ben@bagu.org>
2354 Add note to README about why we're compiling down to obfuscated JavaScript.
2358 2011-03-11 Ben Konrath <ben@bagu.org>
2360 Use properties file to configure servlet.
2362 This allows people to change the glom file path, db username and db
2363 password without recompiling the code.
2365 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2366 * src/main/webapp/OnlineGlom.properties:
2368 2011-03-11 Ben Konrath <ben@bagu.org>
2370 Use table fields in layout list view if the layout list is not defined.
2372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2373 Manually create a LayoutFieldVector for the query builder using the
2374 table fields when a layout list is not defined in the glom file.
2376 2011-03-11 Ben Konrath <ben@bagu.org>
2378 Only show FIXME string for images when there's an image.
2380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2381 in this change are some small code cleanups.
2383 2011-03-11 Ben Konrath <ben@bagu.org>
2385 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2389 2011-03-11 Ben Konrath <ben@bagu.org>
2391 Correctly set the index of the default table.
2393 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2394 Correctly set the index of the default table. Add commented out example
2397 2011-03-10 Ben Konrath <ben@bagu.org>
2399 Add comment to pom.xml about the previous change.
2401 * pom.xml: Add comment about the deployment issue so that it's obvious
2402 why java-libglom is set to the provided scope.
2404 2011-03-10 Ben Konrath <ben@bagu.org>
2406 Change java-libglom dependency from compile to provided in pom.xml.
2408 Since java-libglom uses jni it can only be loaded once and therefore
2409 must be placed in $CATALINA_HOME/lib and not included in each war.
2410 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2411 More information about this issue can be found in the Tomcat 6 release
2412 notes in the "JNI Based Applications" section:
2414 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2416 * README: Remove note about this issue. Deployment info should really
2417 be on the wiki anyway so I'll add it right now.
2418 * pom.xml: Change java-libglom dependency from compile to provided so
2419 that it's copied in to the packaged war.
2421 2011-03-09 Ben Konrath <ben@bagu.org>
2423 Change to using a neutral locale for currency, date and time formatting.
2425 This solves the problem of currency values being represented without a
2426 space between the currency code and the number (e.g. "EUR5.89" is now
2427 represented as "EUR 5.89"). More work is required when we implement
2428 a locale preference setting.
2430 * TODO: Add note about currency formatting issues with different
2432 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2433 to using the neutral ROOT locale.
2435 2011-03-09 Ben Konrath <ben@bagu.org>
2437 Add support for currency codes that are not ISO 4217 codes.
2439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2440 the currency code defined in the glom file when it's not 3 characters
2441 long or when Java doesn't recognize the string as an ISO 4217 code.
2443 2011-03-08 Ben Konrath <ben@bagu.org>
2445 Remove test classes, launch configurations and configuration.
2447 The test stuff was getting in the way when creating the war. To make
2448 the war file you can now do 'mvn clean package'. The packaged war file
2449 will be in the target directory.
2451 * .classpath: Remove unused classpathentry for tests and i18n.
2452 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2453 property. Don't run test or i18n goals when packaging the war.
2454 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2459 * OnlineGlomTest-dev.launch:
2460 * OnlineGlomTest-prod.launch:
2461 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2462 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2464 2011-03-07 Ben Konrath <ben@bagu.org>
2466 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2468 These fixes allow me to use 'mvn deploy' to create the war file.
2470 * .classpath: This generated config has been updated by Eclipse. This
2471 change was probably triggered by me updating from Eclipse 3.6.1 to
2473 * .gitignore: Add entry to ignore the directory
2474 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2475 * .project: The generated config has been updated by Eclipse. This
2476 change was probably triggered by me updating from Eclipse 3.6.1 to
2478 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2479 so that Eclipse doesn't complain
2480 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2481 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2482 'tests' directory to 'client' directory. This is the new
2483 gwt-maven-plugin convension.
2484 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2485 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2487 2011-03-07 Ben Konrath <ben@bagu.org>
2489 Add support for horizontal alignment in the LayoutList columns.
2491 * TODO: Remove item about horizontal alignment. Add item about
2492 improvements to ColumnInfo.
2493 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2494 alignment on the columns. Use ColumnInfo RPC object get the column
2495 title and horizontal alignment.
2496 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2497 LayoutListView creation with ColumnInfo RPC object.
2498 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2499 a ColumnInfo object for every LayoutList columnn. Convert the
2500 FieldFormatting.HorizontalAlignment to the correct
2501 ColumnnInfo.HorizontatlAlignment with the new
2502 getColumnInfoHorizontalAlignment helper method.
2503 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2504 to encapsulate column information like alignment and title. This
2505 could be used to set the colour instead of on a per cell field basis.
2506 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2507 column title storage and retrieval with ColumnInfo.
2509 2011-03-04 Ben Konrath <ben@bagu.org>
2511 Add support for column sorting.
2513 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2514 AsynDataProvider to be an anonymous inner class. Use new
2515 getSortedTableData RPC method when column sort is requested. Set all
2516 columns sortable and add an AsyncHandler to activate sorting in the
2518 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2519 method getSortedTableData(). Cleanup other method signatures.
2520 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2521 new method getSortedTableData(). Cleanup other method signatures.
2522 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2523 Implement getSortedTableData() and getTableData() methods by using a
2524 private helper method with the appropriate parameters filled in. Use
2525 user supplied sort clause when supplied, otherwise fall back to
2526 sorting by the primary key. Move destroy() method to be underneath
2527 constructor for readability. Cleanup comments.
2529 2011-03-03 Ben Konrath <ben@bagu.org>
2531 Add support for colour text and colour backgrounds to the layout list cells.
2533 Only the cell backgrounds are coloured which leaves a gap between the
2534 cells that isn't coloured. I need to figure out a way to set
2535 'style=background-colour:' on the whole column rather than just the
2538 * TODO: Add a note about colouring the background of the whole column.
2539 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2540 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2541 render the coloured text and backgrounds. Use GlomField[] for the row type.
2542 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2544 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2545 GlomField[] for the row type.
2546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2547 GlomField[] for the row type. Set the text, text colour and background
2548 colour in the GlomField objects as specified in the glom document. Add
2549 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2550 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2551 the glom field text, foreground colour and background colour.
2553 2011-03-02 Ben Konrath <ben@bagu.org>
2555 Don't display hidden tables in the combo box.
2557 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2559 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2560 code to ignore hidden tables using ArrayLists for the table names and
2562 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2563 tableNames to use ArrayLists instead of String[]. Update getter and setter
2566 2011-03-01 Ben Konrath <ben@bagu.org>
2568 Add support for Date and Time number types.
2570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2571 Implement formatting for Date and Time values. Change the default glom
2572 file to small business example.
2574 2011-03-01 Ben Konrath <ben@bagu.org>
2576 Add support for formatting glom types as specified in the glom file.
2578 Formatting isn't finished yet - I still need to add support for Date
2581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2582 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2583 checks for null values in JDBC cleanup code and catch all exceptions
2584 instead of just SQLExceptions.
2585 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2588 2011-03-01 Ben Konrath <ben@bagu.org>
2590 Use GWT 2.2.0 instead of 2.1.1.
2592 * pom.xml: Change GWT version numbers.
2594 2011-03-01 Ben Konrath <ben@bagu.org>
2596 A few small code cleanups.
2598 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2600 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2601 unnecessary object creation in constructor.
2602 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2603 unnecessary object creation in constructor.
2605 2011-02-28 Ben Konrath <ben@bagu.org>
2607 Add file for TODO list.
2611 2011-02-18 Ben Konrath <ben@bagu.org>
2613 Enable the CellTable Pager when more than 20 rows need to be viewed.
2615 The Pager will automatically become active when the results are larger
2616 than the CellTable size which is currently set to 20 lines.
2618 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2619 name on debug statment in RPC call in LayoutListDataProvider, add
2620 numRows parameter to LayoutListView constructor, propperly set rowCount
2622 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2623 name on debug statment in RPC call, use LayoutListTable object in RPC
2624 calls, pass rowCount to LayoutListView.
2625 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2626 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2628 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2629 interface for changes in OnlineGlomService.
2630 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2631 getLayoutListHeaders() to getLayoutListTable() and return
2632 LayoutListTable. Using this object allows me to pass other information
2633 about the LayoutList like the expected number of rows in the result set.
2634 The Connection object from the connection pool is now propperly closed.
2635 Only the requested number of lines are returned to the client in
2637 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2638 GlomTable and add columnTitles and numRows.
2640 2011-02-18 Ben Konrath <ben@bagu.org>
2642 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2644 This is a small performance boost. I'll use GlomTable to get the required
2645 layoutlist information.
2647 * src/main/java/org/glom/web/client/OnlineGlom.java:
2648 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2649 * src/main/java/org/glom/web/shared/GlomDocument.java:
2651 2011-02-18 Ben Konrath <ben@bagu.org>
2653 Add option to turn off formatting in JDT formatter preferences.
2655 * .settings/org.eclipse.jdt.core.prefs:
2657 2011-02-18 Ben Konrath <ben@bagu.org>
2659 Rename LayoutList to LayoutListView.
2661 I'm working towards setting things up to easily use MVP when the time
2664 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2666 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2669 2011-02-17 Ben Konrath <ben@bagu.org>
2671 Move LayoutListDataProvider class into LayoutList.java.
2673 * src/main/java/org/glom/web/client/LayoutList.java:
2675 2011-02-17 Ben Konrath <ben@bagu.org>
2677 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2679 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2681 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2682 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2683 from LibGlomServer.java.
2684 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2685 Rename from LibGlomServiceAsync.java.
2686 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2687 Rename from LibGlomServiceImpl.java.
2688 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2690 2011-02-17 Ben Konrath <ben@bagu.org>
2692 Update JDT settings.
2694 * .settings/org.eclipse.jdt.core.prefs:
2696 2011-02-17 Ben Konrath <ben@bagu.org>
2698 Move GWT-RPC objects to shared package (where they should be).
2700 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2701 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2702 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2703 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2704 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2705 org.glom.web.shared package.
2706 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2707 org.glom.web.shared package.
2708 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2709 directory in compilation to javascript.
2711 2011-02-16 Ben Konrath <ben@bagu.org>
2713 Add sort clause to the sql query that grabs table information.
2715 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2716 if one of the columns is a primary key.
2718 2011-02-16 Ben Konrath <ben@bagu.org>
2720 Disable generateAsync feature of gwt-maven.
2722 The generated interface does not correctly match the methods in LibGlomService
2723 and the generated singleton Util inner-class doesn't respect the servlet
2726 * pom.xml: Turn off generateAsync feature.
2727 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2728 with singleton Util inner-class.
2730 2011-02-14 Ben Konrath <ben@bagu.org>
2732 Add LGPL v3 licence notices.
2734 Followed directions listed here:
2735 http://www.gnu.org/licenses/gpl-howto.html
2737 * COPYING: This file is a copy of the GPL v3.
2738 * COPYING.LESSER: This file is a copy of the LGPL v3.
2739 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2741 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2743 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2745 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2747 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2749 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2751 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2754 2011-02-14 Ben Konrath <ben@bagu.org>
2756 Use ArrayList instead of Array in GWT-RPC calls.
2758 Apparently this gives a slight performance boost to the compiled
2761 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2763 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2766 2011-02-14 Ben Konrath <ben@bagu.org>
2768 Access data from a postgres db rather than the example glom file.
2770 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2771 compile down to obfuscated javascript.
2772 * pom.xml: Add c3p0 and postgres JDBC libraries.
2773 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2774 using a postgres db accessed through the c3p0 connection pooling library.
2776 2011-02-14 Ben Konrath <ben@bagu.org>
2778 Update Java formatter settings.
2780 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2782 2011-02-02 Ben Konrath <ben@bagu.org>
2784 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2786 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2788 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2789 the compiled webapp directory that Eclipse uses as we're using Maven now.
2790 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2791 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2793 * pom.xml: Format file, change target Java version to 1.6.
2795 2011-02-02 Ben Konrath <ben@bagu.org>
2797 Add information about a deployment related issue.
2799 * README: Add Notes section with the problem outlined.
2801 2011-02-02 Ben Konrath <ben@bagu.org>
2803 Call Glom.libglom_deinit() when the servlet is shutdown.
2805 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2806 Glom.libglom_deinit() to destroy() method.
2808 2011-01-28 Ben Konrath <ben@bagu.org>
2810 Use generated Util class to get the RPC Async interface.
2812 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2814 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2815 getInstance() method to get a reference to the RPC Async interface.
2816 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2817 getInstance() method to get a reference to the RPC Async interface, remove
2818 the now unused getLibGlomServiceProxy() method.
2820 2011-01-27 Ben Konrath <ben@bagu.org>
2822 Cleanup ChangeLog entry from previous commit.
2824 * ChangeLog: Group logical changes together and add comments.
2826 2011-01-25 Ben Konrath <ben@bagu.org>
2828 Convert to gwt-maven project.
2830 * .gitignore: Update for new project structure.
2831 * README: New file with a link to the online documentation.
2832 * pom.xml: The generated maven configuration file with some tweaks.
2834 Add / update Eclipse settings. These files are a merge of the files that
2835 were generated with the gwt-maven plugin and the files we were previously
2839 * .settings/.jsdtscope:
2840 * .settings/com.google.gdt.eclipse.core.prefs:
2841 * .settings/com.google.gwt.eclipse.core.prefs:
2842 * .settings/org.eclipse.jdt.core.prefs:
2843 * .settings/org.eclipse.wst.common.component:
2844 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2845 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2846 * .settings/org.maven.ide.eclipse.prefs:
2847 * OnlineGlomTest-dev.launch:
2848 * OnlineGlomTest-prod.launch:
2850 Java source files moved from the 'src' directory to the directory structure
2852 * src/main/java/org/glom/web/client/GlomDocument.java:
2853 * src/main/java/org/glom/web/client/GlomTable.java:
2854 * src/main/java/org/glom/web/client/LayoutList.java:
2855 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2856 * src/main/java/org/glom/web/client/LibGlomService.java:
2857 * src/main/java/org/glom/web/client/OnlineGlom.java:
2858 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2860 Non-functional property file used for translations. I included this as
2861 reminder that it's something I need to sort out.
2862 * src/main/resources/org/glom/web/client/Messages.properties:
2864 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2865 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2867 The servlet configuration files moved from the 'war' directory.
2868 * src/main/webapp/OnlineGlom.css:
2869 * src/main/webapp/OnlineGlom.html:
2870 * src/main/webapp/WEB-INF/web.xml:
2872 Generated test files with most of the code commented out. I included these
2873 so that it's easy to add tests when we're ready for them.
2874 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2875 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2877 2011-01-25 Ben Konrath <ben@bagu.org>
2879 Remove unused println.
2881 * src/org/glom/web/server/LibGlomServiceImpl.java:
2883 2011-01-25 Ben Konrath <ben@bagu.org>
2885 Add project specific JDT settings.
2887 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2888 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2890 2011-01-25 Ben Konrath <ben@bagu.org>
2892 Populate celltable with example data.
2894 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2895 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2896 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2897 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2898 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2899 asynchronously gets the example data.
2900 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2901 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2902 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2903 curently selected table to be retrieved by other widgets.
2904 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2905 implement getTableData() in a hacky way. This method needs to be updated
2906 to grab information from the database when database creating is
2909 2011-01-20 Ben Konrath <ben@bagu.org>
2911 Set table headers when table dropBox changes.
2913 * src/org/glom/web/client/GlomDocument.java: Correct some method
2915 * src/org/glom/web/client/LibGlomService.java: Add method
2916 to get list layout field names.
2917 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2918 to get list layout field names.
2919 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2920 widget for list layout table.
2921 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2922 the table drop box and add new updateTable() method to asynchronously
2923 get the layout list field names for the currently selected table.
2924 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2925 implementation of getLayoutListHeaders() method.
2926 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2928 2011-01-18 Ben Konrath <ben@bagu.org>
2930 Make a listBox with table titles instead of the flexTable demo.
2932 This is the start of something more useful.
2934 * .classpath: Exclude a bunch of packages from the JVM that are
2935 getting in the way of the Eclipse content assist.
2936 * src/org/glom/web/client/GlomDocument.java:
2937 * src/org/glom/web/client/GlomTable.java:
2938 * src/org/glom/web/client/LibGlomService.java:
2939 * src/org/glom/web/client/LibGlomServiceAsync.java:
2940 * src/org/glom/web/client/OnlineGlom.java:
2941 * src/org/glom/web/server/LibGlomServiceImpl.java:
2942 * war/OnlineGlom.html:
2943 * war/WEB-INF/web.xml:
2945 211-01-13 Ben Konrath <ben@bagu.org>
2947 Update to new java-libglom API.
2949 * .gitignore: Ignore OnlineGlom.war.
2950 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2952 2010-12-20 Ben Konrath <ben@bagu.org>
2954 Add some basic style to the table listing.
2956 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2957 header, print useful error message on async callback failure.
2958 * war/OnlineGlom.css: Add style for table header, remove defaults
2959 provided by the Eclipse project wizard.
2961 2010-12-20 Ben Konrath <ben@bagu.org>
2963 Load example file from installed glom dir.
2965 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2966 provided by java-libglom to find the example file.
2968 2010-12-20 Ben Konrath <ben@bagu.org>
2970 Update Eclipse settings.
2973 * .settings/com.google.gdt.eclipse.core.prefs:
2974 * .settings/com.google.gwt.eclipse.core.prefs:
2976 2010-12-17 Ben Konrath <ben@bagu.org>
2980 * .classpath: New file.
2981 * .gitignore: New file.
2982 * .project: New file.
2983 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2984 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2985 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2986 * src/org/glom/web/client/GlomTable.java: New file.
2987 * src/org/glom/web/client/OnlineGlom.java: New file.
2988 * src/org/glom/web/client/TableNameService.java: New file.
2989 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2990 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2991 * war/OnlineGlom.css: New file.
2992 * war/OnlineGlom.html: New file.
2993 * war/WEB-INF/web.xml: New file.
2994 * war/images/glom.png: New file.