1 2011-11-29 Ben Konrath <ben@bagu.org>
3 Only create a contents panel for Portals when title is being set.
5 * src/main/java/org/glom/web/client/ui/details/Portal.java:
7 2011-11-29 Ben Konrath <ben@bagu.org>
9 Set TabLayoutPanel height based on calculated height its widgets.
11 This is a potential fix for this bug:
13 https://bugzilla.gnome.org/show_bug.cgi?id=665133
15 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
17 2011-11-29 Ben Konrath <ben@bagu.org>
19 Align details field labels and data with the Open buttons.
21 * src/main/webapp/style.css:
23 2011-11-29 Ben Konrath <ben@bagu.org>
25 Remove unnecessary <div> in the Notebook widget.
27 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
28 method to get container FlowPanel (<div>).
29 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
30 initWidget() method directly on the TabLayoutPanel widget instead of
31 Group's container widget.
33 2011-11-29 Ben Konrath <ben@bagu.org>
35 Don't add group titles for Portals in Notebooks.
37 This reverts the previous patch and fixes a bug I introduced with
38 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
40 * src/main/java/org/glom/web/client/ui/details/Group.java:
41 * src/main/java/org/glom/web/client/ui/details/Portal.java:
43 2011-11-28 Ben Konrath <ben@bagu.org>
45 Remove unused boolean argument in Portal constructor.
49 * src/main/java/org/glom/web/client/ui/details/Group.java:
50 * src/main/java/org/glom/web/client/ui/details/Portal.java:
52 2011-11-28 Ben Konrath <ben@bagu.org>
54 Remove hack for glom 1.18 style glom files.
56 * src/main/java/org/glom/web/client/ui/details/Group.java:
57 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
58 * src/main/java/org/glom/web/client/ui/details/Portal.java:
60 2011-11-28 Ben Konrath <ben@bagu.org>
62 Use Gda Value version of primary key to log result too large error.
64 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
66 2011-11-28 Ben Konrath <ben@bagu.org>
68 Don't use TypedDataItem.getText() for Unknown types from the URL.
70 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
71 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
73 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
74 String field and getUnknown() method.
76 2011-11-28 Ben Konrath <ben@bagu.org>
78 Log an error message when the java-libglom .so is not present.
80 The error message was being set in the exception but not logged.
82 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
84 2011-11-28 Ben Konrath <ben@bagu.org>
86 Ignore LayoutItem_CalendarPortals.
88 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
89 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
91 2011-11-28 Ben Konrath <ben@bagu.org>
93 Extract method for creating the LayoutItemPortal DTO.
95 Just breaking the code up into smaller chunks.
97 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
99 2011-11-28 Ben Konrath <ben@bagu.org>
103 This should have been added with the refactor. Oops!
105 * src/main/java/org/glom/web/shared/TypedDataItem.java:
107 2011-11-28 Ben Konrath <ben@bagu.org>
109 Create primary key value from URL string using type from Glom document.
111 See this bug, comments 19 - 25:
113 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
115 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
116 create a TypeDataItem for the primary key here when loading from a
117 URL. Show the same string for the primary key value as was received
118 from the URL string (when loading from a URL).
119 * src/main/java/org/glom/web/server/Utils.java: Update method for
120 creating the Gda Value from the TypeDataItem to properly deal with
121 creating a Gda Value based on the Glom document type for the primary
122 key value string when loading from a URL.
123 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
124 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
125 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
126 Update for changed method name.
128 2011-11-27 Ben Konrath <ben@bagu.org>
130 Rename PrimaryKeyItem to TypedDataItem.
132 The name PrimaryKeyItem suggests what the class should be used for.
133 TypedDataItem is a neutral name that describes the class better.
135 This is a rename-only refactor.
137 * src/main/java/org/glom/web/client/OnlineGlomService.java:
138 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
139 * src/main/java/org/glom/web/client/Utils.java:
140 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
141 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
142 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
143 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
144 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
145 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
146 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
147 * src/main/java/org/glom/web/server/Utils.java:
148 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
149 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
150 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
151 * src/main/java/org/glom/web/shared/NavigationRecord.java:
153 2011-11-25 Ben Konrath <ben@bagu.org>
155 Improve Gda Value conversion from PrimaryKeyItem.
157 The value from the PrimaryKeyItem is only used if its type match the
158 type from the glom document.
160 * src/main/java/org/glom/web/server/Utils.java:
162 2011-11-25 Ben Konrath <ben@bagu.org>
164 Manually check if the java-liblgom .so is visible to the JVM.
166 It seems that Tomcat has problems when a static initializer throws an
167 exception. This check is done before the first method call into
168 java-libglom so that execution doesn't continue if the .so is not
171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
173 2011-11-25 Ben Konrath <ben@bagu.org>
175 Improve browser configuration error messages.
179 https://bugzilla.gnome.org/show_bug.cgi?id=662792
181 * src/main/java/org/glom/web/client/OnlineGlomService.java:
182 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
183 getConfigurationErrorMessage() method.
184 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
185 Get and display a specific configuration error message when no Glom
187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
188 Implement getConfigurationErrorMessage() method. Surround configuration
189 code in the init() method with a try/catch block. This allows the
190 errors to be caught while keeping the servlet available to retrieve the
191 configuration error message.
193 2011-11-25 Ben Konrath <ben@bagu.org>
195 Don't use Strings to hold primary key values.
197 The primary key values are now held in a new data object
198 (PrimaryKeyItem) that holds type information and the primary key value
199 using the correct type.
201 * src/main/java/org/glom/web/client/OnlineGlomService.java:
202 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
203 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
204 PrimaryKeyItem instead of String to hold the primary key value.
205 * src/main/java/org/glom/web/client/Utils.java: Remove
206 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
207 PrimaryKeyItem based on the GlomFieldType and the DataItem.
208 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
209 PrimaryKeyItem instead of String to hold the primary key value. Load
210 document selection page when the documentID has not been set correctly.
211 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
212 DetailsPlace -> URL and URL -> DetailsPlace conversion with
214 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
215 Return empty string for URL instead of "null".
216 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
217 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
218 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
219 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
220 PrimaryKeyItem instead of String to hold primary key values.
221 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
222 PrimaryKeyValue to a Gda Value.
223 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
224 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
225 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
226 Replace temporary database access code that uses the PrimaryKeyValue to
227 Gda Value conversion.
228 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
229 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
230 PrimaryKeyItem instead of String.
231 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
232 hold primary key values.
234 2011-11-24 Ben Konrath <ben@bagu.org>
236 Use newly added java-libglom API to create queries.
238 This isn't finished. I still need to stop using Strings for primary key
239 values in the client code.
241 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
242 libglom to use fake connections so that retrieving the query string will
244 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
245 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
246 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
247 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
248 Use the newly added libglom sql methods and classes to create the
249 query. Add temporary hack to convert primary value strings to Gda
252 2011-11-23 Ben Konrath <ben@bagu.org>
254 Don't explicitly set the height of Portals.
256 See comments 6 - 10 of this bug for details:
258 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
260 * src/main/java/org/glom/web/client/ui/details/Portal.java:
262 2011-11-23 Ben Konrath <ben@bagu.org>
264 Use an HTML table instead of CSS for the FlowTable layout.
266 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
267 GWT's FlexTable to implement the FlowTable.
268 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
270 2011-11-18 Ben Konrath <ben@bagu.org>
272 Add boolean example to HTML table mockup.
274 * mockups/details-view-html-tables-text-entries.html:
276 2011-11-17 Ben Konrath <ben@bagu.org>
278 Ensure the pager buttons are always visible for related lists.
280 To accomplish this, I've turned off text wrapping in the list view and
281 related list tables for both the header and data text. The related list
282 table now has a fixed layout so the it doesn't overflow its container.
283 This is required to ensure that the cell text is clipped when it
284 overflows the cell and an ellipsis is added to the right side of the
285 cell when text is clipped.
287 A fixed table layout for the related list table in the details view
288 seems what we want for the details view anyway, so the side-effect is
291 The ellipsis will only be displayed in Firefox >= 7.
295 https://bugzilla.gnome.org/show_bug.cgi?id=662930
297 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
298 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
299 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
301 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
302 Set the 'table-layout: fixed' CSS property to the related list table.
303 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
304 'white-space: nowrap;' CSS property on both the list view and the
307 2011-11-16 Ben Konrath <ben@bagu.org>
309 Rework the fix for empty notebook tab labels.
311 Setting the empty group titles with its name caused problems for the
312 details layout. Instead of using libglom's
313 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
314 to the client when the title is empty. This allows the Notebook to use
315 the name when the title is empty without affecting anything else.
317 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
318 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
320 2011-11-16 Ben Konrath <ben@bagu.org>
322 Set group titles with name when title is empty.
324 This fixes a problem with an empty notebook tab label in the Lesson
325 Planner document. The forth tab in the notebook should be "Internet":
327 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
329 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
330 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
333 2011-11-16 Ben Konrath <ben@bagu.org>
335 Remove whitespace from the configured username properties.
337 This assumes that usernames won't have whitespace at the beginning
338 or end. But I think this is a reasonable assumption.
340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
341 String.trim() to remove the whitespace from the username properties.
343 2011-11-15 Ben Konrath <ben@bagu.org>
345 Add details view mockup with HTML tables and text entries.
347 This is from the attachment on this bug:
349 https://bugzilla.gnome.org/show_bug.cgi?id=663109
351 * mockups/details-view-html-tables-text-entries.html:
353 2011-11-15 Ben Konrath <ben@bagu.org>
355 Add space between the columns of the flow table.
359 https://bugzilla.gnome.org/show_bug.cgi?id=662918
361 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
362 space between columns in the flow table.
364 2011-11-15 Ben Konrath <ben@bagu.org>
366 Add backup files to the .gitignore.
368 * .gitignore: Ignore files that end with ~.
370 2011-11-09 Ben Konrath <ben@bagu.org>
372 Use latest release of gwt-log.
374 Gwt-log releases are now being submitted to the maven central
375 repository so manual installation of the jar is no longer required.
377 * pom.xml: Update version and groupId of gwt-log dependency.
379 2011-10-31 Ben Konrath <ben@bagu.org>
381 Don't use GWT numeric formatting to override the glom currency formatting.
383 Currencies are now displayed like they are in Glom. See this bug:
385 https://bugzilla.gnome.org/show_bug.cgi?id=646216
387 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
389 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
390 currency code to constructor and set it when the cell is rendered.
391 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
392 currency code to the constructor of the NumericCell.
394 2011-10-27 Ben Konrath <ben@bagu.org>
396 Require the latest release of java-libglom (1.17.4).
400 2011-10-26 Ben Konrath <ben@bagu.org>
402 Add style to Notebook that matches current theme.
404 It's not the best style in the world but it's better than the default.
406 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
407 padding at the bottom of the child widgets.
408 * src/main/webapp/style.css: Add style for the Notebook.
410 2011-10-26 Ben Konrath <ben@bagu.org>
412 Move servlet initialization code to overridden init method.
414 This is half of the solution to getting proper error messages
415 displayed when configuration errors occur. Here's the relevant bug:
417 https://bugzilla.gnome.org/show_bug.cgi?id=662792
419 The rest of the solution involves surrounding the init method with a
420 try/catch block and setting a global variable with the error /
421 exception. A new async method should be created to retrieve and display
422 the error message / exception.
424 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
425 code from constructor to init method adding exceptions as needed.
427 2011-10-26 Ben Konrath <ben@bagu.org>
429 Add script to monitor and restart tomcat if required.
431 * utils/check-and-recover-tomcat.py: New file.
433 2011-10-26 Ben Konrath <ben@bagu.org>
435 Display the correct number of data items in the pager.
439 https://bugzilla.gnome.org/show_bug.cgi?id=661441
441 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
442 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
443 The implementation is the same for both tables: Keep track of the
444 number of non-empty rows and fire and RowCountChangeEvent after the data has
446 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
447 custom Pager class that subclasses SimplePager to handle displaying
448 the correct number when empty rows have been added.
450 2011-10-26 Ben Konrath <ben@bagu.org>
452 Correct error in previous commit.
454 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
455 eventBus parameter from listView.setCellTable().
457 2011-10-26 Ben Konrath <ben@bagu.org>
459 Fix error in TODO comment.
461 * src/main/java/org/glom/web/client/activity/ListActivity.java:
463 2011-10-24 Ben Konrath <ben@bagu.org>
465 Create Notebook widgets to the details view.
467 This isn't finished just yet - I still need to create a reasonable
468 style to match the current theme.
470 * src/main/java/org/glom/web/client/Utils.java: Add method for
471 calculating the height of a widget. This is used in the Notebook class.
472 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
473 new constructor method in Group.
474 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
475 method for creating child widget that can be used by subclasses
476 like Notebook. New constructor that allows disabling the group
477 titles - Notebooks don't set a group title for their child groups.
478 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
479 to make Notebooks using GWT's TabLayoutPanel.
480 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
481 constructor that allows disabling the group titles.
482 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
483 LayoutItemNotebook DTO.
484 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
485 DTO for Notebooks. It's just an empty class for now but we might need
486 it to transfer some specific information in the future.
488 2011-10-21 Ben Konrath <ben@bagu.org>
490 Add navigation buttons to related list tables.
492 * src/main/java/org/glom/web/client/OnlineGlomService.java:
493 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
495 method getSuitableRecordToViewDetails() for getting the table name
496 and primary key value for related list navigation buttons.
497 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
498 private cell renderer class to get the navigation information for
499 related list tables from the server. Extract the navigation
500 processing code from the details cell navigation and use it for the
501 related list navigation as well.
502 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
503 cell renderer class for the details open buttons. This was needed
504 because the related list navigation buttons and the list view
505 navigation buttons need to react differently when clicked.
506 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
507 the onEnterKeyDown() method because it's now overriden in the
508 subclasses that are specific to the related list tables and the list
510 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
511 the vertical size a little because the buttons add a bit of vertical
512 space to table. This is not a perfect solution because the vertical
513 size of with table fewer than 5 rows will be a little smaller.
514 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
515 changes in how navigation buttons are handled.
516 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
517 getSuitableRecordToViewDetails() using the new RelatedListNavigation
518 database access object.
519 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
520 to find the portal for a given relationship name from
521 RelatedListDBAccess. Add method to find a primary key field for a
523 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
524 Move code to find the portal for a given relationship name to
526 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
527 New file: database access object for getting the related list
528 navigation information (the table name and the primary key value).
529 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
530 DTO for transferring a table name to navigate to and a primary key
532 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
533 boolean and getter/setter to specifies if the related list should add
536 2011-10-24 Murray Cumming <murrayc@murrayc.com>
538 Use the master branch of java-libglom
540 * pom.xml: Depend on java-libglom 1.19 instead.
542 This is the master branch. See also the libglom-1-18 branch.
544 2011-10-11 Ben Konrath <ben@bagu.org>
546 Enable the open navigation button when the data has been set.
548 This avoids having active buttons that don't do anything when the data
551 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
553 2011-10-11 Ben Konrath <ben@bagu.org>
555 Use IsWidget interface for FlowTableItem.
557 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
558 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
560 2011-10-11 Ben Konrath <ben@bagu.org>
562 Remove GWT styling from open button in details view.
564 There are still some issues with how the details cell is arranged but
565 this should be made to match Glom 1.20. I'm going to leave fixing this
566 until I have Glom 1.20 up and running.
568 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
569 style name on open button.
570 * src/main/webapp/style.css: Move and edit details-navigation class.
571 Re-arrange some classes to make them appear in the same order as the
574 2011-10-07 Ben Konrath <ben@bagu.org>
578 * .gitignore: Ignore new cache directory.
579 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
580 * pom.xml: Change GWT and maven plugin to 2.4.0.
581 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
583 * src/main/java/org/glom/web/client/ClientFactory.java:
584 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
585 * src/main/java/org/glom/web/client/OnlineGlom.java:
586 Update source for API changes.
587 * utils/build-onlineglom-war.sh: Remove cache directory before the
590 2011-10-07 Ben Konrath <ben@bagu.org>
592 Add navigation buttons in the details view.
594 This isn't finished but I thought I'd commit what I have as it's a
595 pretty good start. I still need to:
597 1. Change the style so that it fits better into the current theme
598 2. Adjust the details cell to expand as much as possible.
600 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
601 click handlers to navigation buttons in the DetailsCells. Create a
602 refreshData() method to get just the data from the server without the
604 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
605 Update the tableSelector and browser title when the table name
606 changes without using the tableSelector.
607 * src/main/java/org/glom/web/client/ui/DetailsView.java:
608 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
609 getDetailsCells() to getCells(). Update variable names.
610 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
611 method to set click handler on navigation button. Rename a few
612 variables. Add navigation buttons where needed.
613 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
614 variables and methods.
615 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
616 navigation boolean and navigation table as required in the
618 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
619 variables for navigation along with getter/setter methods.
621 2011-10-07 Ben Konrath <ben@bagu.org>
623 Rename Field to DetailsCell.
625 This is a refactor-only commit. No functionality has been added or
628 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
629 Update variable and method names.
630 * src/main/java/org/glom/web/client/ui/DetailsView.java:
631 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
632 variable and method names.
633 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
635 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
636 variable and method names.
638 2011-10-07 Ben Konrath <ben@bagu.org>
640 Create separate methods for layout and data the details view.
642 This is a refactor-only commit. No functionality has been added or
645 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
646 private methods: setData(), createLayout().
648 2011-10-07 Ben Konrath <ben@bagu.org>
650 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
652 This is part of a change to get navigation buttons in the details view
653 but it should have been done this way from the start.
655 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
656 for method name change in TableSelectionView.
657 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
658 Create TableChangeEvent and set the browser title using the
659 TableSelectionView API.
660 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
661 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
662 Change getSelectedTable() to getSelectedTableName(). Add
663 getSelectedTableTitle().
665 2011-10-07 Ben Konrath <ben@bagu.org>
667 Use primaryKeyValue naming convention in constructor of DetailsPlace.
669 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
671 2011-10-07 Ben Konrath <ben@bagu.org>
673 Update TableChangeEvent to use newTableName naming convention.
675 This makes the class more consistent with GWT naming conventions.
677 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
678 Update for method name change in TableChangeEvent.
679 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
680 for method name change in TableChangeEvent.
681 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
682 newTableName variable and getter method. Make toDebugString()
685 2011-09-30 Ben Konrath <ben@bagu.org>
687 Disable the pager in the list tables when the data row count is less than the minimum.
689 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
690 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
692 2011-09-30 Ben Konrath <ben@bagu.org>
694 Add empty rows to the end of related list and list view tables.
696 I also extracted the cell rendering classes from the ListTable because
697 the code was becoming a little crazy with all the anonymous inner
698 classes. My plan is to use these cell rendering classes in the details
699 view as well so this refactor will be needed for that change.
701 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
702 set the row count in related list tables if the data has more rows
703 than the minimum number of rows visible.
704 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
705 row count in list view tables if the data has more rows than the
706 minimum number of rows visible.
707 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
708 for rendering TYPE_BOOLEAN cells. The code was extracted from the
710 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
711 for rendering TYPE_NUMERIC cells. The code was extracted from the
713 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
714 class for rendering cells with buttons in list views. The code was
715 extracted from the ListTable class.
716 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
717 for rendering TYPE_TEXT cells. The code was extracted from the
719 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
720 Add empty rows to the end of the data if required. Implement
721 ListTable.getMinNumVisibleRows().
722 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
723 cell renderer code to public classes. Return null in
724 Column.getValue() for empty rows. Add new abstract method:
725 getMinNumVisibleRows(). Move code to set the row count of the list view
726 table to ListViewImpl.
727 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
728 empty rows to the end of the data if required. Implement
729 ListTable.getMinNumVisibleRows().
732 2011-09-27 Ben Konrath <ben@bagu.org>
734 Use GWT.log for client-side debugging statements.
736 These are optimized out when deployed so I should have used this method
737 in the first place. These statements will eventually be replaced with some sort
738 of notification in the browser.
740 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
741 * src/main/java/org/glom/web/client/activity/ListActivity.java:
742 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
743 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
744 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
746 2011-09-27 Ben Konrath <ben@bagu.org>
748 Put tableselector on the right, back to list link on right.
750 The idea is that the table selector is acting like a label for the
751 currently displayed table so it should be placed below the document title. This
752 puts the table title in a similar position to where it is in Glom.
754 * mockups/details-contacts.html:
755 * mockups/details-projects.html:
756 * mockups/listview-contacts.html:
757 * mockups/listview-projects.html:
759 Update mockups to match how the interfaces currently look.
760 * src/main/webapp/style.css: Swap positions of backlink with the table
761 selector. Add some space on the left side of the table selector to
762 line things up with the document title.
764 2011-09-27 Ben Konrath <ben@bagu.org>
766 Add field colouring to details view.
768 This change re-works how field colouring works. The colour formatting
769 information is now set to the client with the layout information instead of
770 with the data. This eliminates the need to send the same colour strings for
771 data in list view column when colour information is set.
773 In order to set an alternate colour for negative numeric values, the
774 number is now sent to client and formatted with the GWT NumberFormat class.
776 This change also fixes:
778 https://bugzilla.gnome.org/show_bug.cgi?id=659752
780 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
781 internationalization framework which is needed for client side numeric
783 * src/main/java/org/glom/web/client/Utils.java: New file for some
784 client static utility methods.
785 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
786 the DataItem object to the Field class. Use a utility method to
787 create the foreignKeyValue string.
788 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
789 alignment and text colours in the constructor. Add setData(DataItem)
790 method. Remove setText(String) method.
791 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
792 colour information to GlomTextCell. Create and use GlomNumberCell for
793 rendering numbers. Use utility method to get the string for the
794 primary key of the key provider. Re-work how the horizontal alignment
796 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
797 formatting to layout information. Methods for converting the libglom
798 formatting information were moved from DBAccess.
799 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
800 numeric formatting (it's now done on the client side). Don't set text
801 colours in DataItem. Move libglom formatting conversion methods to
803 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
804 getters/setters for text colour information.
805 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
806 for transferring the libglom NumericFormat information to the client.
807 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
808 and getters/setters for: GlomNumericFormat, background colour and
809 foreground colour strings.
811 2011-09-26 Ben Konrath <ben@bagu.org>
813 Simplify code that iterates through the LayoutGroup.
815 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
817 2011-09-26 Ben Konrath <ben@bagu.org>
819 Accept Eclipse formatting for OnlineGlomServiceAsync.
821 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
823 2011-09-26 Ben Konrath <ben@bagu.org>
825 Don't use the ListDBAccess classes to get the primary key layout information.
827 This was causing a bug where the wrong index for the hidden primary key
828 was being sent to the client.
830 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
831 primary key while creating the LayoutGroup DTO. Create a
832 LayoutItemField DTO for hidden primary keys. Don't use the
833 RelatedListDBAccess because it was only used for getting the primary
835 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
836 access modifier from public to protected for getPrimaryKeyField() and
837 getPrimaryKeyLayoutItemField().
838 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
839 abstract method getExpectedResultSize() because RelatedListDBAccess
840 doesn't have enough info to implement it.
841 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
842 Remove @Override for getExpectedResultSize().
843 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
844 Remove method getExpectedResultSize().
846 2011-09-23 Ben Konrath <ben@bagu.org>
848 Log which layout (list or details) the ignored item is from.
850 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
852 2011-09-23 Ben Konrath <ben@bagu.org>
854 Remove annotations that turn off code formatting in DataItem.
856 * src/main/java/org/glom/web/shared/DataItem.java:
858 2011-09-23 Ben Konrath <ben@bagu.org>
860 Rename GlomField to DataItem and update associated methods.
862 This is a rename-only refactor. No functionality has been added or
865 * src/main/java/org/glom/web/client/OnlineGlomService.java:
866 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
867 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
868 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
869 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
870 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
871 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
872 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 * src/main/java/org/glom/web/server/database/DBAccess.java:
875 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
876 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
877 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
878 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
879 * src/main/java/org/glom/web/shared/DataItem.java:
880 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
881 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
883 2011-09-23 Ben Konrath <ben@bagu.org>
885 Rename GlomDocument to DocumentInfo and update associated methods.
887 This is a rename-only refactor. No functionality has been added or
890 * src/main/java/org/glom/web/client/OnlineGlomService.java:
891 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
892 * src/main/java/org/glom/web/client/activity/ListActivity.java:
893 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
894 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
896 * src/main/java/org/glom/web/shared/DocumentInfo.java:
898 2011-09-20 Ben Konrath <ben@bagu.org>
900 Require java-libglom 1.17.3.
902 This picks up the fix for the seg fault problem with the Scenes table
903 in the Openismus Film Manager example.
907 2011-09-20 Ben Konrath <ben@bagu.org>
909 Change the way sort clause is added for primary key when no sort clause is requested.
911 The primary key is now added to the LayoutFieldVector (fieldsToGet)
912 before the sort clause is created. When a sort clause is not requested, the
913 sort clause is created by finding the primary key in the LayoutFieldVector
916 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
918 2011-09-20 Ben Konrath <ben@bagu.org>
920 Log error message if no documents are found in the configured directory.
922 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
923 Extract the glom file extension string to a private static final class
924 variable (mostly as syntactic sugar). Accept a minor formatting change.
925 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
926 the example glom.document.directory configuration property to make it
927 more clear that it can any directory, not just the home directory.
929 2011-09-18 Ben Konrath <ben@bagu.org>
931 Add related lists to details view.
933 The related list table has support for paging and sorting just like the
934 table in the list view.
936 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
937 SQL queries for the related list tables.
938 * src/main/java/org/glom/web/client/OnlineGlomService.java:
939 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
940 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
941 Rename getList methods to getListView and add comments. Remove
942 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
943 it being unused. Add methods: getDetailsLayoutAndData(),
944 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
945 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
946 Create the layout and set the data for the fields in one async call
947 instead of two. Create related lists where appropriate.
948 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
949 for method name changes in OnlineGlomService.
950 * src/main/java/org/glom/web/client/ui/DetailsView.java:
951 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
952 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
954 * src/main/java/org/glom/web/client/ui/ListView.java:
955 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
956 tableName from setCellTable(). Create a ListViewTable instead of
958 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
959 represent a data field in the details view.
960 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
961 from addDetailsCell() to Field class. Keep track of the Fields and
962 Portals in the details view.
963 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
964 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
965 and add a method to get it. Add method to set the contents of the
967 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
968 New class for related list tables. This class has the data provider
969 for the related list table.
970 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
971 abstract class which is the base class for the ListViewTable and the
973 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
974 New class for list view tables. This class has the data provider for
976 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
977 methods for related list tables. Add more information to the
978 LayoutItemField and LayoutItemPortal DTOs.
979 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
980 Remove debugging print statement.
981 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
982 Remove debugging print statements. Add primary key field to SQL count
984 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
985 Remove unnecessary LayoutFieldVector parameter from
986 getResultSizeOfSQLQuery() method.
987 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
988 New class for related list table database access.
989 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
990 class that is a wrapper DTO for details view layout and data.
991 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
992 new 'fromField' string to this DTO.
993 * src/main/webapp/style.css: Remove bottom margin and override top
996 2011-09-15 Ben Konrath <ben@bagu.org>
998 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1000 This sets things up to make it easier to add the data retrieval for
1001 related lists (portals). No user noticeable changes were made with
1004 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1005 class has the code to retrieve the layouts and access the
1006 database using the new database helper classes.
1007 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1008 Most of the functionality has been removed from this class. This
1009 class now represents the public interface for the client side
1010 code. It also deals with configuring the servlet and cleaning
1011 things up when the servlet is stopped.
1012 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1013 of static methods into this utility class.
1014 * src/main/java/org/glom/web/server/database/DBAccess.java:
1015 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1016 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1017 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1018 These classes have the database retrieval code. The class hierarchy
1019 has been setup to make it easy to reuse code for similar
1022 2011-09-06 Ben Konrath <ben@bagu.org>
1024 Create separate classes for list table code and the data provider.
1026 As part of this refactor, I also split up the code a bit to make it
1029 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1030 table code to two new classes (below).
1031 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1032 with code from ListViewImpl.
1033 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1034 New file with code from ListViewImpl.
1036 2011-09-06 Ben Konrath <ben@bagu.org>
1038 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1040 This fixes the LayoutItemPortal DTO to match the libglom layout object
1043 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1045 2011-09-01 Ben Konrath <ben@bagu.org>
1047 Set title of Portals in the Details View.
1049 * pom.xml: Bump required version of java-libglom to 1.17.1.
1050 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1051 widget creation to its own class. Add comments to constructor.
1052 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1053 The code is mostly from the Group class with the title now set.
1054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1055 title of Portal. Update some comments. Fix some code formatting.
1057 2011-09-01 Ben Konrath <ben@bagu.org>
1059 Remove TODO comment for the flow table column width.
1061 The flow table column width is working correctly and doesn't need to be
1062 changed. See this mailing list post for more info:
1064 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1066 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1068 2011-08-27 Ben Konrath <ben@bagu.org>
1070 Add document title (database name) to top of the browser page.
1072 I added the document title to the TableSelecitonView but that will
1073 change if / when we add a view that doesn't require table selection.
1075 * mockups/details-contacts.html:
1076 * mockups/details-projects.html:
1077 * mockups/listview-contacts.html:
1078 * mockups/listview-projects.html:
1079 * mockups/style.css: Add document title to mockups to keep things
1081 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1082 sizes to account for the document title.
1083 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1084 Set the document title when it has been retrieved from the server.
1085 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1086 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1087 and implement setDocumentTitle(String) method.
1088 * src/main/webapp/style.css: Add ID for document title style.
1090 2011-08-25 Ben Konrath <ben@bagu.org>
1092 Add NavigationType enum to LayoutItemPortal DTO.
1094 This is the start of adding support for Portals to the Details View.
1096 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1097 LayoutItem_Portal.navigation_type enum from libglom to
1098 LayoutItemPortal.NavigationType enum.
1099 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1100 NavigationType enum, field for storing the NavigationType and getter
1103 2011-08-25 Ben Konrath <ben@bagu.org>
1105 Implement the flow table layout in the Details View.
1107 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1108 FlowTable to Group to account for the renamed class.
1109 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1110 File. This is a container widget that implements the Glom details view
1111 flow table behaviour.
1112 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1113 org/glom/web/client/ui/FlowTable.java.
1114 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1115 so that the size of the subgroups are a closer match to the size of
1116 the Glom subgroups. This makes the flowtable layout match the layout
1117 in Glom for the Music Collection example file.
1119 2011-08-16 Ben Konrath <ben@bagu.org>
1121 Create container element for LayoutItemPortal in Details View.
1123 This will help me develop the layout for the FlowTable.
1125 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1126 fieldPanel variable to detailsCell.
1128 2011-08-15 Ben Konrath <ben@bagu.org>
1130 Set the height of the data element in the Details View.
1132 I changed the InlineLabels (text in a span element) to Labels (text in
1133 a div element) so that I could set the height of the details-data
1134 elements instead of the details-cell parent elements. This allows the
1135 the details-data element to display the correct height if style is
1136 applied that shows the height.
1138 This change has the added benefit of allowing the order of the labels
1139 and data elements to be changed for right-to-left languages.
1141 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1142 InlineLabels to Labels.
1143 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1144 InlineLabels to Labels. Set the height of the data element.
1145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1146 multiline text height in the Formatting DTO.
1147 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1148 for multiline height along with getter and setter methods.
1149 * src/main/webapp/style.css: Adjust style to account for the change
1150 from span elements to div elements in the details cell.
1152 2011-08-15 Ben Konrath <ben@bagu.org>
1154 Make the List View appearance match the mockups.
1156 It doesn't match exactly but it's much better than it was.
1158 * mockups/listview-contacts.html: Remove unused css classes.
1159 * mockups/listview-projects.html: Remove unused css classes.
1160 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1161 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1162 for mainPanel instead of VerticalPanel (table). Set style name on
1163 CellTable. Set style name on Details column. Right-align Details
1165 * src/main/webapp/style.css: Adjust properties to match the mockups.
1167 2011-08-12 Ben Konrath <ben@bagu.org>
1169 Add better support for subgroups in the details view.
1171 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1172 changed FlowTable constructor.
1173 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1174 support for subgroups and subgroup-titles.
1175 * src/main/webapp/style.css: Add CSS class for subgroups and
1178 2011-08-12 Ben Konrath <ben@bagu.org>
1180 Return the top level LayoutGroup title.
1182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1184 2011-08-11 Ben Konrath <ben@bagu.org>
1186 Make the TableSelector header match the mockup.
1188 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1189 the layout panel. Properly lineup the table selection header with
1190 the list and details view.
1191 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1192 margin around the details view.
1193 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1194 Rename listBox variable to tableSelector. Set id for the style sheet.
1195 Use a FlowPanel instead of a HorizontalPanel.
1196 * src/main/webapp/style.css: Add properties to make the TableSelector
1197 box match the mockups.
1199 2011-07-13 Ben Konrath <ben@bagu.org>
1201 Update install script for java-libglom version change.
1203 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1206 2011-07-13 Ben Konrath <ben@bagu.org>
1208 Add support sub-group in the details view.
1210 I also removed the code that special-cased the default details view
1213 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1215 I still have to make a proper flowtable.
1217 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1218 Don't special-case default details view layout.
1219 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1220 addLayoutField() as I'm going to use it.
1221 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1222 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1224 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1225 extracted from DetailsViewImpl.GroupPanel. Add support for
1227 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1228 column count when getting the details layout.
1230 2011-07-12 Ben Konrath <ben@bagu.org>
1232 Set browser title with database and table titles.
1234 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1235 Set the browser title when the table changes and when the activity
1237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1238 title when retrieving document info (the GlomDocument object).
1239 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1240 with getter and setter methods. Remove unused convenience constructor.
1241 Use default code formatting.
1243 2011-07-12 Ben Konrath <ben@bagu.org>
1245 Ignore LayoutItemPortals in the details view.
1247 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1250 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1251 LayoutItemPortal layout objects.
1252 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1253 LayoutItemPortal objects when retrieving the details layout.
1254 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1255 file. This is an empty class and just used to get type information for
1258 2011-07-12 Ben Konrath <ben@bagu.org>
1260 Use java-libglom 1.17.0.
1264 2011-07-11 Ben Konrath <ben@bagu.org>
1266 Remove "Table:" label from table selector.
1268 This matches a recent change in the Glom UI.
1270 * mockups/details-contacts.html:
1271 * mockups/details-projects.html:
1272 * mockups/listview-contacts.html:
1273 * mockups/listview-projects.html: Remove the "Table:" label from the
1275 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1277 2011-07-11 Ben Konrath <ben@bagu.org>
1279 Add main groups to the details view.
1281 This makes things look a little nicer in the details view. The next step
1282 is to implement the flowtable.
1284 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1285 resources from the standard gwt css theme. Standard.css is now
1286 included in OnlineGlom.html so that the online glom css rules have
1287 precedence over the gwt theme.
1288 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1289 the whole LayoutGroup to the DetailsView instead of just the titles.
1290 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1291 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1292 details layout with a helper class (GroupPanel). I might extract this
1293 class when I make the full flowtable.
1294 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1295 string as default so I don't have to worry about NPEs when processing
1297 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1298 note beside OnlineGlom.gwt.xml above).
1299 * src/main/webapp/style.css: Add default font-size to body to override
1300 the font-size set by the standard theme. Don't use h2 tags for
1301 group-title. Create new details-cell class.
1303 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1305 ConfiguredDocument: Set the port number too.
1307 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1308 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1309 Glom document. Presumably this worked sometimes so far because there is a
1310 default port number.
1312 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1314 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1316 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1317 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1318 correct, though we should throw an exception too.
1320 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1322 Fix a addDocuemnt typo.
1324 * src/main/java/org/glom/web/shared/Documents.java
1325 (Documents.addDocuemnt): Rename to addDocument().
1326 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1327 (OnlineGlomServiceImpl.getDocuments): Adapt.
1329 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1331 Slightly improved log output when connection fails.
1333 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1334 (ConfiguredDocument.setUsernameAndPassword):
1335 We don't know for sure if it' the username/password that's wrong, so
1336 rephrase the message.
1337 Also ouput the exception message, though it's generic in this case.
1339 2011-07-08 Ben Konrath <ben@bagu.org>
1343 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1344 added braces to a one line if statement because the Eclipse formatter
1345 was getting confused.
1347 2011-07-07 Ben Konrath <ben@bagu.org>
1349 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1351 These should really be two separate tasks but I counldn't get things to
1352 work with GWT 2.2.0 and Eclipse 3.7.
1356 * .settings/org.eclipse.jdt.core.prefs:
1357 * .settings/org.eclipse.jdt.ui.prefs:
1358 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1359 * .settings/org.eclipse.m2e.core.prefs:
1360 Add new config files. Update current files. Remove references to the
1361 webtools plugins as we're not using any of the webtools features.
1362 * .gitignore: Add logs directory which is created when running with
1364 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1365 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1366 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1368 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1370 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1372 onlineglom.properties: Add explanatory comments.
1374 * src/main/resources/onlineglom.properties: Also change the default user
1375 from ben to someuser, to avoid the risk of people thinking we just
1376 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1378 2011-06-28 Ben Konrath <ben@bagu.org>
1380 Use filename in Log for incorrect passwords.
1382 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1383 getFileName(String) method to get the filename from the URI.
1385 2011-06-28 Ben Konrath <ben@bagu.org>
1387 Add the table name to the URL token for the ListPlace.
1389 This makes things consistent between the DetailsPlace and the
1390 ListPlace. It also allows the the ListPlace to be bookmarked.
1392 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1393 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1395 Remove getDefaultListLayout(). The default layout is now returned
1396 by the getListLayout() method when the table name is an empty string.
1397 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1398 Add table name field. Change to a new ListPlace when the table
1399 has been changed. Use getListLayout() for getting the default
1401 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1402 Add table name field. Set the correct table name in the list box
1403 when loading from bookmark. This corrects a problem for the
1405 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1406 Move table name to super-class (HasSelectableTable). Move document
1407 and table URL keys to super-class in HasSelectableTable.
1408 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1409 Add table name field. Add Tokenizer class with URL key common to
1410 the subclasses (DetailsPlace and ListPlace).
1411 * src/main/java/org/glom/web/client/place/ListPlace.java:
1412 Add table name. Add code to parse the URL token.
1413 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1414 Update ListPlace construction with empty table name string.
1415 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1416 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1417 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1418 Update ListPlace construction with table name string.
1419 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1420 Change defaultTableName field to tableName to reflect how it's now
1421 used. Update the getter and setter methods.
1423 2011-06-28 Ben Konrath <ben@bagu.org>
1425 Enable the table selector in the DetailsView.
1427 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1428 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1429 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1430 Remove getDefaultDetailsLayout(). The default layout is now returned
1431 by the getDetailsLayout() method when the table name is an empty
1433 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1434 event handler for table change event. Change to using
1435 getDetailsLayout() for the default details layout.
1436 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1438 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1439 when navigating to the details place.
1441 2011-06-27 Ben Konrath <ben@bagu.org>
1443 Use filename based unique document ID in URL and for RPC.
1445 The document ID is the glom document name with spaces (' ') replaced
1446 with pluses ('+') and without the .glom extension.
1448 This change is mostly a string substitution of 'documentTitle' for
1449 'documentID'. The only code change is the addition of a Documents DTO to get the
1450 filename to document title mappings as indicated below.
1452 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1453 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1454 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1455 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1456 Use Documents DTO to create the document links in the document
1458 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1459 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1460 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1461 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1462 * src/main/java/org/glom/web/client/place/ListPlace.java:
1463 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1464 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1465 * src/main/java/org/glom/web/client/ui/ListView.java:
1466 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1467 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1468 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1469 * src/main/java/org/glom/web/server/Log.java:
1470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1471 getDocumentTitles() to getDocuments() and return the Documents DTO.
1472 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1473 transferring the filename to document title mappings.
1475 2011-06-25 Ben Konrath <ben@bagu.org>
1477 Make the authentication popup work again.
1479 This bug was introduced when I extracted ConfiguredDocument to its own class.
1481 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1482 correct success / fail status in setUsernameAndPassword().
1484 2011-06-25 Ben Konrath <ben@bagu.org>
1486 Use filename as unique key for configuring database usernames and passwords.
1488 This replaces the use of the Glom document title which could change
1489 depending on the locale. Thanks to Murray Cumming for pointing out this
1492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1493 * src/main/resources/onlineglom.properties:
1495 2011-06-24 Ben Konrath <ben@bagu.org>
1497 Pass primary key value to DetailsView.
1499 This enables the DetailsView to load the correct data.
1501 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1502 primary key value field and set in constructor. Pass primary key
1503 value to getDetailsData().
1504 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1505 variables for document title and primary key value.
1506 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1507 key value to the DetailsPlace.
1509 2011-06-24 Ben Konrath <ben@bagu.org>
1511 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1513 This allows the primary key to be retrieved by the Details button. This
1514 functionality has not been implemented yet but it's in the works.
1516 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1517 the LayoutGroup result to ListView.setCellTable instead of all of its
1518 fields individually.
1519 * src/main/java/org/glom/web/client/ui/ListView.java:
1520 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1521 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1522 get the primary key for the table.
1523 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1524 index of the primary key in the LayoutGroup accounting for hidden
1525 primary keys. Rename getJavaNumberFormat() to
1526 convertToJavaNumberFormat() for consistency. Cleanup / add some
1528 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1529 field for primary key index and a field to indicate whether the
1530 primary key is hidden or not.
1532 2011-06-23 Ben Konrath <ben@bagu.org>
1534 Rename getTableData methods to getListData.
1536 This is a rename refactor for consistency with other methods.
1538 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1539 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1540 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1543 2011-06-23 Ben Konrath <ben@bagu.org>
1545 Extract the ConfiguredDocument innerclass into its own class.
1547 This makes the servlet code more object oriented.
1549 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1550 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1552 new ConfiguredDocument class.
1554 2011-06-21 Ben Konrath <ben@bagu.org>
1556 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1558 This makes things more inline with how libglom works and reduces code
1559 duplication. This refactor lays the groundwork for adding the primary key to
1560 the LayoutGroup object.
1562 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1563 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1564 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1565 Change method names to getListLayout and getDefaultListLayout for
1566 consistency. Use LayoutGroup as the DTO for the list layout instead of
1567 ColumnInfo and LayoutListTable.
1568 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1569 new method names along with the LayoutGroup object for transferring the
1571 * src/main/java/org/glom/web/client/ui/ListView.java:
1572 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1573 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1574 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1576 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1577 Replaced with LayoutGroup.
1578 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1579 expectedResultSize and defaultTableName fields which are needed for
1581 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1582 type field which is needed for the list layout but will also be
1583 useful for the details layout as things progress.
1584 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1585 Make class abstract. Remove the unnecessary
1586 getFormattingHorizontalAlignment method. Add setFormatting method.
1588 2011-06-16 Ben Konrath <ben@bagu.org>
1590 Add scripts for building and installing war.
1592 These will help when updating OnlineGlom but they're also good
1593 supplemental documentation of the build and deployment proceeding.
1595 * utils/build-onlineglom-war.sh: New file.
1596 * utils/install-onlineglom-war.sh: New file.
1598 2011-06-16 Ben Konrath <ben@bagu.org>
1600 Create wrapper class to create consistent log messages.
1602 I wrapped methods in the Log class of gwt-log to add the method names
1603 from the servlet and create consistent formatting of the document title
1604 and table names in the log messages.
1606 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1607 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1608 log methods to use methods from wrapped Log class.
1610 2011-06-16 Ben Konrath <ben@bagu.org>
1612 Remove superfluous conditional return.
1614 Thanks to Murray Cumming for pointing this out!
1616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1618 2011-06-15 Ben Konrath <ben@bagu.org>
1620 Return an ArrayList of LayoutGroups for the Details layout.
1622 This corrects a problem with the details layout as it can have more
1623 than one top level LayoutGroup.
1625 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1626 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1627 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1628 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1629 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1630 with ArrayList of LayoutGroups for the details view layout.
1631 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1632 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1633 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1634 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1635 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1636 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1638 2011-06-14 Ben Konrath <ben@bagu.org>
1640 Use cast_dynamic method to determine the libglom LayoutItem type.
1642 This is better than finding the LayoutItem type by using the string
1643 returned from the get_part_type_name() method.
1645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1647 2011-06-14 Ben Konrath <ben@bagu.org>
1649 Add method names to log entries in the servlet.
1651 This helps when tracking down deployment problems.
1653 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1655 2011-06-14 Ben Konrath <ben@bagu.org>
1657 Add data to the DetailsView using a hard-coded primary key value.
1659 The layout and functionality of the DetailsView is not complete. This
1660 is just a checkpoint so the patch doesn't get too big.
1662 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1663 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1664 Add getDetailsData() servlet method.
1665 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1666 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1667 LayoutFields are added to the DetailsView.
1668 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1669 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1670 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1671 take the string for the title instead of the object.
1672 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1673 Add implementation getDetailsData() along with some private helper
1675 * src/main/webapp/style.css: Add padding to details-data class. Add a
1676 details-label class with the same padding as the details-data class.
1678 2011-06-03 Ben Konrath <ben@bagu.org>
1680 Use presenter.goTo() to change to the DetailsPlace.
1682 This will make things easier when we need to open the DetailsView with
1683 data specific to the row that was clicked.
1685 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1687 2011-06-02 Ben Konrath <ben@bagu.org>
1689 Add CSS file from mockups.
1691 I'm adding this now because it's going to be useful to have when
1692 developing the DetailsView. The TableSelectionView and ListView aren't
1695 * src/main/webapp/OnlineGlom.html:
1696 * src/main/webapp/style.css:
1698 2011-06-02 Ben Konrath <ben@bagu.org>
1700 Use String.isEmpty() to check for empty string.
1702 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1704 2011-06-02 Ben Konrath <ben@bagu.org>
1706 Display main layout group titles in the DetailsView.
1708 This is the start of the DetailsActivity/DetailsView implementation.
1710 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1711 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1712 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1713 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1714 Get the layout information for the details view from the server and set
1715 the main layout group titles.
1716 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1717 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1718 Add addLayoutGroup() and addLayoutField() methods. This are just
1719 temporary methods for creating the the details view that will change
1721 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1722 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1724 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1725 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1726 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1727 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1728 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1729 Data Transfer Objects that mimic the libglom object structure. These are
1730 used for transferring the details layout but could also be used for
1731 transferring the list layout.
1733 2011-05-27 Ben Konrath <ben@bagu.org>
1735 Reset the AuthenticationPopup when clearing the ListView.
1737 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1739 2011-05-27 Ben Konrath <ben@bagu.org>
1741 Fix problem with onlineglom.properties file loading.
1743 The old way worked in Eclipse but not on the server. Loading the
1744 onlineglom.properties file now works in Eclipse and on the server.
1746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1748 2011-05-24 Ben Konrath <ben@bagu.org>
1750 Update gwt-log from 3.1.0 to 3.1.2.
1752 Gwt-log 3.1.0 has been marked as depreciated.
1756 2011-05-24 Ben Konrath <ben@bagu.org>
1758 Add comment to ListActivity.goTo() method.
1760 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1762 2011-05-24 Ben Konrath <ben@bagu.org>
1764 Remove FIXME in convertGdkColorToHtmlColour()
1766 The Gdk::Color value returned by libglom is 16-bits per channel on both
1767 64 and 32-bit platforms.
1769 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1771 2011-05-19 Ben Konrath <ben@bagu.org>
1773 Improve performance of initial ListView load.
1775 I removed a round trip to the server for getting the default table name
1776 and then requesting information about that table. This also removes a potential
1777 problem with the table change handler not being setup in time to receive the
1778 table change event from the ListActivity.
1780 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1781 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1782 getDefaultLayoutListTable() method. Improve comments.
1783 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1784 getDefaultLayoutListTable() method instead of firing a table change
1785 event to get the table to load.
1786 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1787 implementation of getDefaultLayoutListTable() method.
1788 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1791 2011-05-19 Ben Konrath <ben@bagu.org>
1793 Override toDebugString() in TableChangeEvent.
1795 This is useful to have for debugging.
1797 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1799 2011-05-19 Ben Konrath <ben@bagu.org>
1801 Add a "Back to List" link when at the DetailsPlace.
1803 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1804 Populate the CellTable based on the selected table of the ListBox if
1805 it's set otherwise use the default table. This allows the "Back to
1807 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1808 Remove Place from constructors. Add a setPlace() method. Add
1809 goToPlace() method. Set class as presenter for TableSelectionView.
1810 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1811 Use the same TableSelectionActivity when switching between the List and
1813 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1814 Subclass the new HasSelectableTablePlace. This removes some duplicate
1816 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1817 New class to represent Places that display the TableSelectionView.
1818 * src/main/java/org/glom/web/client/place/ListPlace.java:
1819 Subclass the new HasSelectableTablePlace. This removes some duplicate
1821 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1822 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1823 Add Presenter interface. Add setBackLinkVisible() method. Add
1824 setBackLink() method.
1826 2011-05-18 Ben Konrath <ben@bagu.org>
1828 Enable the "Details" buttons.
1830 Right now only an empty details view is displayed.
1832 * src/main/java/org/glom/web/client/ClientFactory.java:
1833 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1834 Add DetailsView to ClientFactory.
1835 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1836 A basic activity for the details view.
1837 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1838 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1840 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1841 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1843 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1844 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1845 unnecessary super() in constructor.
1846 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1847 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1848 really shouldn't create a new TableSelectionActivity for both the ListPlace
1849 and the DetailsPlace so this should be considered a temporary solution.
1850 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1851 New file. Represents a URL for the details view.
1852 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1853 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1854 A basic details view interface and implementation.
1855 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1856 Enable the "Details" buttons.
1858 2011-05-12 Ben Konrath <ben@bagu.org>
1860 Use a LayoutPanel with multiple display areas for main layout.
1862 This is mostly a refactor in that there are no changes from the user
1863 point of view. These changes are required so that we can swap out the list view
1864 with the details view when the user clicks the "Details" button.
1866 * src/main/java/org/glom/web/client/ClientFactory.java:
1867 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1868 OnlineGlomView. Add TableSelectionView, ListView and
1869 AuthenticationPopup.
1870 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1871 for main layout. Add display regions for main activities. Add
1872 activity manager for for main activities.
1873 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1874 file from parts of the deleted OnlineGlomActivity.
1875 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1876 New file from parts of the deleted OnlineGlomActivity.
1877 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1878 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1879 New files for app wide table change event.
1880 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1881 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1882 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1883 Activity mappers for the main activities replace the deleted app-wide
1885 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1886 Fix a spelling error in he comment.
1887 * src/main/java/org/glom/web/client/ui/ListView.java:
1888 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1889 Renamed from LayoutListView and modified for MVP. This still not a
1890 proper dumb view as prescribed by the MVP pattern but it works for now.
1891 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1892 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1893 New widget stripped out of the deleted OnlineGlomView.
1894 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1895 Remove hack that is fixed by this patch.
1897 2011-05-06 Ben Konrath <ben@bagu.org>
1899 Rename OnlineGlomPlace to ListPlace.
1901 The only change besides the rename is that url will now display #list
1902 instead of #Document.
1904 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1905 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1906 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1907 * src/main/java/org/glom/web/client/place/ListPlace.java:
1908 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1910 2011-05-06 Ben Konrath <ben@bagu.org>
1912 Use Presenter for app navigation.
1914 This is the proper way to deal with Place (URL) changes with the MVP
1917 * src/main/java/org/glom/web/client/ClientFactory.java:
1918 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1919 PlaceHistoryMapper and PlaceHistoryHandler.
1920 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1921 PlaceHistoryMapper and PlaceHistoryHandler.
1922 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1923 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1924 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1925 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1926 Add Presenter interface and setPresenter methods. Rename addHyperLink
1927 to addDocumentLink taking only the document title as a parameter.
1929 2011-04-14 Ben Konrath <ben@bagu.org>
1931 Prompt for db username/password if they haven't been set.
1933 This is implemented with a popup widget that is contained within the
1934 OnlineGlomView and managed by the OnlineGlomActivity.
1936 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1937 methods for checking and setting the database username and password.
1938 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1939 new methods for checking and setting the database username and
1941 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1942 Display authentication popup if the JDBC connection to the database
1943 has not been authenticated.
1944 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1946 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1947 for dealing with the authentication popup.
1948 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1949 Implement the methods for dealing with the authentication popup.
1950 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1951 try to executed queries if the database connection hasn't been
1952 authenticated. Implement methods for checking and setting the
1953 database username and password.
1955 2011-04-12 Ben Konrath <ben@bagu.org>
1957 Make log messages a little clearer.
1959 Add a dash betweeen the document title and the table name.
1961 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1963 2011-04-12 Ben Konrath <ben@bagu.org>
1965 Protect against NPEs when cleaning up database resources.
1967 While this isn't strictly necessary because the exception is caught,
1968 not protecting against the NPEs makes it harder to find the real error
1971 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1973 2011-04-12 Ben Konrath <ben@bagu.org>
1975 Move configuration of the servlet to the constructor.
1977 The servlet will be initialized even if the database authentication
1978 information is not set or correct. I still need to add the UI for prompting
1979 the user for the authentication information when it's required.
1981 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1982 javadocs for getDocumentTitles() method.
1983 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1984 Set error message when RPC fails.
1985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1986 glom files directory from the configuration file. Try to set the
1987 database authentication information for the specific document if it's
1988 set and works otherwise try to use the global authentication
1989 information set for the directory.
1990 * src/main/resources/onlineglom.properties: Moved from
1991 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1992 Added detailed comments for the new keys.
1994 2011-04-11 Ben Konrath <ben@bagu.org>
1996 Remove unnecessary @Override in DocumentSelectionViewImpl.
1998 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2000 2011-04-11 Ben Konrath <ben@bagu.org>
2002 Remove center alignment in DocumentSelectionView.
2004 The title element is still centred but the document titles and bottom
2005 sentence are both left-aligned.
2007 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2009 2011-04-11 Ben Konrath <ben@bagu.org>
2011 Change 'Demo' naming convention to 'Document'.
2013 This is just a rename refactor with no functional changes to the code.
2015 * src/main/java/org/glom/web/client/ClientFactory.java:
2016 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2017 * src/main/java/org/glom/web/client/OnlineGlom.java:
2018 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2019 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2020 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2021 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2022 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2023 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2024 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2025 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2026 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2027 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2029 2011-04-08 Ben Konrath <ben@bagu.org>
2031 Remove FIXME from safeLongToInt() method.
2033 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2038 2011-04-08 Ben Konrath <ben@bagu.org>
2040 Display an error if no glom documents are found in the specified directory.
2042 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.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/server/OnlineGlomServiceImpl.java:
2047 2011-04-08 Ben Konrath <ben@bagu.org>
2049 Add copyright header to one more file ... oops.
2051 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2053 2011-04-08 Ben Konrath <ben@bagu.org>
2055 Add copyright header to files without it.
2057 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2058 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2059 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2060 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2061 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2062 * src/main/java/org/glom/web/shared/GlomField.java:
2064 2011-04-08 Ben Konrath <ben@bagu.org>
2066 Add support for accessing multiple glom documents in the servlet.
2068 This completes the demo selection functionality.
2070 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2071 document title to methods.
2072 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2073 document title to methods.
2074 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2075 Set browser window title when the activity starts. Correct name of
2076 document title variable.
2077 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2078 Set browser window title when the activity starts. Set the table
2079 selector change handler after table selector has been set. Clear the
2080 OnlineGlomView when the activity has been stopped.
2081 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2082 document title as the place token. Use "#Document:" instead of
2083 "#OnlineGlomPlace:" in the URL.
2084 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2085 Change heading to "Online Glom"
2086 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2087 document title in RPC methods.
2088 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2089 setDocumentTitle() method. Add clear() method.
2090 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2091 setDocumentTitle() method. Implement clear() method which removes the
2092 change handler on the ListBox, clears the ListBox and clears the
2094 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2095 Implement methods with document title. Keep track for the configured
2096 glom documents and their corresponding JDBC configurations in a hash
2097 table. This information is retrieved using the document title as the
2098 key in the hash table.
2099 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2100 document title field as it's no longer needed.
2102 2011-04-08 Ben Konrath <ben@bagu.org>
2104 Update the Eclipse JDT configuration.
2106 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2107 methods. Automatically add the copyright header to new files.
2109 2011-04-05 Ben Konrath <ben@bagu.org>
2111 Add new page for demo selection.
2113 This patch adds all the components required to view and start an
2114 OnlineGlom demo by clicking on the desired hyperlink. The user is
2115 able to return to the demo selection page with the browser's back
2116 button. I still need to modify the servlet to work with multiple
2117 documents so all demo links will load the file defined in the
2118 OnlineGlom.properties.
2120 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2121 This is only useful during development so we don't need to save it.
2122 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2123 get a reference to the DemoSelectionView.
2124 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2125 method to get a reference to the DemoSelectionView.
2126 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2127 default view to DemoSelectionView.
2128 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2129 to get glom document titles for glom files in a hard-coded directory.
2130 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2131 method to get glom document titles for glom files in a hard-coded
2133 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2134 Presenter for DemoSelectionView.
2135 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2136 for DemoSelectionView.
2137 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2138 Update for DemoSelectionView.
2139 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2140 Basic 'Place' implementation for the DemoSelectionView.
2141 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2142 The interface for the DemoSelectionView.
2143 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2144 The implementation of the DemoSelectionView.
2145 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2146 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2148 implementation of method to get glom document titles for glom files
2149 in a hard-coded directory.
2150 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2151 on longer being used.
2152 * src/main/webapp/glom.png: Glom logo.
2154 2011-04-05 Ben Konrath <ben@bagu.org>
2156 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2158 This is the forth and final commit of a refactor that will allow
2159 OnlineGlom to be used with multiple documents.
2161 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2162 Move RPC code from OnlineGlomViewImpl to this class.
2163 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2165 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2166 RPC code to the presenter class (the P in MVP).
2168 2011-04-04 Ben Konrath <ben@bagu.org>
2170 Start moving the existing OnlineGlom code to MVP.
2172 This work is based on the GWT MVP framework that is documented here:
2174 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2176 This is the third commit of a refactor that will allow OnlineGlom to
2177 be used with multiple documents.
2179 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2180 Interface for client factory which is used to get instances of various
2181 classes throughout the app.
2182 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2183 Implementation of client factory.
2184 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2185 initialize the MVP framework.
2186 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2187 New file. Activity manager for the main container widget. This is the
2189 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2190 Maps place (URL) to its corresponding activity.
2191 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2192 New file. This is just a place holder for a generated file.
2193 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2194 New file. Represents the URL for the main Online Glom app.
2195 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2196 for changes in LayoutListViewImpl.
2197 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2198 interface for View. Move code to OnlineGlomViewImpl class.
2199 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2200 file. Implementation of OnlineGlomView.
2201 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2202 Place resources. Use ClientFactoryImpl by default.
2204 2011-04-04 Ben Konrath <ben@bagu.org>
2206 Move View classes to their own package.
2208 This is the second commit of a refactor that will allow OnlineGlom to
2209 be used with multiple documents.
2211 * src/main/java/org/glom/web/client/OnlineGlom.java:
2212 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2213 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2215 2011-04-02 Ben Konrath <ben@bagu.org>
2217 Move UI code from the main module to its own class.
2219 This is the first commit of a refactor that will allow OnlineGlom to be
2220 used with multiple documents.
2222 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2223 references to OnlineGlom to OnlineGlomView.
2224 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2225 OnlineGlomView and instantiate it here.
2226 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2227 represents the main OnlineGlomView with one document.
2229 2011-04-01 Ben Konrath <ben@bagu.org>
2231 Fix formatting of gwt.xml and add DTD.
2233 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2235 2011-03-30 Ben Konrath <ben@bagu.org>
2237 Propperly convert gdkColor string to html colour string.
2239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2241 2011-03-28 Ben Konrath <ben@bagu.org>
2243 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2245 This implementation matches
2246 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2247 readable and is not tied to Swig.
2249 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2251 2011-03-28 Ben Konrath <ben@bagu.org>
2253 Use read-only checkboxes for boolean field types.
2255 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2256 in the CellTable based on the field type. It currently only
2257 distinguishes between boolean and text columns but I'll need to add
2258 support for more types.
2259 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2260 column type in the ColumnInfo object. Add method to convert between the
2261 glom field type enum in ColumnInfo and the glom field type in libglom.
2262 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2264 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2265 getting and setting booleans.
2267 2011-03-25 Ben Konrath <ben@bagu.org>
2269 Don't get the Date twice from the ResultSet.
2271 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2273 2011-03-25 Ben Konrath <ben@bagu.org>
2275 Cleanup code in the servlet.
2277 * TODO: Remove item about row count. Add item about testing row count
2278 query with large number of rows.
2279 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2280 spelling mistakes, change method parameter to be consistent with
2283 2011-03-25 Ben Konrath <ben@bagu.org>
2285 Add server side logging with the gwt-log library.
2287 * .gitignore: Ignore the log file we're now producing.
2288 * TODO: Add a couple TODO item for logging.
2289 * pom.xml: Add gwt-log and log4j as a dependency.
2290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2291 logging of errors, warnings and some important info.
2292 * src/main/resources/log4j.properties: New file to configure log4j.
2294 2011-03-24 Ben Konrath <ben@bagu.org>
2296 Add a disable button for the Details view.
2298 * src/main/java/org/glom/web/client/LayoutListView.java:
2300 2011-03-22 Ben Konrath <ben@bagu.org>
2302 Use a count query to get the number of rows for the list view pager.
2304 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2306 2011-03-22 Ben Konrath <ben@bagu.org>
2308 Add more TODO information about CellTable pager positioning.
2312 2011-03-19 Ben Konrath <ben@bagu.org>
2314 Add TODO item about CellTable pager positioning.
2318 2011-03-18 Ben Konrath <ben@bagu.org>
2320 Remove unneeded GlomFieldColumn class.
2322 This is just a small code cleanup.
2324 * src/main/java/org/glom/web/client/LayoutListView.java:
2326 2011-03-18 Ben Konrath <ben@bagu.org>
2328 Use cursor mode in the query that gets data for the list view.
2330 I still need to fix the potential memory problem when getting the row
2331 count for the list view.
2333 * TODO: Add note about testing memory usage with large data sets. Add
2334 item about fixing row counting with large data sets.
2335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2336 PostgreSQL JDBC driver into cursor mode when getting data for the
2339 2011-03-15 Ben Konrath <ben@bagu.org>
2341 Remove the GWT Container from the Eclipse build classpath.
2343 The GWT dependencies are set by Maven so this isn't needed.
2347 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2349 Added some earlier mockups to git, but not to the tarball dist.
2351 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2352 Openismus. These hopefully show how we might structure the HTML so that
2353 it can be styled easily with CSS. However, we probably need to adapt them
2354 for the CSS structure that GWT dictates for common widgets.
2356 2011-03-14 Ben Konrath <ben@bagu.org>
2358 Locate OnlineGlom.properties using the ServletContext.
2360 This is required to be able to locate the file in the deployed servlet.
2362 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2363 Configure the database and glom document in in a helper method so
2364 that the ServletContext can be used to locate OnlineGlom.properties.
2365 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2366 src/main/webapp. This is the proper location for .properites files.
2368 2011-03-12 Ben Konrath <ben@bagu.org>
2370 Add note to README about why we're compiling down to obfuscated JavaScript.
2374 2011-03-11 Ben Konrath <ben@bagu.org>
2376 Use properties file to configure servlet.
2378 This allows people to change the glom file path, db username and db
2379 password without recompiling the code.
2381 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2382 * src/main/webapp/OnlineGlom.properties:
2384 2011-03-11 Ben Konrath <ben@bagu.org>
2386 Use table fields in layout list view if the layout list is not defined.
2388 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2389 Manually create a LayoutFieldVector for the query builder using the
2390 table fields when a layout list is not defined in the glom file.
2392 2011-03-11 Ben Konrath <ben@bagu.org>
2394 Only show FIXME string for images when there's an image.
2396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2397 in this change are some small code cleanups.
2399 2011-03-11 Ben Konrath <ben@bagu.org>
2401 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2403 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2405 2011-03-11 Ben Konrath <ben@bagu.org>
2407 Correctly set the index of the default table.
2409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2410 Correctly set the index of the default table. Add commented out example
2413 2011-03-10 Ben Konrath <ben@bagu.org>
2415 Add comment to pom.xml about the previous change.
2417 * pom.xml: Add comment about the deployment issue so that it's obvious
2418 why java-libglom is set to the provided scope.
2420 2011-03-10 Ben Konrath <ben@bagu.org>
2422 Change java-libglom dependency from compile to provided in pom.xml.
2424 Since java-libglom uses jni it can only be loaded once and therefore
2425 must be placed in $CATALINA_HOME/lib and not included in each war.
2426 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2427 More information about this issue can be found in the Tomcat 6 release
2428 notes in the "JNI Based Applications" section:
2430 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2432 * README: Remove note about this issue. Deployment info should really
2433 be on the wiki anyway so I'll add it right now.
2434 * pom.xml: Change java-libglom dependency from compile to provided so
2435 that it's copied in to the packaged war.
2437 2011-03-09 Ben Konrath <ben@bagu.org>
2439 Change to using a neutral locale for currency, date and time formatting.
2441 This solves the problem of currency values being represented without a
2442 space between the currency code and the number (e.g. "EUR5.89" is now
2443 represented as "EUR 5.89"). More work is required when we implement
2444 a locale preference setting.
2446 * TODO: Add note about currency formatting issues with different
2448 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2449 to using the neutral ROOT locale.
2451 2011-03-09 Ben Konrath <ben@bagu.org>
2453 Add support for currency codes that are not ISO 4217 codes.
2455 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2456 the currency code defined in the glom file when it's not 3 characters
2457 long or when Java doesn't recognize the string as an ISO 4217 code.
2459 2011-03-08 Ben Konrath <ben@bagu.org>
2461 Remove test classes, launch configurations and configuration.
2463 The test stuff was getting in the way when creating the war. To make
2464 the war file you can now do 'mvn clean package'. The packaged war file
2465 will be in the target directory.
2467 * .classpath: Remove unused classpathentry for tests and i18n.
2468 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2469 property. Don't run test or i18n goals when packaging the war.
2470 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2475 * OnlineGlomTest-dev.launch:
2476 * OnlineGlomTest-prod.launch:
2477 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2478 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2480 2011-03-07 Ben Konrath <ben@bagu.org>
2482 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2484 These fixes allow me to use 'mvn deploy' to create the war file.
2486 * .classpath: This generated config has been updated by Eclipse. This
2487 change was probably triggered by me updating from Eclipse 3.6.1 to
2489 * .gitignore: Add entry to ignore the directory
2490 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2491 * .project: The generated config has been updated by Eclipse. This
2492 change was probably triggered by me updating from Eclipse 3.6.1 to
2494 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2495 so that Eclipse doesn't complain
2496 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2497 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2498 'tests' directory to 'client' directory. This is the new
2499 gwt-maven-plugin convension.
2500 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2501 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2503 2011-03-07 Ben Konrath <ben@bagu.org>
2505 Add support for horizontal alignment in the LayoutList columns.
2507 * TODO: Remove item about horizontal alignment. Add item about
2508 improvements to ColumnInfo.
2509 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2510 alignment on the columns. Use ColumnInfo RPC object get the column
2511 title and horizontal alignment.
2512 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2513 LayoutListView creation with ColumnInfo RPC object.
2514 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2515 a ColumnInfo object for every LayoutList columnn. Convert the
2516 FieldFormatting.HorizontalAlignment to the correct
2517 ColumnnInfo.HorizontatlAlignment with the new
2518 getColumnInfoHorizontalAlignment helper method.
2519 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2520 to encapsulate column information like alignment and title. This
2521 could be used to set the colour instead of on a per cell field basis.
2522 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2523 column title storage and retrieval with ColumnInfo.
2525 2011-03-04 Ben Konrath <ben@bagu.org>
2527 Add support for column sorting.
2529 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2530 AsynDataProvider to be an anonymous inner class. Use new
2531 getSortedTableData RPC method when column sort is requested. Set all
2532 columns sortable and add an AsyncHandler to activate sorting in the
2534 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2535 method getSortedTableData(). Cleanup other method signatures.
2536 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2537 new method getSortedTableData(). Cleanup other method signatures.
2538 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2539 Implement getSortedTableData() and getTableData() methods by using a
2540 private helper method with the appropriate parameters filled in. Use
2541 user supplied sort clause when supplied, otherwise fall back to
2542 sorting by the primary key. Move destroy() method to be underneath
2543 constructor for readability. Cleanup comments.
2545 2011-03-03 Ben Konrath <ben@bagu.org>
2547 Add support for colour text and colour backgrounds to the layout list cells.
2549 Only the cell backgrounds are coloured which leaves a gap between the
2550 cells that isn't coloured. I need to figure out a way to set
2551 'style=background-colour:' on the whole column rather than just the
2554 * TODO: Add a note about colouring the background of the whole column.
2555 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2556 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2557 render the coloured text and backgrounds. Use GlomField[] for the row type.
2558 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2560 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2561 GlomField[] for the row type.
2562 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2563 GlomField[] for the row type. Set the text, text colour and background
2564 colour in the GlomField objects as specified in the glom document. Add
2565 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2566 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2567 the glom field text, foreground colour and background colour.
2569 2011-03-02 Ben Konrath <ben@bagu.org>
2571 Don't display hidden tables in the combo box.
2573 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2575 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2576 code to ignore hidden tables using ArrayLists for the table names and
2578 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2579 tableNames to use ArrayLists instead of String[]. Update getter and setter
2582 2011-03-01 Ben Konrath <ben@bagu.org>
2584 Add support for Date and Time number types.
2586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2587 Implement formatting for Date and Time values. Change the default glom
2588 file to small business example.
2590 2011-03-01 Ben Konrath <ben@bagu.org>
2592 Add support for formatting glom types as specified in the glom file.
2594 Formatting isn't finished yet - I still need to add support for Date
2597 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2598 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2599 checks for null values in JDBC cleanup code and catch all exceptions
2600 instead of just SQLExceptions.
2601 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2604 2011-03-01 Ben Konrath <ben@bagu.org>
2606 Use GWT 2.2.0 instead of 2.1.1.
2608 * pom.xml: Change GWT version numbers.
2610 2011-03-01 Ben Konrath <ben@bagu.org>
2612 A few small code cleanups.
2614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2616 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2617 unnecessary object creation in constructor.
2618 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2619 unnecessary object creation in constructor.
2621 2011-02-28 Ben Konrath <ben@bagu.org>
2623 Add file for TODO list.
2627 2011-02-18 Ben Konrath <ben@bagu.org>
2629 Enable the CellTable Pager when more than 20 rows need to be viewed.
2631 The Pager will automatically become active when the results are larger
2632 than the CellTable size which is currently set to 20 lines.
2634 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2635 name on debug statment in RPC call in LayoutListDataProvider, add
2636 numRows parameter to LayoutListView constructor, propperly set rowCount
2638 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2639 name on debug statment in RPC call, use LayoutListTable object in RPC
2640 calls, pass rowCount to LayoutListView.
2641 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2642 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2644 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2645 interface for changes in OnlineGlomService.
2646 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2647 getLayoutListHeaders() to getLayoutListTable() and return
2648 LayoutListTable. Using this object allows me to pass other information
2649 about the LayoutList like the expected number of rows in the result set.
2650 The Connection object from the connection pool is now propperly closed.
2651 Only the requested number of lines are returned to the client in
2653 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2654 GlomTable and add columnTitles and numRows.
2656 2011-02-18 Ben Konrath <ben@bagu.org>
2658 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2660 This is a small performance boost. I'll use GlomTable to get the required
2661 layoutlist information.
2663 * src/main/java/org/glom/web/client/OnlineGlom.java:
2664 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2665 * src/main/java/org/glom/web/shared/GlomDocument.java:
2667 2011-02-18 Ben Konrath <ben@bagu.org>
2669 Add option to turn off formatting in JDT formatter preferences.
2671 * .settings/org.eclipse.jdt.core.prefs:
2673 2011-02-18 Ben Konrath <ben@bagu.org>
2675 Rename LayoutList to LayoutListView.
2677 I'm working towards setting things up to easily use MVP when the time
2680 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2682 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2685 2011-02-17 Ben Konrath <ben@bagu.org>
2687 Move LayoutListDataProvider class into LayoutList.java.
2689 * src/main/java/org/glom/web/client/LayoutList.java:
2691 2011-02-17 Ben Konrath <ben@bagu.org>
2693 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2695 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2697 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2698 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2699 from LibGlomServer.java.
2700 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2701 Rename from LibGlomServiceAsync.java.
2702 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2703 Rename from LibGlomServiceImpl.java.
2704 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2706 2011-02-17 Ben Konrath <ben@bagu.org>
2708 Update JDT settings.
2710 * .settings/org.eclipse.jdt.core.prefs:
2712 2011-02-17 Ben Konrath <ben@bagu.org>
2714 Move GWT-RPC objects to shared package (where they should be).
2716 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2717 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2718 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2719 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2720 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2721 org.glom.web.shared package.
2722 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2723 org.glom.web.shared package.
2724 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2725 directory in compilation to javascript.
2727 2011-02-16 Ben Konrath <ben@bagu.org>
2729 Add sort clause to the sql query that grabs table information.
2731 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2732 if one of the columns is a primary key.
2734 2011-02-16 Ben Konrath <ben@bagu.org>
2736 Disable generateAsync feature of gwt-maven.
2738 The generated interface does not correctly match the methods in LibGlomService
2739 and the generated singleton Util inner-class doesn't respect the servlet
2742 * pom.xml: Turn off generateAsync feature.
2743 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2744 with singleton Util inner-class.
2746 2011-02-14 Ben Konrath <ben@bagu.org>
2748 Add LGPL v3 licence notices.
2750 Followed directions listed here:
2751 http://www.gnu.org/licenses/gpl-howto.html
2753 * COPYING: This file is a copy of the GPL v3.
2754 * COPYING.LESSER: This file is a copy of the LGPL v3.
2755 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2757 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2759 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2761 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2763 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2765 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2767 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2770 2011-02-14 Ben Konrath <ben@bagu.org>
2772 Use ArrayList instead of Array in GWT-RPC calls.
2774 Apparently this gives a slight performance boost to the compiled
2777 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2779 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2782 2011-02-14 Ben Konrath <ben@bagu.org>
2784 Access data from a postgres db rather than the example glom file.
2786 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2787 compile down to obfuscated javascript.
2788 * pom.xml: Add c3p0 and postgres JDBC libraries.
2789 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2790 using a postgres db accessed through the c3p0 connection pooling library.
2792 2011-02-14 Ben Konrath <ben@bagu.org>
2794 Update Java formatter settings.
2796 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2798 2011-02-02 Ben Konrath <ben@bagu.org>
2800 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2802 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2804 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2805 the compiled webapp directory that Eclipse uses as we're using Maven now.
2806 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2807 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2809 * pom.xml: Format file, change target Java version to 1.6.
2811 2011-02-02 Ben Konrath <ben@bagu.org>
2813 Add information about a deployment related issue.
2815 * README: Add Notes section with the problem outlined.
2817 2011-02-02 Ben Konrath <ben@bagu.org>
2819 Call Glom.libglom_deinit() when the servlet is shutdown.
2821 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2822 Glom.libglom_deinit() to destroy() method.
2824 2011-01-28 Ben Konrath <ben@bagu.org>
2826 Use generated Util class to get the RPC Async interface.
2828 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2830 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2831 getInstance() method to get a reference to the RPC Async interface.
2832 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2833 getInstance() method to get a reference to the RPC Async interface, remove
2834 the now unused getLibGlomServiceProxy() method.
2836 2011-01-27 Ben Konrath <ben@bagu.org>
2838 Cleanup ChangeLog entry from previous commit.
2840 * ChangeLog: Group logical changes together and add comments.
2842 2011-01-25 Ben Konrath <ben@bagu.org>
2844 Convert to gwt-maven project.
2846 * .gitignore: Update for new project structure.
2847 * README: New file with a link to the online documentation.
2848 * pom.xml: The generated maven configuration file with some tweaks.
2850 Add / update Eclipse settings. These files are a merge of the files that
2851 were generated with the gwt-maven plugin and the files we were previously
2855 * .settings/.jsdtscope:
2856 * .settings/com.google.gdt.eclipse.core.prefs:
2857 * .settings/com.google.gwt.eclipse.core.prefs:
2858 * .settings/org.eclipse.jdt.core.prefs:
2859 * .settings/org.eclipse.wst.common.component:
2860 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2861 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2862 * .settings/org.maven.ide.eclipse.prefs:
2863 * OnlineGlomTest-dev.launch:
2864 * OnlineGlomTest-prod.launch:
2866 Java source files moved from the 'src' directory to the directory structure
2868 * src/main/java/org/glom/web/client/GlomDocument.java:
2869 * src/main/java/org/glom/web/client/GlomTable.java:
2870 * src/main/java/org/glom/web/client/LayoutList.java:
2871 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2872 * src/main/java/org/glom/web/client/LibGlomService.java:
2873 * src/main/java/org/glom/web/client/OnlineGlom.java:
2874 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2876 Non-functional property file used for translations. I included this as
2877 reminder that it's something I need to sort out.
2878 * src/main/resources/org/glom/web/client/Messages.properties:
2880 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2881 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2883 The servlet configuration files moved from the 'war' directory.
2884 * src/main/webapp/OnlineGlom.css:
2885 * src/main/webapp/OnlineGlom.html:
2886 * src/main/webapp/WEB-INF/web.xml:
2888 Generated test files with most of the code commented out. I included these
2889 so that it's easy to add tests when we're ready for them.
2890 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2891 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2893 2011-01-25 Ben Konrath <ben@bagu.org>
2895 Remove unused println.
2897 * src/org/glom/web/server/LibGlomServiceImpl.java:
2899 2011-01-25 Ben Konrath <ben@bagu.org>
2901 Add project specific JDT settings.
2903 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2904 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2906 2011-01-25 Ben Konrath <ben@bagu.org>
2908 Populate celltable with example data.
2910 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2911 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2912 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2913 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2914 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2915 asynchronously gets the example data.
2916 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2917 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2918 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2919 curently selected table to be retrieved by other widgets.
2920 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2921 implement getTableData() in a hacky way. This method needs to be updated
2922 to grab information from the database when database creating is
2925 2011-01-20 Ben Konrath <ben@bagu.org>
2927 Set table headers when table dropBox changes.
2929 * src/org/glom/web/client/GlomDocument.java: Correct some method
2931 * src/org/glom/web/client/LibGlomService.java: Add method
2932 to get list layout field names.
2933 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2934 to get list layout field names.
2935 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2936 widget for list layout table.
2937 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2938 the table drop box and add new updateTable() method to asynchronously
2939 get the layout list field names for the currently selected table.
2940 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2941 implementation of getLayoutListHeaders() method.
2942 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2944 2011-01-18 Ben Konrath <ben@bagu.org>
2946 Make a listBox with table titles instead of the flexTable demo.
2948 This is the start of something more useful.
2950 * .classpath: Exclude a bunch of packages from the JVM that are
2951 getting in the way of the Eclipse content assist.
2952 * src/org/glom/web/client/GlomDocument.java:
2953 * src/org/glom/web/client/GlomTable.java:
2954 * src/org/glom/web/client/LibGlomService.java:
2955 * src/org/glom/web/client/LibGlomServiceAsync.java:
2956 * src/org/glom/web/client/OnlineGlom.java:
2957 * src/org/glom/web/server/LibGlomServiceImpl.java:
2958 * war/OnlineGlom.html:
2959 * war/WEB-INF/web.xml:
2961 211-01-13 Ben Konrath <ben@bagu.org>
2963 Update to new java-libglom API.
2965 * .gitignore: Ignore OnlineGlom.war.
2966 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2968 2010-12-20 Ben Konrath <ben@bagu.org>
2970 Add some basic style to the table listing.
2972 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2973 header, print useful error message on async callback failure.
2974 * war/OnlineGlom.css: Add style for table header, remove defaults
2975 provided by the Eclipse project wizard.
2977 2010-12-20 Ben Konrath <ben@bagu.org>
2979 Load example file from installed glom dir.
2981 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2982 provided by java-libglom to find the example file.
2984 2010-12-20 Ben Konrath <ben@bagu.org>
2986 Update Eclipse settings.
2989 * .settings/com.google.gdt.eclipse.core.prefs:
2990 * .settings/com.google.gwt.eclipse.core.prefs:
2992 2010-12-17 Ben Konrath <ben@bagu.org>
2996 * .classpath: New file.
2997 * .gitignore: New file.
2998 * .project: New file.
2999 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3000 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3001 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3002 * src/org/glom/web/client/GlomTable.java: New file.
3003 * src/org/glom/web/client/OnlineGlom.java: New file.
3004 * src/org/glom/web/client/TableNameService.java: New file.
3005 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3006 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3007 * war/OnlineGlom.css: New file.
3008 * war/OnlineGlom.html: New file.
3009 * war/WEB-INF/web.xml: New file.
3010 * war/images/glom.png: New file.