1 2011-11-28 Ben Konrath <ben@bagu.org>
3 Log an error message when the java-libglom .so is not present.
5 The error message was being set in the exception but not logged.
7 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
9 2011-11-28 Ben Konrath <ben@bagu.org>
11 Ignore LayoutItem_CalendarPortals.
13 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
14 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
16 2011-11-28 Ben Konrath <ben@bagu.org>
18 Extract method for creating the LayoutItemPortal DTO.
20 Just breaking the code up into smaller chunks.
22 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
24 2011-11-28 Ben Konrath <ben@bagu.org>
28 This should have been added with the refactor. Oops!
30 * src/main/java/org/glom/web/shared/TypedDataItem.java:
32 2011-11-28 Ben Konrath <ben@bagu.org>
34 Create primary key value from URL string using type from Glom document.
36 See this bug, comments 19 - 25:
38 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
40 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
41 create a TypeDataItem for the primary key here when loading from a
42 URL. Show the same string for the primary key value as was received
43 from the URL string (when loading from a URL).
44 * src/main/java/org/glom/web/server/Utils.java: Update method for
45 creating the Gda Value from the TypeDataItem to properly deal with
46 creating a Gda Value based on the Glom document type for the primary
47 key value string when loading from a URL.
48 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
49 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
50 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
51 Update for changed method name.
53 2011-11-27 Ben Konrath <ben@bagu.org>
55 Rename PrimaryKeyItem to TypedDataItem.
57 The name PrimaryKeyItem suggests what the class should be used for.
58 TypedDataItem is a neutral name that describes the class better.
60 This is a rename-only refactor.
62 * src/main/java/org/glom/web/client/OnlineGlomService.java:
63 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
64 * src/main/java/org/glom/web/client/Utils.java:
65 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
66 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
67 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
68 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
69 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
70 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
71 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
72 * src/main/java/org/glom/web/server/Utils.java:
73 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
74 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
75 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
76 * src/main/java/org/glom/web/shared/NavigationRecord.java:
78 2011-11-25 Ben Konrath <ben@bagu.org>
80 Improve Gda Value conversion from PrimaryKeyItem.
82 The value from the PrimaryKeyItem is only used if its type match the
83 type from the glom document.
85 * src/main/java/org/glom/web/server/Utils.java:
87 2011-11-25 Ben Konrath <ben@bagu.org>
89 Manually check if the java-liblgom .so is visible to the JVM.
91 It seems that Tomcat has problems when a static initializer throws an
92 exception. This check is done before the first method call into
93 java-libglom so that execution doesn't continue if the .so is not
96 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
98 2011-11-25 Ben Konrath <ben@bagu.org>
100 Improve browser configuration error messages.
104 https://bugzilla.gnome.org/show_bug.cgi?id=662792
106 * src/main/java/org/glom/web/client/OnlineGlomService.java:
107 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
108 getConfigurationErrorMessage() method.
109 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
110 Get and display a specific configuration error message when no Glom
112 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
113 Implement getConfigurationErrorMessage() method. Surround configuration
114 code in the init() method with a try/catch block. This allows the
115 errors to be caught while keeping the servlet available to retrieve the
116 configuration error message.
118 2011-11-25 Ben Konrath <ben@bagu.org>
120 Don't use Strings to hold primary key values.
122 The primary key values are now held in a new data object
123 (PrimaryKeyItem) that holds type information and the primary key value
124 using the correct type.
126 * src/main/java/org/glom/web/client/OnlineGlomService.java:
127 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
129 PrimaryKeyItem instead of String to hold the primary key value.
130 * src/main/java/org/glom/web/client/Utils.java: Remove
131 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
132 PrimaryKeyItem based on the GlomFieldType and the DataItem.
133 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
134 PrimaryKeyItem instead of String to hold the primary key value. Load
135 document selection page when the documentID has not been set correctly.
136 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
137 DetailsPlace -> URL and URL -> DetailsPlace conversion with
139 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
140 Return empty string for URL instead of "null".
141 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
142 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
143 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
144 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
145 PrimaryKeyItem instead of String to hold primary key values.
146 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
147 PrimaryKeyValue to a Gda Value.
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 Replace temporary database access code that uses the PrimaryKeyValue to
152 Gda Value conversion.
153 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
154 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
155 PrimaryKeyItem instead of String.
156 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
157 hold primary key values.
159 2011-11-24 Ben Konrath <ben@bagu.org>
161 Use newly added java-libglom API to create queries.
163 This isn't finished. I still need to stop using Strings for primary key
164 values in the client code.
166 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
167 libglom to use fake connections so that retrieving the query string will
169 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
170 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
171 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
172 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
173 Use the newly added libglom sql methods and classes to create the
174 query. Add temporary hack to convert primary value strings to Gda
177 2011-11-23 Ben Konrath <ben@bagu.org>
179 Don't explicitly set the height of Portals.
181 See comments 6 - 10 of this bug for details:
183 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
185 * src/main/java/org/glom/web/client/ui/details/Portal.java:
187 2011-11-23 Ben Konrath <ben@bagu.org>
189 Use an HTML table instead of CSS for the FlowTable layout.
191 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
192 GWT's FlexTable to implement the FlowTable.
193 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
195 2011-11-18 Ben Konrath <ben@bagu.org>
197 Add boolean example to HTML table mockup.
199 * mockups/details-view-html-tables-text-entries.html:
201 2011-11-17 Ben Konrath <ben@bagu.org>
203 Ensure the pager buttons are always visible for related lists.
205 To accomplish this, I've turned off text wrapping in the list view and
206 related list tables for both the header and data text. The related list
207 table now has a fixed layout so the it doesn't overflow its container.
208 This is required to ensure that the cell text is clipped when it
209 overflows the cell and an ellipsis is added to the right side of the
210 cell when text is clipped.
212 A fixed table layout for the related list table in the details view
213 seems what we want for the details view anyway, so the side-effect is
216 The ellipsis will only be displayed in Firefox >= 7.
220 https://bugzilla.gnome.org/show_bug.cgi?id=662930
222 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
223 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
224 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
226 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
227 Set the 'table-layout: fixed' CSS property to the related list table.
228 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
229 'white-space: nowrap;' CSS property on both the list view and the
232 2011-11-16 Ben Konrath <ben@bagu.org>
234 Rework the fix for empty notebook tab labels.
236 Setting the empty group titles with its name caused problems for the
237 details layout. Instead of using libglom's
238 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
239 to the client when the title is empty. This allows the Notebook to use
240 the name when the title is empty without affecting anything else.
242 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
243 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
245 2011-11-16 Ben Konrath <ben@bagu.org>
247 Set group titles with name when title is empty.
249 This fixes a problem with an empty notebook tab label in the Lesson
250 Planner document. The forth tab in the notebook should be "Internet":
252 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
254 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
255 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
258 2011-11-16 Ben Konrath <ben@bagu.org>
260 Remove whitespace from the configured username properties.
262 This assumes that usernames won't have whitespace at the beginning
263 or end. But I think this is a reasonable assumption.
265 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
266 String.trim() to remove the whitespace from the username properties.
268 2011-11-15 Ben Konrath <ben@bagu.org>
270 Add details view mockup with HTML tables and text entries.
272 This is from the attachment on this bug:
274 https://bugzilla.gnome.org/show_bug.cgi?id=663109
276 * mockups/details-view-html-tables-text-entries.html:
278 2011-11-15 Ben Konrath <ben@bagu.org>
280 Add space between the columns of the flow table.
284 https://bugzilla.gnome.org/show_bug.cgi?id=662918
286 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
287 space between columns in the flow table.
289 2011-11-15 Ben Konrath <ben@bagu.org>
291 Add backup files to the .gitignore.
293 * .gitignore: Ignore files that end with ~.
295 2011-11-09 Ben Konrath <ben@bagu.org>
297 Use latest release of gwt-log.
299 Gwt-log releases are now being submitted to the maven central
300 repository so manual installation of the jar is no longer required.
302 * pom.xml: Update version and groupId of gwt-log dependency.
304 2011-10-31 Ben Konrath <ben@bagu.org>
306 Don't use GWT numeric formatting to override the glom currency formatting.
308 Currencies are now displayed like they are in Glom. See this bug:
310 https://bugzilla.gnome.org/show_bug.cgi?id=646216
312 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
314 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
315 currency code to constructor and set it when the cell is rendered.
316 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
317 currency code to the constructor of the NumericCell.
319 2011-10-27 Ben Konrath <ben@bagu.org>
321 Require the latest release of java-libglom (1.17.4).
325 2011-10-26 Ben Konrath <ben@bagu.org>
327 Add style to Notebook that matches current theme.
329 It's not the best style in the world but it's better than the default.
331 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
332 padding at the bottom of the child widgets.
333 * src/main/webapp/style.css: Add style for the Notebook.
335 2011-10-26 Ben Konrath <ben@bagu.org>
337 Move servlet initialization code to overridden init method.
339 This is half of the solution to getting proper error messages
340 displayed when configuration errors occur. Here's the relevant bug:
342 https://bugzilla.gnome.org/show_bug.cgi?id=662792
344 The rest of the solution involves surrounding the init method with a
345 try/catch block and setting a global variable with the error /
346 exception. A new async method should be created to retrieve and display
347 the error message / exception.
349 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
350 code from constructor to init method adding exceptions as needed.
352 2011-10-26 Ben Konrath <ben@bagu.org>
354 Add script to monitor and restart tomcat if required.
356 * utils/check-and-recover-tomcat.py: New file.
358 2011-10-26 Ben Konrath <ben@bagu.org>
360 Display the correct number of data items in the pager.
364 https://bugzilla.gnome.org/show_bug.cgi?id=661441
366 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
367 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
368 The implementation is the same for both tables: Keep track of the
369 number of non-empty rows and fire and RowCountChangeEvent after the data has
371 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
372 custom Pager class that subclasses SimplePager to handle displaying
373 the correct number when empty rows have been added.
375 2011-10-26 Ben Konrath <ben@bagu.org>
377 Correct error in previous commit.
379 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
380 eventBus parameter from listView.setCellTable().
382 2011-10-26 Ben Konrath <ben@bagu.org>
384 Fix error in TODO comment.
386 * src/main/java/org/glom/web/client/activity/ListActivity.java:
388 2011-10-24 Ben Konrath <ben@bagu.org>
390 Create Notebook widgets to the details view.
392 This isn't finished just yet - I still need to create a reasonable
393 style to match the current theme.
395 * src/main/java/org/glom/web/client/Utils.java: Add method for
396 calculating the height of a widget. This is used in the Notebook class.
397 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
398 new constructor method in Group.
399 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
400 method for creating child widget that can be used by subclasses
401 like Notebook. New constructor that allows disabling the group
402 titles - Notebooks don't set a group title for their child groups.
403 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
404 to make Notebooks using GWT's TabLayoutPanel.
405 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
406 constructor that allows disabling the group titles.
407 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
408 LayoutItemNotebook DTO.
409 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
410 DTO for Notebooks. It's just an empty class for now but we might need
411 it to transfer some specific information in the future.
413 2011-10-21 Ben Konrath <ben@bagu.org>
415 Add navigation buttons to related list tables.
417 * src/main/java/org/glom/web/client/OnlineGlomService.java:
418 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
419 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
420 method getSuitableRecordToViewDetails() for getting the table name
421 and primary key value for related list navigation buttons.
422 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
423 private cell renderer class to get the navigation information for
424 related list tables from the server. Extract the navigation
425 processing code from the details cell navigation and use it for the
426 related list navigation as well.
427 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
428 cell renderer class for the details open buttons. This was needed
429 because the related list navigation buttons and the list view
430 navigation buttons need to react differently when clicked.
431 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
432 the onEnterKeyDown() method because it's now overriden in the
433 subclasses that are specific to the related list tables and the list
435 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
436 the vertical size a little because the buttons add a bit of vertical
437 space to table. This is not a perfect solution because the vertical
438 size of with table fewer than 5 rows will be a little smaller.
439 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
440 changes in how navigation buttons are handled.
441 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
442 getSuitableRecordToViewDetails() using the new RelatedListNavigation
443 database access object.
444 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
445 to find the portal for a given relationship name from
446 RelatedListDBAccess. Add method to find a primary key field for a
448 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
449 Move code to find the portal for a given relationship name to
451 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
452 New file: database access object for getting the related list
453 navigation information (the table name and the primary key value).
454 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
455 DTO for transferring a table name to navigate to and a primary key
457 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
458 boolean and getter/setter to specifies if the related list should add
461 2011-10-24 Murray Cumming <murrayc@murrayc.com>
463 Use the master branch of java-libglom
465 * pom.xml: Depend on java-libglom 1.19 instead.
467 This is the master branch. See also the libglom-1-18 branch.
469 2011-10-11 Ben Konrath <ben@bagu.org>
471 Enable the open navigation button when the data has been set.
473 This avoids having active buttons that don't do anything when the data
476 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
478 2011-10-11 Ben Konrath <ben@bagu.org>
480 Use IsWidget interface for FlowTableItem.
482 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
483 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
485 2011-10-11 Ben Konrath <ben@bagu.org>
487 Remove GWT styling from open button in details view.
489 There are still some issues with how the details cell is arranged but
490 this should be made to match Glom 1.20. I'm going to leave fixing this
491 until I have Glom 1.20 up and running.
493 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
494 style name on open button.
495 * src/main/webapp/style.css: Move and edit details-navigation class.
496 Re-arrange some classes to make them appear in the same order as the
499 2011-10-07 Ben Konrath <ben@bagu.org>
503 * .gitignore: Ignore new cache directory.
504 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
505 * pom.xml: Change GWT and maven plugin to 2.4.0.
506 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
508 * src/main/java/org/glom/web/client/ClientFactory.java:
509 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
510 * src/main/java/org/glom/web/client/OnlineGlom.java:
511 Update source for API changes.
512 * utils/build-onlineglom-war.sh: Remove cache directory before the
515 2011-10-07 Ben Konrath <ben@bagu.org>
517 Add navigation buttons in the details view.
519 This isn't finished but I thought I'd commit what I have as it's a
520 pretty good start. I still need to:
522 1. Change the style so that it fits better into the current theme
523 2. Adjust the details cell to expand as much as possible.
525 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
526 click handlers to navigation buttons in the DetailsCells. Create a
527 refreshData() method to get just the data from the server without the
529 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
530 Update the tableSelector and browser title when the table name
531 changes without using the tableSelector.
532 * src/main/java/org/glom/web/client/ui/DetailsView.java:
533 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
534 getDetailsCells() to getCells(). Update variable names.
535 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
536 method to set click handler on navigation button. Rename a few
537 variables. Add navigation buttons where needed.
538 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
539 variables and methods.
540 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
541 navigation boolean and navigation table as required in the
543 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
544 variables for navigation along with getter/setter methods.
546 2011-10-07 Ben Konrath <ben@bagu.org>
548 Rename Field to DetailsCell.
550 This is a refactor-only commit. No functionality has been added or
553 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
554 Update variable and method names.
555 * src/main/java/org/glom/web/client/ui/DetailsView.java:
556 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
557 variable and method names.
558 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
560 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
561 variable and method names.
563 2011-10-07 Ben Konrath <ben@bagu.org>
565 Create separate methods for layout and data the details view.
567 This is a refactor-only commit. No functionality has been added or
570 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
571 private methods: setData(), createLayout().
573 2011-10-07 Ben Konrath <ben@bagu.org>
575 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
577 This is part of a change to get navigation buttons in the details view
578 but it should have been done this way from the start.
580 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
581 for method name change in TableSelectionView.
582 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
583 Create TableChangeEvent and set the browser title using the
584 TableSelectionView API.
585 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
586 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
587 Change getSelectedTable() to getSelectedTableName(). Add
588 getSelectedTableTitle().
590 2011-10-07 Ben Konrath <ben@bagu.org>
592 Use primaryKeyValue naming convention in constructor of DetailsPlace.
594 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
596 2011-10-07 Ben Konrath <ben@bagu.org>
598 Update TableChangeEvent to use newTableName naming convention.
600 This makes the class more consistent with GWT naming conventions.
602 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
603 Update for method name change in TableChangeEvent.
604 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
605 for method name change in TableChangeEvent.
606 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
607 newTableName variable and getter method. Make toDebugString()
610 2011-09-30 Ben Konrath <ben@bagu.org>
612 Disable the pager in the list tables when the data row count is less than the minimum.
614 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
615 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
617 2011-09-30 Ben Konrath <ben@bagu.org>
619 Add empty rows to the end of related list and list view tables.
621 I also extracted the cell rendering classes from the ListTable because
622 the code was becoming a little crazy with all the anonymous inner
623 classes. My plan is to use these cell rendering classes in the details
624 view as well so this refactor will be needed for that change.
626 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
627 set the row count in related list tables if the data has more rows
628 than the minimum number of rows visible.
629 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
630 row count in list view tables if the data has more rows than the
631 minimum number of rows visible.
632 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
633 for rendering TYPE_BOOLEAN cells. The code was extracted from the
635 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
636 for rendering TYPE_NUMERIC cells. The code was extracted from the
638 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
639 class for rendering cells with buttons in list views. The code was
640 extracted from the ListTable class.
641 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
642 for rendering TYPE_TEXT cells. The code was extracted from the
644 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
645 Add empty rows to the end of the data if required. Implement
646 ListTable.getMinNumVisibleRows().
647 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
648 cell renderer code to public classes. Return null in
649 Column.getValue() for empty rows. Add new abstract method:
650 getMinNumVisibleRows(). Move code to set the row count of the list view
651 table to ListViewImpl.
652 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
653 empty rows to the end of the data if required. Implement
654 ListTable.getMinNumVisibleRows().
657 2011-09-27 Ben Konrath <ben@bagu.org>
659 Use GWT.log for client-side debugging statements.
661 These are optimized out when deployed so I should have used this method
662 in the first place. These statements will eventually be replaced with some sort
663 of notification in the browser.
665 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
666 * src/main/java/org/glom/web/client/activity/ListActivity.java:
667 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
668 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
669 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
671 2011-09-27 Ben Konrath <ben@bagu.org>
673 Put tableselector on the right, back to list link on right.
675 The idea is that the table selector is acting like a label for the
676 currently displayed table so it should be placed below the document title. This
677 puts the table title in a similar position to where it is in Glom.
679 * mockups/details-contacts.html:
680 * mockups/details-projects.html:
681 * mockups/listview-contacts.html:
682 * mockups/listview-projects.html:
684 Update mockups to match how the interfaces currently look.
685 * src/main/webapp/style.css: Swap positions of backlink with the table
686 selector. Add some space on the left side of the table selector to
687 line things up with the document title.
689 2011-09-27 Ben Konrath <ben@bagu.org>
691 Add field colouring to details view.
693 This change re-works how field colouring works. The colour formatting
694 information is now set to the client with the layout information instead of
695 with the data. This eliminates the need to send the same colour strings for
696 data in list view column when colour information is set.
698 In order to set an alternate colour for negative numeric values, the
699 number is now sent to client and formatted with the GWT NumberFormat class.
701 This change also fixes:
703 https://bugzilla.gnome.org/show_bug.cgi?id=659752
705 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
706 internationalization framework which is needed for client side numeric
708 * src/main/java/org/glom/web/client/Utils.java: New file for some
709 client static utility methods.
710 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
711 the DataItem object to the Field class. Use a utility method to
712 create the foreignKeyValue string.
713 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
714 alignment and text colours in the constructor. Add setData(DataItem)
715 method. Remove setText(String) method.
716 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
717 colour information to GlomTextCell. Create and use GlomNumberCell for
718 rendering numbers. Use utility method to get the string for the
719 primary key of the key provider. Re-work how the horizontal alignment
721 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
722 formatting to layout information. Methods for converting the libglom
723 formatting information were moved from DBAccess.
724 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
725 numeric formatting (it's now done on the client side). Don't set text
726 colours in DataItem. Move libglom formatting conversion methods to
728 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
729 getters/setters for text colour information.
730 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
731 for transferring the libglom NumericFormat information to the client.
732 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
733 and getters/setters for: GlomNumericFormat, background colour and
734 foreground colour strings.
736 2011-09-26 Ben Konrath <ben@bagu.org>
738 Simplify code that iterates through the LayoutGroup.
740 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
742 2011-09-26 Ben Konrath <ben@bagu.org>
744 Accept Eclipse formatting for OnlineGlomServiceAsync.
746 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
748 2011-09-26 Ben Konrath <ben@bagu.org>
750 Don't use the ListDBAccess classes to get the primary key layout information.
752 This was causing a bug where the wrong index for the hidden primary key
753 was being sent to the client.
755 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
756 primary key while creating the LayoutGroup DTO. Create a
757 LayoutItemField DTO for hidden primary keys. Don't use the
758 RelatedListDBAccess because it was only used for getting the primary
760 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
761 access modifier from public to protected for getPrimaryKeyField() and
762 getPrimaryKeyLayoutItemField().
763 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
764 abstract method getExpectedResultSize() because RelatedListDBAccess
765 doesn't have enough info to implement it.
766 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
767 Remove @Override for getExpectedResultSize().
768 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
769 Remove method getExpectedResultSize().
771 2011-09-23 Ben Konrath <ben@bagu.org>
773 Log which layout (list or details) the ignored item is from.
775 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
777 2011-09-23 Ben Konrath <ben@bagu.org>
779 Remove annotations that turn off code formatting in DataItem.
781 * src/main/java/org/glom/web/shared/DataItem.java:
783 2011-09-23 Ben Konrath <ben@bagu.org>
785 Rename GlomField to DataItem and update associated methods.
787 This is a rename-only refactor. No functionality has been added or
790 * src/main/java/org/glom/web/client/OnlineGlomService.java:
791 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
792 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
793 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
794 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
795 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
796 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
797 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
798 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
799 * src/main/java/org/glom/web/server/database/DBAccess.java:
800 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
801 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
802 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
803 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
804 * src/main/java/org/glom/web/shared/DataItem.java:
805 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
806 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
808 2011-09-23 Ben Konrath <ben@bagu.org>
810 Rename GlomDocument to DocumentInfo and update associated methods.
812 This is a rename-only refactor. No functionality has been added or
815 * src/main/java/org/glom/web/client/OnlineGlomService.java:
816 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
817 * src/main/java/org/glom/web/client/activity/ListActivity.java:
818 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
819 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
820 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
821 * src/main/java/org/glom/web/shared/DocumentInfo.java:
823 2011-09-20 Ben Konrath <ben@bagu.org>
825 Require java-libglom 1.17.3.
827 This picks up the fix for the seg fault problem with the Scenes table
828 in the Openismus Film Manager example.
832 2011-09-20 Ben Konrath <ben@bagu.org>
834 Change the way sort clause is added for primary key when no sort clause is requested.
836 The primary key is now added to the LayoutFieldVector (fieldsToGet)
837 before the sort clause is created. When a sort clause is not requested, the
838 sort clause is created by finding the primary key in the LayoutFieldVector
841 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
843 2011-09-20 Ben Konrath <ben@bagu.org>
845 Log error message if no documents are found in the configured directory.
847 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
848 Extract the glom file extension string to a private static final class
849 variable (mostly as syntactic sugar). Accept a minor formatting change.
850 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
851 the example glom.document.directory configuration property to make it
852 more clear that it can any directory, not just the home directory.
854 2011-09-18 Ben Konrath <ben@bagu.org>
856 Add related lists to details view.
858 The related list table has support for paging and sorting just like the
859 table in the list view.
861 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
862 SQL queries for the related list tables.
863 * src/main/java/org/glom/web/client/OnlineGlomService.java:
864 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
865 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
866 Rename getList methods to getListView and add comments. Remove
867 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
868 it being unused. Add methods: getDetailsLayoutAndData(),
869 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
870 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
871 Create the layout and set the data for the fields in one async call
872 instead of two. Create related lists where appropriate.
873 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
874 for method name changes in OnlineGlomService.
875 * src/main/java/org/glom/web/client/ui/DetailsView.java:
876 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
877 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
879 * src/main/java/org/glom/web/client/ui/ListView.java:
880 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
881 tableName from setCellTable(). Create a ListViewTable instead of
883 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
884 represent a data field in the details view.
885 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
886 from addDetailsCell() to Field class. Keep track of the Fields and
887 Portals in the details view.
888 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
889 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
890 and add a method to get it. Add method to set the contents of the
892 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
893 New class for related list tables. This class has the data provider
894 for the related list table.
895 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
896 abstract class which is the base class for the ListViewTable and the
898 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
899 New class for list view tables. This class has the data provider for
901 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
902 methods for related list tables. Add more information to the
903 LayoutItemField and LayoutItemPortal DTOs.
904 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
905 Remove debugging print statement.
906 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
907 Remove debugging print statements. Add primary key field to SQL count
909 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
910 Remove unnecessary LayoutFieldVector parameter from
911 getResultSizeOfSQLQuery() method.
912 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
913 New class for related list table database access.
914 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
915 class that is a wrapper DTO for details view layout and data.
916 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
917 new 'fromField' string to this DTO.
918 * src/main/webapp/style.css: Remove bottom margin and override top
921 2011-09-15 Ben Konrath <ben@bagu.org>
923 Breakup the OnlineGlomServiceImpl class to make it more manageable.
925 This sets things up to make it easier to add the data retrieval for
926 related lists (portals). No user noticeable changes were made with
929 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
930 class has the code to retrieve the layouts and access the
931 database using the new database helper classes.
932 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
933 Most of the functionality has been removed from this class. This
934 class now represents the public interface for the client side
935 code. It also deals with configuring the servlet and cleaning
936 things up when the servlet is stopped.
937 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
938 of static methods into this utility class.
939 * src/main/java/org/glom/web/server/database/DBAccess.java:
940 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
941 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
942 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
943 These classes have the database retrieval code. The class hierarchy
944 has been setup to make it easy to reuse code for similar
947 2011-09-06 Ben Konrath <ben@bagu.org>
949 Create separate classes for list table code and the data provider.
951 As part of this refactor, I also split up the code a bit to make it
954 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
955 table code to two new classes (below).
956 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
957 with code from ListViewImpl.
958 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
959 New file with code from ListViewImpl.
961 2011-09-06 Ben Konrath <ben@bagu.org>
963 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
965 This fixes the LayoutItemPortal DTO to match the libglom layout object
968 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
970 2011-09-01 Ben Konrath <ben@bagu.org>
972 Set title of Portals in the Details View.
974 * pom.xml: Bump required version of java-libglom to 1.17.1.
975 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
976 widget creation to its own class. Add comments to constructor.
977 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
978 The code is mostly from the Group class with the title now set.
979 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
980 title of Portal. Update some comments. Fix some code formatting.
982 2011-09-01 Ben Konrath <ben@bagu.org>
984 Remove TODO comment for the flow table column width.
986 The flow table column width is working correctly and doesn't need to be
987 changed. See this mailing list post for more info:
989 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
991 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
993 2011-08-27 Ben Konrath <ben@bagu.org>
995 Add document title (database name) to top of the browser page.
997 I added the document title to the TableSelecitonView but that will
998 change if / when we add a view that doesn't require table selection.
1000 * mockups/details-contacts.html:
1001 * mockups/details-projects.html:
1002 * mockups/listview-contacts.html:
1003 * mockups/listview-projects.html:
1004 * mockups/style.css: Add document title to mockups to keep things
1006 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1007 sizes to account for the document title.
1008 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1009 Set the document title when it has been retrieved from the server.
1010 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1011 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1012 and implement setDocumentTitle(String) method.
1013 * src/main/webapp/style.css: Add ID for document title style.
1015 2011-08-25 Ben Konrath <ben@bagu.org>
1017 Add NavigationType enum to LayoutItemPortal DTO.
1019 This is the start of adding support for Portals to the Details View.
1021 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1022 LayoutItem_Portal.navigation_type enum from libglom to
1023 LayoutItemPortal.NavigationType enum.
1024 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1025 NavigationType enum, field for storing the NavigationType and getter
1028 2011-08-25 Ben Konrath <ben@bagu.org>
1030 Implement the flow table layout in the Details View.
1032 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1033 FlowTable to Group to account for the renamed class.
1034 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1035 File. This is a container widget that implements the Glom details view
1036 flow table behaviour.
1037 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1038 org/glom/web/client/ui/FlowTable.java.
1039 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1040 so that the size of the subgroups are a closer match to the size of
1041 the Glom subgroups. This makes the flowtable layout match the layout
1042 in Glom for the Music Collection example file.
1044 2011-08-16 Ben Konrath <ben@bagu.org>
1046 Create container element for LayoutItemPortal in Details View.
1048 This will help me develop the layout for the FlowTable.
1050 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1051 fieldPanel variable to detailsCell.
1053 2011-08-15 Ben Konrath <ben@bagu.org>
1055 Set the height of the data element in the Details View.
1057 I changed the InlineLabels (text in a span element) to Labels (text in
1058 a div element) so that I could set the height of the details-data
1059 elements instead of the details-cell parent elements. This allows the
1060 the details-data element to display the correct height if style is
1061 applied that shows the height.
1063 This change has the added benefit of allowing the order of the labels
1064 and data elements to be changed for right-to-left languages.
1066 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1067 InlineLabels to Labels.
1068 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1069 InlineLabels to Labels. Set the height of the data element.
1070 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1071 multiline text height in the Formatting DTO.
1072 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1073 for multiline height along with getter and setter methods.
1074 * src/main/webapp/style.css: Adjust style to account for the change
1075 from span elements to div elements in the details cell.
1077 2011-08-15 Ben Konrath <ben@bagu.org>
1079 Make the List View appearance match the mockups.
1081 It doesn't match exactly but it's much better than it was.
1083 * mockups/listview-contacts.html: Remove unused css classes.
1084 * mockups/listview-projects.html: Remove unused css classes.
1085 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1086 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1087 for mainPanel instead of VerticalPanel (table). Set style name on
1088 CellTable. Set style name on Details column. Right-align Details
1090 * src/main/webapp/style.css: Adjust properties to match the mockups.
1092 2011-08-12 Ben Konrath <ben@bagu.org>
1094 Add better support for subgroups in the details view.
1096 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1097 changed FlowTable constructor.
1098 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1099 support for subgroups and subgroup-titles.
1100 * src/main/webapp/style.css: Add CSS class for subgroups and
1103 2011-08-12 Ben Konrath <ben@bagu.org>
1105 Return the top level LayoutGroup title.
1107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1109 2011-08-11 Ben Konrath <ben@bagu.org>
1111 Make the TableSelector header match the mockup.
1113 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1114 the layout panel. Properly lineup the table selection header with
1115 the list and details view.
1116 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1117 margin around the details view.
1118 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1119 Rename listBox variable to tableSelector. Set id for the style sheet.
1120 Use a FlowPanel instead of a HorizontalPanel.
1121 * src/main/webapp/style.css: Add properties to make the TableSelector
1122 box match the mockups.
1124 2011-07-13 Ben Konrath <ben@bagu.org>
1126 Update install script for java-libglom version change.
1128 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1131 2011-07-13 Ben Konrath <ben@bagu.org>
1133 Add support sub-group in the details view.
1135 I also removed the code that special-cased the default details view
1138 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1140 I still have to make a proper flowtable.
1142 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1143 Don't special-case default details view layout.
1144 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1145 addLayoutField() as I'm going to use it.
1146 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1147 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1149 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1150 extracted from DetailsViewImpl.GroupPanel. Add support for
1152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1153 column count when getting the details layout.
1155 2011-07-12 Ben Konrath <ben@bagu.org>
1157 Set browser title with database and table titles.
1159 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1160 Set the browser title when the table changes and when the activity
1162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1163 title when retrieving document info (the GlomDocument object).
1164 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1165 with getter and setter methods. Remove unused convenience constructor.
1166 Use default code formatting.
1168 2011-07-12 Ben Konrath <ben@bagu.org>
1170 Ignore LayoutItemPortals in the details view.
1172 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1175 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1176 LayoutItemPortal layout objects.
1177 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1178 LayoutItemPortal objects when retrieving the details layout.
1179 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1180 file. This is an empty class and just used to get type information for
1183 2011-07-12 Ben Konrath <ben@bagu.org>
1185 Use java-libglom 1.17.0.
1189 2011-07-11 Ben Konrath <ben@bagu.org>
1191 Remove "Table:" label from table selector.
1193 This matches a recent change in the Glom UI.
1195 * mockups/details-contacts.html:
1196 * mockups/details-projects.html:
1197 * mockups/listview-contacts.html:
1198 * mockups/listview-projects.html: Remove the "Table:" label from the
1200 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1202 2011-07-11 Ben Konrath <ben@bagu.org>
1204 Add main groups to the details view.
1206 This makes things look a little nicer in the details view. The next step
1207 is to implement the flowtable.
1209 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1210 resources from the standard gwt css theme. Standard.css is now
1211 included in OnlineGlom.html so that the online glom css rules have
1212 precedence over the gwt theme.
1213 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1214 the whole LayoutGroup to the DetailsView instead of just the titles.
1215 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1216 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1217 details layout with a helper class (GroupPanel). I might extract this
1218 class when I make the full flowtable.
1219 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1220 string as default so I don't have to worry about NPEs when processing
1222 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1223 note beside OnlineGlom.gwt.xml above).
1224 * src/main/webapp/style.css: Add default font-size to body to override
1225 the font-size set by the standard theme. Don't use h2 tags for
1226 group-title. Create new details-cell class.
1228 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1230 ConfiguredDocument: Set the port number too.
1232 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1233 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1234 Glom document. Presumably this worked sometimes so far because there is a
1235 default port number.
1237 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1239 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1241 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1242 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1243 correct, though we should throw an exception too.
1245 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1247 Fix a addDocuemnt typo.
1249 * src/main/java/org/glom/web/shared/Documents.java
1250 (Documents.addDocuemnt): Rename to addDocument().
1251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1252 (OnlineGlomServiceImpl.getDocuments): Adapt.
1254 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1256 Slightly improved log output when connection fails.
1258 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1259 (ConfiguredDocument.setUsernameAndPassword):
1260 We don't know for sure if it' the username/password that's wrong, so
1261 rephrase the message.
1262 Also ouput the exception message, though it's generic in this case.
1264 2011-07-08 Ben Konrath <ben@bagu.org>
1268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1269 added braces to a one line if statement because the Eclipse formatter
1270 was getting confused.
1272 2011-07-07 Ben Konrath <ben@bagu.org>
1274 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1276 These should really be two separate tasks but I counldn't get things to
1277 work with GWT 2.2.0 and Eclipse 3.7.
1281 * .settings/org.eclipse.jdt.core.prefs:
1282 * .settings/org.eclipse.jdt.ui.prefs:
1283 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1284 * .settings/org.eclipse.m2e.core.prefs:
1285 Add new config files. Update current files. Remove references to the
1286 webtools plugins as we're not using any of the webtools features.
1287 * .gitignore: Add logs directory which is created when running with
1289 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1290 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1291 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1293 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1295 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1297 onlineglom.properties: Add explanatory comments.
1299 * src/main/resources/onlineglom.properties: Also change the default user
1300 from ben to someuser, to avoid the risk of people thinking we just
1301 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1303 2011-06-28 Ben Konrath <ben@bagu.org>
1305 Use filename in Log for incorrect passwords.
1307 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1308 getFileName(String) method to get the filename from the URI.
1310 2011-06-28 Ben Konrath <ben@bagu.org>
1312 Add the table name to the URL token for the ListPlace.
1314 This makes things consistent between the DetailsPlace and the
1315 ListPlace. It also allows the the ListPlace to be bookmarked.
1317 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1318 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1320 Remove getDefaultListLayout(). The default layout is now returned
1321 by the getListLayout() method when the table name is an empty string.
1322 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1323 Add table name field. Change to a new ListPlace when the table
1324 has been changed. Use getListLayout() for getting the default
1326 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1327 Add table name field. Set the correct table name in the list box
1328 when loading from bookmark. This corrects a problem for the
1330 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1331 Move table name to super-class (HasSelectableTable). Move document
1332 and table URL keys to super-class in HasSelectableTable.
1333 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1334 Add table name field. Add Tokenizer class with URL key common to
1335 the subclasses (DetailsPlace and ListPlace).
1336 * src/main/java/org/glom/web/client/place/ListPlace.java:
1337 Add table name. Add code to parse the URL token.
1338 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1339 Update ListPlace construction with empty table name string.
1340 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1341 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1342 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1343 Update ListPlace construction with table name string.
1344 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1345 Change defaultTableName field to tableName to reflect how it's now
1346 used. Update the getter and setter methods.
1348 2011-06-28 Ben Konrath <ben@bagu.org>
1350 Enable the table selector in the DetailsView.
1352 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1353 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1354 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1355 Remove getDefaultDetailsLayout(). The default layout is now returned
1356 by the getDetailsLayout() method when the table name is an empty
1358 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1359 event handler for table change event. Change to using
1360 getDetailsLayout() for the default details layout.
1361 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1363 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1364 when navigating to the details place.
1366 2011-06-27 Ben Konrath <ben@bagu.org>
1368 Use filename based unique document ID in URL and for RPC.
1370 The document ID is the glom document name with spaces (' ') replaced
1371 with pluses ('+') and without the .glom extension.
1373 This change is mostly a string substitution of 'documentTitle' for
1374 'documentID'. The only code change is the addition of a Documents DTO to get the
1375 filename to document title mappings as indicated below.
1377 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1378 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1379 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1380 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1381 Use Documents DTO to create the document links in the document
1383 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1384 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1385 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1386 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1387 * src/main/java/org/glom/web/client/place/ListPlace.java:
1388 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1389 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1390 * src/main/java/org/glom/web/client/ui/ListView.java:
1391 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1392 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1393 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1394 * src/main/java/org/glom/web/server/Log.java:
1395 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1396 getDocumentTitles() to getDocuments() and return the Documents DTO.
1397 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1398 transferring the filename to document title mappings.
1400 2011-06-25 Ben Konrath <ben@bagu.org>
1402 Make the authentication popup work again.
1404 This bug was introduced when I extracted ConfiguredDocument to its own class.
1406 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1407 correct success / fail status in setUsernameAndPassword().
1409 2011-06-25 Ben Konrath <ben@bagu.org>
1411 Use filename as unique key for configuring database usernames and passwords.
1413 This replaces the use of the Glom document title which could change
1414 depending on the locale. Thanks to Murray Cumming for pointing out this
1417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1418 * src/main/resources/onlineglom.properties:
1420 2011-06-24 Ben Konrath <ben@bagu.org>
1422 Pass primary key value to DetailsView.
1424 This enables the DetailsView to load the correct data.
1426 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1427 primary key value field and set in constructor. Pass primary key
1428 value to getDetailsData().
1429 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1430 variables for document title and primary key value.
1431 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1432 key value to the DetailsPlace.
1434 2011-06-24 Ben Konrath <ben@bagu.org>
1436 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1438 This allows the primary key to be retrieved by the Details button. This
1439 functionality has not been implemented yet but it's in the works.
1441 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1442 the LayoutGroup result to ListView.setCellTable instead of all of its
1443 fields individually.
1444 * src/main/java/org/glom/web/client/ui/ListView.java:
1445 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1446 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1447 get the primary key for the table.
1448 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1449 index of the primary key in the LayoutGroup accounting for hidden
1450 primary keys. Rename getJavaNumberFormat() to
1451 convertToJavaNumberFormat() for consistency. Cleanup / add some
1453 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1454 field for primary key index and a field to indicate whether the
1455 primary key is hidden or not.
1457 2011-06-23 Ben Konrath <ben@bagu.org>
1459 Rename getTableData methods to getListData.
1461 This is a rename refactor for consistency with other methods.
1463 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1464 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1465 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1466 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1468 2011-06-23 Ben Konrath <ben@bagu.org>
1470 Extract the ConfiguredDocument innerclass into its own class.
1472 This makes the servlet code more object oriented.
1474 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1475 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1476 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1477 new ConfiguredDocument class.
1479 2011-06-21 Ben Konrath <ben@bagu.org>
1481 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1483 This makes things more inline with how libglom works and reduces code
1484 duplication. This refactor lays the groundwork for adding the primary key to
1485 the LayoutGroup object.
1487 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1488 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1489 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1490 Change method names to getListLayout and getDefaultListLayout for
1491 consistency. Use LayoutGroup as the DTO for the list layout instead of
1492 ColumnInfo and LayoutListTable.
1493 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1494 new method names along with the LayoutGroup object for transferring the
1496 * src/main/java/org/glom/web/client/ui/ListView.java:
1497 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1498 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1499 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1501 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1502 Replaced with LayoutGroup.
1503 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1504 expectedResultSize and defaultTableName fields which are needed for
1506 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1507 type field which is needed for the list layout but will also be
1508 useful for the details layout as things progress.
1509 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1510 Make class abstract. Remove the unnecessary
1511 getFormattingHorizontalAlignment method. Add setFormatting method.
1513 2011-06-16 Ben Konrath <ben@bagu.org>
1515 Add scripts for building and installing war.
1517 These will help when updating OnlineGlom but they're also good
1518 supplemental documentation of the build and deployment proceeding.
1520 * utils/build-onlineglom-war.sh: New file.
1521 * utils/install-onlineglom-war.sh: New file.
1523 2011-06-16 Ben Konrath <ben@bagu.org>
1525 Create wrapper class to create consistent log messages.
1527 I wrapped methods in the Log class of gwt-log to add the method names
1528 from the servlet and create consistent formatting of the document title
1529 and table names in the log messages.
1531 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1533 log methods to use methods from wrapped Log class.
1535 2011-06-16 Ben Konrath <ben@bagu.org>
1537 Remove superfluous conditional return.
1539 Thanks to Murray Cumming for pointing this out!
1541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1543 2011-06-15 Ben Konrath <ben@bagu.org>
1545 Return an ArrayList of LayoutGroups for the Details layout.
1547 This corrects a problem with the details layout as it can have more
1548 than one top level LayoutGroup.
1550 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1551 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1552 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1553 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1554 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1555 with ArrayList of LayoutGroups for the details view layout.
1556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1557 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1558 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1559 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1560 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1561 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1563 2011-06-14 Ben Konrath <ben@bagu.org>
1565 Use cast_dynamic method to determine the libglom LayoutItem type.
1567 This is better than finding the LayoutItem type by using the string
1568 returned from the get_part_type_name() method.
1570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1572 2011-06-14 Ben Konrath <ben@bagu.org>
1574 Add method names to log entries in the servlet.
1576 This helps when tracking down deployment problems.
1578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1580 2011-06-14 Ben Konrath <ben@bagu.org>
1582 Add data to the DetailsView using a hard-coded primary key value.
1584 The layout and functionality of the DetailsView is not complete. This
1585 is just a checkpoint so the patch doesn't get too big.
1587 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1588 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1589 Add getDetailsData() servlet method.
1590 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1591 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1592 LayoutFields are added to the DetailsView.
1593 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1594 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1595 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1596 take the string for the title instead of the object.
1597 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1598 Add implementation getDetailsData() along with some private helper
1600 * src/main/webapp/style.css: Add padding to details-data class. Add a
1601 details-label class with the same padding as the details-data class.
1603 2011-06-03 Ben Konrath <ben@bagu.org>
1605 Use presenter.goTo() to change to the DetailsPlace.
1607 This will make things easier when we need to open the DetailsView with
1608 data specific to the row that was clicked.
1610 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1612 2011-06-02 Ben Konrath <ben@bagu.org>
1614 Add CSS file from mockups.
1616 I'm adding this now because it's going to be useful to have when
1617 developing the DetailsView. The TableSelectionView and ListView aren't
1620 * src/main/webapp/OnlineGlom.html:
1621 * src/main/webapp/style.css:
1623 2011-06-02 Ben Konrath <ben@bagu.org>
1625 Use String.isEmpty() to check for empty string.
1627 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1629 2011-06-02 Ben Konrath <ben@bagu.org>
1631 Display main layout group titles in the DetailsView.
1633 This is the start of the DetailsActivity/DetailsView implementation.
1635 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1636 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1637 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1638 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1639 Get the layout information for the details view from the server and set
1640 the main layout group titles.
1641 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1642 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1643 Add addLayoutGroup() and addLayoutField() methods. This are just
1644 temporary methods for creating the the details view that will change
1646 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1647 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1649 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1650 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1651 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1652 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1653 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1654 Data Transfer Objects that mimic the libglom object structure. These are
1655 used for transferring the details layout but could also be used for
1656 transferring the list layout.
1658 2011-05-27 Ben Konrath <ben@bagu.org>
1660 Reset the AuthenticationPopup when clearing the ListView.
1662 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1664 2011-05-27 Ben Konrath <ben@bagu.org>
1666 Fix problem with onlineglom.properties file loading.
1668 The old way worked in Eclipse but not on the server. Loading the
1669 onlineglom.properties file now works in Eclipse and on the server.
1671 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1673 2011-05-24 Ben Konrath <ben@bagu.org>
1675 Update gwt-log from 3.1.0 to 3.1.2.
1677 Gwt-log 3.1.0 has been marked as depreciated.
1681 2011-05-24 Ben Konrath <ben@bagu.org>
1683 Add comment to ListActivity.goTo() method.
1685 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1687 2011-05-24 Ben Konrath <ben@bagu.org>
1689 Remove FIXME in convertGdkColorToHtmlColour()
1691 The Gdk::Color value returned by libglom is 16-bits per channel on both
1692 64 and 32-bit platforms.
1694 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1696 2011-05-19 Ben Konrath <ben@bagu.org>
1698 Improve performance of initial ListView load.
1700 I removed a round trip to the server for getting the default table name
1701 and then requesting information about that table. This also removes a potential
1702 problem with the table change handler not being setup in time to receive the
1703 table change event from the ListActivity.
1705 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1706 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1707 getDefaultLayoutListTable() method. Improve comments.
1708 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1709 getDefaultLayoutListTable() method instead of firing a table change
1710 event to get the table to load.
1711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1712 implementation of getDefaultLayoutListTable() method.
1713 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1716 2011-05-19 Ben Konrath <ben@bagu.org>
1718 Override toDebugString() in TableChangeEvent.
1720 This is useful to have for debugging.
1722 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1724 2011-05-19 Ben Konrath <ben@bagu.org>
1726 Add a "Back to List" link when at the DetailsPlace.
1728 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1729 Populate the CellTable based on the selected table of the ListBox if
1730 it's set otherwise use the default table. This allows the "Back to
1732 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1733 Remove Place from constructors. Add a setPlace() method. Add
1734 goToPlace() method. Set class as presenter for TableSelectionView.
1735 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1736 Use the same TableSelectionActivity when switching between the List and
1738 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1739 Subclass the new HasSelectableTablePlace. This removes some duplicate
1741 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1742 New class to represent Places that display the TableSelectionView.
1743 * src/main/java/org/glom/web/client/place/ListPlace.java:
1744 Subclass the new HasSelectableTablePlace. This removes some duplicate
1746 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1747 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1748 Add Presenter interface. Add setBackLinkVisible() method. Add
1749 setBackLink() method.
1751 2011-05-18 Ben Konrath <ben@bagu.org>
1753 Enable the "Details" buttons.
1755 Right now only an empty details view is displayed.
1757 * src/main/java/org/glom/web/client/ClientFactory.java:
1758 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1759 Add DetailsView to ClientFactory.
1760 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1761 A basic activity for the details view.
1762 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1763 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1765 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1766 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1768 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1769 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1770 unnecessary super() in constructor.
1771 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1772 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1773 really shouldn't create a new TableSelectionActivity for both the ListPlace
1774 and the DetailsPlace so this should be considered a temporary solution.
1775 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1776 New file. Represents a URL for the details view.
1777 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1778 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1779 A basic details view interface and implementation.
1780 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1781 Enable the "Details" buttons.
1783 2011-05-12 Ben Konrath <ben@bagu.org>
1785 Use a LayoutPanel with multiple display areas for main layout.
1787 This is mostly a refactor in that there are no changes from the user
1788 point of view. These changes are required so that we can swap out the list view
1789 with the details view when the user clicks the "Details" button.
1791 * src/main/java/org/glom/web/client/ClientFactory.java:
1792 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1793 OnlineGlomView. Add TableSelectionView, ListView and
1794 AuthenticationPopup.
1795 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1796 for main layout. Add display regions for main activities. Add
1797 activity manager for for main activities.
1798 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1799 file from parts of the deleted OnlineGlomActivity.
1800 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1801 New file from parts of the deleted OnlineGlomActivity.
1802 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1803 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1804 New files for app wide table change event.
1805 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1806 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1807 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1808 Activity mappers for the main activities replace the deleted app-wide
1810 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1811 Fix a spelling error in he comment.
1812 * src/main/java/org/glom/web/client/ui/ListView.java:
1813 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1814 Renamed from LayoutListView and modified for MVP. This still not a
1815 proper dumb view as prescribed by the MVP pattern but it works for now.
1816 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1817 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1818 New widget stripped out of the deleted OnlineGlomView.
1819 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1820 Remove hack that is fixed by this patch.
1822 2011-05-06 Ben Konrath <ben@bagu.org>
1824 Rename OnlineGlomPlace to ListPlace.
1826 The only change besides the rename is that url will now display #list
1827 instead of #Document.
1829 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1830 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1831 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1832 * src/main/java/org/glom/web/client/place/ListPlace.java:
1833 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1835 2011-05-06 Ben Konrath <ben@bagu.org>
1837 Use Presenter for app navigation.
1839 This is the proper way to deal with Place (URL) changes with the MVP
1842 * src/main/java/org/glom/web/client/ClientFactory.java:
1843 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1844 PlaceHistoryMapper and PlaceHistoryHandler.
1845 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1846 PlaceHistoryMapper and PlaceHistoryHandler.
1847 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1848 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1849 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1850 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1851 Add Presenter interface and setPresenter methods. Rename addHyperLink
1852 to addDocumentLink taking only the document title as a parameter.
1854 2011-04-14 Ben Konrath <ben@bagu.org>
1856 Prompt for db username/password if they haven't been set.
1858 This is implemented with a popup widget that is contained within the
1859 OnlineGlomView and managed by the OnlineGlomActivity.
1861 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1862 methods for checking and setting the database username and password.
1863 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1864 new methods for checking and setting the database username and
1866 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1867 Display authentication popup if the JDBC connection to the database
1868 has not been authenticated.
1869 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1871 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1872 for dealing with the authentication popup.
1873 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1874 Implement the methods for dealing with the authentication popup.
1875 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1876 try to executed queries if the database connection hasn't been
1877 authenticated. Implement methods for checking and setting the
1878 database username and password.
1880 2011-04-12 Ben Konrath <ben@bagu.org>
1882 Make log messages a little clearer.
1884 Add a dash betweeen the document title and the table name.
1886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1888 2011-04-12 Ben Konrath <ben@bagu.org>
1890 Protect against NPEs when cleaning up database resources.
1892 While this isn't strictly necessary because the exception is caught,
1893 not protecting against the NPEs makes it harder to find the real error
1896 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1898 2011-04-12 Ben Konrath <ben@bagu.org>
1900 Move configuration of the servlet to the constructor.
1902 The servlet will be initialized even if the database authentication
1903 information is not set or correct. I still need to add the UI for prompting
1904 the user for the authentication information when it's required.
1906 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1907 javadocs for getDocumentTitles() method.
1908 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1909 Set error message when RPC fails.
1910 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1911 glom files directory from the configuration file. Try to set the
1912 database authentication information for the specific document if it's
1913 set and works otherwise try to use the global authentication
1914 information set for the directory.
1915 * src/main/resources/onlineglom.properties: Moved from
1916 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1917 Added detailed comments for the new keys.
1919 2011-04-11 Ben Konrath <ben@bagu.org>
1921 Remove unnecessary @Override in DocumentSelectionViewImpl.
1923 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1925 2011-04-11 Ben Konrath <ben@bagu.org>
1927 Remove center alignment in DocumentSelectionView.
1929 The title element is still centred but the document titles and bottom
1930 sentence are both left-aligned.
1932 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1934 2011-04-11 Ben Konrath <ben@bagu.org>
1936 Change 'Demo' naming convention to 'Document'.
1938 This is just a rename refactor with no functional changes to the code.
1940 * src/main/java/org/glom/web/client/ClientFactory.java:
1941 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1942 * src/main/java/org/glom/web/client/OnlineGlom.java:
1943 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1944 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1945 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1946 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1947 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1948 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1949 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1950 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1951 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1952 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1954 2011-04-08 Ben Konrath <ben@bagu.org>
1956 Remove FIXME from safeLongToInt() method.
1958 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1961 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1963 2011-04-08 Ben Konrath <ben@bagu.org>
1965 Display an error if no glom documents are found in the specified directory.
1967 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1968 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1969 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1970 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1972 2011-04-08 Ben Konrath <ben@bagu.org>
1974 Add copyright header to one more file ... oops.
1976 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1978 2011-04-08 Ben Konrath <ben@bagu.org>
1980 Add copyright header to files without it.
1982 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1983 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1984 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1985 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1986 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1987 * src/main/java/org/glom/web/shared/GlomField.java:
1989 2011-04-08 Ben Konrath <ben@bagu.org>
1991 Add support for accessing multiple glom documents in the servlet.
1993 This completes the demo selection functionality.
1995 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1996 document title to methods.
1997 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1998 document title to methods.
1999 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2000 Set browser window title when the activity starts. Correct name of
2001 document title variable.
2002 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2003 Set browser window title when the activity starts. Set the table
2004 selector change handler after table selector has been set. Clear the
2005 OnlineGlomView when the activity has been stopped.
2006 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2007 document title as the place token. Use "#Document:" instead of
2008 "#OnlineGlomPlace:" in the URL.
2009 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2010 Change heading to "Online Glom"
2011 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2012 document title in RPC methods.
2013 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2014 setDocumentTitle() method. Add clear() method.
2015 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2016 setDocumentTitle() method. Implement clear() method which removes the
2017 change handler on the ListBox, clears the ListBox and clears the
2019 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2020 Implement methods with document title. Keep track for the configured
2021 glom documents and their corresponding JDBC configurations in a hash
2022 table. This information is retrieved using the document title as the
2023 key in the hash table.
2024 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2025 document title field as it's no longer needed.
2027 2011-04-08 Ben Konrath <ben@bagu.org>
2029 Update the Eclipse JDT configuration.
2031 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2032 methods. Automatically add the copyright header to new files.
2034 2011-04-05 Ben Konrath <ben@bagu.org>
2036 Add new page for demo selection.
2038 This patch adds all the components required to view and start an
2039 OnlineGlom demo by clicking on the desired hyperlink. The user is
2040 able to return to the demo selection page with the browser's back
2041 button. I still need to modify the servlet to work with multiple
2042 documents so all demo links will load the file defined in the
2043 OnlineGlom.properties.
2045 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2046 This is only useful during development so we don't need to save it.
2047 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2048 get a reference to the DemoSelectionView.
2049 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2050 method to get a reference to the DemoSelectionView.
2051 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2052 default view to DemoSelectionView.
2053 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2054 to get glom document titles for glom files in a hard-coded directory.
2055 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2056 method to get glom document titles for glom files in a hard-coded
2058 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2059 Presenter for DemoSelectionView.
2060 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2061 for DemoSelectionView.
2062 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2063 Update for DemoSelectionView.
2064 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2065 Basic 'Place' implementation for the DemoSelectionView.
2066 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2067 The interface for the DemoSelectionView.
2068 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2069 The implementation of the DemoSelectionView.
2070 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2071 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2073 implementation of method to get glom document titles for glom files
2074 in a hard-coded directory.
2075 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2076 on longer being used.
2077 * src/main/webapp/glom.png: Glom logo.
2079 2011-04-05 Ben Konrath <ben@bagu.org>
2081 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2083 This is the forth and final commit of a refactor that will allow
2084 OnlineGlom to be used with multiple documents.
2086 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2087 Move RPC code from OnlineGlomViewImpl to this class.
2088 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2090 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2091 RPC code to the presenter class (the P in MVP).
2093 2011-04-04 Ben Konrath <ben@bagu.org>
2095 Start moving the existing OnlineGlom code to MVP.
2097 This work is based on the GWT MVP framework that is documented here:
2099 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2101 This is the third commit of a refactor that will allow OnlineGlom to
2102 be used with multiple documents.
2104 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2105 Interface for client factory which is used to get instances of various
2106 classes throughout the app.
2107 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2108 Implementation of client factory.
2109 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2110 initialize the MVP framework.
2111 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2112 New file. Activity manager for the main container widget. This is the
2114 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2115 Maps place (URL) to its corresponding activity.
2116 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2117 New file. This is just a place holder for a generated file.
2118 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2119 New file. Represents the URL for the main Online Glom app.
2120 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2121 for changes in LayoutListViewImpl.
2122 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2123 interface for View. Move code to OnlineGlomViewImpl class.
2124 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2125 file. Implementation of OnlineGlomView.
2126 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2127 Place resources. Use ClientFactoryImpl by default.
2129 2011-04-04 Ben Konrath <ben@bagu.org>
2131 Move View classes to their own package.
2133 This is the second commit of a refactor that will allow OnlineGlom to
2134 be used with multiple documents.
2136 * src/main/java/org/glom/web/client/OnlineGlom.java:
2137 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2138 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2140 2011-04-02 Ben Konrath <ben@bagu.org>
2142 Move UI code from the main module to its own class.
2144 This is the first commit of a refactor that will allow OnlineGlom to be
2145 used with multiple documents.
2147 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2148 references to OnlineGlom to OnlineGlomView.
2149 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2150 OnlineGlomView and instantiate it here.
2151 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2152 represents the main OnlineGlomView with one document.
2154 2011-04-01 Ben Konrath <ben@bagu.org>
2156 Fix formatting of gwt.xml and add DTD.
2158 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2160 2011-03-30 Ben Konrath <ben@bagu.org>
2162 Propperly convert gdkColor string to html colour string.
2164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2166 2011-03-28 Ben Konrath <ben@bagu.org>
2168 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2170 This implementation matches
2171 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2172 readable and is not tied to Swig.
2174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2176 2011-03-28 Ben Konrath <ben@bagu.org>
2178 Use read-only checkboxes for boolean field types.
2180 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2181 in the CellTable based on the field type. It currently only
2182 distinguishes between boolean and text columns but I'll need to add
2183 support for more types.
2184 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2185 column type in the ColumnInfo object. Add method to convert between the
2186 glom field type enum in ColumnInfo and the glom field type in libglom.
2187 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2189 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2190 getting and setting booleans.
2192 2011-03-25 Ben Konrath <ben@bagu.org>
2194 Don't get the Date twice from the ResultSet.
2196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2198 2011-03-25 Ben Konrath <ben@bagu.org>
2200 Cleanup code in the servlet.
2202 * TODO: Remove item about row count. Add item about testing row count
2203 query with large number of rows.
2204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2205 spelling mistakes, change method parameter to be consistent with
2208 2011-03-25 Ben Konrath <ben@bagu.org>
2210 Add server side logging with the gwt-log library.
2212 * .gitignore: Ignore the log file we're now producing.
2213 * TODO: Add a couple TODO item for logging.
2214 * pom.xml: Add gwt-log and log4j as a dependency.
2215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2216 logging of errors, warnings and some important info.
2217 * src/main/resources/log4j.properties: New file to configure log4j.
2219 2011-03-24 Ben Konrath <ben@bagu.org>
2221 Add a disable button for the Details view.
2223 * src/main/java/org/glom/web/client/LayoutListView.java:
2225 2011-03-22 Ben Konrath <ben@bagu.org>
2227 Use a count query to get the number of rows for the list view pager.
2229 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2231 2011-03-22 Ben Konrath <ben@bagu.org>
2233 Add more TODO information about CellTable pager positioning.
2237 2011-03-19 Ben Konrath <ben@bagu.org>
2239 Add TODO item about CellTable pager positioning.
2243 2011-03-18 Ben Konrath <ben@bagu.org>
2245 Remove unneeded GlomFieldColumn class.
2247 This is just a small code cleanup.
2249 * src/main/java/org/glom/web/client/LayoutListView.java:
2251 2011-03-18 Ben Konrath <ben@bagu.org>
2253 Use cursor mode in the query that gets data for the list view.
2255 I still need to fix the potential memory problem when getting the row
2256 count for the list view.
2258 * TODO: Add note about testing memory usage with large data sets. Add
2259 item about fixing row counting with large data sets.
2260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2261 PostgreSQL JDBC driver into cursor mode when getting data for the
2264 2011-03-15 Ben Konrath <ben@bagu.org>
2266 Remove the GWT Container from the Eclipse build classpath.
2268 The GWT dependencies are set by Maven so this isn't needed.
2272 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2274 Added some earlier mockups to git, but not to the tarball dist.
2276 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2277 Openismus. These hopefully show how we might structure the HTML so that
2278 it can be styled easily with CSS. However, we probably need to adapt them
2279 for the CSS structure that GWT dictates for common widgets.
2281 2011-03-14 Ben Konrath <ben@bagu.org>
2283 Locate OnlineGlom.properties using the ServletContext.
2285 This is required to be able to locate the file in the deployed servlet.
2287 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2288 Configure the database and glom document in in a helper method so
2289 that the ServletContext can be used to locate OnlineGlom.properties.
2290 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2291 src/main/webapp. This is the proper location for .properites files.
2293 2011-03-12 Ben Konrath <ben@bagu.org>
2295 Add note to README about why we're compiling down to obfuscated JavaScript.
2299 2011-03-11 Ben Konrath <ben@bagu.org>
2301 Use properties file to configure servlet.
2303 This allows people to change the glom file path, db username and db
2304 password without recompiling the code.
2306 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2307 * src/main/webapp/OnlineGlom.properties:
2309 2011-03-11 Ben Konrath <ben@bagu.org>
2311 Use table fields in layout list view if the layout list is not defined.
2313 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2314 Manually create a LayoutFieldVector for the query builder using the
2315 table fields when a layout list is not defined in the glom file.
2317 2011-03-11 Ben Konrath <ben@bagu.org>
2319 Only show FIXME string for images when there's an image.
2321 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2322 in this change are some small code cleanups.
2324 2011-03-11 Ben Konrath <ben@bagu.org>
2326 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2328 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2330 2011-03-11 Ben Konrath <ben@bagu.org>
2332 Correctly set the index of the default table.
2334 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2335 Correctly set the index of the default table. Add commented out example
2338 2011-03-10 Ben Konrath <ben@bagu.org>
2340 Add comment to pom.xml about the previous change.
2342 * pom.xml: Add comment about the deployment issue so that it's obvious
2343 why java-libglom is set to the provided scope.
2345 2011-03-10 Ben Konrath <ben@bagu.org>
2347 Change java-libglom dependency from compile to provided in pom.xml.
2349 Since java-libglom uses jni it can only be loaded once and therefore
2350 must be placed in $CATALINA_HOME/lib and not included in each war.
2351 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2352 More information about this issue can be found in the Tomcat 6 release
2353 notes in the "JNI Based Applications" section:
2355 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2357 * README: Remove note about this issue. Deployment info should really
2358 be on the wiki anyway so I'll add it right now.
2359 * pom.xml: Change java-libglom dependency from compile to provided so
2360 that it's copied in to the packaged war.
2362 2011-03-09 Ben Konrath <ben@bagu.org>
2364 Change to using a neutral locale for currency, date and time formatting.
2366 This solves the problem of currency values being represented without a
2367 space between the currency code and the number (e.g. "EUR5.89" is now
2368 represented as "EUR 5.89"). More work is required when we implement
2369 a locale preference setting.
2371 * TODO: Add note about currency formatting issues with different
2373 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2374 to using the neutral ROOT locale.
2376 2011-03-09 Ben Konrath <ben@bagu.org>
2378 Add support for currency codes that are not ISO 4217 codes.
2380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2381 the currency code defined in the glom file when it's not 3 characters
2382 long or when Java doesn't recognize the string as an ISO 4217 code.
2384 2011-03-08 Ben Konrath <ben@bagu.org>
2386 Remove test classes, launch configurations and configuration.
2388 The test stuff was getting in the way when creating the war. To make
2389 the war file you can now do 'mvn clean package'. The packaged war file
2390 will be in the target directory.
2392 * .classpath: Remove unused classpathentry for tests and i18n.
2393 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2394 property. Don't run test or i18n goals when packaging the war.
2395 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2400 * OnlineGlomTest-dev.launch:
2401 * OnlineGlomTest-prod.launch:
2402 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2403 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2405 2011-03-07 Ben Konrath <ben@bagu.org>
2407 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2409 These fixes allow me to use 'mvn deploy' to create the war file.
2411 * .classpath: This generated config has been updated by Eclipse. This
2412 change was probably triggered by me updating from Eclipse 3.6.1 to
2414 * .gitignore: Add entry to ignore the directory
2415 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2416 * .project: The generated config has been updated by Eclipse. This
2417 change was probably triggered by me updating from Eclipse 3.6.1 to
2419 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2420 so that Eclipse doesn't complain
2421 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2422 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2423 'tests' directory to 'client' directory. This is the new
2424 gwt-maven-plugin convension.
2425 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2426 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2428 2011-03-07 Ben Konrath <ben@bagu.org>
2430 Add support for horizontal alignment in the LayoutList columns.
2432 * TODO: Remove item about horizontal alignment. Add item about
2433 improvements to ColumnInfo.
2434 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2435 alignment on the columns. Use ColumnInfo RPC object get the column
2436 title and horizontal alignment.
2437 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2438 LayoutListView creation with ColumnInfo RPC object.
2439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2440 a ColumnInfo object for every LayoutList columnn. Convert the
2441 FieldFormatting.HorizontalAlignment to the correct
2442 ColumnnInfo.HorizontatlAlignment with the new
2443 getColumnInfoHorizontalAlignment helper method.
2444 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2445 to encapsulate column information like alignment and title. This
2446 could be used to set the colour instead of on a per cell field basis.
2447 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2448 column title storage and retrieval with ColumnInfo.
2450 2011-03-04 Ben Konrath <ben@bagu.org>
2452 Add support for column sorting.
2454 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2455 AsynDataProvider to be an anonymous inner class. Use new
2456 getSortedTableData RPC method when column sort is requested. Set all
2457 columns sortable and add an AsyncHandler to activate sorting in the
2459 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2460 method getSortedTableData(). Cleanup other method signatures.
2461 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2462 new method getSortedTableData(). Cleanup other method signatures.
2463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2464 Implement getSortedTableData() and getTableData() methods by using a
2465 private helper method with the appropriate parameters filled in. Use
2466 user supplied sort clause when supplied, otherwise fall back to
2467 sorting by the primary key. Move destroy() method to be underneath
2468 constructor for readability. Cleanup comments.
2470 2011-03-03 Ben Konrath <ben@bagu.org>
2472 Add support for colour text and colour backgrounds to the layout list cells.
2474 Only the cell backgrounds are coloured which leaves a gap between the
2475 cells that isn't coloured. I need to figure out a way to set
2476 'style=background-colour:' on the whole column rather than just the
2479 * TODO: Add a note about colouring the background of the whole column.
2480 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2481 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2482 render the coloured text and backgrounds. Use GlomField[] for the row type.
2483 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2485 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2486 GlomField[] for the row type.
2487 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2488 GlomField[] for the row type. Set the text, text colour and background
2489 colour in the GlomField objects as specified in the glom document. Add
2490 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2491 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2492 the glom field text, foreground colour and background colour.
2494 2011-03-02 Ben Konrath <ben@bagu.org>
2496 Don't display hidden tables in the combo box.
2498 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2501 code to ignore hidden tables using ArrayLists for the table names and
2503 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2504 tableNames to use ArrayLists instead of String[]. Update getter and setter
2507 2011-03-01 Ben Konrath <ben@bagu.org>
2509 Add support for Date and Time number types.
2511 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2512 Implement formatting for Date and Time values. Change the default glom
2513 file to small business example.
2515 2011-03-01 Ben Konrath <ben@bagu.org>
2517 Add support for formatting glom types as specified in the glom file.
2519 Formatting isn't finished yet - I still need to add support for Date
2522 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2523 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2524 checks for null values in JDBC cleanup code and catch all exceptions
2525 instead of just SQLExceptions.
2526 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2529 2011-03-01 Ben Konrath <ben@bagu.org>
2531 Use GWT 2.2.0 instead of 2.1.1.
2533 * pom.xml: Change GWT version numbers.
2535 2011-03-01 Ben Konrath <ben@bagu.org>
2537 A few small code cleanups.
2539 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2541 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2542 unnecessary object creation in constructor.
2543 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2544 unnecessary object creation in constructor.
2546 2011-02-28 Ben Konrath <ben@bagu.org>
2548 Add file for TODO list.
2552 2011-02-18 Ben Konrath <ben@bagu.org>
2554 Enable the CellTable Pager when more than 20 rows need to be viewed.
2556 The Pager will automatically become active when the results are larger
2557 than the CellTable size which is currently set to 20 lines.
2559 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2560 name on debug statment in RPC call in LayoutListDataProvider, add
2561 numRows parameter to LayoutListView constructor, propperly set rowCount
2563 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2564 name on debug statment in RPC call, use LayoutListTable object in RPC
2565 calls, pass rowCount to LayoutListView.
2566 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2567 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2569 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2570 interface for changes in OnlineGlomService.
2571 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2572 getLayoutListHeaders() to getLayoutListTable() and return
2573 LayoutListTable. Using this object allows me to pass other information
2574 about the LayoutList like the expected number of rows in the result set.
2575 The Connection object from the connection pool is now propperly closed.
2576 Only the requested number of lines are returned to the client in
2578 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2579 GlomTable and add columnTitles and numRows.
2581 2011-02-18 Ben Konrath <ben@bagu.org>
2583 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2585 This is a small performance boost. I'll use GlomTable to get the required
2586 layoutlist information.
2588 * src/main/java/org/glom/web/client/OnlineGlom.java:
2589 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2590 * src/main/java/org/glom/web/shared/GlomDocument.java:
2592 2011-02-18 Ben Konrath <ben@bagu.org>
2594 Add option to turn off formatting in JDT formatter preferences.
2596 * .settings/org.eclipse.jdt.core.prefs:
2598 2011-02-18 Ben Konrath <ben@bagu.org>
2600 Rename LayoutList to LayoutListView.
2602 I'm working towards setting things up to easily use MVP when the time
2605 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2607 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2610 2011-02-17 Ben Konrath <ben@bagu.org>
2612 Move LayoutListDataProvider class into LayoutList.java.
2614 * src/main/java/org/glom/web/client/LayoutList.java:
2616 2011-02-17 Ben Konrath <ben@bagu.org>
2618 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2620 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2622 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2623 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2624 from LibGlomServer.java.
2625 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2626 Rename from LibGlomServiceAsync.java.
2627 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2628 Rename from LibGlomServiceImpl.java.
2629 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2631 2011-02-17 Ben Konrath <ben@bagu.org>
2633 Update JDT settings.
2635 * .settings/org.eclipse.jdt.core.prefs:
2637 2011-02-17 Ben Konrath <ben@bagu.org>
2639 Move GWT-RPC objects to shared package (where they should be).
2641 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2642 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2643 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2644 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2645 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2646 org.glom.web.shared package.
2647 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2648 org.glom.web.shared package.
2649 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2650 directory in compilation to javascript.
2652 2011-02-16 Ben Konrath <ben@bagu.org>
2654 Add sort clause to the sql query that grabs table information.
2656 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2657 if one of the columns is a primary key.
2659 2011-02-16 Ben Konrath <ben@bagu.org>
2661 Disable generateAsync feature of gwt-maven.
2663 The generated interface does not correctly match the methods in LibGlomService
2664 and the generated singleton Util inner-class doesn't respect the servlet
2667 * pom.xml: Turn off generateAsync feature.
2668 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2669 with singleton Util inner-class.
2671 2011-02-14 Ben Konrath <ben@bagu.org>
2673 Add LGPL v3 licence notices.
2675 Followed directions listed here:
2676 http://www.gnu.org/licenses/gpl-howto.html
2678 * COPYING: This file is a copy of the GPL v3.
2679 * COPYING.LESSER: This file is a copy of the LGPL v3.
2680 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2682 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2684 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2686 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2688 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2690 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2692 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2695 2011-02-14 Ben Konrath <ben@bagu.org>
2697 Use ArrayList instead of Array in GWT-RPC calls.
2699 Apparently this gives a slight performance boost to the compiled
2702 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2704 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2707 2011-02-14 Ben Konrath <ben@bagu.org>
2709 Access data from a postgres db rather than the example glom file.
2711 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2712 compile down to obfuscated javascript.
2713 * pom.xml: Add c3p0 and postgres JDBC libraries.
2714 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2715 using a postgres db accessed through the c3p0 connection pooling library.
2717 2011-02-14 Ben Konrath <ben@bagu.org>
2719 Update Java formatter settings.
2721 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2723 2011-02-02 Ben Konrath <ben@bagu.org>
2725 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2727 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2729 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2730 the compiled webapp directory that Eclipse uses as we're using Maven now.
2731 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2732 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2734 * pom.xml: Format file, change target Java version to 1.6.
2736 2011-02-02 Ben Konrath <ben@bagu.org>
2738 Add information about a deployment related issue.
2740 * README: Add Notes section with the problem outlined.
2742 2011-02-02 Ben Konrath <ben@bagu.org>
2744 Call Glom.libglom_deinit() when the servlet is shutdown.
2746 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2747 Glom.libglom_deinit() to destroy() method.
2749 2011-01-28 Ben Konrath <ben@bagu.org>
2751 Use generated Util class to get the RPC Async interface.
2753 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2755 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2756 getInstance() method to get a reference to the RPC Async interface.
2757 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2758 getInstance() method to get a reference to the RPC Async interface, remove
2759 the now unused getLibGlomServiceProxy() method.
2761 2011-01-27 Ben Konrath <ben@bagu.org>
2763 Cleanup ChangeLog entry from previous commit.
2765 * ChangeLog: Group logical changes together and add comments.
2767 2011-01-25 Ben Konrath <ben@bagu.org>
2769 Convert to gwt-maven project.
2771 * .gitignore: Update for new project structure.
2772 * README: New file with a link to the online documentation.
2773 * pom.xml: The generated maven configuration file with some tweaks.
2775 Add / update Eclipse settings. These files are a merge of the files that
2776 were generated with the gwt-maven plugin and the files we were previously
2780 * .settings/.jsdtscope:
2781 * .settings/com.google.gdt.eclipse.core.prefs:
2782 * .settings/com.google.gwt.eclipse.core.prefs:
2783 * .settings/org.eclipse.jdt.core.prefs:
2784 * .settings/org.eclipse.wst.common.component:
2785 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2786 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2787 * .settings/org.maven.ide.eclipse.prefs:
2788 * OnlineGlomTest-dev.launch:
2789 * OnlineGlomTest-prod.launch:
2791 Java source files moved from the 'src' directory to the directory structure
2793 * src/main/java/org/glom/web/client/GlomDocument.java:
2794 * src/main/java/org/glom/web/client/GlomTable.java:
2795 * src/main/java/org/glom/web/client/LayoutList.java:
2796 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2797 * src/main/java/org/glom/web/client/LibGlomService.java:
2798 * src/main/java/org/glom/web/client/OnlineGlom.java:
2799 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2801 Non-functional property file used for translations. I included this as
2802 reminder that it's something I need to sort out.
2803 * src/main/resources/org/glom/web/client/Messages.properties:
2805 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2806 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2808 The servlet configuration files moved from the 'war' directory.
2809 * src/main/webapp/OnlineGlom.css:
2810 * src/main/webapp/OnlineGlom.html:
2811 * src/main/webapp/WEB-INF/web.xml:
2813 Generated test files with most of the code commented out. I included these
2814 so that it's easy to add tests when we're ready for them.
2815 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2816 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2818 2011-01-25 Ben Konrath <ben@bagu.org>
2820 Remove unused println.
2822 * src/org/glom/web/server/LibGlomServiceImpl.java:
2824 2011-01-25 Ben Konrath <ben@bagu.org>
2826 Add project specific JDT settings.
2828 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2829 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2831 2011-01-25 Ben Konrath <ben@bagu.org>
2833 Populate celltable with example data.
2835 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2836 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2837 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2838 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2839 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2840 asynchronously gets the example data.
2841 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2842 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2843 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2844 curently selected table to be retrieved by other widgets.
2845 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2846 implement getTableData() in a hacky way. This method needs to be updated
2847 to grab information from the database when database creating is
2850 2011-01-20 Ben Konrath <ben@bagu.org>
2852 Set table headers when table dropBox changes.
2854 * src/org/glom/web/client/GlomDocument.java: Correct some method
2856 * src/org/glom/web/client/LibGlomService.java: Add method
2857 to get list layout field names.
2858 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2859 to get list layout field names.
2860 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2861 widget for list layout table.
2862 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2863 the table drop box and add new updateTable() method to asynchronously
2864 get the layout list field names for the currently selected table.
2865 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2866 implementation of getLayoutListHeaders() method.
2867 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2869 2011-01-18 Ben Konrath <ben@bagu.org>
2871 Make a listBox with table titles instead of the flexTable demo.
2873 This is the start of something more useful.
2875 * .classpath: Exclude a bunch of packages from the JVM that are
2876 getting in the way of the Eclipse content assist.
2877 * src/org/glom/web/client/GlomDocument.java:
2878 * src/org/glom/web/client/GlomTable.java:
2879 * src/org/glom/web/client/LibGlomService.java:
2880 * src/org/glom/web/client/LibGlomServiceAsync.java:
2881 * src/org/glom/web/client/OnlineGlom.java:
2882 * src/org/glom/web/server/LibGlomServiceImpl.java:
2883 * war/OnlineGlom.html:
2884 * war/WEB-INF/web.xml:
2886 211-01-13 Ben Konrath <ben@bagu.org>
2888 Update to new java-libglom API.
2890 * .gitignore: Ignore OnlineGlom.war.
2891 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2893 2010-12-20 Ben Konrath <ben@bagu.org>
2895 Add some basic style to the table listing.
2897 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2898 header, print useful error message on async callback failure.
2899 * war/OnlineGlom.css: Add style for table header, remove defaults
2900 provided by the Eclipse project wizard.
2902 2010-12-20 Ben Konrath <ben@bagu.org>
2904 Load example file from installed glom dir.
2906 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2907 provided by java-libglom to find the example file.
2909 2010-12-20 Ben Konrath <ben@bagu.org>
2911 Update Eclipse settings.
2914 * .settings/com.google.gdt.eclipse.core.prefs:
2915 * .settings/com.google.gwt.eclipse.core.prefs:
2917 2010-12-17 Ben Konrath <ben@bagu.org>
2921 * .classpath: New file.
2922 * .gitignore: New file.
2923 * .project: New file.
2924 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2925 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2926 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2927 * src/org/glom/web/client/GlomTable.java: New file.
2928 * src/org/glom/web/client/OnlineGlom.java: New file.
2929 * src/org/glom/web/client/TableNameService.java: New file.
2930 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2931 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2932 * war/OnlineGlom.css: New file.
2933 * war/OnlineGlom.html: New file.
2934 * war/WEB-INF/web.xml: New file.
2935 * war/images/glom.png: New file.