1 2011-11-28 Ben Konrath <ben@bagu.org>
3 Extract method for creating the LayoutItemPortal DTO.
5 Just breaking the code up into smaller chunks.
7 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
9 2011-11-28 Ben Konrath <ben@bagu.org>
13 This should have been added with the refactor. Oops!
15 * src/main/java/org/glom/web/shared/TypedDataItem.java:
17 2011-11-28 Ben Konrath <ben@bagu.org>
19 Create primary key value from URL string using type from Glom document.
21 See this bug, comments 19 - 25:
23 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
25 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
26 create a TypeDataItem for the primary key here when loading from a
27 URL. Show the same string for the primary key value as was received
28 from the URL string (when loading from a URL).
29 * src/main/java/org/glom/web/server/Utils.java: Update method for
30 creating the Gda Value from the TypeDataItem to properly deal with
31 creating a Gda Value based on the Glom document type for the primary
32 key value string when loading from a URL.
33 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
34 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
35 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
36 Update for changed method name.
38 2011-11-27 Ben Konrath <ben@bagu.org>
40 Rename PrimaryKeyItem to TypedDataItem.
42 The name PrimaryKeyItem suggests what the class should be used for.
43 TypedDataItem is a neutral name that describes the class better.
45 This is a rename-only refactor.
47 * src/main/java/org/glom/web/client/OnlineGlomService.java:
48 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
49 * src/main/java/org/glom/web/client/Utils.java:
50 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
51 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
52 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
53 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
54 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
55 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
56 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
57 * src/main/java/org/glom/web/server/Utils.java:
58 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
59 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
60 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
61 * src/main/java/org/glom/web/shared/NavigationRecord.java:
63 2011-11-25 Ben Konrath <ben@bagu.org>
65 Improve Gda Value conversion from PrimaryKeyItem.
67 The value from the PrimaryKeyItem is only used if its type match the
68 type from the glom document.
70 * src/main/java/org/glom/web/server/Utils.java:
72 2011-11-25 Ben Konrath <ben@bagu.org>
74 Manually check if the java-liblgom .so is visible to the JVM.
76 It seems that Tomcat has problems when a static initializer throws an
77 exception. This check is done before the first method call into
78 java-libglom so that execution doesn't continue if the .so is not
81 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
83 2011-11-25 Ben Konrath <ben@bagu.org>
85 Improve browser configuration error messages.
89 https://bugzilla.gnome.org/show_bug.cgi?id=662792
91 * src/main/java/org/glom/web/client/OnlineGlomService.java:
92 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
93 getConfigurationErrorMessage() method.
94 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
95 Get and display a specific configuration error message when no Glom
97 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
98 Implement getConfigurationErrorMessage() method. Surround configuration
99 code in the init() method with a try/catch block. This allows the
100 errors to be caught while keeping the servlet available to retrieve the
101 configuration error message.
103 2011-11-25 Ben Konrath <ben@bagu.org>
105 Don't use Strings to hold primary key values.
107 The primary key values are now held in a new data object
108 (PrimaryKeyItem) that holds type information and the primary key value
109 using the correct type.
111 * src/main/java/org/glom/web/client/OnlineGlomService.java:
112 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
113 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
114 PrimaryKeyItem instead of String to hold the primary key value.
115 * src/main/java/org/glom/web/client/Utils.java: Remove
116 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
117 PrimaryKeyItem based on the GlomFieldType and the DataItem.
118 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
119 PrimaryKeyItem instead of String to hold the primary key value. Load
120 document selection page when the documentID has not been set correctly.
121 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
122 DetailsPlace -> URL and URL -> DetailsPlace conversion with
124 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
125 Return empty string for URL instead of "null".
126 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
127 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
128 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
129 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
130 PrimaryKeyItem instead of String to hold primary key values.
131 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
132 PrimaryKeyValue to a Gda Value.
133 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
134 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
135 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
136 Replace temporary database access code that uses the PrimaryKeyValue to
137 Gda Value conversion.
138 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
139 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
140 PrimaryKeyItem instead of String.
141 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
142 hold primary key values.
144 2011-11-24 Ben Konrath <ben@bagu.org>
146 Use newly added java-libglom API to create queries.
148 This isn't finished. I still need to stop using Strings for primary key
149 values in the client code.
151 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
152 libglom to use fake connections so that retrieving the query string will
154 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
155 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
156 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
157 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
158 Use the newly added libglom sql methods and classes to create the
159 query. Add temporary hack to convert primary value strings to Gda
162 2011-11-23 Ben Konrath <ben@bagu.org>
164 Don't explicitly set the height of Portals.
166 See comments 6 - 10 of this bug for details:
168 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
170 * src/main/java/org/glom/web/client/ui/details/Portal.java:
172 2011-11-23 Ben Konrath <ben@bagu.org>
174 Use an HTML table instead of CSS for the FlowTable layout.
176 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
177 GWT's FlexTable to implement the FlowTable.
178 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
180 2011-11-18 Ben Konrath <ben@bagu.org>
182 Add boolean example to HTML table mockup.
184 * mockups/details-view-html-tables-text-entries.html:
186 2011-11-17 Ben Konrath <ben@bagu.org>
188 Ensure the pager buttons are always visible for related lists.
190 To accomplish this, I've turned off text wrapping in the list view and
191 related list tables for both the header and data text. The related list
192 table now has a fixed layout so the it doesn't overflow its container.
193 This is required to ensure that the cell text is clipped when it
194 overflows the cell and an ellipsis is added to the right side of the
195 cell when text is clipped.
197 A fixed table layout for the related list table in the details view
198 seems what we want for the details view anyway, so the side-effect is
201 The ellipsis will only be displayed in Firefox >= 7.
205 https://bugzilla.gnome.org/show_bug.cgi?id=662930
207 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
208 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
209 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
211 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
212 Set the 'table-layout: fixed' CSS property to the related list table.
213 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
214 'white-space: nowrap;' CSS property on both the list view and the
217 2011-11-16 Ben Konrath <ben@bagu.org>
219 Rework the fix for empty notebook tab labels.
221 Setting the empty group titles with its name caused problems for the
222 details layout. Instead of using libglom's
223 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
224 to the client when the title is empty. This allows the Notebook to use
225 the name when the title is empty without affecting anything else.
227 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
228 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
230 2011-11-16 Ben Konrath <ben@bagu.org>
232 Set group titles with name when title is empty.
234 This fixes a problem with an empty notebook tab label in the Lesson
235 Planner document. The forth tab in the notebook should be "Internet":
237 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
239 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
240 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
243 2011-11-16 Ben Konrath <ben@bagu.org>
245 Remove whitespace from the configured username properties.
247 This assumes that usernames won't have whitespace at the beginning
248 or end. But I think this is a reasonable assumption.
250 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
251 String.trim() to remove the whitespace from the username properties.
253 2011-11-15 Ben Konrath <ben@bagu.org>
255 Add details view mockup with HTML tables and text entries.
257 This is from the attachment on this bug:
259 https://bugzilla.gnome.org/show_bug.cgi?id=663109
261 * mockups/details-view-html-tables-text-entries.html:
263 2011-11-15 Ben Konrath <ben@bagu.org>
265 Add space between the columns of the flow table.
269 https://bugzilla.gnome.org/show_bug.cgi?id=662918
271 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
272 space between columns in the flow table.
274 2011-11-15 Ben Konrath <ben@bagu.org>
276 Add backup files to the .gitignore.
278 * .gitignore: Ignore files that end with ~.
280 2011-11-09 Ben Konrath <ben@bagu.org>
282 Use latest release of gwt-log.
284 Gwt-log releases are now being submitted to the maven central
285 repository so manual installation of the jar is no longer required.
287 * pom.xml: Update version and groupId of gwt-log dependency.
289 2011-10-31 Ben Konrath <ben@bagu.org>
291 Don't use GWT numeric formatting to override the glom currency formatting.
293 Currencies are now displayed like they are in Glom. See this bug:
295 https://bugzilla.gnome.org/show_bug.cgi?id=646216
297 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
299 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
300 currency code to constructor and set it when the cell is rendered.
301 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
302 currency code to the constructor of the NumericCell.
304 2011-10-27 Ben Konrath <ben@bagu.org>
306 Require the latest release of java-libglom (1.17.4).
310 2011-10-26 Ben Konrath <ben@bagu.org>
312 Add style to Notebook that matches current theme.
314 It's not the best style in the world but it's better than the default.
316 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
317 padding at the bottom of the child widgets.
318 * src/main/webapp/style.css: Add style for the Notebook.
320 2011-10-26 Ben Konrath <ben@bagu.org>
322 Move servlet initialization code to overridden init method.
324 This is half of the solution to getting proper error messages
325 displayed when configuration errors occur. Here's the relevant bug:
327 https://bugzilla.gnome.org/show_bug.cgi?id=662792
329 The rest of the solution involves surrounding the init method with a
330 try/catch block and setting a global variable with the error /
331 exception. A new async method should be created to retrieve and display
332 the error message / exception.
334 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
335 code from constructor to init method adding exceptions as needed.
337 2011-10-26 Ben Konrath <ben@bagu.org>
339 Add script to monitor and restart tomcat if required.
341 * utils/check-and-recover-tomcat.py: New file.
343 2011-10-26 Ben Konrath <ben@bagu.org>
345 Display the correct number of data items in the pager.
349 https://bugzilla.gnome.org/show_bug.cgi?id=661441
351 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
352 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
353 The implementation is the same for both tables: Keep track of the
354 number of non-empty rows and fire and RowCountChangeEvent after the data has
356 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
357 custom Pager class that subclasses SimplePager to handle displaying
358 the correct number when empty rows have been added.
360 2011-10-26 Ben Konrath <ben@bagu.org>
362 Correct error in previous commit.
364 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
365 eventBus parameter from listView.setCellTable().
367 2011-10-26 Ben Konrath <ben@bagu.org>
369 Fix error in TODO comment.
371 * src/main/java/org/glom/web/client/activity/ListActivity.java:
373 2011-10-24 Ben Konrath <ben@bagu.org>
375 Create Notebook widgets to the details view.
377 This isn't finished just yet - I still need to create a reasonable
378 style to match the current theme.
380 * src/main/java/org/glom/web/client/Utils.java: Add method for
381 calculating the height of a widget. This is used in the Notebook class.
382 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
383 new constructor method in Group.
384 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
385 method for creating child widget that can be used by subclasses
386 like Notebook. New constructor that allows disabling the group
387 titles - Notebooks don't set a group title for their child groups.
388 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
389 to make Notebooks using GWT's TabLayoutPanel.
390 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
391 constructor that allows disabling the group titles.
392 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
393 LayoutItemNotebook DTO.
394 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
395 DTO for Notebooks. It's just an empty class for now but we might need
396 it to transfer some specific information in the future.
398 2011-10-21 Ben Konrath <ben@bagu.org>
400 Add navigation buttons to related list tables.
402 * src/main/java/org/glom/web/client/OnlineGlomService.java:
403 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
404 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
405 method getSuitableRecordToViewDetails() for getting the table name
406 and primary key value for related list navigation buttons.
407 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
408 private cell renderer class to get the navigation information for
409 related list tables from the server. Extract the navigation
410 processing code from the details cell navigation and use it for the
411 related list navigation as well.
412 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
413 cell renderer class for the details open buttons. This was needed
414 because the related list navigation buttons and the list view
415 navigation buttons need to react differently when clicked.
416 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
417 the onEnterKeyDown() method because it's now overriden in the
418 subclasses that are specific to the related list tables and the list
420 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
421 the vertical size a little because the buttons add a bit of vertical
422 space to table. This is not a perfect solution because the vertical
423 size of with table fewer than 5 rows will be a little smaller.
424 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
425 changes in how navigation buttons are handled.
426 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
427 getSuitableRecordToViewDetails() using the new RelatedListNavigation
428 database access object.
429 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
430 to find the portal for a given relationship name from
431 RelatedListDBAccess. Add method to find a primary key field for a
433 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
434 Move code to find the portal for a given relationship name to
436 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
437 New file: database access object for getting the related list
438 navigation information (the table name and the primary key value).
439 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
440 DTO for transferring a table name to navigate to and a primary key
442 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
443 boolean and getter/setter to specifies if the related list should add
446 2011-10-24 Murray Cumming <murrayc@murrayc.com>
448 Use the master branch of java-libglom
450 * pom.xml: Depend on java-libglom 1.19 instead.
452 This is the master branch. See also the libglom-1-18 branch.
454 2011-10-11 Ben Konrath <ben@bagu.org>
456 Enable the open navigation button when the data has been set.
458 This avoids having active buttons that don't do anything when the data
461 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
463 2011-10-11 Ben Konrath <ben@bagu.org>
465 Use IsWidget interface for FlowTableItem.
467 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
468 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
470 2011-10-11 Ben Konrath <ben@bagu.org>
472 Remove GWT styling from open button in details view.
474 There are still some issues with how the details cell is arranged but
475 this should be made to match Glom 1.20. I'm going to leave fixing this
476 until I have Glom 1.20 up and running.
478 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
479 style name on open button.
480 * src/main/webapp/style.css: Move and edit details-navigation class.
481 Re-arrange some classes to make them appear in the same order as the
484 2011-10-07 Ben Konrath <ben@bagu.org>
488 * .gitignore: Ignore new cache directory.
489 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
490 * pom.xml: Change GWT and maven plugin to 2.4.0.
491 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
493 * src/main/java/org/glom/web/client/ClientFactory.java:
494 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
495 * src/main/java/org/glom/web/client/OnlineGlom.java:
496 Update source for API changes.
497 * utils/build-onlineglom-war.sh: Remove cache directory before the
500 2011-10-07 Ben Konrath <ben@bagu.org>
502 Add navigation buttons in the details view.
504 This isn't finished but I thought I'd commit what I have as it's a
505 pretty good start. I still need to:
507 1. Change the style so that it fits better into the current theme
508 2. Adjust the details cell to expand as much as possible.
510 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
511 click handlers to navigation buttons in the DetailsCells. Create a
512 refreshData() method to get just the data from the server without the
514 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
515 Update the tableSelector and browser title when the table name
516 changes without using the tableSelector.
517 * src/main/java/org/glom/web/client/ui/DetailsView.java:
518 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
519 getDetailsCells() to getCells(). Update variable names.
520 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
521 method to set click handler on navigation button. Rename a few
522 variables. Add navigation buttons where needed.
523 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
524 variables and methods.
525 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
526 navigation boolean and navigation table as required in the
528 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
529 variables for navigation along with getter/setter methods.
531 2011-10-07 Ben Konrath <ben@bagu.org>
533 Rename Field to DetailsCell.
535 This is a refactor-only commit. No functionality has been added or
538 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
539 Update variable and method names.
540 * src/main/java/org/glom/web/client/ui/DetailsView.java:
541 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
542 variable and method names.
543 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
545 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
546 variable and method names.
548 2011-10-07 Ben Konrath <ben@bagu.org>
550 Create separate methods for layout and data the details view.
552 This is a refactor-only commit. No functionality has been added or
555 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
556 private methods: setData(), createLayout().
558 2011-10-07 Ben Konrath <ben@bagu.org>
560 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
562 This is part of a change to get navigation buttons in the details view
563 but it should have been done this way from the start.
565 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
566 for method name change in TableSelectionView.
567 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
568 Create TableChangeEvent and set the browser title using the
569 TableSelectionView API.
570 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
571 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
572 Change getSelectedTable() to getSelectedTableName(). Add
573 getSelectedTableTitle().
575 2011-10-07 Ben Konrath <ben@bagu.org>
577 Use primaryKeyValue naming convention in constructor of DetailsPlace.
579 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
581 2011-10-07 Ben Konrath <ben@bagu.org>
583 Update TableChangeEvent to use newTableName naming convention.
585 This makes the class more consistent with GWT naming conventions.
587 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
588 Update for method name change in TableChangeEvent.
589 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
590 for method name change in TableChangeEvent.
591 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
592 newTableName variable and getter method. Make toDebugString()
595 2011-09-30 Ben Konrath <ben@bagu.org>
597 Disable the pager in the list tables when the data row count is less than the minimum.
599 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
600 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
602 2011-09-30 Ben Konrath <ben@bagu.org>
604 Add empty rows to the end of related list and list view tables.
606 I also extracted the cell rendering classes from the ListTable because
607 the code was becoming a little crazy with all the anonymous inner
608 classes. My plan is to use these cell rendering classes in the details
609 view as well so this refactor will be needed for that change.
611 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
612 set the row count in related list tables if the data has more rows
613 than the minimum number of rows visible.
614 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
615 row count in list view tables if the data has more rows than the
616 minimum number of rows visible.
617 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
618 for rendering TYPE_BOOLEAN cells. The code was extracted from the
620 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
621 for rendering TYPE_NUMERIC cells. The code was extracted from the
623 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
624 class for rendering cells with buttons in list views. The code was
625 extracted from the ListTable class.
626 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
627 for rendering TYPE_TEXT cells. The code was extracted from the
629 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
630 Add empty rows to the end of the data if required. Implement
631 ListTable.getMinNumVisibleRows().
632 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
633 cell renderer code to public classes. Return null in
634 Column.getValue() for empty rows. Add new abstract method:
635 getMinNumVisibleRows(). Move code to set the row count of the list view
636 table to ListViewImpl.
637 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
638 empty rows to the end of the data if required. Implement
639 ListTable.getMinNumVisibleRows().
642 2011-09-27 Ben Konrath <ben@bagu.org>
644 Use GWT.log for client-side debugging statements.
646 These are optimized out when deployed so I should have used this method
647 in the first place. These statements will eventually be replaced with some sort
648 of notification in the browser.
650 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
651 * src/main/java/org/glom/web/client/activity/ListActivity.java:
652 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
653 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
654 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
656 2011-09-27 Ben Konrath <ben@bagu.org>
658 Put tableselector on the right, back to list link on right.
660 The idea is that the table selector is acting like a label for the
661 currently displayed table so it should be placed below the document title. This
662 puts the table title in a similar position to where it is in Glom.
664 * mockups/details-contacts.html:
665 * mockups/details-projects.html:
666 * mockups/listview-contacts.html:
667 * mockups/listview-projects.html:
669 Update mockups to match how the interfaces currently look.
670 * src/main/webapp/style.css: Swap positions of backlink with the table
671 selector. Add some space on the left side of the table selector to
672 line things up with the document title.
674 2011-09-27 Ben Konrath <ben@bagu.org>
676 Add field colouring to details view.
678 This change re-works how field colouring works. The colour formatting
679 information is now set to the client with the layout information instead of
680 with the data. This eliminates the need to send the same colour strings for
681 data in list view column when colour information is set.
683 In order to set an alternate colour for negative numeric values, the
684 number is now sent to client and formatted with the GWT NumberFormat class.
686 This change also fixes:
688 https://bugzilla.gnome.org/show_bug.cgi?id=659752
690 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
691 internationalization framework which is needed for client side numeric
693 * src/main/java/org/glom/web/client/Utils.java: New file for some
694 client static utility methods.
695 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
696 the DataItem object to the Field class. Use a utility method to
697 create the foreignKeyValue string.
698 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
699 alignment and text colours in the constructor. Add setData(DataItem)
700 method. Remove setText(String) method.
701 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
702 colour information to GlomTextCell. Create and use GlomNumberCell for
703 rendering numbers. Use utility method to get the string for the
704 primary key of the key provider. Re-work how the horizontal alignment
706 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
707 formatting to layout information. Methods for converting the libglom
708 formatting information were moved from DBAccess.
709 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
710 numeric formatting (it's now done on the client side). Don't set text
711 colours in DataItem. Move libglom formatting conversion methods to
713 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
714 getters/setters for text colour information.
715 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
716 for transferring the libglom NumericFormat information to the client.
717 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
718 and getters/setters for: GlomNumericFormat, background colour and
719 foreground colour strings.
721 2011-09-26 Ben Konrath <ben@bagu.org>
723 Simplify code that iterates through the LayoutGroup.
725 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
727 2011-09-26 Ben Konrath <ben@bagu.org>
729 Accept Eclipse formatting for OnlineGlomServiceAsync.
731 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
733 2011-09-26 Ben Konrath <ben@bagu.org>
735 Don't use the ListDBAccess classes to get the primary key layout information.
737 This was causing a bug where the wrong index for the hidden primary key
738 was being sent to the client.
740 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
741 primary key while creating the LayoutGroup DTO. Create a
742 LayoutItemField DTO for hidden primary keys. Don't use the
743 RelatedListDBAccess because it was only used for getting the primary
745 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
746 access modifier from public to protected for getPrimaryKeyField() and
747 getPrimaryKeyLayoutItemField().
748 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
749 abstract method getExpectedResultSize() because RelatedListDBAccess
750 doesn't have enough info to implement it.
751 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
752 Remove @Override for getExpectedResultSize().
753 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
754 Remove method getExpectedResultSize().
756 2011-09-23 Ben Konrath <ben@bagu.org>
758 Log which layout (list or details) the ignored item is from.
760 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
762 2011-09-23 Ben Konrath <ben@bagu.org>
764 Remove annotations that turn off code formatting in DataItem.
766 * src/main/java/org/glom/web/shared/DataItem.java:
768 2011-09-23 Ben Konrath <ben@bagu.org>
770 Rename GlomField to DataItem and update associated methods.
772 This is a rename-only refactor. No functionality has been added or
775 * src/main/java/org/glom/web/client/OnlineGlomService.java:
776 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
777 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
778 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
779 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
780 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
781 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
782 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
783 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
784 * src/main/java/org/glom/web/server/database/DBAccess.java:
785 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
786 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
787 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
788 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
789 * src/main/java/org/glom/web/shared/DataItem.java:
790 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
791 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
793 2011-09-23 Ben Konrath <ben@bagu.org>
795 Rename GlomDocument to DocumentInfo and update associated methods.
797 This is a rename-only refactor. No functionality has been added or
800 * src/main/java/org/glom/web/client/OnlineGlomService.java:
801 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
802 * src/main/java/org/glom/web/client/activity/ListActivity.java:
803 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
804 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
806 * src/main/java/org/glom/web/shared/DocumentInfo.java:
808 2011-09-20 Ben Konrath <ben@bagu.org>
810 Require java-libglom 1.17.3.
812 This picks up the fix for the seg fault problem with the Scenes table
813 in the Openismus Film Manager example.
817 2011-09-20 Ben Konrath <ben@bagu.org>
819 Change the way sort clause is added for primary key when no sort clause is requested.
821 The primary key is now added to the LayoutFieldVector (fieldsToGet)
822 before the sort clause is created. When a sort clause is not requested, the
823 sort clause is created by finding the primary key in the LayoutFieldVector
826 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
828 2011-09-20 Ben Konrath <ben@bagu.org>
830 Log error message if no documents are found in the configured directory.
832 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
833 Extract the glom file extension string to a private static final class
834 variable (mostly as syntactic sugar). Accept a minor formatting change.
835 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
836 the example glom.document.directory configuration property to make it
837 more clear that it can any directory, not just the home directory.
839 2011-09-18 Ben Konrath <ben@bagu.org>
841 Add related lists to details view.
843 The related list table has support for paging and sorting just like the
844 table in the list view.
846 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
847 SQL queries for the related list tables.
848 * src/main/java/org/glom/web/client/OnlineGlomService.java:
849 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
851 Rename getList methods to getListView and add comments. Remove
852 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
853 it being unused. Add methods: getDetailsLayoutAndData(),
854 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
855 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
856 Create the layout and set the data for the fields in one async call
857 instead of two. Create related lists where appropriate.
858 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
859 for method name changes in OnlineGlomService.
860 * src/main/java/org/glom/web/client/ui/DetailsView.java:
861 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
862 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
864 * src/main/java/org/glom/web/client/ui/ListView.java:
865 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
866 tableName from setCellTable(). Create a ListViewTable instead of
868 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
869 represent a data field in the details view.
870 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
871 from addDetailsCell() to Field class. Keep track of the Fields and
872 Portals in the details view.
873 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
874 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
875 and add a method to get it. Add method to set the contents of the
877 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
878 New class for related list tables. This class has the data provider
879 for the related list table.
880 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
881 abstract class which is the base class for the ListViewTable and the
883 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
884 New class for list view tables. This class has the data provider for
886 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
887 methods for related list tables. Add more information to the
888 LayoutItemField and LayoutItemPortal DTOs.
889 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
890 Remove debugging print statement.
891 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
892 Remove debugging print statements. Add primary key field to SQL count
894 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
895 Remove unnecessary LayoutFieldVector parameter from
896 getResultSizeOfSQLQuery() method.
897 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
898 New class for related list table database access.
899 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
900 class that is a wrapper DTO for details view layout and data.
901 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
902 new 'fromField' string to this DTO.
903 * src/main/webapp/style.css: Remove bottom margin and override top
906 2011-09-15 Ben Konrath <ben@bagu.org>
908 Breakup the OnlineGlomServiceImpl class to make it more manageable.
910 This sets things up to make it easier to add the data retrieval for
911 related lists (portals). No user noticeable changes were made with
914 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
915 class has the code to retrieve the layouts and access the
916 database using the new database helper classes.
917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
918 Most of the functionality has been removed from this class. This
919 class now represents the public interface for the client side
920 code. It also deals with configuring the servlet and cleaning
921 things up when the servlet is stopped.
922 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
923 of static methods into this utility class.
924 * src/main/java/org/glom/web/server/database/DBAccess.java:
925 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
926 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
927 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
928 These classes have the database retrieval code. The class hierarchy
929 has been setup to make it easy to reuse code for similar
932 2011-09-06 Ben Konrath <ben@bagu.org>
934 Create separate classes for list table code and the data provider.
936 As part of this refactor, I also split up the code a bit to make it
939 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
940 table code to two new classes (below).
941 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
942 with code from ListViewImpl.
943 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
944 New file with code from ListViewImpl.
946 2011-09-06 Ben Konrath <ben@bagu.org>
948 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
950 This fixes the LayoutItemPortal DTO to match the libglom layout object
953 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
955 2011-09-01 Ben Konrath <ben@bagu.org>
957 Set title of Portals in the Details View.
959 * pom.xml: Bump required version of java-libglom to 1.17.1.
960 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
961 widget creation to its own class. Add comments to constructor.
962 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
963 The code is mostly from the Group class with the title now set.
964 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
965 title of Portal. Update some comments. Fix some code formatting.
967 2011-09-01 Ben Konrath <ben@bagu.org>
969 Remove TODO comment for the flow table column width.
971 The flow table column width is working correctly and doesn't need to be
972 changed. See this mailing list post for more info:
974 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
976 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
978 2011-08-27 Ben Konrath <ben@bagu.org>
980 Add document title (database name) to top of the browser page.
982 I added the document title to the TableSelecitonView but that will
983 change if / when we add a view that doesn't require table selection.
985 * mockups/details-contacts.html:
986 * mockups/details-projects.html:
987 * mockups/listview-contacts.html:
988 * mockups/listview-projects.html:
989 * mockups/style.css: Add document title to mockups to keep things
991 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
992 sizes to account for the document title.
993 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
994 Set the document title when it has been retrieved from the server.
995 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
996 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
997 and implement setDocumentTitle(String) method.
998 * src/main/webapp/style.css: Add ID for document title style.
1000 2011-08-25 Ben Konrath <ben@bagu.org>
1002 Add NavigationType enum to LayoutItemPortal DTO.
1004 This is the start of adding support for Portals to the Details View.
1006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1007 LayoutItem_Portal.navigation_type enum from libglom to
1008 LayoutItemPortal.NavigationType enum.
1009 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1010 NavigationType enum, field for storing the NavigationType and getter
1013 2011-08-25 Ben Konrath <ben@bagu.org>
1015 Implement the flow table layout in the Details View.
1017 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1018 FlowTable to Group to account for the renamed class.
1019 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1020 File. This is a container widget that implements the Glom details view
1021 flow table behaviour.
1022 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1023 org/glom/web/client/ui/FlowTable.java.
1024 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1025 so that the size of the subgroups are a closer match to the size of
1026 the Glom subgroups. This makes the flowtable layout match the layout
1027 in Glom for the Music Collection example file.
1029 2011-08-16 Ben Konrath <ben@bagu.org>
1031 Create container element for LayoutItemPortal in Details View.
1033 This will help me develop the layout for the FlowTable.
1035 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1036 fieldPanel variable to detailsCell.
1038 2011-08-15 Ben Konrath <ben@bagu.org>
1040 Set the height of the data element in the Details View.
1042 I changed the InlineLabels (text in a span element) to Labels (text in
1043 a div element) so that I could set the height of the details-data
1044 elements instead of the details-cell parent elements. This allows the
1045 the details-data element to display the correct height if style is
1046 applied that shows the height.
1048 This change has the added benefit of allowing the order of the labels
1049 and data elements to be changed for right-to-left languages.
1051 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1052 InlineLabels to Labels.
1053 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1054 InlineLabels to Labels. Set the height of the data element.
1055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1056 multiline text height in the Formatting DTO.
1057 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1058 for multiline height along with getter and setter methods.
1059 * src/main/webapp/style.css: Adjust style to account for the change
1060 from span elements to div elements in the details cell.
1062 2011-08-15 Ben Konrath <ben@bagu.org>
1064 Make the List View appearance match the mockups.
1066 It doesn't match exactly but it's much better than it was.
1068 * mockups/listview-contacts.html: Remove unused css classes.
1069 * mockups/listview-projects.html: Remove unused css classes.
1070 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1071 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1072 for mainPanel instead of VerticalPanel (table). Set style name on
1073 CellTable. Set style name on Details column. Right-align Details
1075 * src/main/webapp/style.css: Adjust properties to match the mockups.
1077 2011-08-12 Ben Konrath <ben@bagu.org>
1079 Add better support for subgroups in the details view.
1081 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1082 changed FlowTable constructor.
1083 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1084 support for subgroups and subgroup-titles.
1085 * src/main/webapp/style.css: Add CSS class for subgroups and
1088 2011-08-12 Ben Konrath <ben@bagu.org>
1090 Return the top level LayoutGroup title.
1092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1094 2011-08-11 Ben Konrath <ben@bagu.org>
1096 Make the TableSelector header match the mockup.
1098 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1099 the layout panel. Properly lineup the table selection header with
1100 the list and details view.
1101 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1102 margin around the details view.
1103 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1104 Rename listBox variable to tableSelector. Set id for the style sheet.
1105 Use a FlowPanel instead of a HorizontalPanel.
1106 * src/main/webapp/style.css: Add properties to make the TableSelector
1107 box match the mockups.
1109 2011-07-13 Ben Konrath <ben@bagu.org>
1111 Update install script for java-libglom version change.
1113 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1116 2011-07-13 Ben Konrath <ben@bagu.org>
1118 Add support sub-group in the details view.
1120 I also removed the code that special-cased the default details view
1123 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1125 I still have to make a proper flowtable.
1127 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1128 Don't special-case default details view layout.
1129 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1130 addLayoutField() as I'm going to use it.
1131 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1132 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1134 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1135 extracted from DetailsViewImpl.GroupPanel. Add support for
1137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1138 column count when getting the details layout.
1140 2011-07-12 Ben Konrath <ben@bagu.org>
1142 Set browser title with database and table titles.
1144 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1145 Set the browser title when the table changes and when the activity
1147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1148 title when retrieving document info (the GlomDocument object).
1149 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1150 with getter and setter methods. Remove unused convenience constructor.
1151 Use default code formatting.
1153 2011-07-12 Ben Konrath <ben@bagu.org>
1155 Ignore LayoutItemPortals in the details view.
1157 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1160 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1161 LayoutItemPortal layout objects.
1162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1163 LayoutItemPortal objects when retrieving the details layout.
1164 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1165 file. This is an empty class and just used to get type information for
1168 2011-07-12 Ben Konrath <ben@bagu.org>
1170 Use java-libglom 1.17.0.
1174 2011-07-11 Ben Konrath <ben@bagu.org>
1176 Remove "Table:" label from table selector.
1178 This matches a recent change in the Glom UI.
1180 * mockups/details-contacts.html:
1181 * mockups/details-projects.html:
1182 * mockups/listview-contacts.html:
1183 * mockups/listview-projects.html: Remove the "Table:" label from the
1185 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1187 2011-07-11 Ben Konrath <ben@bagu.org>
1189 Add main groups to the details view.
1191 This makes things look a little nicer in the details view. The next step
1192 is to implement the flowtable.
1194 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1195 resources from the standard gwt css theme. Standard.css is now
1196 included in OnlineGlom.html so that the online glom css rules have
1197 precedence over the gwt theme.
1198 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1199 the whole LayoutGroup to the DetailsView instead of just the titles.
1200 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1201 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1202 details layout with a helper class (GroupPanel). I might extract this
1203 class when I make the full flowtable.
1204 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1205 string as default so I don't have to worry about NPEs when processing
1207 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1208 note beside OnlineGlom.gwt.xml above).
1209 * src/main/webapp/style.css: Add default font-size to body to override
1210 the font-size set by the standard theme. Don't use h2 tags for
1211 group-title. Create new details-cell class.
1213 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1215 ConfiguredDocument: Set the port number too.
1217 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1218 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1219 Glom document. Presumably this worked sometimes so far because there is a
1220 default port number.
1222 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1224 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1226 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1227 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1228 correct, though we should throw an exception too.
1230 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1232 Fix a addDocuemnt typo.
1234 * src/main/java/org/glom/web/shared/Documents.java
1235 (Documents.addDocuemnt): Rename to addDocument().
1236 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1237 (OnlineGlomServiceImpl.getDocuments): Adapt.
1239 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1241 Slightly improved log output when connection fails.
1243 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1244 (ConfiguredDocument.setUsernameAndPassword):
1245 We don't know for sure if it' the username/password that's wrong, so
1246 rephrase the message.
1247 Also ouput the exception message, though it's generic in this case.
1249 2011-07-08 Ben Konrath <ben@bagu.org>
1253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1254 added braces to a one line if statement because the Eclipse formatter
1255 was getting confused.
1257 2011-07-07 Ben Konrath <ben@bagu.org>
1259 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1261 These should really be two separate tasks but I counldn't get things to
1262 work with GWT 2.2.0 and Eclipse 3.7.
1266 * .settings/org.eclipse.jdt.core.prefs:
1267 * .settings/org.eclipse.jdt.ui.prefs:
1268 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1269 * .settings/org.eclipse.m2e.core.prefs:
1270 Add new config files. Update current files. Remove references to the
1271 webtools plugins as we're not using any of the webtools features.
1272 * .gitignore: Add logs directory which is created when running with
1274 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1275 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1276 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1278 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1280 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1282 onlineglom.properties: Add explanatory comments.
1284 * src/main/resources/onlineglom.properties: Also change the default user
1285 from ben to someuser, to avoid the risk of people thinking we just
1286 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1288 2011-06-28 Ben Konrath <ben@bagu.org>
1290 Use filename in Log for incorrect passwords.
1292 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1293 getFileName(String) method to get the filename from the URI.
1295 2011-06-28 Ben Konrath <ben@bagu.org>
1297 Add the table name to the URL token for the ListPlace.
1299 This makes things consistent between the DetailsPlace and the
1300 ListPlace. It also allows the the ListPlace to be bookmarked.
1302 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1303 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1304 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1305 Remove getDefaultListLayout(). The default layout is now returned
1306 by the getListLayout() method when the table name is an empty string.
1307 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1308 Add table name field. Change to a new ListPlace when the table
1309 has been changed. Use getListLayout() for getting the default
1311 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1312 Add table name field. Set the correct table name in the list box
1313 when loading from bookmark. This corrects a problem for the
1315 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1316 Move table name to super-class (HasSelectableTable). Move document
1317 and table URL keys to super-class in HasSelectableTable.
1318 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1319 Add table name field. Add Tokenizer class with URL key common to
1320 the subclasses (DetailsPlace and ListPlace).
1321 * src/main/java/org/glom/web/client/place/ListPlace.java:
1322 Add table name. Add code to parse the URL token.
1323 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1324 Update ListPlace construction with empty table name string.
1325 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1326 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1327 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1328 Update ListPlace construction with table name string.
1329 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1330 Change defaultTableName field to tableName to reflect how it's now
1331 used. Update the getter and setter methods.
1333 2011-06-28 Ben Konrath <ben@bagu.org>
1335 Enable the table selector in the DetailsView.
1337 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1338 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1339 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1340 Remove getDefaultDetailsLayout(). The default layout is now returned
1341 by the getDetailsLayout() method when the table name is an empty
1343 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1344 event handler for table change event. Change to using
1345 getDetailsLayout() for the default details layout.
1346 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1348 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1349 when navigating to the details place.
1351 2011-06-27 Ben Konrath <ben@bagu.org>
1353 Use filename based unique document ID in URL and for RPC.
1355 The document ID is the glom document name with spaces (' ') replaced
1356 with pluses ('+') and without the .glom extension.
1358 This change is mostly a string substitution of 'documentTitle' for
1359 'documentID'. The only code change is the addition of a Documents DTO to get the
1360 filename to document title mappings as indicated below.
1362 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1363 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1364 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1365 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1366 Use Documents DTO to create the document links in the document
1368 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1369 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1370 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1371 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1372 * src/main/java/org/glom/web/client/place/ListPlace.java:
1373 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1374 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1375 * src/main/java/org/glom/web/client/ui/ListView.java:
1376 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1377 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1378 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1379 * src/main/java/org/glom/web/server/Log.java:
1380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1381 getDocumentTitles() to getDocuments() and return the Documents DTO.
1382 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1383 transferring the filename to document title mappings.
1385 2011-06-25 Ben Konrath <ben@bagu.org>
1387 Make the authentication popup work again.
1389 This bug was introduced when I extracted ConfiguredDocument to its own class.
1391 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1392 correct success / fail status in setUsernameAndPassword().
1394 2011-06-25 Ben Konrath <ben@bagu.org>
1396 Use filename as unique key for configuring database usernames and passwords.
1398 This replaces the use of the Glom document title which could change
1399 depending on the locale. Thanks to Murray Cumming for pointing out this
1402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1403 * src/main/resources/onlineglom.properties:
1405 2011-06-24 Ben Konrath <ben@bagu.org>
1407 Pass primary key value to DetailsView.
1409 This enables the DetailsView to load the correct data.
1411 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1412 primary key value field and set in constructor. Pass primary key
1413 value to getDetailsData().
1414 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1415 variables for document title and primary key value.
1416 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1417 key value to the DetailsPlace.
1419 2011-06-24 Ben Konrath <ben@bagu.org>
1421 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1423 This allows the primary key to be retrieved by the Details button. This
1424 functionality has not been implemented yet but it's in the works.
1426 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1427 the LayoutGroup result to ListView.setCellTable instead of all of its
1428 fields individually.
1429 * src/main/java/org/glom/web/client/ui/ListView.java:
1430 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1431 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1432 get the primary key for the table.
1433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1434 index of the primary key in the LayoutGroup accounting for hidden
1435 primary keys. Rename getJavaNumberFormat() to
1436 convertToJavaNumberFormat() for consistency. Cleanup / add some
1438 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1439 field for primary key index and a field to indicate whether the
1440 primary key is hidden or not.
1442 2011-06-23 Ben Konrath <ben@bagu.org>
1444 Rename getTableData methods to getListData.
1446 This is a rename refactor for consistency with other methods.
1448 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1449 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1450 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1451 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1453 2011-06-23 Ben Konrath <ben@bagu.org>
1455 Extract the ConfiguredDocument innerclass into its own class.
1457 This makes the servlet code more object oriented.
1459 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1460 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1461 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1462 new ConfiguredDocument class.
1464 2011-06-21 Ben Konrath <ben@bagu.org>
1466 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1468 This makes things more inline with how libglom works and reduces code
1469 duplication. This refactor lays the groundwork for adding the primary key to
1470 the LayoutGroup object.
1472 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1473 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1474 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1475 Change method names to getListLayout and getDefaultListLayout for
1476 consistency. Use LayoutGroup as the DTO for the list layout instead of
1477 ColumnInfo and LayoutListTable.
1478 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1479 new method names along with the LayoutGroup object for transferring the
1481 * src/main/java/org/glom/web/client/ui/ListView.java:
1482 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1483 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1484 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1486 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1487 Replaced with LayoutGroup.
1488 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1489 expectedResultSize and defaultTableName fields which are needed for
1491 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1492 type field which is needed for the list layout but will also be
1493 useful for the details layout as things progress.
1494 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1495 Make class abstract. Remove the unnecessary
1496 getFormattingHorizontalAlignment method. Add setFormatting method.
1498 2011-06-16 Ben Konrath <ben@bagu.org>
1500 Add scripts for building and installing war.
1502 These will help when updating OnlineGlom but they're also good
1503 supplemental documentation of the build and deployment proceeding.
1505 * utils/build-onlineglom-war.sh: New file.
1506 * utils/install-onlineglom-war.sh: New file.
1508 2011-06-16 Ben Konrath <ben@bagu.org>
1510 Create wrapper class to create consistent log messages.
1512 I wrapped methods in the Log class of gwt-log to add the method names
1513 from the servlet and create consistent formatting of the document title
1514 and table names in the log messages.
1516 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1518 log methods to use methods from wrapped Log class.
1520 2011-06-16 Ben Konrath <ben@bagu.org>
1522 Remove superfluous conditional return.
1524 Thanks to Murray Cumming for pointing this out!
1526 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1528 2011-06-15 Ben Konrath <ben@bagu.org>
1530 Return an ArrayList of LayoutGroups for the Details layout.
1532 This corrects a problem with the details layout as it can have more
1533 than one top level LayoutGroup.
1535 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1536 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1537 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1538 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1539 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1540 with ArrayList of LayoutGroups for the details view layout.
1541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1542 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1543 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1544 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1545 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1546 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1548 2011-06-14 Ben Konrath <ben@bagu.org>
1550 Use cast_dynamic method to determine the libglom LayoutItem type.
1552 This is better than finding the LayoutItem type by using the string
1553 returned from the get_part_type_name() method.
1555 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1557 2011-06-14 Ben Konrath <ben@bagu.org>
1559 Add method names to log entries in the servlet.
1561 This helps when tracking down deployment problems.
1563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1565 2011-06-14 Ben Konrath <ben@bagu.org>
1567 Add data to the DetailsView using a hard-coded primary key value.
1569 The layout and functionality of the DetailsView is not complete. This
1570 is just a checkpoint so the patch doesn't get too big.
1572 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1573 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1574 Add getDetailsData() servlet method.
1575 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1576 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1577 LayoutFields are added to the DetailsView.
1578 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1579 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1580 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1581 take the string for the title instead of the object.
1582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1583 Add implementation getDetailsData() along with some private helper
1585 * src/main/webapp/style.css: Add padding to details-data class. Add a
1586 details-label class with the same padding as the details-data class.
1588 2011-06-03 Ben Konrath <ben@bagu.org>
1590 Use presenter.goTo() to change to the DetailsPlace.
1592 This will make things easier when we need to open the DetailsView with
1593 data specific to the row that was clicked.
1595 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1597 2011-06-02 Ben Konrath <ben@bagu.org>
1599 Add CSS file from mockups.
1601 I'm adding this now because it's going to be useful to have when
1602 developing the DetailsView. The TableSelectionView and ListView aren't
1605 * src/main/webapp/OnlineGlom.html:
1606 * src/main/webapp/style.css:
1608 2011-06-02 Ben Konrath <ben@bagu.org>
1610 Use String.isEmpty() to check for empty string.
1612 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1614 2011-06-02 Ben Konrath <ben@bagu.org>
1616 Display main layout group titles in the DetailsView.
1618 This is the start of the DetailsActivity/DetailsView implementation.
1620 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1621 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1622 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1624 Get the layout information for the details view from the server and set
1625 the main layout group titles.
1626 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1627 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1628 Add addLayoutGroup() and addLayoutField() methods. This are just
1629 temporary methods for creating the the details view that will change
1631 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1632 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1634 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1635 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1636 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1637 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1638 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1639 Data Transfer Objects that mimic the libglom object structure. These are
1640 used for transferring the details layout but could also be used for
1641 transferring the list layout.
1643 2011-05-27 Ben Konrath <ben@bagu.org>
1645 Reset the AuthenticationPopup when clearing the ListView.
1647 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1649 2011-05-27 Ben Konrath <ben@bagu.org>
1651 Fix problem with onlineglom.properties file loading.
1653 The old way worked in Eclipse but not on the server. Loading the
1654 onlineglom.properties file now works in Eclipse and on the server.
1656 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1658 2011-05-24 Ben Konrath <ben@bagu.org>
1660 Update gwt-log from 3.1.0 to 3.1.2.
1662 Gwt-log 3.1.0 has been marked as depreciated.
1666 2011-05-24 Ben Konrath <ben@bagu.org>
1668 Add comment to ListActivity.goTo() method.
1670 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1672 2011-05-24 Ben Konrath <ben@bagu.org>
1674 Remove FIXME in convertGdkColorToHtmlColour()
1676 The Gdk::Color value returned by libglom is 16-bits per channel on both
1677 64 and 32-bit platforms.
1679 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1681 2011-05-19 Ben Konrath <ben@bagu.org>
1683 Improve performance of initial ListView load.
1685 I removed a round trip to the server for getting the default table name
1686 and then requesting information about that table. This also removes a potential
1687 problem with the table change handler not being setup in time to receive the
1688 table change event from the ListActivity.
1690 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1691 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1692 getDefaultLayoutListTable() method. Improve comments.
1693 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1694 getDefaultLayoutListTable() method instead of firing a table change
1695 event to get the table to load.
1696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1697 implementation of getDefaultLayoutListTable() method.
1698 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1701 2011-05-19 Ben Konrath <ben@bagu.org>
1703 Override toDebugString() in TableChangeEvent.
1705 This is useful to have for debugging.
1707 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1709 2011-05-19 Ben Konrath <ben@bagu.org>
1711 Add a "Back to List" link when at the DetailsPlace.
1713 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1714 Populate the CellTable based on the selected table of the ListBox if
1715 it's set otherwise use the default table. This allows the "Back to
1717 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1718 Remove Place from constructors. Add a setPlace() method. Add
1719 goToPlace() method. Set class as presenter for TableSelectionView.
1720 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1721 Use the same TableSelectionActivity when switching between the List and
1723 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1724 Subclass the new HasSelectableTablePlace. This removes some duplicate
1726 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1727 New class to represent Places that display the TableSelectionView.
1728 * src/main/java/org/glom/web/client/place/ListPlace.java:
1729 Subclass the new HasSelectableTablePlace. This removes some duplicate
1731 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1732 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1733 Add Presenter interface. Add setBackLinkVisible() method. Add
1734 setBackLink() method.
1736 2011-05-18 Ben Konrath <ben@bagu.org>
1738 Enable the "Details" buttons.
1740 Right now only an empty details view is displayed.
1742 * src/main/java/org/glom/web/client/ClientFactory.java:
1743 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1744 Add DetailsView to ClientFactory.
1745 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1746 A basic activity for the details view.
1747 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1748 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1750 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1751 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1753 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1754 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1755 unnecessary super() in constructor.
1756 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1757 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1758 really shouldn't create a new TableSelectionActivity for both the ListPlace
1759 and the DetailsPlace so this should be considered a temporary solution.
1760 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1761 New file. Represents a URL for the details view.
1762 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1763 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1764 A basic details view interface and implementation.
1765 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1766 Enable the "Details" buttons.
1768 2011-05-12 Ben Konrath <ben@bagu.org>
1770 Use a LayoutPanel with multiple display areas for main layout.
1772 This is mostly a refactor in that there are no changes from the user
1773 point of view. These changes are required so that we can swap out the list view
1774 with the details view when the user clicks the "Details" button.
1776 * src/main/java/org/glom/web/client/ClientFactory.java:
1777 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1778 OnlineGlomView. Add TableSelectionView, ListView and
1779 AuthenticationPopup.
1780 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1781 for main layout. Add display regions for main activities. Add
1782 activity manager for for main activities.
1783 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1784 file from parts of the deleted OnlineGlomActivity.
1785 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1786 New file from parts of the deleted OnlineGlomActivity.
1787 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1788 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1789 New files for app wide table change event.
1790 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1791 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1792 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1793 Activity mappers for the main activities replace the deleted app-wide
1795 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1796 Fix a spelling error in he comment.
1797 * src/main/java/org/glom/web/client/ui/ListView.java:
1798 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1799 Renamed from LayoutListView and modified for MVP. This still not a
1800 proper dumb view as prescribed by the MVP pattern but it works for now.
1801 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1802 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1803 New widget stripped out of the deleted OnlineGlomView.
1804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1805 Remove hack that is fixed by this patch.
1807 2011-05-06 Ben Konrath <ben@bagu.org>
1809 Rename OnlineGlomPlace to ListPlace.
1811 The only change besides the rename is that url will now display #list
1812 instead of #Document.
1814 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1815 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1816 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1817 * src/main/java/org/glom/web/client/place/ListPlace.java:
1818 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1820 2011-05-06 Ben Konrath <ben@bagu.org>
1822 Use Presenter for app navigation.
1824 This is the proper way to deal with Place (URL) changes with the MVP
1827 * src/main/java/org/glom/web/client/ClientFactory.java:
1828 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1829 PlaceHistoryMapper and PlaceHistoryHandler.
1830 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1831 PlaceHistoryMapper and PlaceHistoryHandler.
1832 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1833 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1834 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1835 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1836 Add Presenter interface and setPresenter methods. Rename addHyperLink
1837 to addDocumentLink taking only the document title as a parameter.
1839 2011-04-14 Ben Konrath <ben@bagu.org>
1841 Prompt for db username/password if they haven't been set.
1843 This is implemented with a popup widget that is contained within the
1844 OnlineGlomView and managed by the OnlineGlomActivity.
1846 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1847 methods for checking and setting the database username and password.
1848 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1849 new methods for checking and setting the database username and
1851 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1852 Display authentication popup if the JDBC connection to the database
1853 has not been authenticated.
1854 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1856 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1857 for dealing with the authentication popup.
1858 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1859 Implement the methods for dealing with the authentication popup.
1860 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1861 try to executed queries if the database connection hasn't been
1862 authenticated. Implement methods for checking and setting the
1863 database username and password.
1865 2011-04-12 Ben Konrath <ben@bagu.org>
1867 Make log messages a little clearer.
1869 Add a dash betweeen the document title and the table name.
1871 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1873 2011-04-12 Ben Konrath <ben@bagu.org>
1875 Protect against NPEs when cleaning up database resources.
1877 While this isn't strictly necessary because the exception is caught,
1878 not protecting against the NPEs makes it harder to find the real error
1881 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1883 2011-04-12 Ben Konrath <ben@bagu.org>
1885 Move configuration of the servlet to the constructor.
1887 The servlet will be initialized even if the database authentication
1888 information is not set or correct. I still need to add the UI for prompting
1889 the user for the authentication information when it's required.
1891 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1892 javadocs for getDocumentTitles() method.
1893 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1894 Set error message when RPC fails.
1895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1896 glom files directory from the configuration file. Try to set the
1897 database authentication information for the specific document if it's
1898 set and works otherwise try to use the global authentication
1899 information set for the directory.
1900 * src/main/resources/onlineglom.properties: Moved from
1901 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1902 Added detailed comments for the new keys.
1904 2011-04-11 Ben Konrath <ben@bagu.org>
1906 Remove unnecessary @Override in DocumentSelectionViewImpl.
1908 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1910 2011-04-11 Ben Konrath <ben@bagu.org>
1912 Remove center alignment in DocumentSelectionView.
1914 The title element is still centred but the document titles and bottom
1915 sentence are both left-aligned.
1917 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1919 2011-04-11 Ben Konrath <ben@bagu.org>
1921 Change 'Demo' naming convention to 'Document'.
1923 This is just a rename refactor with no functional changes to the code.
1925 * src/main/java/org/glom/web/client/ClientFactory.java:
1926 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1927 * src/main/java/org/glom/web/client/OnlineGlom.java:
1928 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1929 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1930 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1931 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1932 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1933 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1934 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1935 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1936 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1937 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1939 2011-04-08 Ben Konrath <ben@bagu.org>
1941 Remove FIXME from safeLongToInt() method.
1943 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1946 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1948 2011-04-08 Ben Konrath <ben@bagu.org>
1950 Display an error if no glom documents are found in the specified directory.
1952 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1953 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1954 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1957 2011-04-08 Ben Konrath <ben@bagu.org>
1959 Add copyright header to one more file ... oops.
1961 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1963 2011-04-08 Ben Konrath <ben@bagu.org>
1965 Add copyright header to files without it.
1967 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1968 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1969 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1970 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1971 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1972 * src/main/java/org/glom/web/shared/GlomField.java:
1974 2011-04-08 Ben Konrath <ben@bagu.org>
1976 Add support for accessing multiple glom documents in the servlet.
1978 This completes the demo selection functionality.
1980 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1981 document title to methods.
1982 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1983 document title to methods.
1984 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1985 Set browser window title when the activity starts. Correct name of
1986 document title variable.
1987 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1988 Set browser window title when the activity starts. Set the table
1989 selector change handler after table selector has been set. Clear the
1990 OnlineGlomView when the activity has been stopped.
1991 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1992 document title as the place token. Use "#Document:" instead of
1993 "#OnlineGlomPlace:" in the URL.
1994 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1995 Change heading to "Online Glom"
1996 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1997 document title in RPC methods.
1998 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1999 setDocumentTitle() method. Add clear() method.
2000 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2001 setDocumentTitle() method. Implement clear() method which removes the
2002 change handler on the ListBox, clears the ListBox and clears the
2004 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2005 Implement methods with document title. Keep track for the configured
2006 glom documents and their corresponding JDBC configurations in a hash
2007 table. This information is retrieved using the document title as the
2008 key in the hash table.
2009 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2010 document title field as it's no longer needed.
2012 2011-04-08 Ben Konrath <ben@bagu.org>
2014 Update the Eclipse JDT configuration.
2016 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2017 methods. Automatically add the copyright header to new files.
2019 2011-04-05 Ben Konrath <ben@bagu.org>
2021 Add new page for demo selection.
2023 This patch adds all the components required to view and start an
2024 OnlineGlom demo by clicking on the desired hyperlink. The user is
2025 able to return to the demo selection page with the browser's back
2026 button. I still need to modify the servlet to work with multiple
2027 documents so all demo links will load the file defined in the
2028 OnlineGlom.properties.
2030 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2031 This is only useful during development so we don't need to save it.
2032 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2033 get a reference to the DemoSelectionView.
2034 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2035 method to get a reference to the DemoSelectionView.
2036 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2037 default view to DemoSelectionView.
2038 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2039 to get glom document titles for glom files in a hard-coded directory.
2040 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2041 method to get glom document titles for glom files in a hard-coded
2043 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2044 Presenter for DemoSelectionView.
2045 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2046 for DemoSelectionView.
2047 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2048 Update for DemoSelectionView.
2049 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2050 Basic 'Place' implementation for the DemoSelectionView.
2051 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2052 The interface for the DemoSelectionView.
2053 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2054 The implementation of the DemoSelectionView.
2055 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2056 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2057 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2058 implementation of method to get glom document titles for glom files
2059 in a hard-coded directory.
2060 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2061 on longer being used.
2062 * src/main/webapp/glom.png: Glom logo.
2064 2011-04-05 Ben Konrath <ben@bagu.org>
2066 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2068 This is the forth and final commit of a refactor that will allow
2069 OnlineGlom to be used with multiple documents.
2071 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2072 Move RPC code from OnlineGlomViewImpl to this class.
2073 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2075 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2076 RPC code to the presenter class (the P in MVP).
2078 2011-04-04 Ben Konrath <ben@bagu.org>
2080 Start moving the existing OnlineGlom code to MVP.
2082 This work is based on the GWT MVP framework that is documented here:
2084 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2086 This is the third commit of a refactor that will allow OnlineGlom to
2087 be used with multiple documents.
2089 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2090 Interface for client factory which is used to get instances of various
2091 classes throughout the app.
2092 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2093 Implementation of client factory.
2094 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2095 initialize the MVP framework.
2096 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2097 New file. Activity manager for the main container widget. This is the
2099 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2100 Maps place (URL) to its corresponding activity.
2101 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2102 New file. This is just a place holder for a generated file.
2103 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2104 New file. Represents the URL for the main Online Glom app.
2105 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2106 for changes in LayoutListViewImpl.
2107 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2108 interface for View. Move code to OnlineGlomViewImpl class.
2109 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2110 file. Implementation of OnlineGlomView.
2111 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2112 Place resources. Use ClientFactoryImpl by default.
2114 2011-04-04 Ben Konrath <ben@bagu.org>
2116 Move View classes to their own package.
2118 This is the second commit of a refactor that will allow OnlineGlom to
2119 be used with multiple documents.
2121 * src/main/java/org/glom/web/client/OnlineGlom.java:
2122 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2123 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2125 2011-04-02 Ben Konrath <ben@bagu.org>
2127 Move UI code from the main module to its own class.
2129 This is the first commit of a refactor that will allow OnlineGlom to be
2130 used with multiple documents.
2132 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2133 references to OnlineGlom to OnlineGlomView.
2134 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2135 OnlineGlomView and instantiate it here.
2136 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2137 represents the main OnlineGlomView with one document.
2139 2011-04-01 Ben Konrath <ben@bagu.org>
2141 Fix formatting of gwt.xml and add DTD.
2143 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2145 2011-03-30 Ben Konrath <ben@bagu.org>
2147 Propperly convert gdkColor string to html colour string.
2149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2151 2011-03-28 Ben Konrath <ben@bagu.org>
2153 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2155 This implementation matches
2156 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2157 readable and is not tied to Swig.
2159 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2161 2011-03-28 Ben Konrath <ben@bagu.org>
2163 Use read-only checkboxes for boolean field types.
2165 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2166 in the CellTable based on the field type. It currently only
2167 distinguishes between boolean and text columns but I'll need to add
2168 support for more types.
2169 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2170 column type in the ColumnInfo object. Add method to convert between the
2171 glom field type enum in ColumnInfo and the glom field type in libglom.
2172 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2174 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2175 getting and setting booleans.
2177 2011-03-25 Ben Konrath <ben@bagu.org>
2179 Don't get the Date twice from the ResultSet.
2181 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2183 2011-03-25 Ben Konrath <ben@bagu.org>
2185 Cleanup code in the servlet.
2187 * TODO: Remove item about row count. Add item about testing row count
2188 query with large number of rows.
2189 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2190 spelling mistakes, change method parameter to be consistent with
2193 2011-03-25 Ben Konrath <ben@bagu.org>
2195 Add server side logging with the gwt-log library.
2197 * .gitignore: Ignore the log file we're now producing.
2198 * TODO: Add a couple TODO item for logging.
2199 * pom.xml: Add gwt-log and log4j as a dependency.
2200 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2201 logging of errors, warnings and some important info.
2202 * src/main/resources/log4j.properties: New file to configure log4j.
2204 2011-03-24 Ben Konrath <ben@bagu.org>
2206 Add a disable button for the Details view.
2208 * src/main/java/org/glom/web/client/LayoutListView.java:
2210 2011-03-22 Ben Konrath <ben@bagu.org>
2212 Use a count query to get the number of rows for the list view pager.
2214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2216 2011-03-22 Ben Konrath <ben@bagu.org>
2218 Add more TODO information about CellTable pager positioning.
2222 2011-03-19 Ben Konrath <ben@bagu.org>
2224 Add TODO item about CellTable pager positioning.
2228 2011-03-18 Ben Konrath <ben@bagu.org>
2230 Remove unneeded GlomFieldColumn class.
2232 This is just a small code cleanup.
2234 * src/main/java/org/glom/web/client/LayoutListView.java:
2236 2011-03-18 Ben Konrath <ben@bagu.org>
2238 Use cursor mode in the query that gets data for the list view.
2240 I still need to fix the potential memory problem when getting the row
2241 count for the list view.
2243 * TODO: Add note about testing memory usage with large data sets. Add
2244 item about fixing row counting with large data sets.
2245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2246 PostgreSQL JDBC driver into cursor mode when getting data for the
2249 2011-03-15 Ben Konrath <ben@bagu.org>
2251 Remove the GWT Container from the Eclipse build classpath.
2253 The GWT dependencies are set by Maven so this isn't needed.
2257 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2259 Added some earlier mockups to git, but not to the tarball dist.
2261 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2262 Openismus. These hopefully show how we might structure the HTML so that
2263 it can be styled easily with CSS. However, we probably need to adapt them
2264 for the CSS structure that GWT dictates for common widgets.
2266 2011-03-14 Ben Konrath <ben@bagu.org>
2268 Locate OnlineGlom.properties using the ServletContext.
2270 This is required to be able to locate the file in the deployed servlet.
2272 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2273 Configure the database and glom document in in a helper method so
2274 that the ServletContext can be used to locate OnlineGlom.properties.
2275 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2276 src/main/webapp. This is the proper location for .properites files.
2278 2011-03-12 Ben Konrath <ben@bagu.org>
2280 Add note to README about why we're compiling down to obfuscated JavaScript.
2284 2011-03-11 Ben Konrath <ben@bagu.org>
2286 Use properties file to configure servlet.
2288 This allows people to change the glom file path, db username and db
2289 password without recompiling the code.
2291 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2292 * src/main/webapp/OnlineGlom.properties:
2294 2011-03-11 Ben Konrath <ben@bagu.org>
2296 Use table fields in layout list view if the layout list is not defined.
2298 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2299 Manually create a LayoutFieldVector for the query builder using the
2300 table fields when a layout list is not defined in the glom file.
2302 2011-03-11 Ben Konrath <ben@bagu.org>
2304 Only show FIXME string for images when there's an image.
2306 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2307 in this change are some small code cleanups.
2309 2011-03-11 Ben Konrath <ben@bagu.org>
2311 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2313 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2315 2011-03-11 Ben Konrath <ben@bagu.org>
2317 Correctly set the index of the default table.
2319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2320 Correctly set the index of the default table. Add commented out example
2323 2011-03-10 Ben Konrath <ben@bagu.org>
2325 Add comment to pom.xml about the previous change.
2327 * pom.xml: Add comment about the deployment issue so that it's obvious
2328 why java-libglom is set to the provided scope.
2330 2011-03-10 Ben Konrath <ben@bagu.org>
2332 Change java-libglom dependency from compile to provided in pom.xml.
2334 Since java-libglom uses jni it can only be loaded once and therefore
2335 must be placed in $CATALINA_HOME/lib and not included in each war.
2336 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2337 More information about this issue can be found in the Tomcat 6 release
2338 notes in the "JNI Based Applications" section:
2340 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2342 * README: Remove note about this issue. Deployment info should really
2343 be on the wiki anyway so I'll add it right now.
2344 * pom.xml: Change java-libglom dependency from compile to provided so
2345 that it's copied in to the packaged war.
2347 2011-03-09 Ben Konrath <ben@bagu.org>
2349 Change to using a neutral locale for currency, date and time formatting.
2351 This solves the problem of currency values being represented without a
2352 space between the currency code and the number (e.g. "EUR5.89" is now
2353 represented as "EUR 5.89"). More work is required when we implement
2354 a locale preference setting.
2356 * TODO: Add note about currency formatting issues with different
2358 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2359 to using the neutral ROOT locale.
2361 2011-03-09 Ben Konrath <ben@bagu.org>
2363 Add support for currency codes that are not ISO 4217 codes.
2365 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2366 the currency code defined in the glom file when it's not 3 characters
2367 long or when Java doesn't recognize the string as an ISO 4217 code.
2369 2011-03-08 Ben Konrath <ben@bagu.org>
2371 Remove test classes, launch configurations and configuration.
2373 The test stuff was getting in the way when creating the war. To make
2374 the war file you can now do 'mvn clean package'. The packaged war file
2375 will be in the target directory.
2377 * .classpath: Remove unused classpathentry for tests and i18n.
2378 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2379 property. Don't run test or i18n goals when packaging the war.
2380 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2385 * OnlineGlomTest-dev.launch:
2386 * OnlineGlomTest-prod.launch:
2387 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2388 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2390 2011-03-07 Ben Konrath <ben@bagu.org>
2392 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2394 These fixes allow me to use 'mvn deploy' to create the war file.
2396 * .classpath: This generated config has been updated by Eclipse. This
2397 change was probably triggered by me updating from Eclipse 3.6.1 to
2399 * .gitignore: Add entry to ignore the directory
2400 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2401 * .project: The generated config has been updated by Eclipse. This
2402 change was probably triggered by me updating from Eclipse 3.6.1 to
2404 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2405 so that Eclipse doesn't complain
2406 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2407 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2408 'tests' directory to 'client' directory. This is the new
2409 gwt-maven-plugin convension.
2410 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2411 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2413 2011-03-07 Ben Konrath <ben@bagu.org>
2415 Add support for horizontal alignment in the LayoutList columns.
2417 * TODO: Remove item about horizontal alignment. Add item about
2418 improvements to ColumnInfo.
2419 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2420 alignment on the columns. Use ColumnInfo RPC object get the column
2421 title and horizontal alignment.
2422 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2423 LayoutListView creation with ColumnInfo RPC object.
2424 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2425 a ColumnInfo object for every LayoutList columnn. Convert the
2426 FieldFormatting.HorizontalAlignment to the correct
2427 ColumnnInfo.HorizontatlAlignment with the new
2428 getColumnInfoHorizontalAlignment helper method.
2429 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2430 to encapsulate column information like alignment and title. This
2431 could be used to set the colour instead of on a per cell field basis.
2432 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2433 column title storage and retrieval with ColumnInfo.
2435 2011-03-04 Ben Konrath <ben@bagu.org>
2437 Add support for column sorting.
2439 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2440 AsynDataProvider to be an anonymous inner class. Use new
2441 getSortedTableData RPC method when column sort is requested. Set all
2442 columns sortable and add an AsyncHandler to activate sorting in the
2444 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2445 method getSortedTableData(). Cleanup other method signatures.
2446 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2447 new method getSortedTableData(). Cleanup other method signatures.
2448 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2449 Implement getSortedTableData() and getTableData() methods by using a
2450 private helper method with the appropriate parameters filled in. Use
2451 user supplied sort clause when supplied, otherwise fall back to
2452 sorting by the primary key. Move destroy() method to be underneath
2453 constructor for readability. Cleanup comments.
2455 2011-03-03 Ben Konrath <ben@bagu.org>
2457 Add support for colour text and colour backgrounds to the layout list cells.
2459 Only the cell backgrounds are coloured which leaves a gap between the
2460 cells that isn't coloured. I need to figure out a way to set
2461 'style=background-colour:' on the whole column rather than just the
2464 * TODO: Add a note about colouring the background of the whole column.
2465 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2466 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2467 render the coloured text and backgrounds. Use GlomField[] for the row type.
2468 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2470 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2471 GlomField[] for the row type.
2472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2473 GlomField[] for the row type. Set the text, text colour and background
2474 colour in the GlomField objects as specified in the glom document. Add
2475 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2476 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2477 the glom field text, foreground colour and background colour.
2479 2011-03-02 Ben Konrath <ben@bagu.org>
2481 Don't display hidden tables in the combo box.
2483 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2485 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2486 code to ignore hidden tables using ArrayLists for the table names and
2488 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2489 tableNames to use ArrayLists instead of String[]. Update getter and setter
2492 2011-03-01 Ben Konrath <ben@bagu.org>
2494 Add support for Date and Time number types.
2496 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2497 Implement formatting for Date and Time values. Change the default glom
2498 file to small business example.
2500 2011-03-01 Ben Konrath <ben@bagu.org>
2502 Add support for formatting glom types as specified in the glom file.
2504 Formatting isn't finished yet - I still need to add support for Date
2507 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2508 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2509 checks for null values in JDBC cleanup code and catch all exceptions
2510 instead of just SQLExceptions.
2511 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2514 2011-03-01 Ben Konrath <ben@bagu.org>
2516 Use GWT 2.2.0 instead of 2.1.1.
2518 * pom.xml: Change GWT version numbers.
2520 2011-03-01 Ben Konrath <ben@bagu.org>
2522 A few small code cleanups.
2524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2526 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2527 unnecessary object creation in constructor.
2528 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2529 unnecessary object creation in constructor.
2531 2011-02-28 Ben Konrath <ben@bagu.org>
2533 Add file for TODO list.
2537 2011-02-18 Ben Konrath <ben@bagu.org>
2539 Enable the CellTable Pager when more than 20 rows need to be viewed.
2541 The Pager will automatically become active when the results are larger
2542 than the CellTable size which is currently set to 20 lines.
2544 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2545 name on debug statment in RPC call in LayoutListDataProvider, add
2546 numRows parameter to LayoutListView constructor, propperly set rowCount
2548 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2549 name on debug statment in RPC call, use LayoutListTable object in RPC
2550 calls, pass rowCount to LayoutListView.
2551 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2552 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2554 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2555 interface for changes in OnlineGlomService.
2556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2557 getLayoutListHeaders() to getLayoutListTable() and return
2558 LayoutListTable. Using this object allows me to pass other information
2559 about the LayoutList like the expected number of rows in the result set.
2560 The Connection object from the connection pool is now propperly closed.
2561 Only the requested number of lines are returned to the client in
2563 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2564 GlomTable and add columnTitles and numRows.
2566 2011-02-18 Ben Konrath <ben@bagu.org>
2568 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2570 This is a small performance boost. I'll use GlomTable to get the required
2571 layoutlist information.
2573 * src/main/java/org/glom/web/client/OnlineGlom.java:
2574 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2575 * src/main/java/org/glom/web/shared/GlomDocument.java:
2577 2011-02-18 Ben Konrath <ben@bagu.org>
2579 Add option to turn off formatting in JDT formatter preferences.
2581 * .settings/org.eclipse.jdt.core.prefs:
2583 2011-02-18 Ben Konrath <ben@bagu.org>
2585 Rename LayoutList to LayoutListView.
2587 I'm working towards setting things up to easily use MVP when the time
2590 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2592 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2595 2011-02-17 Ben Konrath <ben@bagu.org>
2597 Move LayoutListDataProvider class into LayoutList.java.
2599 * src/main/java/org/glom/web/client/LayoutList.java:
2601 2011-02-17 Ben Konrath <ben@bagu.org>
2603 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2605 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2607 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2608 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2609 from LibGlomServer.java.
2610 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2611 Rename from LibGlomServiceAsync.java.
2612 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2613 Rename from LibGlomServiceImpl.java.
2614 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2616 2011-02-17 Ben Konrath <ben@bagu.org>
2618 Update JDT settings.
2620 * .settings/org.eclipse.jdt.core.prefs:
2622 2011-02-17 Ben Konrath <ben@bagu.org>
2624 Move GWT-RPC objects to shared package (where they should be).
2626 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2627 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2628 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2629 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2630 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2631 org.glom.web.shared package.
2632 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2633 org.glom.web.shared package.
2634 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2635 directory in compilation to javascript.
2637 2011-02-16 Ben Konrath <ben@bagu.org>
2639 Add sort clause to the sql query that grabs table information.
2641 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2642 if one of the columns is a primary key.
2644 2011-02-16 Ben Konrath <ben@bagu.org>
2646 Disable generateAsync feature of gwt-maven.
2648 The generated interface does not correctly match the methods in LibGlomService
2649 and the generated singleton Util inner-class doesn't respect the servlet
2652 * pom.xml: Turn off generateAsync feature.
2653 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2654 with singleton Util inner-class.
2656 2011-02-14 Ben Konrath <ben@bagu.org>
2658 Add LGPL v3 licence notices.
2660 Followed directions listed here:
2661 http://www.gnu.org/licenses/gpl-howto.html
2663 * COPYING: This file is a copy of the GPL v3.
2664 * COPYING.LESSER: This file is a copy of the LGPL v3.
2665 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2667 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2669 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2671 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2673 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2675 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2677 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2680 2011-02-14 Ben Konrath <ben@bagu.org>
2682 Use ArrayList instead of Array in GWT-RPC calls.
2684 Apparently this gives a slight performance boost to the compiled
2687 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2689 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2692 2011-02-14 Ben Konrath <ben@bagu.org>
2694 Access data from a postgres db rather than the example glom file.
2696 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2697 compile down to obfuscated javascript.
2698 * pom.xml: Add c3p0 and postgres JDBC libraries.
2699 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2700 using a postgres db accessed through the c3p0 connection pooling library.
2702 2011-02-14 Ben Konrath <ben@bagu.org>
2704 Update Java formatter settings.
2706 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2708 2011-02-02 Ben Konrath <ben@bagu.org>
2710 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2712 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2714 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2715 the compiled webapp directory that Eclipse uses as we're using Maven now.
2716 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2717 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2719 * pom.xml: Format file, change target Java version to 1.6.
2721 2011-02-02 Ben Konrath <ben@bagu.org>
2723 Add information about a deployment related issue.
2725 * README: Add Notes section with the problem outlined.
2727 2011-02-02 Ben Konrath <ben@bagu.org>
2729 Call Glom.libglom_deinit() when the servlet is shutdown.
2731 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2732 Glom.libglom_deinit() to destroy() method.
2734 2011-01-28 Ben Konrath <ben@bagu.org>
2736 Use generated Util class to get the RPC Async interface.
2738 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2740 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2741 getInstance() method to get a reference to the RPC Async interface.
2742 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2743 getInstance() method to get a reference to the RPC Async interface, remove
2744 the now unused getLibGlomServiceProxy() method.
2746 2011-01-27 Ben Konrath <ben@bagu.org>
2748 Cleanup ChangeLog entry from previous commit.
2750 * ChangeLog: Group logical changes together and add comments.
2752 2011-01-25 Ben Konrath <ben@bagu.org>
2754 Convert to gwt-maven project.
2756 * .gitignore: Update for new project structure.
2757 * README: New file with a link to the online documentation.
2758 * pom.xml: The generated maven configuration file with some tweaks.
2760 Add / update Eclipse settings. These files are a merge of the files that
2761 were generated with the gwt-maven plugin and the files we were previously
2765 * .settings/.jsdtscope:
2766 * .settings/com.google.gdt.eclipse.core.prefs:
2767 * .settings/com.google.gwt.eclipse.core.prefs:
2768 * .settings/org.eclipse.jdt.core.prefs:
2769 * .settings/org.eclipse.wst.common.component:
2770 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2771 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2772 * .settings/org.maven.ide.eclipse.prefs:
2773 * OnlineGlomTest-dev.launch:
2774 * OnlineGlomTest-prod.launch:
2776 Java source files moved from the 'src' directory to the directory structure
2778 * src/main/java/org/glom/web/client/GlomDocument.java:
2779 * src/main/java/org/glom/web/client/GlomTable.java:
2780 * src/main/java/org/glom/web/client/LayoutList.java:
2781 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2782 * src/main/java/org/glom/web/client/LibGlomService.java:
2783 * src/main/java/org/glom/web/client/OnlineGlom.java:
2784 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2786 Non-functional property file used for translations. I included this as
2787 reminder that it's something I need to sort out.
2788 * src/main/resources/org/glom/web/client/Messages.properties:
2790 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2791 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2793 The servlet configuration files moved from the 'war' directory.
2794 * src/main/webapp/OnlineGlom.css:
2795 * src/main/webapp/OnlineGlom.html:
2796 * src/main/webapp/WEB-INF/web.xml:
2798 Generated test files with most of the code commented out. I included these
2799 so that it's easy to add tests when we're ready for them.
2800 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2801 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2803 2011-01-25 Ben Konrath <ben@bagu.org>
2805 Remove unused println.
2807 * src/org/glom/web/server/LibGlomServiceImpl.java:
2809 2011-01-25 Ben Konrath <ben@bagu.org>
2811 Add project specific JDT settings.
2813 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2814 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2816 2011-01-25 Ben Konrath <ben@bagu.org>
2818 Populate celltable with example data.
2820 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2821 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2822 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2823 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2824 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2825 asynchronously gets the example data.
2826 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2827 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2828 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2829 curently selected table to be retrieved by other widgets.
2830 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2831 implement getTableData() in a hacky way. This method needs to be updated
2832 to grab information from the database when database creating is
2835 2011-01-20 Ben Konrath <ben@bagu.org>
2837 Set table headers when table dropBox changes.
2839 * src/org/glom/web/client/GlomDocument.java: Correct some method
2841 * src/org/glom/web/client/LibGlomService.java: Add method
2842 to get list layout field names.
2843 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2844 to get list layout field names.
2845 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2846 widget for list layout table.
2847 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2848 the table drop box and add new updateTable() method to asynchronously
2849 get the layout list field names for the currently selected table.
2850 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2851 implementation of getLayoutListHeaders() method.
2852 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2854 2011-01-18 Ben Konrath <ben@bagu.org>
2856 Make a listBox with table titles instead of the flexTable demo.
2858 This is the start of something more useful.
2860 * .classpath: Exclude a bunch of packages from the JVM that are
2861 getting in the way of the Eclipse content assist.
2862 * src/org/glom/web/client/GlomDocument.java:
2863 * src/org/glom/web/client/GlomTable.java:
2864 * src/org/glom/web/client/LibGlomService.java:
2865 * src/org/glom/web/client/LibGlomServiceAsync.java:
2866 * src/org/glom/web/client/OnlineGlom.java:
2867 * src/org/glom/web/server/LibGlomServiceImpl.java:
2868 * war/OnlineGlom.html:
2869 * war/WEB-INF/web.xml:
2871 211-01-13 Ben Konrath <ben@bagu.org>
2873 Update to new java-libglom API.
2875 * .gitignore: Ignore OnlineGlom.war.
2876 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2878 2010-12-20 Ben Konrath <ben@bagu.org>
2880 Add some basic style to the table listing.
2882 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2883 header, print useful error message on async callback failure.
2884 * war/OnlineGlom.css: Add style for table header, remove defaults
2885 provided by the Eclipse project wizard.
2887 2010-12-20 Ben Konrath <ben@bagu.org>
2889 Load example file from installed glom dir.
2891 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2892 provided by java-libglom to find the example file.
2894 2010-12-20 Ben Konrath <ben@bagu.org>
2896 Update Eclipse settings.
2899 * .settings/com.google.gdt.eclipse.core.prefs:
2900 * .settings/com.google.gwt.eclipse.core.prefs:
2902 2010-12-17 Ben Konrath <ben@bagu.org>
2906 * .classpath: New file.
2907 * .gitignore: New file.
2908 * .project: New file.
2909 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2910 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2911 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2912 * src/org/glom/web/client/GlomTable.java: New file.
2913 * src/org/glom/web/client/OnlineGlom.java: New file.
2914 * src/org/glom/web/client/TableNameService.java: New file.
2915 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2916 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2917 * war/OnlineGlom.css: New file.
2918 * war/OnlineGlom.html: New file.
2919 * war/WEB-INF/web.xml: New file.
2920 * war/images/glom.png: New file.