1 2011-11-28 Ben Konrath <ben@bagu.org>
3 Remove unused boolean argument in Portal constructor.
7 * src/main/java/org/glom/web/client/ui/details/Group.java:
8 * src/main/java/org/glom/web/client/ui/details/Portal.java:
10 2011-11-28 Ben Konrath <ben@bagu.org>
12 Remove hack for glom 1.18 style glom files.
14 * src/main/java/org/glom/web/client/ui/details/Group.java:
15 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
16 * src/main/java/org/glom/web/client/ui/details/Portal.java:
18 2011-11-28 Ben Konrath <ben@bagu.org>
20 Use Gda Value version of primary key to log result too large error.
22 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
24 2011-11-28 Ben Konrath <ben@bagu.org>
26 Don't use TypedDataItem.getText() for Unknown types from the URL.
28 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
29 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
31 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
32 String field and getUnknown() method.
34 2011-11-28 Ben Konrath <ben@bagu.org>
36 Log an error message when the java-libglom .so is not present.
38 The error message was being set in the exception but not logged.
40 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
42 2011-11-28 Ben Konrath <ben@bagu.org>
44 Ignore LayoutItem_CalendarPortals.
46 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
47 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
49 2011-11-28 Ben Konrath <ben@bagu.org>
51 Extract method for creating the LayoutItemPortal DTO.
53 Just breaking the code up into smaller chunks.
55 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
57 2011-11-28 Ben Konrath <ben@bagu.org>
61 This should have been added with the refactor. Oops!
63 * src/main/java/org/glom/web/shared/TypedDataItem.java:
65 2011-11-28 Ben Konrath <ben@bagu.org>
67 Create primary key value from URL string using type from Glom document.
69 See this bug, comments 19 - 25:
71 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
73 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
74 create a TypeDataItem for the primary key here when loading from a
75 URL. Show the same string for the primary key value as was received
76 from the URL string (when loading from a URL).
77 * src/main/java/org/glom/web/server/Utils.java: Update method for
78 creating the Gda Value from the TypeDataItem to properly deal with
79 creating a Gda Value based on the Glom document type for the primary
80 key value string when loading from a URL.
81 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
82 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
83 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
84 Update for changed method name.
86 2011-11-27 Ben Konrath <ben@bagu.org>
88 Rename PrimaryKeyItem to TypedDataItem.
90 The name PrimaryKeyItem suggests what the class should be used for.
91 TypedDataItem is a neutral name that describes the class better.
93 This is a rename-only refactor.
95 * src/main/java/org/glom/web/client/OnlineGlomService.java:
96 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
97 * src/main/java/org/glom/web/client/Utils.java:
98 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
99 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
100 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
101 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
102 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
103 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
104 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
105 * src/main/java/org/glom/web/server/Utils.java:
106 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
107 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
108 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
109 * src/main/java/org/glom/web/shared/NavigationRecord.java:
111 2011-11-25 Ben Konrath <ben@bagu.org>
113 Improve Gda Value conversion from PrimaryKeyItem.
115 The value from the PrimaryKeyItem is only used if its type match the
116 type from the glom document.
118 * src/main/java/org/glom/web/server/Utils.java:
120 2011-11-25 Ben Konrath <ben@bagu.org>
122 Manually check if the java-liblgom .so is visible to the JVM.
124 It seems that Tomcat has problems when a static initializer throws an
125 exception. This check is done before the first method call into
126 java-libglom so that execution doesn't continue if the .so is not
129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
131 2011-11-25 Ben Konrath <ben@bagu.org>
133 Improve browser configuration error messages.
137 https://bugzilla.gnome.org/show_bug.cgi?id=662792
139 * src/main/java/org/glom/web/client/OnlineGlomService.java:
140 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
141 getConfigurationErrorMessage() method.
142 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
143 Get and display a specific configuration error message when no Glom
145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
146 Implement getConfigurationErrorMessage() method. Surround configuration
147 code in the init() method with a try/catch block. This allows the
148 errors to be caught while keeping the servlet available to retrieve the
149 configuration error message.
151 2011-11-25 Ben Konrath <ben@bagu.org>
153 Don't use Strings to hold primary key values.
155 The primary key values are now held in a new data object
156 (PrimaryKeyItem) that holds type information and the primary key value
157 using the correct type.
159 * src/main/java/org/glom/web/client/OnlineGlomService.java:
160 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
162 PrimaryKeyItem instead of String to hold the primary key value.
163 * src/main/java/org/glom/web/client/Utils.java: Remove
164 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
165 PrimaryKeyItem based on the GlomFieldType and the DataItem.
166 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
167 PrimaryKeyItem instead of String to hold the primary key value. Load
168 document selection page when the documentID has not been set correctly.
169 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
170 DetailsPlace -> URL and URL -> DetailsPlace conversion with
172 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
173 Return empty string for URL instead of "null".
174 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
175 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
176 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
177 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
178 PrimaryKeyItem instead of String to hold primary key values.
179 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
180 PrimaryKeyValue to a Gda Value.
181 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
182 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
183 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
184 Replace temporary database access code that uses the PrimaryKeyValue to
185 Gda Value conversion.
186 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
187 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
188 PrimaryKeyItem instead of String.
189 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
190 hold primary key values.
192 2011-11-24 Ben Konrath <ben@bagu.org>
194 Use newly added java-libglom API to create queries.
196 This isn't finished. I still need to stop using Strings for primary key
197 values in the client code.
199 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
200 libglom to use fake connections so that retrieving the query string will
202 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
203 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
204 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
205 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
206 Use the newly added libglom sql methods and classes to create the
207 query. Add temporary hack to convert primary value strings to Gda
210 2011-11-23 Ben Konrath <ben@bagu.org>
212 Don't explicitly set the height of Portals.
214 See comments 6 - 10 of this bug for details:
216 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
218 * src/main/java/org/glom/web/client/ui/details/Portal.java:
220 2011-11-23 Ben Konrath <ben@bagu.org>
222 Use an HTML table instead of CSS for the FlowTable layout.
224 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
225 GWT's FlexTable to implement the FlowTable.
226 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
228 2011-11-18 Ben Konrath <ben@bagu.org>
230 Add boolean example to HTML table mockup.
232 * mockups/details-view-html-tables-text-entries.html:
234 2011-11-17 Ben Konrath <ben@bagu.org>
236 Ensure the pager buttons are always visible for related lists.
238 To accomplish this, I've turned off text wrapping in the list view and
239 related list tables for both the header and data text. The related list
240 table now has a fixed layout so the it doesn't overflow its container.
241 This is required to ensure that the cell text is clipped when it
242 overflows the cell and an ellipsis is added to the right side of the
243 cell when text is clipped.
245 A fixed table layout for the related list table in the details view
246 seems what we want for the details view anyway, so the side-effect is
249 The ellipsis will only be displayed in Firefox >= 7.
253 https://bugzilla.gnome.org/show_bug.cgi?id=662930
255 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
256 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
257 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
259 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
260 Set the 'table-layout: fixed' CSS property to the related list table.
261 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
262 'white-space: nowrap;' CSS property on both the list view and the
265 2011-11-16 Ben Konrath <ben@bagu.org>
267 Rework the fix for empty notebook tab labels.
269 Setting the empty group titles with its name caused problems for the
270 details layout. Instead of using libglom's
271 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
272 to the client when the title is empty. This allows the Notebook to use
273 the name when the title is empty without affecting anything else.
275 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
276 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
278 2011-11-16 Ben Konrath <ben@bagu.org>
280 Set group titles with name when title is empty.
282 This fixes a problem with an empty notebook tab label in the Lesson
283 Planner document. The forth tab in the notebook should be "Internet":
285 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
287 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
288 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
291 2011-11-16 Ben Konrath <ben@bagu.org>
293 Remove whitespace from the configured username properties.
295 This assumes that usernames won't have whitespace at the beginning
296 or end. But I think this is a reasonable assumption.
298 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
299 String.trim() to remove the whitespace from the username properties.
301 2011-11-15 Ben Konrath <ben@bagu.org>
303 Add details view mockup with HTML tables and text entries.
305 This is from the attachment on this bug:
307 https://bugzilla.gnome.org/show_bug.cgi?id=663109
309 * mockups/details-view-html-tables-text-entries.html:
311 2011-11-15 Ben Konrath <ben@bagu.org>
313 Add space between the columns of the flow table.
317 https://bugzilla.gnome.org/show_bug.cgi?id=662918
319 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
320 space between columns in the flow table.
322 2011-11-15 Ben Konrath <ben@bagu.org>
324 Add backup files to the .gitignore.
326 * .gitignore: Ignore files that end with ~.
328 2011-11-09 Ben Konrath <ben@bagu.org>
330 Use latest release of gwt-log.
332 Gwt-log releases are now being submitted to the maven central
333 repository so manual installation of the jar is no longer required.
335 * pom.xml: Update version and groupId of gwt-log dependency.
337 2011-10-31 Ben Konrath <ben@bagu.org>
339 Don't use GWT numeric formatting to override the glom currency formatting.
341 Currencies are now displayed like they are in Glom. See this bug:
343 https://bugzilla.gnome.org/show_bug.cgi?id=646216
345 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
347 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
348 currency code to constructor and set it when the cell is rendered.
349 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
350 currency code to the constructor of the NumericCell.
352 2011-10-27 Ben Konrath <ben@bagu.org>
354 Require the latest release of java-libglom (1.17.4).
358 2011-10-26 Ben Konrath <ben@bagu.org>
360 Add style to Notebook that matches current theme.
362 It's not the best style in the world but it's better than the default.
364 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
365 padding at the bottom of the child widgets.
366 * src/main/webapp/style.css: Add style for the Notebook.
368 2011-10-26 Ben Konrath <ben@bagu.org>
370 Move servlet initialization code to overridden init method.
372 This is half of the solution to getting proper error messages
373 displayed when configuration errors occur. Here's the relevant bug:
375 https://bugzilla.gnome.org/show_bug.cgi?id=662792
377 The rest of the solution involves surrounding the init method with a
378 try/catch block and setting a global variable with the error /
379 exception. A new async method should be created to retrieve and display
380 the error message / exception.
382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
383 code from constructor to init method adding exceptions as needed.
385 2011-10-26 Ben Konrath <ben@bagu.org>
387 Add script to monitor and restart tomcat if required.
389 * utils/check-and-recover-tomcat.py: New file.
391 2011-10-26 Ben Konrath <ben@bagu.org>
393 Display the correct number of data items in the pager.
397 https://bugzilla.gnome.org/show_bug.cgi?id=661441
399 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
400 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
401 The implementation is the same for both tables: Keep track of the
402 number of non-empty rows and fire and RowCountChangeEvent after the data has
404 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
405 custom Pager class that subclasses SimplePager to handle displaying
406 the correct number when empty rows have been added.
408 2011-10-26 Ben Konrath <ben@bagu.org>
410 Correct error in previous commit.
412 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
413 eventBus parameter from listView.setCellTable().
415 2011-10-26 Ben Konrath <ben@bagu.org>
417 Fix error in TODO comment.
419 * src/main/java/org/glom/web/client/activity/ListActivity.java:
421 2011-10-24 Ben Konrath <ben@bagu.org>
423 Create Notebook widgets to the details view.
425 This isn't finished just yet - I still need to create a reasonable
426 style to match the current theme.
428 * src/main/java/org/glom/web/client/Utils.java: Add method for
429 calculating the height of a widget. This is used in the Notebook class.
430 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
431 new constructor method in Group.
432 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
433 method for creating child widget that can be used by subclasses
434 like Notebook. New constructor that allows disabling the group
435 titles - Notebooks don't set a group title for their child groups.
436 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
437 to make Notebooks using GWT's TabLayoutPanel.
438 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
439 constructor that allows disabling the group titles.
440 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
441 LayoutItemNotebook DTO.
442 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
443 DTO for Notebooks. It's just an empty class for now but we might need
444 it to transfer some specific information in the future.
446 2011-10-21 Ben Konrath <ben@bagu.org>
448 Add navigation buttons to related list tables.
450 * src/main/java/org/glom/web/client/OnlineGlomService.java:
451 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
452 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
453 method getSuitableRecordToViewDetails() for getting the table name
454 and primary key value for related list navigation buttons.
455 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
456 private cell renderer class to get the navigation information for
457 related list tables from the server. Extract the navigation
458 processing code from the details cell navigation and use it for the
459 related list navigation as well.
460 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
461 cell renderer class for the details open buttons. This was needed
462 because the related list navigation buttons and the list view
463 navigation buttons need to react differently when clicked.
464 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
465 the onEnterKeyDown() method because it's now overriden in the
466 subclasses that are specific to the related list tables and the list
468 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
469 the vertical size a little because the buttons add a bit of vertical
470 space to table. This is not a perfect solution because the vertical
471 size of with table fewer than 5 rows will be a little smaller.
472 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
473 changes in how navigation buttons are handled.
474 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
475 getSuitableRecordToViewDetails() using the new RelatedListNavigation
476 database access object.
477 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
478 to find the portal for a given relationship name from
479 RelatedListDBAccess. Add method to find a primary key field for a
481 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
482 Move code to find the portal for a given relationship name to
484 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
485 New file: database access object for getting the related list
486 navigation information (the table name and the primary key value).
487 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
488 DTO for transferring a table name to navigate to and a primary key
490 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
491 boolean and getter/setter to specifies if the related list should add
494 2011-10-24 Murray Cumming <murrayc@murrayc.com>
496 Use the master branch of java-libglom
498 * pom.xml: Depend on java-libglom 1.19 instead.
500 This is the master branch. See also the libglom-1-18 branch.
502 2011-10-11 Ben Konrath <ben@bagu.org>
504 Enable the open navigation button when the data has been set.
506 This avoids having active buttons that don't do anything when the data
509 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
511 2011-10-11 Ben Konrath <ben@bagu.org>
513 Use IsWidget interface for FlowTableItem.
515 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
516 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
518 2011-10-11 Ben Konrath <ben@bagu.org>
520 Remove GWT styling from open button in details view.
522 There are still some issues with how the details cell is arranged but
523 this should be made to match Glom 1.20. I'm going to leave fixing this
524 until I have Glom 1.20 up and running.
526 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
527 style name on open button.
528 * src/main/webapp/style.css: Move and edit details-navigation class.
529 Re-arrange some classes to make them appear in the same order as the
532 2011-10-07 Ben Konrath <ben@bagu.org>
536 * .gitignore: Ignore new cache directory.
537 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
538 * pom.xml: Change GWT and maven plugin to 2.4.0.
539 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
541 * src/main/java/org/glom/web/client/ClientFactory.java:
542 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
543 * src/main/java/org/glom/web/client/OnlineGlom.java:
544 Update source for API changes.
545 * utils/build-onlineglom-war.sh: Remove cache directory before the
548 2011-10-07 Ben Konrath <ben@bagu.org>
550 Add navigation buttons in the details view.
552 This isn't finished but I thought I'd commit what I have as it's a
553 pretty good start. I still need to:
555 1. Change the style so that it fits better into the current theme
556 2. Adjust the details cell to expand as much as possible.
558 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
559 click handlers to navigation buttons in the DetailsCells. Create a
560 refreshData() method to get just the data from the server without the
562 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
563 Update the tableSelector and browser title when the table name
564 changes without using the tableSelector.
565 * src/main/java/org/glom/web/client/ui/DetailsView.java:
566 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
567 getDetailsCells() to getCells(). Update variable names.
568 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
569 method to set click handler on navigation button. Rename a few
570 variables. Add navigation buttons where needed.
571 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
572 variables and methods.
573 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
574 navigation boolean and navigation table as required in the
576 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
577 variables for navigation along with getter/setter methods.
579 2011-10-07 Ben Konrath <ben@bagu.org>
581 Rename Field to DetailsCell.
583 This is a refactor-only commit. No functionality has been added or
586 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
587 Update variable and method names.
588 * src/main/java/org/glom/web/client/ui/DetailsView.java:
589 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
590 variable and method names.
591 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
593 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
594 variable and method names.
596 2011-10-07 Ben Konrath <ben@bagu.org>
598 Create separate methods for layout and data the details view.
600 This is a refactor-only commit. No functionality has been added or
603 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
604 private methods: setData(), createLayout().
606 2011-10-07 Ben Konrath <ben@bagu.org>
608 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
610 This is part of a change to get navigation buttons in the details view
611 but it should have been done this way from the start.
613 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
614 for method name change in TableSelectionView.
615 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
616 Create TableChangeEvent and set the browser title using the
617 TableSelectionView API.
618 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
619 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
620 Change getSelectedTable() to getSelectedTableName(). Add
621 getSelectedTableTitle().
623 2011-10-07 Ben Konrath <ben@bagu.org>
625 Use primaryKeyValue naming convention in constructor of DetailsPlace.
627 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
629 2011-10-07 Ben Konrath <ben@bagu.org>
631 Update TableChangeEvent to use newTableName naming convention.
633 This makes the class more consistent with GWT naming conventions.
635 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
636 Update for method name change in TableChangeEvent.
637 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
638 for method name change in TableChangeEvent.
639 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
640 newTableName variable and getter method. Make toDebugString()
643 2011-09-30 Ben Konrath <ben@bagu.org>
645 Disable the pager in the list tables when the data row count is less than the minimum.
647 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
648 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
650 2011-09-30 Ben Konrath <ben@bagu.org>
652 Add empty rows to the end of related list and list view tables.
654 I also extracted the cell rendering classes from the ListTable because
655 the code was becoming a little crazy with all the anonymous inner
656 classes. My plan is to use these cell rendering classes in the details
657 view as well so this refactor will be needed for that change.
659 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
660 set the row count in related list tables if the data has more rows
661 than the minimum number of rows visible.
662 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
663 row count in list view tables if the data has more rows than the
664 minimum number of rows visible.
665 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
666 for rendering TYPE_BOOLEAN cells. The code was extracted from the
668 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
669 for rendering TYPE_NUMERIC cells. The code was extracted from the
671 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
672 class for rendering cells with buttons in list views. The code was
673 extracted from the ListTable class.
674 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
675 for rendering TYPE_TEXT cells. The code was extracted from the
677 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
678 Add empty rows to the end of the data if required. Implement
679 ListTable.getMinNumVisibleRows().
680 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
681 cell renderer code to public classes. Return null in
682 Column.getValue() for empty rows. Add new abstract method:
683 getMinNumVisibleRows(). Move code to set the row count of the list view
684 table to ListViewImpl.
685 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
686 empty rows to the end of the data if required. Implement
687 ListTable.getMinNumVisibleRows().
690 2011-09-27 Ben Konrath <ben@bagu.org>
692 Use GWT.log for client-side debugging statements.
694 These are optimized out when deployed so I should have used this method
695 in the first place. These statements will eventually be replaced with some sort
696 of notification in the browser.
698 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
699 * src/main/java/org/glom/web/client/activity/ListActivity.java:
700 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
701 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
702 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
704 2011-09-27 Ben Konrath <ben@bagu.org>
706 Put tableselector on the right, back to list link on right.
708 The idea is that the table selector is acting like a label for the
709 currently displayed table so it should be placed below the document title. This
710 puts the table title in a similar position to where it is in Glom.
712 * mockups/details-contacts.html:
713 * mockups/details-projects.html:
714 * mockups/listview-contacts.html:
715 * mockups/listview-projects.html:
717 Update mockups to match how the interfaces currently look.
718 * src/main/webapp/style.css: Swap positions of backlink with the table
719 selector. Add some space on the left side of the table selector to
720 line things up with the document title.
722 2011-09-27 Ben Konrath <ben@bagu.org>
724 Add field colouring to details view.
726 This change re-works how field colouring works. The colour formatting
727 information is now set to the client with the layout information instead of
728 with the data. This eliminates the need to send the same colour strings for
729 data in list view column when colour information is set.
731 In order to set an alternate colour for negative numeric values, the
732 number is now sent to client and formatted with the GWT NumberFormat class.
734 This change also fixes:
736 https://bugzilla.gnome.org/show_bug.cgi?id=659752
738 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
739 internationalization framework which is needed for client side numeric
741 * src/main/java/org/glom/web/client/Utils.java: New file for some
742 client static utility methods.
743 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
744 the DataItem object to the Field class. Use a utility method to
745 create the foreignKeyValue string.
746 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
747 alignment and text colours in the constructor. Add setData(DataItem)
748 method. Remove setText(String) method.
749 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
750 colour information to GlomTextCell. Create and use GlomNumberCell for
751 rendering numbers. Use utility method to get the string for the
752 primary key of the key provider. Re-work how the horizontal alignment
754 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
755 formatting to layout information. Methods for converting the libglom
756 formatting information were moved from DBAccess.
757 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
758 numeric formatting (it's now done on the client side). Don't set text
759 colours in DataItem. Move libglom formatting conversion methods to
761 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
762 getters/setters for text colour information.
763 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
764 for transferring the libglom NumericFormat information to the client.
765 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
766 and getters/setters for: GlomNumericFormat, background colour and
767 foreground colour strings.
769 2011-09-26 Ben Konrath <ben@bagu.org>
771 Simplify code that iterates through the LayoutGroup.
773 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
775 2011-09-26 Ben Konrath <ben@bagu.org>
777 Accept Eclipse formatting for OnlineGlomServiceAsync.
779 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
781 2011-09-26 Ben Konrath <ben@bagu.org>
783 Don't use the ListDBAccess classes to get the primary key layout information.
785 This was causing a bug where the wrong index for the hidden primary key
786 was being sent to the client.
788 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
789 primary key while creating the LayoutGroup DTO. Create a
790 LayoutItemField DTO for hidden primary keys. Don't use the
791 RelatedListDBAccess because it was only used for getting the primary
793 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
794 access modifier from public to protected for getPrimaryKeyField() and
795 getPrimaryKeyLayoutItemField().
796 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
797 abstract method getExpectedResultSize() because RelatedListDBAccess
798 doesn't have enough info to implement it.
799 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
800 Remove @Override for getExpectedResultSize().
801 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
802 Remove method getExpectedResultSize().
804 2011-09-23 Ben Konrath <ben@bagu.org>
806 Log which layout (list or details) the ignored item is from.
808 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
810 2011-09-23 Ben Konrath <ben@bagu.org>
812 Remove annotations that turn off code formatting in DataItem.
814 * src/main/java/org/glom/web/shared/DataItem.java:
816 2011-09-23 Ben Konrath <ben@bagu.org>
818 Rename GlomField to DataItem and update associated methods.
820 This is a rename-only refactor. No functionality has been added or
823 * src/main/java/org/glom/web/client/OnlineGlomService.java:
824 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
825 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
826 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
827 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
828 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
829 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
830 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
831 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
832 * src/main/java/org/glom/web/server/database/DBAccess.java:
833 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
834 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
835 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
836 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
837 * src/main/java/org/glom/web/shared/DataItem.java:
838 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
839 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
841 2011-09-23 Ben Konrath <ben@bagu.org>
843 Rename GlomDocument to DocumentInfo and update associated methods.
845 This is a rename-only refactor. No functionality has been added or
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/client/activity/ListActivity.java:
851 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
852 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
853 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
854 * src/main/java/org/glom/web/shared/DocumentInfo.java:
856 2011-09-20 Ben Konrath <ben@bagu.org>
858 Require java-libglom 1.17.3.
860 This picks up the fix for the seg fault problem with the Scenes table
861 in the Openismus Film Manager example.
865 2011-09-20 Ben Konrath <ben@bagu.org>
867 Change the way sort clause is added for primary key when no sort clause is requested.
869 The primary key is now added to the LayoutFieldVector (fieldsToGet)
870 before the sort clause is created. When a sort clause is not requested, the
871 sort clause is created by finding the primary key in the LayoutFieldVector
874 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
876 2011-09-20 Ben Konrath <ben@bagu.org>
878 Log error message if no documents are found in the configured directory.
880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
881 Extract the glom file extension string to a private static final class
882 variable (mostly as syntactic sugar). Accept a minor formatting change.
883 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
884 the example glom.document.directory configuration property to make it
885 more clear that it can any directory, not just the home directory.
887 2011-09-18 Ben Konrath <ben@bagu.org>
889 Add related lists to details view.
891 The related list table has support for paging and sorting just like the
892 table in the list view.
894 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
895 SQL queries for the related list tables.
896 * src/main/java/org/glom/web/client/OnlineGlomService.java:
897 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
898 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
899 Rename getList methods to getListView and add comments. Remove
900 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
901 it being unused. Add methods: getDetailsLayoutAndData(),
902 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
903 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
904 Create the layout and set the data for the fields in one async call
905 instead of two. Create related lists where appropriate.
906 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
907 for method name changes in OnlineGlomService.
908 * src/main/java/org/glom/web/client/ui/DetailsView.java:
909 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
910 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
912 * src/main/java/org/glom/web/client/ui/ListView.java:
913 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
914 tableName from setCellTable(). Create a ListViewTable instead of
916 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
917 represent a data field in the details view.
918 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
919 from addDetailsCell() to Field class. Keep track of the Fields and
920 Portals in the details view.
921 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
922 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
923 and add a method to get it. Add method to set the contents of the
925 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
926 New class for related list tables. This class has the data provider
927 for the related list table.
928 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
929 abstract class which is the base class for the ListViewTable and the
931 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
932 New class for list view tables. This class has the data provider for
934 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
935 methods for related list tables. Add more information to the
936 LayoutItemField and LayoutItemPortal DTOs.
937 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
938 Remove debugging print statement.
939 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
940 Remove debugging print statements. Add primary key field to SQL count
942 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
943 Remove unnecessary LayoutFieldVector parameter from
944 getResultSizeOfSQLQuery() method.
945 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
946 New class for related list table database access.
947 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
948 class that is a wrapper DTO for details view layout and data.
949 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
950 new 'fromField' string to this DTO.
951 * src/main/webapp/style.css: Remove bottom margin and override top
954 2011-09-15 Ben Konrath <ben@bagu.org>
956 Breakup the OnlineGlomServiceImpl class to make it more manageable.
958 This sets things up to make it easier to add the data retrieval for
959 related lists (portals). No user noticeable changes were made with
962 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
963 class has the code to retrieve the layouts and access the
964 database using the new database helper classes.
965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
966 Most of the functionality has been removed from this class. This
967 class now represents the public interface for the client side
968 code. It also deals with configuring the servlet and cleaning
969 things up when the servlet is stopped.
970 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
971 of static methods into this utility class.
972 * src/main/java/org/glom/web/server/database/DBAccess.java:
973 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
974 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
975 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
976 These classes have the database retrieval code. The class hierarchy
977 has been setup to make it easy to reuse code for similar
980 2011-09-06 Ben Konrath <ben@bagu.org>
982 Create separate classes for list table code and the data provider.
984 As part of this refactor, I also split up the code a bit to make it
987 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
988 table code to two new classes (below).
989 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
990 with code from ListViewImpl.
991 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
992 New file with code from ListViewImpl.
994 2011-09-06 Ben Konrath <ben@bagu.org>
996 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
998 This fixes the LayoutItemPortal DTO to match the libglom layout object
1001 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1003 2011-09-01 Ben Konrath <ben@bagu.org>
1005 Set title of Portals in the Details View.
1007 * pom.xml: Bump required version of java-libglom to 1.17.1.
1008 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1009 widget creation to its own class. Add comments to constructor.
1010 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1011 The code is mostly from the Group class with the title now set.
1012 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1013 title of Portal. Update some comments. Fix some code formatting.
1015 2011-09-01 Ben Konrath <ben@bagu.org>
1017 Remove TODO comment for the flow table column width.
1019 The flow table column width is working correctly and doesn't need to be
1020 changed. See this mailing list post for more info:
1022 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1024 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1026 2011-08-27 Ben Konrath <ben@bagu.org>
1028 Add document title (database name) to top of the browser page.
1030 I added the document title to the TableSelecitonView but that will
1031 change if / when we add a view that doesn't require table selection.
1033 * mockups/details-contacts.html:
1034 * mockups/details-projects.html:
1035 * mockups/listview-contacts.html:
1036 * mockups/listview-projects.html:
1037 * mockups/style.css: Add document title to mockups to keep things
1039 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1040 sizes to account for the document title.
1041 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1042 Set the document title when it has been retrieved from the server.
1043 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1044 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1045 and implement setDocumentTitle(String) method.
1046 * src/main/webapp/style.css: Add ID for document title style.
1048 2011-08-25 Ben Konrath <ben@bagu.org>
1050 Add NavigationType enum to LayoutItemPortal DTO.
1052 This is the start of adding support for Portals to the Details View.
1054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1055 LayoutItem_Portal.navigation_type enum from libglom to
1056 LayoutItemPortal.NavigationType enum.
1057 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1058 NavigationType enum, field for storing the NavigationType and getter
1061 2011-08-25 Ben Konrath <ben@bagu.org>
1063 Implement the flow table layout in the Details View.
1065 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1066 FlowTable to Group to account for the renamed class.
1067 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1068 File. This is a container widget that implements the Glom details view
1069 flow table behaviour.
1070 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1071 org/glom/web/client/ui/FlowTable.java.
1072 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1073 so that the size of the subgroups are a closer match to the size of
1074 the Glom subgroups. This makes the flowtable layout match the layout
1075 in Glom for the Music Collection example file.
1077 2011-08-16 Ben Konrath <ben@bagu.org>
1079 Create container element for LayoutItemPortal in Details View.
1081 This will help me develop the layout for the FlowTable.
1083 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1084 fieldPanel variable to detailsCell.
1086 2011-08-15 Ben Konrath <ben@bagu.org>
1088 Set the height of the data element in the Details View.
1090 I changed the InlineLabels (text in a span element) to Labels (text in
1091 a div element) so that I could set the height of the details-data
1092 elements instead of the details-cell parent elements. This allows the
1093 the details-data element to display the correct height if style is
1094 applied that shows the height.
1096 This change has the added benefit of allowing the order of the labels
1097 and data elements to be changed for right-to-left languages.
1099 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1100 InlineLabels to Labels.
1101 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1102 InlineLabels to Labels. Set the height of the data element.
1103 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1104 multiline text height in the Formatting DTO.
1105 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1106 for multiline height along with getter and setter methods.
1107 * src/main/webapp/style.css: Adjust style to account for the change
1108 from span elements to div elements in the details cell.
1110 2011-08-15 Ben Konrath <ben@bagu.org>
1112 Make the List View appearance match the mockups.
1114 It doesn't match exactly but it's much better than it was.
1116 * mockups/listview-contacts.html: Remove unused css classes.
1117 * mockups/listview-projects.html: Remove unused css classes.
1118 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1119 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1120 for mainPanel instead of VerticalPanel (table). Set style name on
1121 CellTable. Set style name on Details column. Right-align Details
1123 * src/main/webapp/style.css: Adjust properties to match the mockups.
1125 2011-08-12 Ben Konrath <ben@bagu.org>
1127 Add better support for subgroups in the details view.
1129 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1130 changed FlowTable constructor.
1131 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1132 support for subgroups and subgroup-titles.
1133 * src/main/webapp/style.css: Add CSS class for subgroups and
1136 2011-08-12 Ben Konrath <ben@bagu.org>
1138 Return the top level LayoutGroup title.
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1142 2011-08-11 Ben Konrath <ben@bagu.org>
1144 Make the TableSelector header match the mockup.
1146 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1147 the layout panel. Properly lineup the table selection header with
1148 the list and details view.
1149 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1150 margin around the details view.
1151 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1152 Rename listBox variable to tableSelector. Set id for the style sheet.
1153 Use a FlowPanel instead of a HorizontalPanel.
1154 * src/main/webapp/style.css: Add properties to make the TableSelector
1155 box match the mockups.
1157 2011-07-13 Ben Konrath <ben@bagu.org>
1159 Update install script for java-libglom version change.
1161 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1164 2011-07-13 Ben Konrath <ben@bagu.org>
1166 Add support sub-group in the details view.
1168 I also removed the code that special-cased the default details view
1171 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1173 I still have to make a proper flowtable.
1175 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1176 Don't special-case default details view layout.
1177 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1178 addLayoutField() as I'm going to use it.
1179 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1180 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1182 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1183 extracted from DetailsViewImpl.GroupPanel. Add support for
1185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1186 column count when getting the details layout.
1188 2011-07-12 Ben Konrath <ben@bagu.org>
1190 Set browser title with database and table titles.
1192 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1193 Set the browser title when the table changes and when the activity
1195 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1196 title when retrieving document info (the GlomDocument object).
1197 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1198 with getter and setter methods. Remove unused convenience constructor.
1199 Use default code formatting.
1201 2011-07-12 Ben Konrath <ben@bagu.org>
1203 Ignore LayoutItemPortals in the details view.
1205 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1208 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1209 LayoutItemPortal layout objects.
1210 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1211 LayoutItemPortal objects when retrieving the details layout.
1212 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1213 file. This is an empty class and just used to get type information for
1216 2011-07-12 Ben Konrath <ben@bagu.org>
1218 Use java-libglom 1.17.0.
1222 2011-07-11 Ben Konrath <ben@bagu.org>
1224 Remove "Table:" label from table selector.
1226 This matches a recent change in the Glom UI.
1228 * mockups/details-contacts.html:
1229 * mockups/details-projects.html:
1230 * mockups/listview-contacts.html:
1231 * mockups/listview-projects.html: Remove the "Table:" label from the
1233 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1235 2011-07-11 Ben Konrath <ben@bagu.org>
1237 Add main groups to the details view.
1239 This makes things look a little nicer in the details view. The next step
1240 is to implement the flowtable.
1242 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1243 resources from the standard gwt css theme. Standard.css is now
1244 included in OnlineGlom.html so that the online glom css rules have
1245 precedence over the gwt theme.
1246 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1247 the whole LayoutGroup to the DetailsView instead of just the titles.
1248 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1249 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1250 details layout with a helper class (GroupPanel). I might extract this
1251 class when I make the full flowtable.
1252 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1253 string as default so I don't have to worry about NPEs when processing
1255 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1256 note beside OnlineGlom.gwt.xml above).
1257 * src/main/webapp/style.css: Add default font-size to body to override
1258 the font-size set by the standard theme. Don't use h2 tags for
1259 group-title. Create new details-cell class.
1261 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1263 ConfiguredDocument: Set the port number too.
1265 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1266 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1267 Glom document. Presumably this worked sometimes so far because there is a
1268 default port number.
1270 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1272 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1274 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1275 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1276 correct, though we should throw an exception too.
1278 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1280 Fix a addDocuemnt typo.
1282 * src/main/java/org/glom/web/shared/Documents.java
1283 (Documents.addDocuemnt): Rename to addDocument().
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1285 (OnlineGlomServiceImpl.getDocuments): Adapt.
1287 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1289 Slightly improved log output when connection fails.
1291 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1292 (ConfiguredDocument.setUsernameAndPassword):
1293 We don't know for sure if it' the username/password that's wrong, so
1294 rephrase the message.
1295 Also ouput the exception message, though it's generic in this case.
1297 2011-07-08 Ben Konrath <ben@bagu.org>
1301 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1302 added braces to a one line if statement because the Eclipse formatter
1303 was getting confused.
1305 2011-07-07 Ben Konrath <ben@bagu.org>
1307 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1309 These should really be two separate tasks but I counldn't get things to
1310 work with GWT 2.2.0 and Eclipse 3.7.
1314 * .settings/org.eclipse.jdt.core.prefs:
1315 * .settings/org.eclipse.jdt.ui.prefs:
1316 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1317 * .settings/org.eclipse.m2e.core.prefs:
1318 Add new config files. Update current files. Remove references to the
1319 webtools plugins as we're not using any of the webtools features.
1320 * .gitignore: Add logs directory which is created when running with
1322 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1323 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1324 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1326 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1328 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1330 onlineglom.properties: Add explanatory comments.
1332 * src/main/resources/onlineglom.properties: Also change the default user
1333 from ben to someuser, to avoid the risk of people thinking we just
1334 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1336 2011-06-28 Ben Konrath <ben@bagu.org>
1338 Use filename in Log for incorrect passwords.
1340 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1341 getFileName(String) method to get the filename from the URI.
1343 2011-06-28 Ben Konrath <ben@bagu.org>
1345 Add the table name to the URL token for the ListPlace.
1347 This makes things consistent between the DetailsPlace and the
1348 ListPlace. It also allows the the ListPlace to be bookmarked.
1350 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1351 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1352 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1353 Remove getDefaultListLayout(). The default layout is now returned
1354 by the getListLayout() method when the table name is an empty string.
1355 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1356 Add table name field. Change to a new ListPlace when the table
1357 has been changed. Use getListLayout() for getting the default
1359 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1360 Add table name field. Set the correct table name in the list box
1361 when loading from bookmark. This corrects a problem for the
1363 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1364 Move table name to super-class (HasSelectableTable). Move document
1365 and table URL keys to super-class in HasSelectableTable.
1366 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1367 Add table name field. Add Tokenizer class with URL key common to
1368 the subclasses (DetailsPlace and ListPlace).
1369 * src/main/java/org/glom/web/client/place/ListPlace.java:
1370 Add table name. Add code to parse the URL token.
1371 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1372 Update ListPlace construction with empty table name string.
1373 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1374 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1375 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1376 Update ListPlace construction with table name string.
1377 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1378 Change defaultTableName field to tableName to reflect how it's now
1379 used. Update the getter and setter methods.
1381 2011-06-28 Ben Konrath <ben@bagu.org>
1383 Enable the table selector in the DetailsView.
1385 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1386 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1388 Remove getDefaultDetailsLayout(). The default layout is now returned
1389 by the getDetailsLayout() method when the table name is an empty
1391 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1392 event handler for table change event. Change to using
1393 getDetailsLayout() for the default details layout.
1394 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1396 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1397 when navigating to the details place.
1399 2011-06-27 Ben Konrath <ben@bagu.org>
1401 Use filename based unique document ID in URL and for RPC.
1403 The document ID is the glom document name with spaces (' ') replaced
1404 with pluses ('+') and without the .glom extension.
1406 This change is mostly a string substitution of 'documentTitle' for
1407 'documentID'. The only code change is the addition of a Documents DTO to get the
1408 filename to document title mappings as indicated below.
1410 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1411 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1412 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1413 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1414 Use Documents DTO to create the document links in the document
1416 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1417 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1418 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1419 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1420 * src/main/java/org/glom/web/client/place/ListPlace.java:
1421 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1422 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1423 * src/main/java/org/glom/web/client/ui/ListView.java:
1424 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1425 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1426 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1427 * src/main/java/org/glom/web/server/Log.java:
1428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1429 getDocumentTitles() to getDocuments() and return the Documents DTO.
1430 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1431 transferring the filename to document title mappings.
1433 2011-06-25 Ben Konrath <ben@bagu.org>
1435 Make the authentication popup work again.
1437 This bug was introduced when I extracted ConfiguredDocument to its own class.
1439 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1440 correct success / fail status in setUsernameAndPassword().
1442 2011-06-25 Ben Konrath <ben@bagu.org>
1444 Use filename as unique key for configuring database usernames and passwords.
1446 This replaces the use of the Glom document title which could change
1447 depending on the locale. Thanks to Murray Cumming for pointing out this
1450 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1451 * src/main/resources/onlineglom.properties:
1453 2011-06-24 Ben Konrath <ben@bagu.org>
1455 Pass primary key value to DetailsView.
1457 This enables the DetailsView to load the correct data.
1459 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1460 primary key value field and set in constructor. Pass primary key
1461 value to getDetailsData().
1462 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1463 variables for document title and primary key value.
1464 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1465 key value to the DetailsPlace.
1467 2011-06-24 Ben Konrath <ben@bagu.org>
1469 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1471 This allows the primary key to be retrieved by the Details button. This
1472 functionality has not been implemented yet but it's in the works.
1474 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1475 the LayoutGroup result to ListView.setCellTable instead of all of its
1476 fields individually.
1477 * src/main/java/org/glom/web/client/ui/ListView.java:
1478 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1479 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1480 get the primary key for the table.
1481 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1482 index of the primary key in the LayoutGroup accounting for hidden
1483 primary keys. Rename getJavaNumberFormat() to
1484 convertToJavaNumberFormat() for consistency. Cleanup / add some
1486 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1487 field for primary key index and a field to indicate whether the
1488 primary key is hidden or not.
1490 2011-06-23 Ben Konrath <ben@bagu.org>
1492 Rename getTableData methods to getListData.
1494 This is a rename refactor for consistency with other methods.
1496 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1497 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1498 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1501 2011-06-23 Ben Konrath <ben@bagu.org>
1503 Extract the ConfiguredDocument innerclass into its own class.
1505 This makes the servlet code more object oriented.
1507 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1508 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1509 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1510 new ConfiguredDocument class.
1512 2011-06-21 Ben Konrath <ben@bagu.org>
1514 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1516 This makes things more inline with how libglom works and reduces code
1517 duplication. This refactor lays the groundwork for adding the primary key to
1518 the LayoutGroup object.
1520 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1521 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1522 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1523 Change method names to getListLayout and getDefaultListLayout for
1524 consistency. Use LayoutGroup as the DTO for the list layout instead of
1525 ColumnInfo and LayoutListTable.
1526 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1527 new method names along with the LayoutGroup object for transferring the
1529 * src/main/java/org/glom/web/client/ui/ListView.java:
1530 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1531 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1532 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1534 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1535 Replaced with LayoutGroup.
1536 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1537 expectedResultSize and defaultTableName fields which are needed for
1539 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1540 type field which is needed for the list layout but will also be
1541 useful for the details layout as things progress.
1542 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1543 Make class abstract. Remove the unnecessary
1544 getFormattingHorizontalAlignment method. Add setFormatting method.
1546 2011-06-16 Ben Konrath <ben@bagu.org>
1548 Add scripts for building and installing war.
1550 These will help when updating OnlineGlom but they're also good
1551 supplemental documentation of the build and deployment proceeding.
1553 * utils/build-onlineglom-war.sh: New file.
1554 * utils/install-onlineglom-war.sh: New file.
1556 2011-06-16 Ben Konrath <ben@bagu.org>
1558 Create wrapper class to create consistent log messages.
1560 I wrapped methods in the Log class of gwt-log to add the method names
1561 from the servlet and create consistent formatting of the document title
1562 and table names in the log messages.
1564 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1566 log methods to use methods from wrapped Log class.
1568 2011-06-16 Ben Konrath <ben@bagu.org>
1570 Remove superfluous conditional return.
1572 Thanks to Murray Cumming for pointing this out!
1574 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1576 2011-06-15 Ben Konrath <ben@bagu.org>
1578 Return an ArrayList of LayoutGroups for the Details layout.
1580 This corrects a problem with the details layout as it can have more
1581 than one top level LayoutGroup.
1583 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1584 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1585 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1586 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1587 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1588 with ArrayList of LayoutGroups for the details view layout.
1589 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1590 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1591 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1592 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1593 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1594 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1596 2011-06-14 Ben Konrath <ben@bagu.org>
1598 Use cast_dynamic method to determine the libglom LayoutItem type.
1600 This is better than finding the LayoutItem type by using the string
1601 returned from the get_part_type_name() method.
1603 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1605 2011-06-14 Ben Konrath <ben@bagu.org>
1607 Add method names to log entries in the servlet.
1609 This helps when tracking down deployment problems.
1611 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1613 2011-06-14 Ben Konrath <ben@bagu.org>
1615 Add data to the DetailsView using a hard-coded primary key value.
1617 The layout and functionality of the DetailsView is not complete. This
1618 is just a checkpoint so the patch doesn't get too big.
1620 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1621 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1622 Add getDetailsData() servlet method.
1623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1624 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1625 LayoutFields are added to the DetailsView.
1626 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1627 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1628 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1629 take the string for the title instead of the object.
1630 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 Add implementation getDetailsData() along with some private helper
1633 * src/main/webapp/style.css: Add padding to details-data class. Add a
1634 details-label class with the same padding as the details-data class.
1636 2011-06-03 Ben Konrath <ben@bagu.org>
1638 Use presenter.goTo() to change to the DetailsPlace.
1640 This will make things easier when we need to open the DetailsView with
1641 data specific to the row that was clicked.
1643 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1645 2011-06-02 Ben Konrath <ben@bagu.org>
1647 Add CSS file from mockups.
1649 I'm adding this now because it's going to be useful to have when
1650 developing the DetailsView. The TableSelectionView and ListView aren't
1653 * src/main/webapp/OnlineGlom.html:
1654 * src/main/webapp/style.css:
1656 2011-06-02 Ben Konrath <ben@bagu.org>
1658 Use String.isEmpty() to check for empty string.
1660 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1662 2011-06-02 Ben Konrath <ben@bagu.org>
1664 Display main layout group titles in the DetailsView.
1666 This is the start of the DetailsActivity/DetailsView implementation.
1668 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1669 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1670 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1671 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1672 Get the layout information for the details view from the server and set
1673 the main layout group titles.
1674 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1675 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1676 Add addLayoutGroup() and addLayoutField() methods. This are just
1677 temporary methods for creating the the details view that will change
1679 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1680 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1682 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1683 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1684 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1685 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1686 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1687 Data Transfer Objects that mimic the libglom object structure. These are
1688 used for transferring the details layout but could also be used for
1689 transferring the list layout.
1691 2011-05-27 Ben Konrath <ben@bagu.org>
1693 Reset the AuthenticationPopup when clearing the ListView.
1695 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1697 2011-05-27 Ben Konrath <ben@bagu.org>
1699 Fix problem with onlineglom.properties file loading.
1701 The old way worked in Eclipse but not on the server. Loading the
1702 onlineglom.properties file now works in Eclipse and on the server.
1704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1706 2011-05-24 Ben Konrath <ben@bagu.org>
1708 Update gwt-log from 3.1.0 to 3.1.2.
1710 Gwt-log 3.1.0 has been marked as depreciated.
1714 2011-05-24 Ben Konrath <ben@bagu.org>
1716 Add comment to ListActivity.goTo() method.
1718 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1720 2011-05-24 Ben Konrath <ben@bagu.org>
1722 Remove FIXME in convertGdkColorToHtmlColour()
1724 The Gdk::Color value returned by libglom is 16-bits per channel on both
1725 64 and 32-bit platforms.
1727 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1729 2011-05-19 Ben Konrath <ben@bagu.org>
1731 Improve performance of initial ListView load.
1733 I removed a round trip to the server for getting the default table name
1734 and then requesting information about that table. This also removes a potential
1735 problem with the table change handler not being setup in time to receive the
1736 table change event from the ListActivity.
1738 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1739 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1740 getDefaultLayoutListTable() method. Improve comments.
1741 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1742 getDefaultLayoutListTable() method instead of firing a table change
1743 event to get the table to load.
1744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1745 implementation of getDefaultLayoutListTable() method.
1746 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1749 2011-05-19 Ben Konrath <ben@bagu.org>
1751 Override toDebugString() in TableChangeEvent.
1753 This is useful to have for debugging.
1755 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1757 2011-05-19 Ben Konrath <ben@bagu.org>
1759 Add a "Back to List" link when at the DetailsPlace.
1761 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1762 Populate the CellTable based on the selected table of the ListBox if
1763 it's set otherwise use the default table. This allows the "Back to
1765 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1766 Remove Place from constructors. Add a setPlace() method. Add
1767 goToPlace() method. Set class as presenter for TableSelectionView.
1768 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1769 Use the same TableSelectionActivity when switching between the List and
1771 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1772 Subclass the new HasSelectableTablePlace. This removes some duplicate
1774 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1775 New class to represent Places that display the TableSelectionView.
1776 * src/main/java/org/glom/web/client/place/ListPlace.java:
1777 Subclass the new HasSelectableTablePlace. This removes some duplicate
1779 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1780 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1781 Add Presenter interface. Add setBackLinkVisible() method. Add
1782 setBackLink() method.
1784 2011-05-18 Ben Konrath <ben@bagu.org>
1786 Enable the "Details" buttons.
1788 Right now only an empty details view is displayed.
1790 * src/main/java/org/glom/web/client/ClientFactory.java:
1791 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1792 Add DetailsView to ClientFactory.
1793 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1794 A basic activity for the details view.
1795 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1796 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1798 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1799 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1801 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1802 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1803 unnecessary super() in constructor.
1804 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1805 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1806 really shouldn't create a new TableSelectionActivity for both the ListPlace
1807 and the DetailsPlace so this should be considered a temporary solution.
1808 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1809 New file. Represents a URL for the details view.
1810 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1811 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1812 A basic details view interface and implementation.
1813 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1814 Enable the "Details" buttons.
1816 2011-05-12 Ben Konrath <ben@bagu.org>
1818 Use a LayoutPanel with multiple display areas for main layout.
1820 This is mostly a refactor in that there are no changes from the user
1821 point of view. These changes are required so that we can swap out the list view
1822 with the details view when the user clicks the "Details" button.
1824 * src/main/java/org/glom/web/client/ClientFactory.java:
1825 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1826 OnlineGlomView. Add TableSelectionView, ListView and
1827 AuthenticationPopup.
1828 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1829 for main layout. Add display regions for main activities. Add
1830 activity manager for for main activities.
1831 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1832 file from parts of the deleted OnlineGlomActivity.
1833 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1834 New file from parts of the deleted OnlineGlomActivity.
1835 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1836 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1837 New files for app wide table change event.
1838 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1839 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1840 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1841 Activity mappers for the main activities replace the deleted app-wide
1843 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1844 Fix a spelling error in he comment.
1845 * src/main/java/org/glom/web/client/ui/ListView.java:
1846 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1847 Renamed from LayoutListView and modified for MVP. This still not a
1848 proper dumb view as prescribed by the MVP pattern but it works for now.
1849 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1850 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1851 New widget stripped out of the deleted OnlineGlomView.
1852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1853 Remove hack that is fixed by this patch.
1855 2011-05-06 Ben Konrath <ben@bagu.org>
1857 Rename OnlineGlomPlace to ListPlace.
1859 The only change besides the rename is that url will now display #list
1860 instead of #Document.
1862 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1863 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1864 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1865 * src/main/java/org/glom/web/client/place/ListPlace.java:
1866 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1868 2011-05-06 Ben Konrath <ben@bagu.org>
1870 Use Presenter for app navigation.
1872 This is the proper way to deal with Place (URL) changes with the MVP
1875 * src/main/java/org/glom/web/client/ClientFactory.java:
1876 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1877 PlaceHistoryMapper and PlaceHistoryHandler.
1878 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1879 PlaceHistoryMapper and PlaceHistoryHandler.
1880 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1881 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1882 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1883 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1884 Add Presenter interface and setPresenter methods. Rename addHyperLink
1885 to addDocumentLink taking only the document title as a parameter.
1887 2011-04-14 Ben Konrath <ben@bagu.org>
1889 Prompt for db username/password if they haven't been set.
1891 This is implemented with a popup widget that is contained within the
1892 OnlineGlomView and managed by the OnlineGlomActivity.
1894 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1895 methods for checking and setting the database username and password.
1896 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1897 new methods for checking and setting the database username and
1899 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1900 Display authentication popup if the JDBC connection to the database
1901 has not been authenticated.
1902 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1904 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1905 for dealing with the authentication popup.
1906 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1907 Implement the methods for dealing with the authentication popup.
1908 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1909 try to executed queries if the database connection hasn't been
1910 authenticated. Implement methods for checking and setting the
1911 database username and password.
1913 2011-04-12 Ben Konrath <ben@bagu.org>
1915 Make log messages a little clearer.
1917 Add a dash betweeen the document title and the table name.
1919 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1921 2011-04-12 Ben Konrath <ben@bagu.org>
1923 Protect against NPEs when cleaning up database resources.
1925 While this isn't strictly necessary because the exception is caught,
1926 not protecting against the NPEs makes it harder to find the real error
1929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1931 2011-04-12 Ben Konrath <ben@bagu.org>
1933 Move configuration of the servlet to the constructor.
1935 The servlet will be initialized even if the database authentication
1936 information is not set or correct. I still need to add the UI for prompting
1937 the user for the authentication information when it's required.
1939 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1940 javadocs for getDocumentTitles() method.
1941 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1942 Set error message when RPC fails.
1943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1944 glom files directory from the configuration file. Try to set the
1945 database authentication information for the specific document if it's
1946 set and works otherwise try to use the global authentication
1947 information set for the directory.
1948 * src/main/resources/onlineglom.properties: Moved from
1949 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1950 Added detailed comments for the new keys.
1952 2011-04-11 Ben Konrath <ben@bagu.org>
1954 Remove unnecessary @Override in DocumentSelectionViewImpl.
1956 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1958 2011-04-11 Ben Konrath <ben@bagu.org>
1960 Remove center alignment in DocumentSelectionView.
1962 The title element is still centred but the document titles and bottom
1963 sentence are both left-aligned.
1965 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1967 2011-04-11 Ben Konrath <ben@bagu.org>
1969 Change 'Demo' naming convention to 'Document'.
1971 This is just a rename refactor with no functional changes to the code.
1973 * src/main/java/org/glom/web/client/ClientFactory.java:
1974 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1975 * src/main/java/org/glom/web/client/OnlineGlom.java:
1976 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1977 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1978 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1979 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1980 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1981 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1982 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1983 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1984 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1987 2011-04-08 Ben Konrath <ben@bagu.org>
1989 Remove FIXME from safeLongToInt() method.
1991 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1996 2011-04-08 Ben Konrath <ben@bagu.org>
1998 Display an error if no glom documents are found in the specified directory.
2000 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2001 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2002 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2003 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2005 2011-04-08 Ben Konrath <ben@bagu.org>
2007 Add copyright header to one more file ... oops.
2009 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2011 2011-04-08 Ben Konrath <ben@bagu.org>
2013 Add copyright header to files without it.
2015 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2016 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2017 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2018 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2019 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2020 * src/main/java/org/glom/web/shared/GlomField.java:
2022 2011-04-08 Ben Konrath <ben@bagu.org>
2024 Add support for accessing multiple glom documents in the servlet.
2026 This completes the demo selection functionality.
2028 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2029 document title to methods.
2030 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2031 document title to methods.
2032 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2033 Set browser window title when the activity starts. Correct name of
2034 document title variable.
2035 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2036 Set browser window title when the activity starts. Set the table
2037 selector change handler after table selector has been set. Clear the
2038 OnlineGlomView when the activity has been stopped.
2039 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2040 document title as the place token. Use "#Document:" instead of
2041 "#OnlineGlomPlace:" in the URL.
2042 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2043 Change heading to "Online Glom"
2044 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2045 document title in RPC methods.
2046 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2047 setDocumentTitle() method. Add clear() method.
2048 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2049 setDocumentTitle() method. Implement clear() method which removes the
2050 change handler on the ListBox, clears the ListBox and clears the
2052 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2053 Implement methods with document title. Keep track for the configured
2054 glom documents and their corresponding JDBC configurations in a hash
2055 table. This information is retrieved using the document title as the
2056 key in the hash table.
2057 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2058 document title field as it's no longer needed.
2060 2011-04-08 Ben Konrath <ben@bagu.org>
2062 Update the Eclipse JDT configuration.
2064 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2065 methods. Automatically add the copyright header to new files.
2067 2011-04-05 Ben Konrath <ben@bagu.org>
2069 Add new page for demo selection.
2071 This patch adds all the components required to view and start an
2072 OnlineGlom demo by clicking on the desired hyperlink. The user is
2073 able to return to the demo selection page with the browser's back
2074 button. I still need to modify the servlet to work with multiple
2075 documents so all demo links will load the file defined in the
2076 OnlineGlom.properties.
2078 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2079 This is only useful during development so we don't need to save it.
2080 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2081 get a reference to the DemoSelectionView.
2082 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2083 method to get a reference to the DemoSelectionView.
2084 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2085 default view to DemoSelectionView.
2086 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2087 to get glom document titles for glom files in a hard-coded directory.
2088 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2089 method to get glom document titles for glom files in a hard-coded
2091 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2092 Presenter for DemoSelectionView.
2093 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2094 for DemoSelectionView.
2095 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2096 Update for DemoSelectionView.
2097 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2098 Basic 'Place' implementation for the DemoSelectionView.
2099 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2100 The interface for the DemoSelectionView.
2101 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2102 The implementation of the DemoSelectionView.
2103 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2104 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2106 implementation of method to get glom document titles for glom files
2107 in a hard-coded directory.
2108 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2109 on longer being used.
2110 * src/main/webapp/glom.png: Glom logo.
2112 2011-04-05 Ben Konrath <ben@bagu.org>
2114 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2116 This is the forth and final commit of a refactor that will allow
2117 OnlineGlom to be used with multiple documents.
2119 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2120 Move RPC code from OnlineGlomViewImpl to this class.
2121 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2123 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2124 RPC code to the presenter class (the P in MVP).
2126 2011-04-04 Ben Konrath <ben@bagu.org>
2128 Start moving the existing OnlineGlom code to MVP.
2130 This work is based on the GWT MVP framework that is documented here:
2132 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2134 This is the third commit of a refactor that will allow OnlineGlom to
2135 be used with multiple documents.
2137 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2138 Interface for client factory which is used to get instances of various
2139 classes throughout the app.
2140 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2141 Implementation of client factory.
2142 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2143 initialize the MVP framework.
2144 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2145 New file. Activity manager for the main container widget. This is the
2147 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2148 Maps place (URL) to its corresponding activity.
2149 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2150 New file. This is just a place holder for a generated file.
2151 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2152 New file. Represents the URL for the main Online Glom app.
2153 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2154 for changes in LayoutListViewImpl.
2155 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2156 interface for View. Move code to OnlineGlomViewImpl class.
2157 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2158 file. Implementation of OnlineGlomView.
2159 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2160 Place resources. Use ClientFactoryImpl by default.
2162 2011-04-04 Ben Konrath <ben@bagu.org>
2164 Move View classes to their own package.
2166 This is the second commit of a refactor that will allow OnlineGlom to
2167 be used with multiple documents.
2169 * src/main/java/org/glom/web/client/OnlineGlom.java:
2170 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2171 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2173 2011-04-02 Ben Konrath <ben@bagu.org>
2175 Move UI code from the main module to its own class.
2177 This is the first commit of a refactor that will allow OnlineGlom to be
2178 used with multiple documents.
2180 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2181 references to OnlineGlom to OnlineGlomView.
2182 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2183 OnlineGlomView and instantiate it here.
2184 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2185 represents the main OnlineGlomView with one document.
2187 2011-04-01 Ben Konrath <ben@bagu.org>
2189 Fix formatting of gwt.xml and add DTD.
2191 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2193 2011-03-30 Ben Konrath <ben@bagu.org>
2195 Propperly convert gdkColor string to html colour string.
2197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2199 2011-03-28 Ben Konrath <ben@bagu.org>
2201 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2203 This implementation matches
2204 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2205 readable and is not tied to Swig.
2207 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2209 2011-03-28 Ben Konrath <ben@bagu.org>
2211 Use read-only checkboxes for boolean field types.
2213 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2214 in the CellTable based on the field type. It currently only
2215 distinguishes between boolean and text columns but I'll need to add
2216 support for more types.
2217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2218 column type in the ColumnInfo object. Add method to convert between the
2219 glom field type enum in ColumnInfo and the glom field type in libglom.
2220 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2222 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2223 getting and setting booleans.
2225 2011-03-25 Ben Konrath <ben@bagu.org>
2227 Don't get the Date twice from the ResultSet.
2229 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2231 2011-03-25 Ben Konrath <ben@bagu.org>
2233 Cleanup code in the servlet.
2235 * TODO: Remove item about row count. Add item about testing row count
2236 query with large number of rows.
2237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2238 spelling mistakes, change method parameter to be consistent with
2241 2011-03-25 Ben Konrath <ben@bagu.org>
2243 Add server side logging with the gwt-log library.
2245 * .gitignore: Ignore the log file we're now producing.
2246 * TODO: Add a couple TODO item for logging.
2247 * pom.xml: Add gwt-log and log4j as a dependency.
2248 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2249 logging of errors, warnings and some important info.
2250 * src/main/resources/log4j.properties: New file to configure log4j.
2252 2011-03-24 Ben Konrath <ben@bagu.org>
2254 Add a disable button for the Details view.
2256 * src/main/java/org/glom/web/client/LayoutListView.java:
2258 2011-03-22 Ben Konrath <ben@bagu.org>
2260 Use a count query to get the number of rows for the list view pager.
2262 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2264 2011-03-22 Ben Konrath <ben@bagu.org>
2266 Add more TODO information about CellTable pager positioning.
2270 2011-03-19 Ben Konrath <ben@bagu.org>
2272 Add TODO item about CellTable pager positioning.
2276 2011-03-18 Ben Konrath <ben@bagu.org>
2278 Remove unneeded GlomFieldColumn class.
2280 This is just a small code cleanup.
2282 * src/main/java/org/glom/web/client/LayoutListView.java:
2284 2011-03-18 Ben Konrath <ben@bagu.org>
2286 Use cursor mode in the query that gets data for the list view.
2288 I still need to fix the potential memory problem when getting the row
2289 count for the list view.
2291 * TODO: Add note about testing memory usage with large data sets. Add
2292 item about fixing row counting with large data sets.
2293 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2294 PostgreSQL JDBC driver into cursor mode when getting data for the
2297 2011-03-15 Ben Konrath <ben@bagu.org>
2299 Remove the GWT Container from the Eclipse build classpath.
2301 The GWT dependencies are set by Maven so this isn't needed.
2305 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2307 Added some earlier mockups to git, but not to the tarball dist.
2309 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2310 Openismus. These hopefully show how we might structure the HTML so that
2311 it can be styled easily with CSS. However, we probably need to adapt them
2312 for the CSS structure that GWT dictates for common widgets.
2314 2011-03-14 Ben Konrath <ben@bagu.org>
2316 Locate OnlineGlom.properties using the ServletContext.
2318 This is required to be able to locate the file in the deployed servlet.
2320 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2321 Configure the database and glom document in in a helper method so
2322 that the ServletContext can be used to locate OnlineGlom.properties.
2323 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2324 src/main/webapp. This is the proper location for .properites files.
2326 2011-03-12 Ben Konrath <ben@bagu.org>
2328 Add note to README about why we're compiling down to obfuscated JavaScript.
2332 2011-03-11 Ben Konrath <ben@bagu.org>
2334 Use properties file to configure servlet.
2336 This allows people to change the glom file path, db username and db
2337 password without recompiling the code.
2339 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2340 * src/main/webapp/OnlineGlom.properties:
2342 2011-03-11 Ben Konrath <ben@bagu.org>
2344 Use table fields in layout list view if the layout list is not defined.
2346 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2347 Manually create a LayoutFieldVector for the query builder using the
2348 table fields when a layout list is not defined in the glom file.
2350 2011-03-11 Ben Konrath <ben@bagu.org>
2352 Only show FIXME string for images when there's an image.
2354 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2355 in this change are some small code cleanups.
2357 2011-03-11 Ben Konrath <ben@bagu.org>
2359 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2361 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2363 2011-03-11 Ben Konrath <ben@bagu.org>
2365 Correctly set the index of the default table.
2367 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2368 Correctly set the index of the default table. Add commented out example
2371 2011-03-10 Ben Konrath <ben@bagu.org>
2373 Add comment to pom.xml about the previous change.
2375 * pom.xml: Add comment about the deployment issue so that it's obvious
2376 why java-libglom is set to the provided scope.
2378 2011-03-10 Ben Konrath <ben@bagu.org>
2380 Change java-libglom dependency from compile to provided in pom.xml.
2382 Since java-libglom uses jni it can only be loaded once and therefore
2383 must be placed in $CATALINA_HOME/lib and not included in each war.
2384 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2385 More information about this issue can be found in the Tomcat 6 release
2386 notes in the "JNI Based Applications" section:
2388 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2390 * README: Remove note about this issue. Deployment info should really
2391 be on the wiki anyway so I'll add it right now.
2392 * pom.xml: Change java-libglom dependency from compile to provided so
2393 that it's copied in to the packaged war.
2395 2011-03-09 Ben Konrath <ben@bagu.org>
2397 Change to using a neutral locale for currency, date and time formatting.
2399 This solves the problem of currency values being represented without a
2400 space between the currency code and the number (e.g. "EUR5.89" is now
2401 represented as "EUR 5.89"). More work is required when we implement
2402 a locale preference setting.
2404 * TODO: Add note about currency formatting issues with different
2406 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2407 to using the neutral ROOT locale.
2409 2011-03-09 Ben Konrath <ben@bagu.org>
2411 Add support for currency codes that are not ISO 4217 codes.
2413 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2414 the currency code defined in the glom file when it's not 3 characters
2415 long or when Java doesn't recognize the string as an ISO 4217 code.
2417 2011-03-08 Ben Konrath <ben@bagu.org>
2419 Remove test classes, launch configurations and configuration.
2421 The test stuff was getting in the way when creating the war. To make
2422 the war file you can now do 'mvn clean package'. The packaged war file
2423 will be in the target directory.
2425 * .classpath: Remove unused classpathentry for tests and i18n.
2426 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2427 property. Don't run test or i18n goals when packaging the war.
2428 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2433 * OnlineGlomTest-dev.launch:
2434 * OnlineGlomTest-prod.launch:
2435 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2436 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2438 2011-03-07 Ben Konrath <ben@bagu.org>
2440 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2442 These fixes allow me to use 'mvn deploy' to create the war file.
2444 * .classpath: This generated config has been updated by Eclipse. This
2445 change was probably triggered by me updating from Eclipse 3.6.1 to
2447 * .gitignore: Add entry to ignore the directory
2448 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2449 * .project: The generated config has been updated by Eclipse. This
2450 change was probably triggered by me updating from Eclipse 3.6.1 to
2452 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2453 so that Eclipse doesn't complain
2454 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2455 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2456 'tests' directory to 'client' directory. This is the new
2457 gwt-maven-plugin convension.
2458 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2459 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2461 2011-03-07 Ben Konrath <ben@bagu.org>
2463 Add support for horizontal alignment in the LayoutList columns.
2465 * TODO: Remove item about horizontal alignment. Add item about
2466 improvements to ColumnInfo.
2467 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2468 alignment on the columns. Use ColumnInfo RPC object get the column
2469 title and horizontal alignment.
2470 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2471 LayoutListView creation with ColumnInfo RPC object.
2472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2473 a ColumnInfo object for every LayoutList columnn. Convert the
2474 FieldFormatting.HorizontalAlignment to the correct
2475 ColumnnInfo.HorizontatlAlignment with the new
2476 getColumnInfoHorizontalAlignment helper method.
2477 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2478 to encapsulate column information like alignment and title. This
2479 could be used to set the colour instead of on a per cell field basis.
2480 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2481 column title storage and retrieval with ColumnInfo.
2483 2011-03-04 Ben Konrath <ben@bagu.org>
2485 Add support for column sorting.
2487 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2488 AsynDataProvider to be an anonymous inner class. Use new
2489 getSortedTableData RPC method when column sort is requested. Set all
2490 columns sortable and add an AsyncHandler to activate sorting in the
2492 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2493 method getSortedTableData(). Cleanup other method signatures.
2494 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2495 new method getSortedTableData(). Cleanup other method signatures.
2496 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2497 Implement getSortedTableData() and getTableData() methods by using a
2498 private helper method with the appropriate parameters filled in. Use
2499 user supplied sort clause when supplied, otherwise fall back to
2500 sorting by the primary key. Move destroy() method to be underneath
2501 constructor for readability. Cleanup comments.
2503 2011-03-03 Ben Konrath <ben@bagu.org>
2505 Add support for colour text and colour backgrounds to the layout list cells.
2507 Only the cell backgrounds are coloured which leaves a gap between the
2508 cells that isn't coloured. I need to figure out a way to set
2509 'style=background-colour:' on the whole column rather than just the
2512 * TODO: Add a note about colouring the background of the whole column.
2513 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2514 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2515 render the coloured text and backgrounds. Use GlomField[] for the row type.
2516 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2518 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2519 GlomField[] for the row type.
2520 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2521 GlomField[] for the row type. Set the text, text colour and background
2522 colour in the GlomField objects as specified in the glom document. Add
2523 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2524 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2525 the glom field text, foreground colour and background colour.
2527 2011-03-02 Ben Konrath <ben@bagu.org>
2529 Don't display hidden tables in the combo box.
2531 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2533 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2534 code to ignore hidden tables using ArrayLists for the table names and
2536 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2537 tableNames to use ArrayLists instead of String[]. Update getter and setter
2540 2011-03-01 Ben Konrath <ben@bagu.org>
2542 Add support for Date and Time number types.
2544 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2545 Implement formatting for Date and Time values. Change the default glom
2546 file to small business example.
2548 2011-03-01 Ben Konrath <ben@bagu.org>
2550 Add support for formatting glom types as specified in the glom file.
2552 Formatting isn't finished yet - I still need to add support for Date
2555 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2556 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2557 checks for null values in JDBC cleanup code and catch all exceptions
2558 instead of just SQLExceptions.
2559 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2562 2011-03-01 Ben Konrath <ben@bagu.org>
2564 Use GWT 2.2.0 instead of 2.1.1.
2566 * pom.xml: Change GWT version numbers.
2568 2011-03-01 Ben Konrath <ben@bagu.org>
2570 A few small code cleanups.
2572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2574 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2575 unnecessary object creation in constructor.
2576 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2577 unnecessary object creation in constructor.
2579 2011-02-28 Ben Konrath <ben@bagu.org>
2581 Add file for TODO list.
2585 2011-02-18 Ben Konrath <ben@bagu.org>
2587 Enable the CellTable Pager when more than 20 rows need to be viewed.
2589 The Pager will automatically become active when the results are larger
2590 than the CellTable size which is currently set to 20 lines.
2592 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2593 name on debug statment in RPC call in LayoutListDataProvider, add
2594 numRows parameter to LayoutListView constructor, propperly set rowCount
2596 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2597 name on debug statment in RPC call, use LayoutListTable object in RPC
2598 calls, pass rowCount to LayoutListView.
2599 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2600 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2602 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2603 interface for changes in OnlineGlomService.
2604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2605 getLayoutListHeaders() to getLayoutListTable() and return
2606 LayoutListTable. Using this object allows me to pass other information
2607 about the LayoutList like the expected number of rows in the result set.
2608 The Connection object from the connection pool is now propperly closed.
2609 Only the requested number of lines are returned to the client in
2611 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2612 GlomTable and add columnTitles and numRows.
2614 2011-02-18 Ben Konrath <ben@bagu.org>
2616 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2618 This is a small performance boost. I'll use GlomTable to get the required
2619 layoutlist information.
2621 * src/main/java/org/glom/web/client/OnlineGlom.java:
2622 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2623 * src/main/java/org/glom/web/shared/GlomDocument.java:
2625 2011-02-18 Ben Konrath <ben@bagu.org>
2627 Add option to turn off formatting in JDT formatter preferences.
2629 * .settings/org.eclipse.jdt.core.prefs:
2631 2011-02-18 Ben Konrath <ben@bagu.org>
2633 Rename LayoutList to LayoutListView.
2635 I'm working towards setting things up to easily use MVP when the time
2638 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2640 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2643 2011-02-17 Ben Konrath <ben@bagu.org>
2645 Move LayoutListDataProvider class into LayoutList.java.
2647 * src/main/java/org/glom/web/client/LayoutList.java:
2649 2011-02-17 Ben Konrath <ben@bagu.org>
2651 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2653 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2655 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2656 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2657 from LibGlomServer.java.
2658 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2659 Rename from LibGlomServiceAsync.java.
2660 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2661 Rename from LibGlomServiceImpl.java.
2662 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2664 2011-02-17 Ben Konrath <ben@bagu.org>
2666 Update JDT settings.
2668 * .settings/org.eclipse.jdt.core.prefs:
2670 2011-02-17 Ben Konrath <ben@bagu.org>
2672 Move GWT-RPC objects to shared package (where they should be).
2674 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2675 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2676 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2677 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2678 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2679 org.glom.web.shared package.
2680 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2681 org.glom.web.shared package.
2682 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2683 directory in compilation to javascript.
2685 2011-02-16 Ben Konrath <ben@bagu.org>
2687 Add sort clause to the sql query that grabs table information.
2689 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2690 if one of the columns is a primary key.
2692 2011-02-16 Ben Konrath <ben@bagu.org>
2694 Disable generateAsync feature of gwt-maven.
2696 The generated interface does not correctly match the methods in LibGlomService
2697 and the generated singleton Util inner-class doesn't respect the servlet
2700 * pom.xml: Turn off generateAsync feature.
2701 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2702 with singleton Util inner-class.
2704 2011-02-14 Ben Konrath <ben@bagu.org>
2706 Add LGPL v3 licence notices.
2708 Followed directions listed here:
2709 http://www.gnu.org/licenses/gpl-howto.html
2711 * COPYING: This file is a copy of the GPL v3.
2712 * COPYING.LESSER: This file is a copy of the LGPL v3.
2713 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2715 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2717 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2719 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2721 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2723 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2725 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2728 2011-02-14 Ben Konrath <ben@bagu.org>
2730 Use ArrayList instead of Array in GWT-RPC calls.
2732 Apparently this gives a slight performance boost to the compiled
2735 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2737 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2740 2011-02-14 Ben Konrath <ben@bagu.org>
2742 Access data from a postgres db rather than the example glom file.
2744 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2745 compile down to obfuscated javascript.
2746 * pom.xml: Add c3p0 and postgres JDBC libraries.
2747 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2748 using a postgres db accessed through the c3p0 connection pooling library.
2750 2011-02-14 Ben Konrath <ben@bagu.org>
2752 Update Java formatter settings.
2754 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2756 2011-02-02 Ben Konrath <ben@bagu.org>
2758 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2760 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2762 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2763 the compiled webapp directory that Eclipse uses as we're using Maven now.
2764 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2765 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2767 * pom.xml: Format file, change target Java version to 1.6.
2769 2011-02-02 Ben Konrath <ben@bagu.org>
2771 Add information about a deployment related issue.
2773 * README: Add Notes section with the problem outlined.
2775 2011-02-02 Ben Konrath <ben@bagu.org>
2777 Call Glom.libglom_deinit() when the servlet is shutdown.
2779 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2780 Glom.libglom_deinit() to destroy() method.
2782 2011-01-28 Ben Konrath <ben@bagu.org>
2784 Use generated Util class to get the RPC Async interface.
2786 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2788 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2789 getInstance() method to get a reference to the RPC Async interface.
2790 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2791 getInstance() method to get a reference to the RPC Async interface, remove
2792 the now unused getLibGlomServiceProxy() method.
2794 2011-01-27 Ben Konrath <ben@bagu.org>
2796 Cleanup ChangeLog entry from previous commit.
2798 * ChangeLog: Group logical changes together and add comments.
2800 2011-01-25 Ben Konrath <ben@bagu.org>
2802 Convert to gwt-maven project.
2804 * .gitignore: Update for new project structure.
2805 * README: New file with a link to the online documentation.
2806 * pom.xml: The generated maven configuration file with some tweaks.
2808 Add / update Eclipse settings. These files are a merge of the files that
2809 were generated with the gwt-maven plugin and the files we were previously
2813 * .settings/.jsdtscope:
2814 * .settings/com.google.gdt.eclipse.core.prefs:
2815 * .settings/com.google.gwt.eclipse.core.prefs:
2816 * .settings/org.eclipse.jdt.core.prefs:
2817 * .settings/org.eclipse.wst.common.component:
2818 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2819 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2820 * .settings/org.maven.ide.eclipse.prefs:
2821 * OnlineGlomTest-dev.launch:
2822 * OnlineGlomTest-prod.launch:
2824 Java source files moved from the 'src' directory to the directory structure
2826 * src/main/java/org/glom/web/client/GlomDocument.java:
2827 * src/main/java/org/glom/web/client/GlomTable.java:
2828 * src/main/java/org/glom/web/client/LayoutList.java:
2829 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2830 * src/main/java/org/glom/web/client/LibGlomService.java:
2831 * src/main/java/org/glom/web/client/OnlineGlom.java:
2832 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2834 Non-functional property file used for translations. I included this as
2835 reminder that it's something I need to sort out.
2836 * src/main/resources/org/glom/web/client/Messages.properties:
2838 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2839 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2841 The servlet configuration files moved from the 'war' directory.
2842 * src/main/webapp/OnlineGlom.css:
2843 * src/main/webapp/OnlineGlom.html:
2844 * src/main/webapp/WEB-INF/web.xml:
2846 Generated test files with most of the code commented out. I included these
2847 so that it's easy to add tests when we're ready for them.
2848 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2849 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2851 2011-01-25 Ben Konrath <ben@bagu.org>
2853 Remove unused println.
2855 * src/org/glom/web/server/LibGlomServiceImpl.java:
2857 2011-01-25 Ben Konrath <ben@bagu.org>
2859 Add project specific JDT settings.
2861 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2862 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2864 2011-01-25 Ben Konrath <ben@bagu.org>
2866 Populate celltable with example data.
2868 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2869 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2870 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2871 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2872 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2873 asynchronously gets the example data.
2874 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2875 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2876 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2877 curently selected table to be retrieved by other widgets.
2878 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2879 implement getTableData() in a hacky way. This method needs to be updated
2880 to grab information from the database when database creating is
2883 2011-01-20 Ben Konrath <ben@bagu.org>
2885 Set table headers when table dropBox changes.
2887 * src/org/glom/web/client/GlomDocument.java: Correct some method
2889 * src/org/glom/web/client/LibGlomService.java: Add method
2890 to get list layout field names.
2891 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2892 to get list layout field names.
2893 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2894 widget for list layout table.
2895 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2896 the table drop box and add new updateTable() method to asynchronously
2897 get the layout list field names for the currently selected table.
2898 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2899 implementation of getLayoutListHeaders() method.
2900 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2902 2011-01-18 Ben Konrath <ben@bagu.org>
2904 Make a listBox with table titles instead of the flexTable demo.
2906 This is the start of something more useful.
2908 * .classpath: Exclude a bunch of packages from the JVM that are
2909 getting in the way of the Eclipse content assist.
2910 * src/org/glom/web/client/GlomDocument.java:
2911 * src/org/glom/web/client/GlomTable.java:
2912 * src/org/glom/web/client/LibGlomService.java:
2913 * src/org/glom/web/client/LibGlomServiceAsync.java:
2914 * src/org/glom/web/client/OnlineGlom.java:
2915 * src/org/glom/web/server/LibGlomServiceImpl.java:
2916 * war/OnlineGlom.html:
2917 * war/WEB-INF/web.xml:
2919 211-01-13 Ben Konrath <ben@bagu.org>
2921 Update to new java-libglom API.
2923 * .gitignore: Ignore OnlineGlom.war.
2924 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2926 2010-12-20 Ben Konrath <ben@bagu.org>
2928 Add some basic style to the table listing.
2930 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2931 header, print useful error message on async callback failure.
2932 * war/OnlineGlom.css: Add style for table header, remove defaults
2933 provided by the Eclipse project wizard.
2935 2010-12-20 Ben Konrath <ben@bagu.org>
2937 Load example file from installed glom dir.
2939 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2940 provided by java-libglom to find the example file.
2942 2010-12-20 Ben Konrath <ben@bagu.org>
2944 Update Eclipse settings.
2947 * .settings/com.google.gdt.eclipse.core.prefs:
2948 * .settings/com.google.gwt.eclipse.core.prefs:
2950 2010-12-17 Ben Konrath <ben@bagu.org>
2954 * .classpath: New file.
2955 * .gitignore: New file.
2956 * .project: New file.
2957 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2958 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2959 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2960 * src/org/glom/web/client/GlomTable.java: New file.
2961 * src/org/glom/web/client/OnlineGlom.java: New file.
2962 * src/org/glom/web/client/TableNameService.java: New file.
2963 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2964 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2965 * war/OnlineGlom.css: New file.
2966 * war/OnlineGlom.html: New file.
2967 * war/WEB-INF/web.xml: New file.
2968 * war/images/glom.png: New file.