1 2011-12-01 Ben Konrath <ben@bagu.org>
3 Use 'visibility: hidden' in Utils.getWidgetHeight().
5 This is better choice because hidden elements are invisible, don't
6 respond to events and are not part of the tab order. They will,
7 however, take up space which is required to be able to calculate the
10 * src/main/java/org/glom/web/client/Utils.java:
12 2011-12-01 Ben Konrath <ben@bagu.org>
14 Use Utils.getWidgetHeight() in FlowTable.
16 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
18 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
20 2011-12-01 Ben Konrath <ben@bagu.org>
22 Put the details css class name on the correct table column.
24 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
26 2011-11-30 Ben Konrath <ben@bagu.org>
28 Update for java-libglom API change.
30 The getters and setters on FieldFormatting and NumericFormat were
31 changed to remove the 'M'.
33 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
35 2011-11-29 Ben Konrath <ben@bagu.org>
37 Only allow RelatedListTables in Portals.
39 * src/main/java/org/glom/web/client/ui/details/Portal.java:
41 2011-11-29 Ben Konrath <ben@bagu.org>
43 Only create a contents panel for Portals when title is being set.
45 * src/main/java/org/glom/web/client/ui/details/Portal.java:
47 2011-11-29 Ben Konrath <ben@bagu.org>
49 Set TabLayoutPanel height based on calculated height its widgets.
51 This is a potential fix for this bug:
53 https://bugzilla.gnome.org/show_bug.cgi?id=665133
55 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
57 2011-11-29 Ben Konrath <ben@bagu.org>
59 Align details field labels and data with the Open buttons.
61 * src/main/webapp/style.css:
63 2011-11-29 Ben Konrath <ben@bagu.org>
65 Remove unnecessary <div> in the Notebook widget.
67 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
68 method to get container FlowPanel (<div>).
69 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
70 initWidget() method directly on the TabLayoutPanel widget instead of
71 Group's container widget.
73 2011-11-29 Ben Konrath <ben@bagu.org>
75 Don't add group titles for Portals in Notebooks.
77 This reverts the previous patch and fixes a bug I introduced with
78 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
80 * src/main/java/org/glom/web/client/ui/details/Group.java:
81 * src/main/java/org/glom/web/client/ui/details/Portal.java:
83 2011-11-28 Ben Konrath <ben@bagu.org>
85 Remove unused boolean argument in Portal constructor.
89 * src/main/java/org/glom/web/client/ui/details/Group.java:
90 * src/main/java/org/glom/web/client/ui/details/Portal.java:
92 2011-11-28 Ben Konrath <ben@bagu.org>
94 Remove hack for glom 1.18 style glom files.
96 * src/main/java/org/glom/web/client/ui/details/Group.java:
97 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
98 * src/main/java/org/glom/web/client/ui/details/Portal.java:
100 2011-11-28 Ben Konrath <ben@bagu.org>
102 Use Gda Value version of primary key to log result too large error.
104 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
106 2011-11-28 Ben Konrath <ben@bagu.org>
108 Don't use TypedDataItem.getText() for Unknown types from the URL.
110 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
111 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
112 instead of getText().
113 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
114 String field and getUnknown() method.
116 2011-11-28 Ben Konrath <ben@bagu.org>
118 Log an error message when the java-libglom .so is not present.
120 The error message was being set in the exception but not logged.
122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
124 2011-11-28 Ben Konrath <ben@bagu.org>
126 Ignore LayoutItem_CalendarPortals.
128 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
129 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
131 2011-11-28 Ben Konrath <ben@bagu.org>
133 Extract method for creating the LayoutItemPortal DTO.
135 Just breaking the code up into smaller chunks.
137 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
139 2011-11-28 Ben Konrath <ben@bagu.org>
143 This should have been added with the refactor. Oops!
145 * src/main/java/org/glom/web/shared/TypedDataItem.java:
147 2011-11-28 Ben Konrath <ben@bagu.org>
149 Create primary key value from URL string using type from Glom document.
151 See this bug, comments 19 - 25:
153 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
155 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
156 create a TypeDataItem for the primary key here when loading from a
157 URL. Show the same string for the primary key value as was received
158 from the URL string (when loading from a URL).
159 * src/main/java/org/glom/web/server/Utils.java: Update method for
160 creating the Gda Value from the TypeDataItem to properly deal with
161 creating a Gda Value based on the Glom document type for the primary
162 key value string when loading from a URL.
163 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
164 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
165 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
166 Update for changed method name.
168 2011-11-27 Ben Konrath <ben@bagu.org>
170 Rename PrimaryKeyItem to TypedDataItem.
172 The name PrimaryKeyItem suggests what the class should be used for.
173 TypedDataItem is a neutral name that describes the class better.
175 This is a rename-only refactor.
177 * src/main/java/org/glom/web/client/OnlineGlomService.java:
178 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
179 * src/main/java/org/glom/web/client/Utils.java:
180 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
181 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
182 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
183 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
184 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
185 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
187 * src/main/java/org/glom/web/server/Utils.java:
188 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
189 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
190 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
191 * src/main/java/org/glom/web/shared/NavigationRecord.java:
193 2011-11-25 Ben Konrath <ben@bagu.org>
195 Improve Gda Value conversion from PrimaryKeyItem.
197 The value from the PrimaryKeyItem is only used if its type match the
198 type from the glom document.
200 * src/main/java/org/glom/web/server/Utils.java:
202 2011-11-25 Ben Konrath <ben@bagu.org>
204 Manually check if the java-liblgom .so is visible to the JVM.
206 It seems that Tomcat has problems when a static initializer throws an
207 exception. This check is done before the first method call into
208 java-libglom so that execution doesn't continue if the .so is not
211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
213 2011-11-25 Ben Konrath <ben@bagu.org>
215 Improve browser configuration error messages.
219 https://bugzilla.gnome.org/show_bug.cgi?id=662792
221 * src/main/java/org/glom/web/client/OnlineGlomService.java:
222 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
223 getConfigurationErrorMessage() method.
224 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
225 Get and display a specific configuration error message when no Glom
227 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
228 Implement getConfigurationErrorMessage() method. Surround configuration
229 code in the init() method with a try/catch block. This allows the
230 errors to be caught while keeping the servlet available to retrieve the
231 configuration error message.
233 2011-11-25 Ben Konrath <ben@bagu.org>
235 Don't use Strings to hold primary key values.
237 The primary key values are now held in a new data object
238 (PrimaryKeyItem) that holds type information and the primary key value
239 using the correct type.
241 * src/main/java/org/glom/web/client/OnlineGlomService.java:
242 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
243 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
244 PrimaryKeyItem instead of String to hold the primary key value.
245 * src/main/java/org/glom/web/client/Utils.java: Remove
246 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
247 PrimaryKeyItem based on the GlomFieldType and the DataItem.
248 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
249 PrimaryKeyItem instead of String to hold the primary key value. Load
250 document selection page when the documentID has not been set correctly.
251 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
252 DetailsPlace -> URL and URL -> DetailsPlace conversion with
254 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
255 Return empty string for URL instead of "null".
256 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
257 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
258 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
259 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
260 PrimaryKeyItem instead of String to hold primary key values.
261 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
262 PrimaryKeyValue to a Gda Value.
263 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
264 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
265 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
266 Replace temporary database access code that uses the PrimaryKeyValue to
267 Gda Value conversion.
268 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
269 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
270 PrimaryKeyItem instead of String.
271 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
272 hold primary key values.
274 2011-11-24 Ben Konrath <ben@bagu.org>
276 Use newly added java-libglom API to create queries.
278 This isn't finished. I still need to stop using Strings for primary key
279 values in the client code.
281 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
282 libglom to use fake connections so that retrieving the query string will
284 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
285 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
286 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
287 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
288 Use the newly added libglom sql methods and classes to create the
289 query. Add temporary hack to convert primary value strings to Gda
292 2011-11-23 Ben Konrath <ben@bagu.org>
294 Don't explicitly set the height of Portals.
296 See comments 6 - 10 of this bug for details:
298 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
300 * src/main/java/org/glom/web/client/ui/details/Portal.java:
302 2011-11-23 Ben Konrath <ben@bagu.org>
304 Use an HTML table instead of CSS for the FlowTable layout.
306 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
307 GWT's FlexTable to implement the FlowTable.
308 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
310 2011-11-18 Ben Konrath <ben@bagu.org>
312 Add boolean example to HTML table mockup.
314 * mockups/details-view-html-tables-text-entries.html:
316 2011-11-17 Ben Konrath <ben@bagu.org>
318 Ensure the pager buttons are always visible for related lists.
320 To accomplish this, I've turned off text wrapping in the list view and
321 related list tables for both the header and data text. The related list
322 table now has a fixed layout so the it doesn't overflow its container.
323 This is required to ensure that the cell text is clipped when it
324 overflows the cell and an ellipsis is added to the right side of the
325 cell when text is clipped.
327 A fixed table layout for the related list table in the details view
328 seems what we want for the details view anyway, so the side-effect is
331 The ellipsis will only be displayed in Firefox >= 7.
335 https://bugzilla.gnome.org/show_bug.cgi?id=662930
337 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
338 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
339 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
341 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
342 Set the 'table-layout: fixed' CSS property to the related list table.
343 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
344 'white-space: nowrap;' CSS property on both the list view and the
347 2011-11-16 Ben Konrath <ben@bagu.org>
349 Rework the fix for empty notebook tab labels.
351 Setting the empty group titles with its name caused problems for the
352 details layout. Instead of using libglom's
353 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
354 to the client when the title is empty. This allows the Notebook to use
355 the name when the title is empty without affecting anything else.
357 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
358 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
360 2011-11-16 Ben Konrath <ben@bagu.org>
362 Set group titles with name when title is empty.
364 This fixes a problem with an empty notebook tab label in the Lesson
365 Planner document. The forth tab in the notebook should be "Internet":
367 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
369 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
370 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
373 2011-11-16 Ben Konrath <ben@bagu.org>
375 Remove whitespace from the configured username properties.
377 This assumes that usernames won't have whitespace at the beginning
378 or end. But I think this is a reasonable assumption.
380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
381 String.trim() to remove the whitespace from the username properties.
383 2011-11-15 Ben Konrath <ben@bagu.org>
385 Add details view mockup with HTML tables and text entries.
387 This is from the attachment on this bug:
389 https://bugzilla.gnome.org/show_bug.cgi?id=663109
391 * mockups/details-view-html-tables-text-entries.html:
393 2011-11-15 Ben Konrath <ben@bagu.org>
395 Add space between the columns of the flow table.
399 https://bugzilla.gnome.org/show_bug.cgi?id=662918
401 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
402 space between columns in the flow table.
404 2011-11-15 Ben Konrath <ben@bagu.org>
406 Add backup files to the .gitignore.
408 * .gitignore: Ignore files that end with ~.
410 2011-11-09 Ben Konrath <ben@bagu.org>
412 Use latest release of gwt-log.
414 Gwt-log releases are now being submitted to the maven central
415 repository so manual installation of the jar is no longer required.
417 * pom.xml: Update version and groupId of gwt-log dependency.
419 2011-10-31 Ben Konrath <ben@bagu.org>
421 Don't use GWT numeric formatting to override the glom currency formatting.
423 Currencies are now displayed like they are in Glom. See this bug:
425 https://bugzilla.gnome.org/show_bug.cgi?id=646216
427 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
429 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
430 currency code to constructor and set it when the cell is rendered.
431 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
432 currency code to the constructor of the NumericCell.
434 2011-10-27 Ben Konrath <ben@bagu.org>
436 Require the latest release of java-libglom (1.17.4).
440 2011-10-26 Ben Konrath <ben@bagu.org>
442 Add style to Notebook that matches current theme.
444 It's not the best style in the world but it's better than the default.
446 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
447 padding at the bottom of the child widgets.
448 * src/main/webapp/style.css: Add style for the Notebook.
450 2011-10-26 Ben Konrath <ben@bagu.org>
452 Move servlet initialization code to overridden init method.
454 This is half of the solution to getting proper error messages
455 displayed when configuration errors occur. Here's the relevant bug:
457 https://bugzilla.gnome.org/show_bug.cgi?id=662792
459 The rest of the solution involves surrounding the init method with a
460 try/catch block and setting a global variable with the error /
461 exception. A new async method should be created to retrieve and display
462 the error message / exception.
464 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
465 code from constructor to init method adding exceptions as needed.
467 2011-10-26 Ben Konrath <ben@bagu.org>
469 Add script to monitor and restart tomcat if required.
471 * utils/check-and-recover-tomcat.py: New file.
473 2011-10-26 Ben Konrath <ben@bagu.org>
475 Display the correct number of data items in the pager.
479 https://bugzilla.gnome.org/show_bug.cgi?id=661441
481 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
482 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
483 The implementation is the same for both tables: Keep track of the
484 number of non-empty rows and fire and RowCountChangeEvent after the data has
486 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
487 custom Pager class that subclasses SimplePager to handle displaying
488 the correct number when empty rows have been added.
490 2011-10-26 Ben Konrath <ben@bagu.org>
492 Correct error in previous commit.
494 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
495 eventBus parameter from listView.setCellTable().
497 2011-10-26 Ben Konrath <ben@bagu.org>
499 Fix error in TODO comment.
501 * src/main/java/org/glom/web/client/activity/ListActivity.java:
503 2011-10-24 Ben Konrath <ben@bagu.org>
505 Create Notebook widgets to the details view.
507 This isn't finished just yet - I still need to create a reasonable
508 style to match the current theme.
510 * src/main/java/org/glom/web/client/Utils.java: Add method for
511 calculating the height of a widget. This is used in the Notebook class.
512 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
513 new constructor method in Group.
514 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
515 method for creating child widget that can be used by subclasses
516 like Notebook. New constructor that allows disabling the group
517 titles - Notebooks don't set a group title for their child groups.
518 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
519 to make Notebooks using GWT's TabLayoutPanel.
520 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
521 constructor that allows disabling the group titles.
522 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
523 LayoutItemNotebook DTO.
524 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
525 DTO for Notebooks. It's just an empty class for now but we might need
526 it to transfer some specific information in the future.
528 2011-10-21 Ben Konrath <ben@bagu.org>
530 Add navigation buttons to related list tables.
532 * src/main/java/org/glom/web/client/OnlineGlomService.java:
533 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
534 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
535 method getSuitableRecordToViewDetails() for getting the table name
536 and primary key value for related list navigation buttons.
537 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
538 private cell renderer class to get the navigation information for
539 related list tables from the server. Extract the navigation
540 processing code from the details cell navigation and use it for the
541 related list navigation as well.
542 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
543 cell renderer class for the details open buttons. This was needed
544 because the related list navigation buttons and the list view
545 navigation buttons need to react differently when clicked.
546 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
547 the onEnterKeyDown() method because it's now overriden in the
548 subclasses that are specific to the related list tables and the list
550 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
551 the vertical size a little because the buttons add a bit of vertical
552 space to table. This is not a perfect solution because the vertical
553 size of with table fewer than 5 rows will be a little smaller.
554 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
555 changes in how navigation buttons are handled.
556 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
557 getSuitableRecordToViewDetails() using the new RelatedListNavigation
558 database access object.
559 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
560 to find the portal for a given relationship name from
561 RelatedListDBAccess. Add method to find a primary key field for a
563 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
564 Move code to find the portal for a given relationship name to
566 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
567 New file: database access object for getting the related list
568 navigation information (the table name and the primary key value).
569 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
570 DTO for transferring a table name to navigate to and a primary key
572 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
573 boolean and getter/setter to specifies if the related list should add
576 2011-10-24 Murray Cumming <murrayc@murrayc.com>
578 Use the master branch of java-libglom
580 * pom.xml: Depend on java-libglom 1.19 instead.
582 This is the master branch. See also the libglom-1-18 branch.
584 2011-10-11 Ben Konrath <ben@bagu.org>
586 Enable the open navigation button when the data has been set.
588 This avoids having active buttons that don't do anything when the data
591 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
593 2011-10-11 Ben Konrath <ben@bagu.org>
595 Use IsWidget interface for FlowTableItem.
597 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
598 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
600 2011-10-11 Ben Konrath <ben@bagu.org>
602 Remove GWT styling from open button in details view.
604 There are still some issues with how the details cell is arranged but
605 this should be made to match Glom 1.20. I'm going to leave fixing this
606 until I have Glom 1.20 up and running.
608 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
609 style name on open button.
610 * src/main/webapp/style.css: Move and edit details-navigation class.
611 Re-arrange some classes to make them appear in the same order as the
614 2011-10-07 Ben Konrath <ben@bagu.org>
618 * .gitignore: Ignore new cache directory.
619 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
620 * pom.xml: Change GWT and maven plugin to 2.4.0.
621 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
623 * src/main/java/org/glom/web/client/ClientFactory.java:
624 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
625 * src/main/java/org/glom/web/client/OnlineGlom.java:
626 Update source for API changes.
627 * utils/build-onlineglom-war.sh: Remove cache directory before the
630 2011-10-07 Ben Konrath <ben@bagu.org>
632 Add navigation buttons in the details view.
634 This isn't finished but I thought I'd commit what I have as it's a
635 pretty good start. I still need to:
637 1. Change the style so that it fits better into the current theme
638 2. Adjust the details cell to expand as much as possible.
640 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
641 click handlers to navigation buttons in the DetailsCells. Create a
642 refreshData() method to get just the data from the server without the
644 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
645 Update the tableSelector and browser title when the table name
646 changes without using the tableSelector.
647 * src/main/java/org/glom/web/client/ui/DetailsView.java:
648 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
649 getDetailsCells() to getCells(). Update variable names.
650 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
651 method to set click handler on navigation button. Rename a few
652 variables. Add navigation buttons where needed.
653 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
654 variables and methods.
655 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
656 navigation boolean and navigation table as required in the
658 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
659 variables for navigation along with getter/setter methods.
661 2011-10-07 Ben Konrath <ben@bagu.org>
663 Rename Field to DetailsCell.
665 This is a refactor-only commit. No functionality has been added or
668 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
669 Update variable and method names.
670 * src/main/java/org/glom/web/client/ui/DetailsView.java:
671 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
672 variable and method names.
673 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
675 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
676 variable and method names.
678 2011-10-07 Ben Konrath <ben@bagu.org>
680 Create separate methods for layout and data the details view.
682 This is a refactor-only commit. No functionality has been added or
685 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
686 private methods: setData(), createLayout().
688 2011-10-07 Ben Konrath <ben@bagu.org>
690 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
692 This is part of a change to get navigation buttons in the details view
693 but it should have been done this way from the start.
695 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
696 for method name change in TableSelectionView.
697 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
698 Create TableChangeEvent and set the browser title using the
699 TableSelectionView API.
700 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
701 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
702 Change getSelectedTable() to getSelectedTableName(). Add
703 getSelectedTableTitle().
705 2011-10-07 Ben Konrath <ben@bagu.org>
707 Use primaryKeyValue naming convention in constructor of DetailsPlace.
709 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
711 2011-10-07 Ben Konrath <ben@bagu.org>
713 Update TableChangeEvent to use newTableName naming convention.
715 This makes the class more consistent with GWT naming conventions.
717 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
718 Update for method name change in TableChangeEvent.
719 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
720 for method name change in TableChangeEvent.
721 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
722 newTableName variable and getter method. Make toDebugString()
725 2011-09-30 Ben Konrath <ben@bagu.org>
727 Disable the pager in the list tables when the data row count is less than the minimum.
729 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
730 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
732 2011-09-30 Ben Konrath <ben@bagu.org>
734 Add empty rows to the end of related list and list view tables.
736 I also extracted the cell rendering classes from the ListTable because
737 the code was becoming a little crazy with all the anonymous inner
738 classes. My plan is to use these cell rendering classes in the details
739 view as well so this refactor will be needed for that change.
741 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
742 set the row count in related list tables if the data has more rows
743 than the minimum number of rows visible.
744 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
745 row count in list view tables if the data has more rows than the
746 minimum number of rows visible.
747 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
748 for rendering TYPE_BOOLEAN cells. The code was extracted from the
750 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
751 for rendering TYPE_NUMERIC cells. The code was extracted from the
753 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
754 class for rendering cells with buttons in list views. The code was
755 extracted from the ListTable class.
756 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
757 for rendering TYPE_TEXT cells. The code was extracted from the
759 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
760 Add empty rows to the end of the data if required. Implement
761 ListTable.getMinNumVisibleRows().
762 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
763 cell renderer code to public classes. Return null in
764 Column.getValue() for empty rows. Add new abstract method:
765 getMinNumVisibleRows(). Move code to set the row count of the list view
766 table to ListViewImpl.
767 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
768 empty rows to the end of the data if required. Implement
769 ListTable.getMinNumVisibleRows().
772 2011-09-27 Ben Konrath <ben@bagu.org>
774 Use GWT.log for client-side debugging statements.
776 These are optimized out when deployed so I should have used this method
777 in the first place. These statements will eventually be replaced with some sort
778 of notification in the browser.
780 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
781 * src/main/java/org/glom/web/client/activity/ListActivity.java:
782 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
783 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
784 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
786 2011-09-27 Ben Konrath <ben@bagu.org>
788 Put tableselector on the right, back to list link on right.
790 The idea is that the table selector is acting like a label for the
791 currently displayed table so it should be placed below the document title. This
792 puts the table title in a similar position to where it is in Glom.
794 * mockups/details-contacts.html:
795 * mockups/details-projects.html:
796 * mockups/listview-contacts.html:
797 * mockups/listview-projects.html:
799 Update mockups to match how the interfaces currently look.
800 * src/main/webapp/style.css: Swap positions of backlink with the table
801 selector. Add some space on the left side of the table selector to
802 line things up with the document title.
804 2011-09-27 Ben Konrath <ben@bagu.org>
806 Add field colouring to details view.
808 This change re-works how field colouring works. The colour formatting
809 information is now set to the client with the layout information instead of
810 with the data. This eliminates the need to send the same colour strings for
811 data in list view column when colour information is set.
813 In order to set an alternate colour for negative numeric values, the
814 number is now sent to client and formatted with the GWT NumberFormat class.
816 This change also fixes:
818 https://bugzilla.gnome.org/show_bug.cgi?id=659752
820 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
821 internationalization framework which is needed for client side numeric
823 * src/main/java/org/glom/web/client/Utils.java: New file for some
824 client static utility methods.
825 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
826 the DataItem object to the Field class. Use a utility method to
827 create the foreignKeyValue string.
828 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
829 alignment and text colours in the constructor. Add setData(DataItem)
830 method. Remove setText(String) method.
831 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
832 colour information to GlomTextCell. Create and use GlomNumberCell for
833 rendering numbers. Use utility method to get the string for the
834 primary key of the key provider. Re-work how the horizontal alignment
836 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
837 formatting to layout information. Methods for converting the libglom
838 formatting information were moved from DBAccess.
839 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
840 numeric formatting (it's now done on the client side). Don't set text
841 colours in DataItem. Move libglom formatting conversion methods to
843 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
844 getters/setters for text colour information.
845 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
846 for transferring the libglom NumericFormat information to the client.
847 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
848 and getters/setters for: GlomNumericFormat, background colour and
849 foreground colour strings.
851 2011-09-26 Ben Konrath <ben@bagu.org>
853 Simplify code that iterates through the LayoutGroup.
855 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
857 2011-09-26 Ben Konrath <ben@bagu.org>
859 Accept Eclipse formatting for OnlineGlomServiceAsync.
861 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
863 2011-09-26 Ben Konrath <ben@bagu.org>
865 Don't use the ListDBAccess classes to get the primary key layout information.
867 This was causing a bug where the wrong index for the hidden primary key
868 was being sent to the client.
870 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
871 primary key while creating the LayoutGroup DTO. Create a
872 LayoutItemField DTO for hidden primary keys. Don't use the
873 RelatedListDBAccess because it was only used for getting the primary
875 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
876 access modifier from public to protected for getPrimaryKeyField() and
877 getPrimaryKeyLayoutItemField().
878 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
879 abstract method getExpectedResultSize() because RelatedListDBAccess
880 doesn't have enough info to implement it.
881 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
882 Remove @Override for getExpectedResultSize().
883 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
884 Remove method getExpectedResultSize().
886 2011-09-23 Ben Konrath <ben@bagu.org>
888 Log which layout (list or details) the ignored item is from.
890 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
892 2011-09-23 Ben Konrath <ben@bagu.org>
894 Remove annotations that turn off code formatting in DataItem.
896 * src/main/java/org/glom/web/shared/DataItem.java:
898 2011-09-23 Ben Konrath <ben@bagu.org>
900 Rename GlomField to DataItem and update associated methods.
902 This is a rename-only refactor. No functionality has been added or
905 * src/main/java/org/glom/web/client/OnlineGlomService.java:
906 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
907 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
908 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
909 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
910 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
911 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
912 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
913 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
914 * src/main/java/org/glom/web/server/database/DBAccess.java:
915 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
916 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
917 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
918 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
919 * src/main/java/org/glom/web/shared/DataItem.java:
920 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
921 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
923 2011-09-23 Ben Konrath <ben@bagu.org>
925 Rename GlomDocument to DocumentInfo and update associated methods.
927 This is a rename-only refactor. No functionality has been added or
930 * src/main/java/org/glom/web/client/OnlineGlomService.java:
931 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
932 * src/main/java/org/glom/web/client/activity/ListActivity.java:
933 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
934 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
935 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
936 * src/main/java/org/glom/web/shared/DocumentInfo.java:
938 2011-09-20 Ben Konrath <ben@bagu.org>
940 Require java-libglom 1.17.3.
942 This picks up the fix for the seg fault problem with the Scenes table
943 in the Openismus Film Manager example.
947 2011-09-20 Ben Konrath <ben@bagu.org>
949 Change the way sort clause is added for primary key when no sort clause is requested.
951 The primary key is now added to the LayoutFieldVector (fieldsToGet)
952 before the sort clause is created. When a sort clause is not requested, the
953 sort clause is created by finding the primary key in the LayoutFieldVector
956 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
958 2011-09-20 Ben Konrath <ben@bagu.org>
960 Log error message if no documents are found in the configured directory.
962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
963 Extract the glom file extension string to a private static final class
964 variable (mostly as syntactic sugar). Accept a minor formatting change.
965 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
966 the example glom.document.directory configuration property to make it
967 more clear that it can any directory, not just the home directory.
969 2011-09-18 Ben Konrath <ben@bagu.org>
971 Add related lists to details view.
973 The related list table has support for paging and sorting just like the
974 table in the list view.
976 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
977 SQL queries for the related list tables.
978 * src/main/java/org/glom/web/client/OnlineGlomService.java:
979 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
980 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
981 Rename getList methods to getListView and add comments. Remove
982 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
983 it being unused. Add methods: getDetailsLayoutAndData(),
984 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
985 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
986 Create the layout and set the data for the fields in one async call
987 instead of two. Create related lists where appropriate.
988 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
989 for method name changes in OnlineGlomService.
990 * src/main/java/org/glom/web/client/ui/DetailsView.java:
991 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
992 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
994 * src/main/java/org/glom/web/client/ui/ListView.java:
995 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
996 tableName from setCellTable(). Create a ListViewTable instead of
998 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
999 represent a data field in the details view.
1000 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1001 from addDetailsCell() to Field class. Keep track of the Fields and
1002 Portals in the details view.
1003 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1004 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1005 and add a method to get it. Add method to set the contents of the
1007 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1008 New class for related list tables. This class has the data provider
1009 for the related list table.
1010 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1011 abstract class which is the base class for the ListViewTable and the
1013 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1014 New class for list view tables. This class has the data provider for
1015 the list view table.
1016 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1017 methods for related list tables. Add more information to the
1018 LayoutItemField and LayoutItemPortal DTOs.
1019 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1020 Remove debugging print statement.
1021 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1022 Remove debugging print statements. Add primary key field to SQL count
1024 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1025 Remove unnecessary LayoutFieldVector parameter from
1026 getResultSizeOfSQLQuery() method.
1027 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1028 New class for related list table database access.
1029 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1030 class that is a wrapper DTO for details view layout and data.
1031 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1032 new 'fromField' string to this DTO.
1033 * src/main/webapp/style.css: Remove bottom margin and override top
1036 2011-09-15 Ben Konrath <ben@bagu.org>
1038 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1040 This sets things up to make it easier to add the data retrieval for
1041 related lists (portals). No user noticeable changes were made with
1044 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1045 class has the code to retrieve the layouts and access the
1046 database using the new database helper classes.
1047 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1048 Most of the functionality has been removed from this class. This
1049 class now represents the public interface for the client side
1050 code. It also deals with configuring the servlet and cleaning
1051 things up when the servlet is stopped.
1052 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1053 of static methods into this utility class.
1054 * src/main/java/org/glom/web/server/database/DBAccess.java:
1055 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1056 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1057 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1058 These classes have the database retrieval code. The class hierarchy
1059 has been setup to make it easy to reuse code for similar
1062 2011-09-06 Ben Konrath <ben@bagu.org>
1064 Create separate classes for list table code and the data provider.
1066 As part of this refactor, I also split up the code a bit to make it
1069 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1070 table code to two new classes (below).
1071 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1072 with code from ListViewImpl.
1073 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1074 New file with code from ListViewImpl.
1076 2011-09-06 Ben Konrath <ben@bagu.org>
1078 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1080 This fixes the LayoutItemPortal DTO to match the libglom layout object
1083 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1085 2011-09-01 Ben Konrath <ben@bagu.org>
1087 Set title of Portals in the Details View.
1089 * pom.xml: Bump required version of java-libglom to 1.17.1.
1090 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1091 widget creation to its own class. Add comments to constructor.
1092 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1093 The code is mostly from the Group class with the title now set.
1094 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1095 title of Portal. Update some comments. Fix some code formatting.
1097 2011-09-01 Ben Konrath <ben@bagu.org>
1099 Remove TODO comment for the flow table column width.
1101 The flow table column width is working correctly and doesn't need to be
1102 changed. See this mailing list post for more info:
1104 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1106 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1108 2011-08-27 Ben Konrath <ben@bagu.org>
1110 Add document title (database name) to top of the browser page.
1112 I added the document title to the TableSelecitonView but that will
1113 change if / when we add a view that doesn't require table selection.
1115 * mockups/details-contacts.html:
1116 * mockups/details-projects.html:
1117 * mockups/listview-contacts.html:
1118 * mockups/listview-projects.html:
1119 * mockups/style.css: Add document title to mockups to keep things
1121 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1122 sizes to account for the document title.
1123 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1124 Set the document title when it has been retrieved from the server.
1125 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1126 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1127 and implement setDocumentTitle(String) method.
1128 * src/main/webapp/style.css: Add ID for document title style.
1130 2011-08-25 Ben Konrath <ben@bagu.org>
1132 Add NavigationType enum to LayoutItemPortal DTO.
1134 This is the start of adding support for Portals to the Details View.
1136 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1137 LayoutItem_Portal.navigation_type enum from libglom to
1138 LayoutItemPortal.NavigationType enum.
1139 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1140 NavigationType enum, field for storing the NavigationType and getter
1143 2011-08-25 Ben Konrath <ben@bagu.org>
1145 Implement the flow table layout in the Details View.
1147 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1148 FlowTable to Group to account for the renamed class.
1149 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1150 File. This is a container widget that implements the Glom details view
1151 flow table behaviour.
1152 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1153 org/glom/web/client/ui/FlowTable.java.
1154 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1155 so that the size of the subgroups are a closer match to the size of
1156 the Glom subgroups. This makes the flowtable layout match the layout
1157 in Glom for the Music Collection example file.
1159 2011-08-16 Ben Konrath <ben@bagu.org>
1161 Create container element for LayoutItemPortal in Details View.
1163 This will help me develop the layout for the FlowTable.
1165 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1166 fieldPanel variable to detailsCell.
1168 2011-08-15 Ben Konrath <ben@bagu.org>
1170 Set the height of the data element in the Details View.
1172 I changed the InlineLabels (text in a span element) to Labels (text in
1173 a div element) so that I could set the height of the details-data
1174 elements instead of the details-cell parent elements. This allows the
1175 the details-data element to display the correct height if style is
1176 applied that shows the height.
1178 This change has the added benefit of allowing the order of the labels
1179 and data elements to be changed for right-to-left languages.
1181 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1182 InlineLabels to Labels.
1183 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1184 InlineLabels to Labels. Set the height of the data element.
1185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1186 multiline text height in the Formatting DTO.
1187 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1188 for multiline height along with getter and setter methods.
1189 * src/main/webapp/style.css: Adjust style to account for the change
1190 from span elements to div elements in the details cell.
1192 2011-08-15 Ben Konrath <ben@bagu.org>
1194 Make the List View appearance match the mockups.
1196 It doesn't match exactly but it's much better than it was.
1198 * mockups/listview-contacts.html: Remove unused css classes.
1199 * mockups/listview-projects.html: Remove unused css classes.
1200 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1201 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1202 for mainPanel instead of VerticalPanel (table). Set style name on
1203 CellTable. Set style name on Details column. Right-align Details
1205 * src/main/webapp/style.css: Adjust properties to match the mockups.
1207 2011-08-12 Ben Konrath <ben@bagu.org>
1209 Add better support for subgroups in the details view.
1211 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1212 changed FlowTable constructor.
1213 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1214 support for subgroups and subgroup-titles.
1215 * src/main/webapp/style.css: Add CSS class for subgroups and
1218 2011-08-12 Ben Konrath <ben@bagu.org>
1220 Return the top level LayoutGroup title.
1222 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1224 2011-08-11 Ben Konrath <ben@bagu.org>
1226 Make the TableSelector header match the mockup.
1228 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1229 the layout panel. Properly lineup the table selection header with
1230 the list and details view.
1231 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1232 margin around the details view.
1233 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1234 Rename listBox variable to tableSelector. Set id for the style sheet.
1235 Use a FlowPanel instead of a HorizontalPanel.
1236 * src/main/webapp/style.css: Add properties to make the TableSelector
1237 box match the mockups.
1239 2011-07-13 Ben Konrath <ben@bagu.org>
1241 Update install script for java-libglom version change.
1243 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1246 2011-07-13 Ben Konrath <ben@bagu.org>
1248 Add support sub-group in the details view.
1250 I also removed the code that special-cased the default details view
1253 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1255 I still have to make a proper flowtable.
1257 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1258 Don't special-case default details view layout.
1259 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1260 addLayoutField() as I'm going to use it.
1261 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1262 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1264 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1265 extracted from DetailsViewImpl.GroupPanel. Add support for
1267 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1268 column count when getting the details layout.
1270 2011-07-12 Ben Konrath <ben@bagu.org>
1272 Set browser title with database and table titles.
1274 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1275 Set the browser title when the table changes and when the activity
1277 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1278 title when retrieving document info (the GlomDocument object).
1279 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1280 with getter and setter methods. Remove unused convenience constructor.
1281 Use default code formatting.
1283 2011-07-12 Ben Konrath <ben@bagu.org>
1285 Ignore LayoutItemPortals in the details view.
1287 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1290 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1291 LayoutItemPortal layout objects.
1292 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1293 LayoutItemPortal objects when retrieving the details layout.
1294 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1295 file. This is an empty class and just used to get type information for
1298 2011-07-12 Ben Konrath <ben@bagu.org>
1300 Use java-libglom 1.17.0.
1304 2011-07-11 Ben Konrath <ben@bagu.org>
1306 Remove "Table:" label from table selector.
1308 This matches a recent change in the Glom UI.
1310 * mockups/details-contacts.html:
1311 * mockups/details-projects.html:
1312 * mockups/listview-contacts.html:
1313 * mockups/listview-projects.html: Remove the "Table:" label from the
1315 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1317 2011-07-11 Ben Konrath <ben@bagu.org>
1319 Add main groups to the details view.
1321 This makes things look a little nicer in the details view. The next step
1322 is to implement the flowtable.
1324 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1325 resources from the standard gwt css theme. Standard.css is now
1326 included in OnlineGlom.html so that the online glom css rules have
1327 precedence over the gwt theme.
1328 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1329 the whole LayoutGroup to the DetailsView instead of just the titles.
1330 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1331 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1332 details layout with a helper class (GroupPanel). I might extract this
1333 class when I make the full flowtable.
1334 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1335 string as default so I don't have to worry about NPEs when processing
1337 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1338 note beside OnlineGlom.gwt.xml above).
1339 * src/main/webapp/style.css: Add default font-size to body to override
1340 the font-size set by the standard theme. Don't use h2 tags for
1341 group-title. Create new details-cell class.
1343 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1345 ConfiguredDocument: Set the port number too.
1347 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1348 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1349 Glom document. Presumably this worked sometimes so far because there is a
1350 default port number.
1352 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1354 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1356 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1357 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1358 correct, though we should throw an exception too.
1360 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1362 Fix a addDocuemnt typo.
1364 * src/main/java/org/glom/web/shared/Documents.java
1365 (Documents.addDocuemnt): Rename to addDocument().
1366 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1367 (OnlineGlomServiceImpl.getDocuments): Adapt.
1369 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1371 Slightly improved log output when connection fails.
1373 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1374 (ConfiguredDocument.setUsernameAndPassword):
1375 We don't know for sure if it' the username/password that's wrong, so
1376 rephrase the message.
1377 Also ouput the exception message, though it's generic in this case.
1379 2011-07-08 Ben Konrath <ben@bagu.org>
1383 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1384 added braces to a one line if statement because the Eclipse formatter
1385 was getting confused.
1387 2011-07-07 Ben Konrath <ben@bagu.org>
1389 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1391 These should really be two separate tasks but I counldn't get things to
1392 work with GWT 2.2.0 and Eclipse 3.7.
1396 * .settings/org.eclipse.jdt.core.prefs:
1397 * .settings/org.eclipse.jdt.ui.prefs:
1398 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1399 * .settings/org.eclipse.m2e.core.prefs:
1400 Add new config files. Update current files. Remove references to the
1401 webtools plugins as we're not using any of the webtools features.
1402 * .gitignore: Add logs directory which is created when running with
1404 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1405 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1406 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1408 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1410 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1412 onlineglom.properties: Add explanatory comments.
1414 * src/main/resources/onlineglom.properties: Also change the default user
1415 from ben to someuser, to avoid the risk of people thinking we just
1416 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1418 2011-06-28 Ben Konrath <ben@bagu.org>
1420 Use filename in Log for incorrect passwords.
1422 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1423 getFileName(String) method to get the filename from the URI.
1425 2011-06-28 Ben Konrath <ben@bagu.org>
1427 Add the table name to the URL token for the ListPlace.
1429 This makes things consistent between the DetailsPlace and the
1430 ListPlace. It also allows the the ListPlace to be bookmarked.
1432 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1433 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1435 Remove getDefaultListLayout(). The default layout is now returned
1436 by the getListLayout() method when the table name is an empty string.
1437 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1438 Add table name field. Change to a new ListPlace when the table
1439 has been changed. Use getListLayout() for getting the default
1441 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1442 Add table name field. Set the correct table name in the list box
1443 when loading from bookmark. This corrects a problem for the
1445 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1446 Move table name to super-class (HasSelectableTable). Move document
1447 and table URL keys to super-class in HasSelectableTable.
1448 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1449 Add table name field. Add Tokenizer class with URL key common to
1450 the subclasses (DetailsPlace and ListPlace).
1451 * src/main/java/org/glom/web/client/place/ListPlace.java:
1452 Add table name. Add code to parse the URL token.
1453 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1454 Update ListPlace construction with empty table name string.
1455 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1456 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1457 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1458 Update ListPlace construction with table name string.
1459 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1460 Change defaultTableName field to tableName to reflect how it's now
1461 used. Update the getter and setter methods.
1463 2011-06-28 Ben Konrath <ben@bagu.org>
1465 Enable the table selector in the DetailsView.
1467 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1468 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1470 Remove getDefaultDetailsLayout(). The default layout is now returned
1471 by the getDetailsLayout() method when the table name is an empty
1473 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1474 event handler for table change event. Change to using
1475 getDetailsLayout() for the default details layout.
1476 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1478 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1479 when navigating to the details place.
1481 2011-06-27 Ben Konrath <ben@bagu.org>
1483 Use filename based unique document ID in URL and for RPC.
1485 The document ID is the glom document name with spaces (' ') replaced
1486 with pluses ('+') and without the .glom extension.
1488 This change is mostly a string substitution of 'documentTitle' for
1489 'documentID'. The only code change is the addition of a Documents DTO to get the
1490 filename to document title mappings as indicated below.
1492 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1493 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1494 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1495 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1496 Use Documents DTO to create the document links in the document
1498 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1499 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1500 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1501 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1502 * src/main/java/org/glom/web/client/place/ListPlace.java:
1503 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1504 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1505 * src/main/java/org/glom/web/client/ui/ListView.java:
1506 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1507 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1508 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1509 * src/main/java/org/glom/web/server/Log.java:
1510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1511 getDocumentTitles() to getDocuments() and return the Documents DTO.
1512 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1513 transferring the filename to document title mappings.
1515 2011-06-25 Ben Konrath <ben@bagu.org>
1517 Make the authentication popup work again.
1519 This bug was introduced when I extracted ConfiguredDocument to its own class.
1521 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1522 correct success / fail status in setUsernameAndPassword().
1524 2011-06-25 Ben Konrath <ben@bagu.org>
1526 Use filename as unique key for configuring database usernames and passwords.
1528 This replaces the use of the Glom document title which could change
1529 depending on the locale. Thanks to Murray Cumming for pointing out this
1532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1533 * src/main/resources/onlineglom.properties:
1535 2011-06-24 Ben Konrath <ben@bagu.org>
1537 Pass primary key value to DetailsView.
1539 This enables the DetailsView to load the correct data.
1541 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1542 primary key value field and set in constructor. Pass primary key
1543 value to getDetailsData().
1544 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1545 variables for document title and primary key value.
1546 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1547 key value to the DetailsPlace.
1549 2011-06-24 Ben Konrath <ben@bagu.org>
1551 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1553 This allows the primary key to be retrieved by the Details button. This
1554 functionality has not been implemented yet but it's in the works.
1556 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1557 the LayoutGroup result to ListView.setCellTable instead of all of its
1558 fields individually.
1559 * src/main/java/org/glom/web/client/ui/ListView.java:
1560 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1561 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1562 get the primary key for the table.
1563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1564 index of the primary key in the LayoutGroup accounting for hidden
1565 primary keys. Rename getJavaNumberFormat() to
1566 convertToJavaNumberFormat() for consistency. Cleanup / add some
1568 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1569 field for primary key index and a field to indicate whether the
1570 primary key is hidden or not.
1572 2011-06-23 Ben Konrath <ben@bagu.org>
1574 Rename getTableData methods to getListData.
1576 This is a rename refactor for consistency with other methods.
1578 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1579 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1580 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1583 2011-06-23 Ben Konrath <ben@bagu.org>
1585 Extract the ConfiguredDocument innerclass into its own class.
1587 This makes the servlet code more object oriented.
1589 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1590 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1592 new ConfiguredDocument class.
1594 2011-06-21 Ben Konrath <ben@bagu.org>
1596 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1598 This makes things more inline with how libglom works and reduces code
1599 duplication. This refactor lays the groundwork for adding the primary key to
1600 the LayoutGroup object.
1602 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1603 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1605 Change method names to getListLayout and getDefaultListLayout for
1606 consistency. Use LayoutGroup as the DTO for the list layout instead of
1607 ColumnInfo and LayoutListTable.
1608 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1609 new method names along with the LayoutGroup object for transferring the
1611 * src/main/java/org/glom/web/client/ui/ListView.java:
1612 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1613 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1614 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1616 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1617 Replaced with LayoutGroup.
1618 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1619 expectedResultSize and defaultTableName fields which are needed for
1621 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1622 type field which is needed for the list layout but will also be
1623 useful for the details layout as things progress.
1624 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1625 Make class abstract. Remove the unnecessary
1626 getFormattingHorizontalAlignment method. Add setFormatting method.
1628 2011-06-16 Ben Konrath <ben@bagu.org>
1630 Add scripts for building and installing war.
1632 These will help when updating OnlineGlom but they're also good
1633 supplemental documentation of the build and deployment proceeding.
1635 * utils/build-onlineglom-war.sh: New file.
1636 * utils/install-onlineglom-war.sh: New file.
1638 2011-06-16 Ben Konrath <ben@bagu.org>
1640 Create wrapper class to create consistent log messages.
1642 I wrapped methods in the Log class of gwt-log to add the method names
1643 from the servlet and create consistent formatting of the document title
1644 and table names in the log messages.
1646 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1647 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1648 log methods to use methods from wrapped Log class.
1650 2011-06-16 Ben Konrath <ben@bagu.org>
1652 Remove superfluous conditional return.
1654 Thanks to Murray Cumming for pointing this out!
1656 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1658 2011-06-15 Ben Konrath <ben@bagu.org>
1660 Return an ArrayList of LayoutGroups for the Details layout.
1662 This corrects a problem with the details layout as it can have more
1663 than one top level LayoutGroup.
1665 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1666 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1667 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1668 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1669 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1670 with ArrayList of LayoutGroups for the details view layout.
1671 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1672 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1673 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1674 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1675 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1676 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1678 2011-06-14 Ben Konrath <ben@bagu.org>
1680 Use cast_dynamic method to determine the libglom LayoutItem type.
1682 This is better than finding the LayoutItem type by using the string
1683 returned from the get_part_type_name() method.
1685 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1687 2011-06-14 Ben Konrath <ben@bagu.org>
1689 Add method names to log entries in the servlet.
1691 This helps when tracking down deployment problems.
1693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1695 2011-06-14 Ben Konrath <ben@bagu.org>
1697 Add data to the DetailsView using a hard-coded primary key value.
1699 The layout and functionality of the DetailsView is not complete. This
1700 is just a checkpoint so the patch doesn't get too big.
1702 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1703 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1704 Add getDetailsData() servlet method.
1705 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1706 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1707 LayoutFields are added to the DetailsView.
1708 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1709 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1710 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1711 take the string for the title instead of the object.
1712 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1713 Add implementation getDetailsData() along with some private helper
1715 * src/main/webapp/style.css: Add padding to details-data class. Add a
1716 details-label class with the same padding as the details-data class.
1718 2011-06-03 Ben Konrath <ben@bagu.org>
1720 Use presenter.goTo() to change to the DetailsPlace.
1722 This will make things easier when we need to open the DetailsView with
1723 data specific to the row that was clicked.
1725 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1727 2011-06-02 Ben Konrath <ben@bagu.org>
1729 Add CSS file from mockups.
1731 I'm adding this now because it's going to be useful to have when
1732 developing the DetailsView. The TableSelectionView and ListView aren't
1735 * src/main/webapp/OnlineGlom.html:
1736 * src/main/webapp/style.css:
1738 2011-06-02 Ben Konrath <ben@bagu.org>
1740 Use String.isEmpty() to check for empty string.
1742 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1744 2011-06-02 Ben Konrath <ben@bagu.org>
1746 Display main layout group titles in the DetailsView.
1748 This is the start of the DetailsActivity/DetailsView implementation.
1750 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1751 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1752 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1753 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1754 Get the layout information for the details view from the server and set
1755 the main layout group titles.
1756 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1757 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1758 Add addLayoutGroup() and addLayoutField() methods. This are just
1759 temporary methods for creating the the details view that will change
1761 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1762 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1764 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1765 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1766 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1767 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1768 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1769 Data Transfer Objects that mimic the libglom object structure. These are
1770 used for transferring the details layout but could also be used for
1771 transferring the list layout.
1773 2011-05-27 Ben Konrath <ben@bagu.org>
1775 Reset the AuthenticationPopup when clearing the ListView.
1777 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1779 2011-05-27 Ben Konrath <ben@bagu.org>
1781 Fix problem with onlineglom.properties file loading.
1783 The old way worked in Eclipse but not on the server. Loading the
1784 onlineglom.properties file now works in Eclipse and on the server.
1786 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1788 2011-05-24 Ben Konrath <ben@bagu.org>
1790 Update gwt-log from 3.1.0 to 3.1.2.
1792 Gwt-log 3.1.0 has been marked as depreciated.
1796 2011-05-24 Ben Konrath <ben@bagu.org>
1798 Add comment to ListActivity.goTo() method.
1800 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1802 2011-05-24 Ben Konrath <ben@bagu.org>
1804 Remove FIXME in convertGdkColorToHtmlColour()
1806 The Gdk::Color value returned by libglom is 16-bits per channel on both
1807 64 and 32-bit platforms.
1809 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1811 2011-05-19 Ben Konrath <ben@bagu.org>
1813 Improve performance of initial ListView load.
1815 I removed a round trip to the server for getting the default table name
1816 and then requesting information about that table. This also removes a potential
1817 problem with the table change handler not being setup in time to receive the
1818 table change event from the ListActivity.
1820 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1821 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1822 getDefaultLayoutListTable() method. Improve comments.
1823 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1824 getDefaultLayoutListTable() method instead of firing a table change
1825 event to get the table to load.
1826 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1827 implementation of getDefaultLayoutListTable() method.
1828 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1831 2011-05-19 Ben Konrath <ben@bagu.org>
1833 Override toDebugString() in TableChangeEvent.
1835 This is useful to have for debugging.
1837 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1839 2011-05-19 Ben Konrath <ben@bagu.org>
1841 Add a "Back to List" link when at the DetailsPlace.
1843 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1844 Populate the CellTable based on the selected table of the ListBox if
1845 it's set otherwise use the default table. This allows the "Back to
1847 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1848 Remove Place from constructors. Add a setPlace() method. Add
1849 goToPlace() method. Set class as presenter for TableSelectionView.
1850 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1851 Use the same TableSelectionActivity when switching between the List and
1853 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1854 Subclass the new HasSelectableTablePlace. This removes some duplicate
1856 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1857 New class to represent Places that display the TableSelectionView.
1858 * src/main/java/org/glom/web/client/place/ListPlace.java:
1859 Subclass the new HasSelectableTablePlace. This removes some duplicate
1861 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1862 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1863 Add Presenter interface. Add setBackLinkVisible() method. Add
1864 setBackLink() method.
1866 2011-05-18 Ben Konrath <ben@bagu.org>
1868 Enable the "Details" buttons.
1870 Right now only an empty details view is displayed.
1872 * src/main/java/org/glom/web/client/ClientFactory.java:
1873 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1874 Add DetailsView to ClientFactory.
1875 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1876 A basic activity for the details view.
1877 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1878 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1880 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1881 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1883 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1884 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1885 unnecessary super() in constructor.
1886 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1887 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1888 really shouldn't create a new TableSelectionActivity for both the ListPlace
1889 and the DetailsPlace so this should be considered a temporary solution.
1890 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1891 New file. Represents a URL for the details view.
1892 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1893 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1894 A basic details view interface and implementation.
1895 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1896 Enable the "Details" buttons.
1898 2011-05-12 Ben Konrath <ben@bagu.org>
1900 Use a LayoutPanel with multiple display areas for main layout.
1902 This is mostly a refactor in that there are no changes from the user
1903 point of view. These changes are required so that we can swap out the list view
1904 with the details view when the user clicks the "Details" button.
1906 * src/main/java/org/glom/web/client/ClientFactory.java:
1907 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1908 OnlineGlomView. Add TableSelectionView, ListView and
1909 AuthenticationPopup.
1910 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1911 for main layout. Add display regions for main activities. Add
1912 activity manager for for main activities.
1913 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1914 file from parts of the deleted OnlineGlomActivity.
1915 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1916 New file from parts of the deleted OnlineGlomActivity.
1917 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1918 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1919 New files for app wide table change event.
1920 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1921 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1922 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1923 Activity mappers for the main activities replace the deleted app-wide
1925 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1926 Fix a spelling error in he comment.
1927 * src/main/java/org/glom/web/client/ui/ListView.java:
1928 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1929 Renamed from LayoutListView and modified for MVP. This still not a
1930 proper dumb view as prescribed by the MVP pattern but it works for now.
1931 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1932 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1933 New widget stripped out of the deleted OnlineGlomView.
1934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1935 Remove hack that is fixed by this patch.
1937 2011-05-06 Ben Konrath <ben@bagu.org>
1939 Rename OnlineGlomPlace to ListPlace.
1941 The only change besides the rename is that url will now display #list
1942 instead of #Document.
1944 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1945 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1946 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1947 * src/main/java/org/glom/web/client/place/ListPlace.java:
1948 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1950 2011-05-06 Ben Konrath <ben@bagu.org>
1952 Use Presenter for app navigation.
1954 This is the proper way to deal with Place (URL) changes with the MVP
1957 * src/main/java/org/glom/web/client/ClientFactory.java:
1958 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1959 PlaceHistoryMapper and PlaceHistoryHandler.
1960 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1961 PlaceHistoryMapper and PlaceHistoryHandler.
1962 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1963 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1964 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1965 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1966 Add Presenter interface and setPresenter methods. Rename addHyperLink
1967 to addDocumentLink taking only the document title as a parameter.
1969 2011-04-14 Ben Konrath <ben@bagu.org>
1971 Prompt for db username/password if they haven't been set.
1973 This is implemented with a popup widget that is contained within the
1974 OnlineGlomView and managed by the OnlineGlomActivity.
1976 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1977 methods for checking and setting the database username and password.
1978 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1979 new methods for checking and setting the database username and
1981 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1982 Display authentication popup if the JDBC connection to the database
1983 has not been authenticated.
1984 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1986 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1987 for dealing with the authentication popup.
1988 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1989 Implement the methods for dealing with the authentication popup.
1990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1991 try to executed queries if the database connection hasn't been
1992 authenticated. Implement methods for checking and setting the
1993 database username and password.
1995 2011-04-12 Ben Konrath <ben@bagu.org>
1997 Make log messages a little clearer.
1999 Add a dash betweeen the document title and the table name.
2001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2003 2011-04-12 Ben Konrath <ben@bagu.org>
2005 Protect against NPEs when cleaning up database resources.
2007 While this isn't strictly necessary because the exception is caught,
2008 not protecting against the NPEs makes it harder to find the real error
2011 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2013 2011-04-12 Ben Konrath <ben@bagu.org>
2015 Move configuration of the servlet to the constructor.
2017 The servlet will be initialized even if the database authentication
2018 information is not set or correct. I still need to add the UI for prompting
2019 the user for the authentication information when it's required.
2021 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2022 javadocs for getDocumentTitles() method.
2023 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2024 Set error message when RPC fails.
2025 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2026 glom files directory from the configuration file. Try to set the
2027 database authentication information for the specific document if it's
2028 set and works otherwise try to use the global authentication
2029 information set for the directory.
2030 * src/main/resources/onlineglom.properties: Moved from
2031 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2032 Added detailed comments for the new keys.
2034 2011-04-11 Ben Konrath <ben@bagu.org>
2036 Remove unnecessary @Override in DocumentSelectionViewImpl.
2038 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2040 2011-04-11 Ben Konrath <ben@bagu.org>
2042 Remove center alignment in DocumentSelectionView.
2044 The title element is still centred but the document titles and bottom
2045 sentence are both left-aligned.
2047 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2049 2011-04-11 Ben Konrath <ben@bagu.org>
2051 Change 'Demo' naming convention to 'Document'.
2053 This is just a rename refactor with no functional changes to the code.
2055 * src/main/java/org/glom/web/client/ClientFactory.java:
2056 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2057 * src/main/java/org/glom/web/client/OnlineGlom.java:
2058 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2059 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2060 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2061 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2062 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2063 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2064 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2065 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2066 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2067 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2069 2011-04-08 Ben Konrath <ben@bagu.org>
2071 Remove FIXME from safeLongToInt() method.
2073 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2076 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2078 2011-04-08 Ben Konrath <ben@bagu.org>
2080 Display an error if no glom documents are found in the specified directory.
2082 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2083 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2084 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2085 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2087 2011-04-08 Ben Konrath <ben@bagu.org>
2089 Add copyright header to one more file ... oops.
2091 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2093 2011-04-08 Ben Konrath <ben@bagu.org>
2095 Add copyright header to files without it.
2097 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2098 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2099 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2100 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2101 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2102 * src/main/java/org/glom/web/shared/GlomField.java:
2104 2011-04-08 Ben Konrath <ben@bagu.org>
2106 Add support for accessing multiple glom documents in the servlet.
2108 This completes the demo selection functionality.
2110 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2111 document title to methods.
2112 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2113 document title to methods.
2114 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2115 Set browser window title when the activity starts. Correct name of
2116 document title variable.
2117 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2118 Set browser window title when the activity starts. Set the table
2119 selector change handler after table selector has been set. Clear the
2120 OnlineGlomView when the activity has been stopped.
2121 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2122 document title as the place token. Use "#Document:" instead of
2123 "#OnlineGlomPlace:" in the URL.
2124 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2125 Change heading to "Online Glom"
2126 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2127 document title in RPC methods.
2128 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2129 setDocumentTitle() method. Add clear() method.
2130 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2131 setDocumentTitle() method. Implement clear() method which removes the
2132 change handler on the ListBox, clears the ListBox and clears the
2134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2135 Implement methods with document title. Keep track for the configured
2136 glom documents and their corresponding JDBC configurations in a hash
2137 table. This information is retrieved using the document title as the
2138 key in the hash table.
2139 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2140 document title field as it's no longer needed.
2142 2011-04-08 Ben Konrath <ben@bagu.org>
2144 Update the Eclipse JDT configuration.
2146 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2147 methods. Automatically add the copyright header to new files.
2149 2011-04-05 Ben Konrath <ben@bagu.org>
2151 Add new page for demo selection.
2153 This patch adds all the components required to view and start an
2154 OnlineGlom demo by clicking on the desired hyperlink. The user is
2155 able to return to the demo selection page with the browser's back
2156 button. I still need to modify the servlet to work with multiple
2157 documents so all demo links will load the file defined in the
2158 OnlineGlom.properties.
2160 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2161 This is only useful during development so we don't need to save it.
2162 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2163 get a reference to the DemoSelectionView.
2164 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2165 method to get a reference to the DemoSelectionView.
2166 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2167 default view to DemoSelectionView.
2168 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2169 to get glom document titles for glom files in a hard-coded directory.
2170 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2171 method to get glom document titles for glom files in a hard-coded
2173 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2174 Presenter for DemoSelectionView.
2175 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2176 for DemoSelectionView.
2177 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2178 Update for DemoSelectionView.
2179 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2180 Basic 'Place' implementation for the DemoSelectionView.
2181 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2182 The interface for the DemoSelectionView.
2183 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2184 The implementation of the DemoSelectionView.
2185 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2186 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2188 implementation of method to get glom document titles for glom files
2189 in a hard-coded directory.
2190 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2191 on longer being used.
2192 * src/main/webapp/glom.png: Glom logo.
2194 2011-04-05 Ben Konrath <ben@bagu.org>
2196 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2198 This is the forth and final commit of a refactor that will allow
2199 OnlineGlom to be used with multiple documents.
2201 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2202 Move RPC code from OnlineGlomViewImpl to this class.
2203 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2205 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2206 RPC code to the presenter class (the P in MVP).
2208 2011-04-04 Ben Konrath <ben@bagu.org>
2210 Start moving the existing OnlineGlom code to MVP.
2212 This work is based on the GWT MVP framework that is documented here:
2214 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2216 This is the third commit of a refactor that will allow OnlineGlom to
2217 be used with multiple documents.
2219 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2220 Interface for client factory which is used to get instances of various
2221 classes throughout the app.
2222 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2223 Implementation of client factory.
2224 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2225 initialize the MVP framework.
2226 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2227 New file. Activity manager for the main container widget. This is the
2229 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2230 Maps place (URL) to its corresponding activity.
2231 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2232 New file. This is just a place holder for a generated file.
2233 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2234 New file. Represents the URL for the main Online Glom app.
2235 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2236 for changes in LayoutListViewImpl.
2237 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2238 interface for View. Move code to OnlineGlomViewImpl class.
2239 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2240 file. Implementation of OnlineGlomView.
2241 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2242 Place resources. Use ClientFactoryImpl by default.
2244 2011-04-04 Ben Konrath <ben@bagu.org>
2246 Move View classes to their own package.
2248 This is the second commit of a refactor that will allow OnlineGlom to
2249 be used with multiple documents.
2251 * src/main/java/org/glom/web/client/OnlineGlom.java:
2252 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2253 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2255 2011-04-02 Ben Konrath <ben@bagu.org>
2257 Move UI code from the main module to its own class.
2259 This is the first commit of a refactor that will allow OnlineGlom to be
2260 used with multiple documents.
2262 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2263 references to OnlineGlom to OnlineGlomView.
2264 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2265 OnlineGlomView and instantiate it here.
2266 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2267 represents the main OnlineGlomView with one document.
2269 2011-04-01 Ben Konrath <ben@bagu.org>
2271 Fix formatting of gwt.xml and add DTD.
2273 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2275 2011-03-30 Ben Konrath <ben@bagu.org>
2277 Propperly convert gdkColor string to html colour string.
2279 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2281 2011-03-28 Ben Konrath <ben@bagu.org>
2283 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2285 This implementation matches
2286 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2287 readable and is not tied to Swig.
2289 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2291 2011-03-28 Ben Konrath <ben@bagu.org>
2293 Use read-only checkboxes for boolean field types.
2295 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2296 in the CellTable based on the field type. It currently only
2297 distinguishes between boolean and text columns but I'll need to add
2298 support for more types.
2299 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2300 column type in the ColumnInfo object. Add method to convert between the
2301 glom field type enum in ColumnInfo and the glom field type in libglom.
2302 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2304 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2305 getting and setting booleans.
2307 2011-03-25 Ben Konrath <ben@bagu.org>
2309 Don't get the Date twice from the ResultSet.
2311 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2313 2011-03-25 Ben Konrath <ben@bagu.org>
2315 Cleanup code in the servlet.
2317 * TODO: Remove item about row count. Add item about testing row count
2318 query with large number of rows.
2319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2320 spelling mistakes, change method parameter to be consistent with
2323 2011-03-25 Ben Konrath <ben@bagu.org>
2325 Add server side logging with the gwt-log library.
2327 * .gitignore: Ignore the log file we're now producing.
2328 * TODO: Add a couple TODO item for logging.
2329 * pom.xml: Add gwt-log and log4j as a dependency.
2330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2331 logging of errors, warnings and some important info.
2332 * src/main/resources/log4j.properties: New file to configure log4j.
2334 2011-03-24 Ben Konrath <ben@bagu.org>
2336 Add a disable button for the Details view.
2338 * src/main/java/org/glom/web/client/LayoutListView.java:
2340 2011-03-22 Ben Konrath <ben@bagu.org>
2342 Use a count query to get the number of rows for the list view pager.
2344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2346 2011-03-22 Ben Konrath <ben@bagu.org>
2348 Add more TODO information about CellTable pager positioning.
2352 2011-03-19 Ben Konrath <ben@bagu.org>
2354 Add TODO item about CellTable pager positioning.
2358 2011-03-18 Ben Konrath <ben@bagu.org>
2360 Remove unneeded GlomFieldColumn class.
2362 This is just a small code cleanup.
2364 * src/main/java/org/glom/web/client/LayoutListView.java:
2366 2011-03-18 Ben Konrath <ben@bagu.org>
2368 Use cursor mode in the query that gets data for the list view.
2370 I still need to fix the potential memory problem when getting the row
2371 count for the list view.
2373 * TODO: Add note about testing memory usage with large data sets. Add
2374 item about fixing row counting with large data sets.
2375 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2376 PostgreSQL JDBC driver into cursor mode when getting data for the
2379 2011-03-15 Ben Konrath <ben@bagu.org>
2381 Remove the GWT Container from the Eclipse build classpath.
2383 The GWT dependencies are set by Maven so this isn't needed.
2387 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2389 Added some earlier mockups to git, but not to the tarball dist.
2391 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2392 Openismus. These hopefully show how we might structure the HTML so that
2393 it can be styled easily with CSS. However, we probably need to adapt them
2394 for the CSS structure that GWT dictates for common widgets.
2396 2011-03-14 Ben Konrath <ben@bagu.org>
2398 Locate OnlineGlom.properties using the ServletContext.
2400 This is required to be able to locate the file in the deployed servlet.
2402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2403 Configure the database and glom document in in a helper method so
2404 that the ServletContext can be used to locate OnlineGlom.properties.
2405 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2406 src/main/webapp. This is the proper location for .properites files.
2408 2011-03-12 Ben Konrath <ben@bagu.org>
2410 Add note to README about why we're compiling down to obfuscated JavaScript.
2414 2011-03-11 Ben Konrath <ben@bagu.org>
2416 Use properties file to configure servlet.
2418 This allows people to change the glom file path, db username and db
2419 password without recompiling the code.
2421 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2422 * src/main/webapp/OnlineGlom.properties:
2424 2011-03-11 Ben Konrath <ben@bagu.org>
2426 Use table fields in layout list view if the layout list is not defined.
2428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2429 Manually create a LayoutFieldVector for the query builder using the
2430 table fields when a layout list is not defined in the glom file.
2432 2011-03-11 Ben Konrath <ben@bagu.org>
2434 Only show FIXME string for images when there's an image.
2436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2437 in this change are some small code cleanups.
2439 2011-03-11 Ben Konrath <ben@bagu.org>
2441 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2443 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2445 2011-03-11 Ben Konrath <ben@bagu.org>
2447 Correctly set the index of the default table.
2449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2450 Correctly set the index of the default table. Add commented out example
2453 2011-03-10 Ben Konrath <ben@bagu.org>
2455 Add comment to pom.xml about the previous change.
2457 * pom.xml: Add comment about the deployment issue so that it's obvious
2458 why java-libglom is set to the provided scope.
2460 2011-03-10 Ben Konrath <ben@bagu.org>
2462 Change java-libglom dependency from compile to provided in pom.xml.
2464 Since java-libglom uses jni it can only be loaded once and therefore
2465 must be placed in $CATALINA_HOME/lib and not included in each war.
2466 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2467 More information about this issue can be found in the Tomcat 6 release
2468 notes in the "JNI Based Applications" section:
2470 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2472 * README: Remove note about this issue. Deployment info should really
2473 be on the wiki anyway so I'll add it right now.
2474 * pom.xml: Change java-libglom dependency from compile to provided so
2475 that it's copied in to the packaged war.
2477 2011-03-09 Ben Konrath <ben@bagu.org>
2479 Change to using a neutral locale for currency, date and time formatting.
2481 This solves the problem of currency values being represented without a
2482 space between the currency code and the number (e.g. "EUR5.89" is now
2483 represented as "EUR 5.89"). More work is required when we implement
2484 a locale preference setting.
2486 * TODO: Add note about currency formatting issues with different
2488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2489 to using the neutral ROOT locale.
2491 2011-03-09 Ben Konrath <ben@bagu.org>
2493 Add support for currency codes that are not ISO 4217 codes.
2495 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2496 the currency code defined in the glom file when it's not 3 characters
2497 long or when Java doesn't recognize the string as an ISO 4217 code.
2499 2011-03-08 Ben Konrath <ben@bagu.org>
2501 Remove test classes, launch configurations and configuration.
2503 The test stuff was getting in the way when creating the war. To make
2504 the war file you can now do 'mvn clean package'. The packaged war file
2505 will be in the target directory.
2507 * .classpath: Remove unused classpathentry for tests and i18n.
2508 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2509 property. Don't run test or i18n goals when packaging the war.
2510 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2515 * OnlineGlomTest-dev.launch:
2516 * OnlineGlomTest-prod.launch:
2517 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2518 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2520 2011-03-07 Ben Konrath <ben@bagu.org>
2522 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2524 These fixes allow me to use 'mvn deploy' to create the war file.
2526 * .classpath: This generated config has been updated by Eclipse. This
2527 change was probably triggered by me updating from Eclipse 3.6.1 to
2529 * .gitignore: Add entry to ignore the directory
2530 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2531 * .project: The generated config has been updated by Eclipse. This
2532 change was probably triggered by me updating from Eclipse 3.6.1 to
2534 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2535 so that Eclipse doesn't complain
2536 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2537 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2538 'tests' directory to 'client' directory. This is the new
2539 gwt-maven-plugin convension.
2540 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2541 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2543 2011-03-07 Ben Konrath <ben@bagu.org>
2545 Add support for horizontal alignment in the LayoutList columns.
2547 * TODO: Remove item about horizontal alignment. Add item about
2548 improvements to ColumnInfo.
2549 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2550 alignment on the columns. Use ColumnInfo RPC object get the column
2551 title and horizontal alignment.
2552 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2553 LayoutListView creation with ColumnInfo RPC object.
2554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2555 a ColumnInfo object for every LayoutList columnn. Convert the
2556 FieldFormatting.HorizontalAlignment to the correct
2557 ColumnnInfo.HorizontatlAlignment with the new
2558 getColumnInfoHorizontalAlignment helper method.
2559 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2560 to encapsulate column information like alignment and title. This
2561 could be used to set the colour instead of on a per cell field basis.
2562 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2563 column title storage and retrieval with ColumnInfo.
2565 2011-03-04 Ben Konrath <ben@bagu.org>
2567 Add support for column sorting.
2569 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2570 AsynDataProvider to be an anonymous inner class. Use new
2571 getSortedTableData RPC method when column sort is requested. Set all
2572 columns sortable and add an AsyncHandler to activate sorting in the
2574 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2575 method getSortedTableData(). Cleanup other method signatures.
2576 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2577 new method getSortedTableData(). Cleanup other method signatures.
2578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2579 Implement getSortedTableData() and getTableData() methods by using a
2580 private helper method with the appropriate parameters filled in. Use
2581 user supplied sort clause when supplied, otherwise fall back to
2582 sorting by the primary key. Move destroy() method to be underneath
2583 constructor for readability. Cleanup comments.
2585 2011-03-03 Ben Konrath <ben@bagu.org>
2587 Add support for colour text and colour backgrounds to the layout list cells.
2589 Only the cell backgrounds are coloured which leaves a gap between the
2590 cells that isn't coloured. I need to figure out a way to set
2591 'style=background-colour:' on the whole column rather than just the
2594 * TODO: Add a note about colouring the background of the whole column.
2595 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2596 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2597 render the coloured text and backgrounds. Use GlomField[] for the row type.
2598 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2600 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2601 GlomField[] for the row type.
2602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2603 GlomField[] for the row type. Set the text, text colour and background
2604 colour in the GlomField objects as specified in the glom document. Add
2605 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2606 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2607 the glom field text, foreground colour and background colour.
2609 2011-03-02 Ben Konrath <ben@bagu.org>
2611 Don't display hidden tables in the combo box.
2613 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2615 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2616 code to ignore hidden tables using ArrayLists for the table names and
2618 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2619 tableNames to use ArrayLists instead of String[]. Update getter and setter
2622 2011-03-01 Ben Konrath <ben@bagu.org>
2624 Add support for Date and Time number types.
2626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2627 Implement formatting for Date and Time values. Change the default glom
2628 file to small business example.
2630 2011-03-01 Ben Konrath <ben@bagu.org>
2632 Add support for formatting glom types as specified in the glom file.
2634 Formatting isn't finished yet - I still need to add support for Date
2637 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2638 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2639 checks for null values in JDBC cleanup code and catch all exceptions
2640 instead of just SQLExceptions.
2641 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2644 2011-03-01 Ben Konrath <ben@bagu.org>
2646 Use GWT 2.2.0 instead of 2.1.1.
2648 * pom.xml: Change GWT version numbers.
2650 2011-03-01 Ben Konrath <ben@bagu.org>
2652 A few small code cleanups.
2654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2656 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2657 unnecessary object creation in constructor.
2658 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2659 unnecessary object creation in constructor.
2661 2011-02-28 Ben Konrath <ben@bagu.org>
2663 Add file for TODO list.
2667 2011-02-18 Ben Konrath <ben@bagu.org>
2669 Enable the CellTable Pager when more than 20 rows need to be viewed.
2671 The Pager will automatically become active when the results are larger
2672 than the CellTable size which is currently set to 20 lines.
2674 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2675 name on debug statment in RPC call in LayoutListDataProvider, add
2676 numRows parameter to LayoutListView constructor, propperly set rowCount
2678 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2679 name on debug statment in RPC call, use LayoutListTable object in RPC
2680 calls, pass rowCount to LayoutListView.
2681 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2682 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2684 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2685 interface for changes in OnlineGlomService.
2686 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2687 getLayoutListHeaders() to getLayoutListTable() and return
2688 LayoutListTable. Using this object allows me to pass other information
2689 about the LayoutList like the expected number of rows in the result set.
2690 The Connection object from the connection pool is now propperly closed.
2691 Only the requested number of lines are returned to the client in
2693 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2694 GlomTable and add columnTitles and numRows.
2696 2011-02-18 Ben Konrath <ben@bagu.org>
2698 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2700 This is a small performance boost. I'll use GlomTable to get the required
2701 layoutlist information.
2703 * src/main/java/org/glom/web/client/OnlineGlom.java:
2704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2705 * src/main/java/org/glom/web/shared/GlomDocument.java:
2707 2011-02-18 Ben Konrath <ben@bagu.org>
2709 Add option to turn off formatting in JDT formatter preferences.
2711 * .settings/org.eclipse.jdt.core.prefs:
2713 2011-02-18 Ben Konrath <ben@bagu.org>
2715 Rename LayoutList to LayoutListView.
2717 I'm working towards setting things up to easily use MVP when the time
2720 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2722 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2725 2011-02-17 Ben Konrath <ben@bagu.org>
2727 Move LayoutListDataProvider class into LayoutList.java.
2729 * src/main/java/org/glom/web/client/LayoutList.java:
2731 2011-02-17 Ben Konrath <ben@bagu.org>
2733 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2735 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2737 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2738 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2739 from LibGlomServer.java.
2740 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2741 Rename from LibGlomServiceAsync.java.
2742 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2743 Rename from LibGlomServiceImpl.java.
2744 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2746 2011-02-17 Ben Konrath <ben@bagu.org>
2748 Update JDT settings.
2750 * .settings/org.eclipse.jdt.core.prefs:
2752 2011-02-17 Ben Konrath <ben@bagu.org>
2754 Move GWT-RPC objects to shared package (where they should be).
2756 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2757 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2758 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2759 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2760 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2761 org.glom.web.shared package.
2762 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2763 org.glom.web.shared package.
2764 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2765 directory in compilation to javascript.
2767 2011-02-16 Ben Konrath <ben@bagu.org>
2769 Add sort clause to the sql query that grabs table information.
2771 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2772 if one of the columns is a primary key.
2774 2011-02-16 Ben Konrath <ben@bagu.org>
2776 Disable generateAsync feature of gwt-maven.
2778 The generated interface does not correctly match the methods in LibGlomService
2779 and the generated singleton Util inner-class doesn't respect the servlet
2782 * pom.xml: Turn off generateAsync feature.
2783 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2784 with singleton Util inner-class.
2786 2011-02-14 Ben Konrath <ben@bagu.org>
2788 Add LGPL v3 licence notices.
2790 Followed directions listed here:
2791 http://www.gnu.org/licenses/gpl-howto.html
2793 * COPYING: This file is a copy of the GPL v3.
2794 * COPYING.LESSER: This file is a copy of the LGPL v3.
2795 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2797 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2799 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2801 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2803 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2805 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2807 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2810 2011-02-14 Ben Konrath <ben@bagu.org>
2812 Use ArrayList instead of Array in GWT-RPC calls.
2814 Apparently this gives a slight performance boost to the compiled
2817 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2819 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2822 2011-02-14 Ben Konrath <ben@bagu.org>
2824 Access data from a postgres db rather than the example glom file.
2826 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2827 compile down to obfuscated javascript.
2828 * pom.xml: Add c3p0 and postgres JDBC libraries.
2829 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2830 using a postgres db accessed through the c3p0 connection pooling library.
2832 2011-02-14 Ben Konrath <ben@bagu.org>
2834 Update Java formatter settings.
2836 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2838 2011-02-02 Ben Konrath <ben@bagu.org>
2840 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2842 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2844 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2845 the compiled webapp directory that Eclipse uses as we're using Maven now.
2846 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2847 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2849 * pom.xml: Format file, change target Java version to 1.6.
2851 2011-02-02 Ben Konrath <ben@bagu.org>
2853 Add information about a deployment related issue.
2855 * README: Add Notes section with the problem outlined.
2857 2011-02-02 Ben Konrath <ben@bagu.org>
2859 Call Glom.libglom_deinit() when the servlet is shutdown.
2861 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2862 Glom.libglom_deinit() to destroy() method.
2864 2011-01-28 Ben Konrath <ben@bagu.org>
2866 Use generated Util class to get the RPC Async interface.
2868 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2870 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2871 getInstance() method to get a reference to the RPC Async interface.
2872 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2873 getInstance() method to get a reference to the RPC Async interface, remove
2874 the now unused getLibGlomServiceProxy() method.
2876 2011-01-27 Ben Konrath <ben@bagu.org>
2878 Cleanup ChangeLog entry from previous commit.
2880 * ChangeLog: Group logical changes together and add comments.
2882 2011-01-25 Ben Konrath <ben@bagu.org>
2884 Convert to gwt-maven project.
2886 * .gitignore: Update for new project structure.
2887 * README: New file with a link to the online documentation.
2888 * pom.xml: The generated maven configuration file with some tweaks.
2890 Add / update Eclipse settings. These files are a merge of the files that
2891 were generated with the gwt-maven plugin and the files we were previously
2895 * .settings/.jsdtscope:
2896 * .settings/com.google.gdt.eclipse.core.prefs:
2897 * .settings/com.google.gwt.eclipse.core.prefs:
2898 * .settings/org.eclipse.jdt.core.prefs:
2899 * .settings/org.eclipse.wst.common.component:
2900 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2901 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2902 * .settings/org.maven.ide.eclipse.prefs:
2903 * OnlineGlomTest-dev.launch:
2904 * OnlineGlomTest-prod.launch:
2906 Java source files moved from the 'src' directory to the directory structure
2908 * src/main/java/org/glom/web/client/GlomDocument.java:
2909 * src/main/java/org/glom/web/client/GlomTable.java:
2910 * src/main/java/org/glom/web/client/LayoutList.java:
2911 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2912 * src/main/java/org/glom/web/client/LibGlomService.java:
2913 * src/main/java/org/glom/web/client/OnlineGlom.java:
2914 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2916 Non-functional property file used for translations. I included this as
2917 reminder that it's something I need to sort out.
2918 * src/main/resources/org/glom/web/client/Messages.properties:
2920 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2921 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2923 The servlet configuration files moved from the 'war' directory.
2924 * src/main/webapp/OnlineGlom.css:
2925 * src/main/webapp/OnlineGlom.html:
2926 * src/main/webapp/WEB-INF/web.xml:
2928 Generated test files with most of the code commented out. I included these
2929 so that it's easy to add tests when we're ready for them.
2930 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2931 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2933 2011-01-25 Ben Konrath <ben@bagu.org>
2935 Remove unused println.
2937 * src/org/glom/web/server/LibGlomServiceImpl.java:
2939 2011-01-25 Ben Konrath <ben@bagu.org>
2941 Add project specific JDT settings.
2943 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2944 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2946 2011-01-25 Ben Konrath <ben@bagu.org>
2948 Populate celltable with example data.
2950 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2951 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2952 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2953 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2954 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2955 asynchronously gets the example data.
2956 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2957 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2958 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2959 curently selected table to be retrieved by other widgets.
2960 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2961 implement getTableData() in a hacky way. This method needs to be updated
2962 to grab information from the database when database creating is
2965 2011-01-20 Ben Konrath <ben@bagu.org>
2967 Set table headers when table dropBox changes.
2969 * src/org/glom/web/client/GlomDocument.java: Correct some method
2971 * src/org/glom/web/client/LibGlomService.java: Add method
2972 to get list layout field names.
2973 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2974 to get list layout field names.
2975 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2976 widget for list layout table.
2977 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2978 the table drop box and add new updateTable() method to asynchronously
2979 get the layout list field names for the currently selected table.
2980 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2981 implementation of getLayoutListHeaders() method.
2982 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2984 2011-01-18 Ben Konrath <ben@bagu.org>
2986 Make a listBox with table titles instead of the flexTable demo.
2988 This is the start of something more useful.
2990 * .classpath: Exclude a bunch of packages from the JVM that are
2991 getting in the way of the Eclipse content assist.
2992 * src/org/glom/web/client/GlomDocument.java:
2993 * src/org/glom/web/client/GlomTable.java:
2994 * src/org/glom/web/client/LibGlomService.java:
2995 * src/org/glom/web/client/LibGlomServiceAsync.java:
2996 * src/org/glom/web/client/OnlineGlom.java:
2997 * src/org/glom/web/server/LibGlomServiceImpl.java:
2998 * war/OnlineGlom.html:
2999 * war/WEB-INF/web.xml:
3001 211-01-13 Ben Konrath <ben@bagu.org>
3003 Update to new java-libglom API.
3005 * .gitignore: Ignore OnlineGlom.war.
3006 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3008 2010-12-20 Ben Konrath <ben@bagu.org>
3010 Add some basic style to the table listing.
3012 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3013 header, print useful error message on async callback failure.
3014 * war/OnlineGlom.css: Add style for table header, remove defaults
3015 provided by the Eclipse project wizard.
3017 2010-12-20 Ben Konrath <ben@bagu.org>
3019 Load example file from installed glom dir.
3021 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3022 provided by java-libglom to find the example file.
3024 2010-12-20 Ben Konrath <ben@bagu.org>
3026 Update Eclipse settings.
3029 * .settings/com.google.gdt.eclipse.core.prefs:
3030 * .settings/com.google.gwt.eclipse.core.prefs:
3032 2010-12-17 Ben Konrath <ben@bagu.org>
3036 * .classpath: New file.
3037 * .gitignore: New file.
3038 * .project: New file.
3039 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3040 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3041 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3042 * src/org/glom/web/client/GlomTable.java: New file.
3043 * src/org/glom/web/client/OnlineGlom.java: New file.
3044 * src/org/glom/web/client/TableNameService.java: New file.
3045 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3046 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3047 * war/OnlineGlom.css: New file.
3048 * war/OnlineGlom.html: New file.
3049 * war/WEB-INF/web.xml: New file.
3050 * war/images/glom.png: New file.