1 2011-11-29 Ben Konrath <ben@bagu.org>
3 Remove unnecessary <div> in the Notebook widget.
5 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
6 method to get container FlowPanel (<div>).
7 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
8 initWidget() method directly on the TabLayoutPanel widget instead of
9 Group's container widget.
11 2011-11-29 Ben Konrath <ben@bagu.org>
13 Don't add group titles for Portals in Notebooks.
15 This reverts the previous patch and fixes a bug I introduced with
16 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
18 * src/main/java/org/glom/web/client/ui/details/Group.java:
19 * src/main/java/org/glom/web/client/ui/details/Portal.java:
21 2011-11-28 Ben Konrath <ben@bagu.org>
23 Remove unused boolean argument in Portal constructor.
27 * src/main/java/org/glom/web/client/ui/details/Group.java:
28 * src/main/java/org/glom/web/client/ui/details/Portal.java:
30 2011-11-28 Ben Konrath <ben@bagu.org>
32 Remove hack for glom 1.18 style glom files.
34 * src/main/java/org/glom/web/client/ui/details/Group.java:
35 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
36 * src/main/java/org/glom/web/client/ui/details/Portal.java:
38 2011-11-28 Ben Konrath <ben@bagu.org>
40 Use Gda Value version of primary key to log result too large error.
42 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
44 2011-11-28 Ben Konrath <ben@bagu.org>
46 Don't use TypedDataItem.getText() for Unknown types from the URL.
48 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
49 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
51 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
52 String field and getUnknown() method.
54 2011-11-28 Ben Konrath <ben@bagu.org>
56 Log an error message when the java-libglom .so is not present.
58 The error message was being set in the exception but not logged.
60 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
62 2011-11-28 Ben Konrath <ben@bagu.org>
64 Ignore LayoutItem_CalendarPortals.
66 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
67 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
69 2011-11-28 Ben Konrath <ben@bagu.org>
71 Extract method for creating the LayoutItemPortal DTO.
73 Just breaking the code up into smaller chunks.
75 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
77 2011-11-28 Ben Konrath <ben@bagu.org>
81 This should have been added with the refactor. Oops!
83 * src/main/java/org/glom/web/shared/TypedDataItem.java:
85 2011-11-28 Ben Konrath <ben@bagu.org>
87 Create primary key value from URL string using type from Glom document.
89 See this bug, comments 19 - 25:
91 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
93 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
94 create a TypeDataItem for the primary key here when loading from a
95 URL. Show the same string for the primary key value as was received
96 from the URL string (when loading from a URL).
97 * src/main/java/org/glom/web/server/Utils.java: Update method for
98 creating the Gda Value from the TypeDataItem to properly deal with
99 creating a Gda Value based on the Glom document type for the primary
100 key value string when loading from a URL.
101 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
102 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
103 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
104 Update for changed method name.
106 2011-11-27 Ben Konrath <ben@bagu.org>
108 Rename PrimaryKeyItem to TypedDataItem.
110 The name PrimaryKeyItem suggests what the class should be used for.
111 TypedDataItem is a neutral name that describes the class better.
113 This is a rename-only refactor.
115 * src/main/java/org/glom/web/client/OnlineGlomService.java:
116 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
117 * src/main/java/org/glom/web/client/Utils.java:
118 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
119 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
120 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
121 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
122 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
123 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
124 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
125 * src/main/java/org/glom/web/server/Utils.java:
126 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
127 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
128 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
129 * src/main/java/org/glom/web/shared/NavigationRecord.java:
131 2011-11-25 Ben Konrath <ben@bagu.org>
133 Improve Gda Value conversion from PrimaryKeyItem.
135 The value from the PrimaryKeyItem is only used if its type match the
136 type from the glom document.
138 * src/main/java/org/glom/web/server/Utils.java:
140 2011-11-25 Ben Konrath <ben@bagu.org>
142 Manually check if the java-liblgom .so is visible to the JVM.
144 It seems that Tomcat has problems when a static initializer throws an
145 exception. This check is done before the first method call into
146 java-libglom so that execution doesn't continue if the .so is not
149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
151 2011-11-25 Ben Konrath <ben@bagu.org>
153 Improve browser configuration error messages.
157 https://bugzilla.gnome.org/show_bug.cgi?id=662792
159 * src/main/java/org/glom/web/client/OnlineGlomService.java:
160 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
161 getConfigurationErrorMessage() method.
162 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
163 Get and display a specific configuration error message when no Glom
165 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
166 Implement getConfigurationErrorMessage() method. Surround configuration
167 code in the init() method with a try/catch block. This allows the
168 errors to be caught while keeping the servlet available to retrieve the
169 configuration error message.
171 2011-11-25 Ben Konrath <ben@bagu.org>
173 Don't use Strings to hold primary key values.
175 The primary key values are now held in a new data object
176 (PrimaryKeyItem) that holds type information and the primary key value
177 using the correct type.
179 * src/main/java/org/glom/web/client/OnlineGlomService.java:
180 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
181 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
182 PrimaryKeyItem instead of String to hold the primary key value.
183 * src/main/java/org/glom/web/client/Utils.java: Remove
184 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
185 PrimaryKeyItem based on the GlomFieldType and the DataItem.
186 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
187 PrimaryKeyItem instead of String to hold the primary key value. Load
188 document selection page when the documentID has not been set correctly.
189 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
190 DetailsPlace -> URL and URL -> DetailsPlace conversion with
192 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
193 Return empty string for URL instead of "null".
194 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
195 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
196 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
197 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
198 PrimaryKeyItem instead of String to hold primary key values.
199 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
200 PrimaryKeyValue to a Gda Value.
201 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
202 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
203 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
204 Replace temporary database access code that uses the PrimaryKeyValue to
205 Gda Value conversion.
206 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
207 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
208 PrimaryKeyItem instead of String.
209 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
210 hold primary key values.
212 2011-11-24 Ben Konrath <ben@bagu.org>
214 Use newly added java-libglom API to create queries.
216 This isn't finished. I still need to stop using Strings for primary key
217 values in the client code.
219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
220 libglom to use fake connections so that retrieving the query string will
222 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
223 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
224 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
225 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
226 Use the newly added libglom sql methods and classes to create the
227 query. Add temporary hack to convert primary value strings to Gda
230 2011-11-23 Ben Konrath <ben@bagu.org>
232 Don't explicitly set the height of Portals.
234 See comments 6 - 10 of this bug for details:
236 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
238 * src/main/java/org/glom/web/client/ui/details/Portal.java:
240 2011-11-23 Ben Konrath <ben@bagu.org>
242 Use an HTML table instead of CSS for the FlowTable layout.
244 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
245 GWT's FlexTable to implement the FlowTable.
246 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
248 2011-11-18 Ben Konrath <ben@bagu.org>
250 Add boolean example to HTML table mockup.
252 * mockups/details-view-html-tables-text-entries.html:
254 2011-11-17 Ben Konrath <ben@bagu.org>
256 Ensure the pager buttons are always visible for related lists.
258 To accomplish this, I've turned off text wrapping in the list view and
259 related list tables for both the header and data text. The related list
260 table now has a fixed layout so the it doesn't overflow its container.
261 This is required to ensure that the cell text is clipped when it
262 overflows the cell and an ellipsis is added to the right side of the
263 cell when text is clipped.
265 A fixed table layout for the related list table in the details view
266 seems what we want for the details view anyway, so the side-effect is
269 The ellipsis will only be displayed in Firefox >= 7.
273 https://bugzilla.gnome.org/show_bug.cgi?id=662930
275 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
276 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
277 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
279 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
280 Set the 'table-layout: fixed' CSS property to the related list table.
281 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
282 'white-space: nowrap;' CSS property on both the list view and the
285 2011-11-16 Ben Konrath <ben@bagu.org>
287 Rework the fix for empty notebook tab labels.
289 Setting the empty group titles with its name caused problems for the
290 details layout. Instead of using libglom's
291 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
292 to the client when the title is empty. This allows the Notebook to use
293 the name when the title is empty without affecting anything else.
295 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
296 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
298 2011-11-16 Ben Konrath <ben@bagu.org>
300 Set group titles with name when title is empty.
302 This fixes a problem with an empty notebook tab label in the Lesson
303 Planner document. The forth tab in the notebook should be "Internet":
305 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
307 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
308 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
311 2011-11-16 Ben Konrath <ben@bagu.org>
313 Remove whitespace from the configured username properties.
315 This assumes that usernames won't have whitespace at the beginning
316 or end. But I think this is a reasonable assumption.
318 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
319 String.trim() to remove the whitespace from the username properties.
321 2011-11-15 Ben Konrath <ben@bagu.org>
323 Add details view mockup with HTML tables and text entries.
325 This is from the attachment on this bug:
327 https://bugzilla.gnome.org/show_bug.cgi?id=663109
329 * mockups/details-view-html-tables-text-entries.html:
331 2011-11-15 Ben Konrath <ben@bagu.org>
333 Add space between the columns of the flow table.
337 https://bugzilla.gnome.org/show_bug.cgi?id=662918
339 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
340 space between columns in the flow table.
342 2011-11-15 Ben Konrath <ben@bagu.org>
344 Add backup files to the .gitignore.
346 * .gitignore: Ignore files that end with ~.
348 2011-11-09 Ben Konrath <ben@bagu.org>
350 Use latest release of gwt-log.
352 Gwt-log releases are now being submitted to the maven central
353 repository so manual installation of the jar is no longer required.
355 * pom.xml: Update version and groupId of gwt-log dependency.
357 2011-10-31 Ben Konrath <ben@bagu.org>
359 Don't use GWT numeric formatting to override the glom currency formatting.
361 Currencies are now displayed like they are in Glom. See this bug:
363 https://bugzilla.gnome.org/show_bug.cgi?id=646216
365 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
367 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
368 currency code to constructor and set it when the cell is rendered.
369 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
370 currency code to the constructor of the NumericCell.
372 2011-10-27 Ben Konrath <ben@bagu.org>
374 Require the latest release of java-libglom (1.17.4).
378 2011-10-26 Ben Konrath <ben@bagu.org>
380 Add style to Notebook that matches current theme.
382 It's not the best style in the world but it's better than the default.
384 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
385 padding at the bottom of the child widgets.
386 * src/main/webapp/style.css: Add style for the Notebook.
388 2011-10-26 Ben Konrath <ben@bagu.org>
390 Move servlet initialization code to overridden init method.
392 This is half of the solution to getting proper error messages
393 displayed when configuration errors occur. Here's the relevant bug:
395 https://bugzilla.gnome.org/show_bug.cgi?id=662792
397 The rest of the solution involves surrounding the init method with a
398 try/catch block and setting a global variable with the error /
399 exception. A new async method should be created to retrieve and display
400 the error message / exception.
402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
403 code from constructor to init method adding exceptions as needed.
405 2011-10-26 Ben Konrath <ben@bagu.org>
407 Add script to monitor and restart tomcat if required.
409 * utils/check-and-recover-tomcat.py: New file.
411 2011-10-26 Ben Konrath <ben@bagu.org>
413 Display the correct number of data items in the pager.
417 https://bugzilla.gnome.org/show_bug.cgi?id=661441
419 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
420 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
421 The implementation is the same for both tables: Keep track of the
422 number of non-empty rows and fire and RowCountChangeEvent after the data has
424 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
425 custom Pager class that subclasses SimplePager to handle displaying
426 the correct number when empty rows have been added.
428 2011-10-26 Ben Konrath <ben@bagu.org>
430 Correct error in previous commit.
432 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
433 eventBus parameter from listView.setCellTable().
435 2011-10-26 Ben Konrath <ben@bagu.org>
437 Fix error in TODO comment.
439 * src/main/java/org/glom/web/client/activity/ListActivity.java:
441 2011-10-24 Ben Konrath <ben@bagu.org>
443 Create Notebook widgets to the details view.
445 This isn't finished just yet - I still need to create a reasonable
446 style to match the current theme.
448 * src/main/java/org/glom/web/client/Utils.java: Add method for
449 calculating the height of a widget. This is used in the Notebook class.
450 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
451 new constructor method in Group.
452 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
453 method for creating child widget that can be used by subclasses
454 like Notebook. New constructor that allows disabling the group
455 titles - Notebooks don't set a group title for their child groups.
456 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
457 to make Notebooks using GWT's TabLayoutPanel.
458 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
459 constructor that allows disabling the group titles.
460 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
461 LayoutItemNotebook DTO.
462 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
463 DTO for Notebooks. It's just an empty class for now but we might need
464 it to transfer some specific information in the future.
466 2011-10-21 Ben Konrath <ben@bagu.org>
468 Add navigation buttons to related list tables.
470 * src/main/java/org/glom/web/client/OnlineGlomService.java:
471 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
473 method getSuitableRecordToViewDetails() for getting the table name
474 and primary key value for related list navigation buttons.
475 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
476 private cell renderer class to get the navigation information for
477 related list tables from the server. Extract the navigation
478 processing code from the details cell navigation and use it for the
479 related list navigation as well.
480 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
481 cell renderer class for the details open buttons. This was needed
482 because the related list navigation buttons and the list view
483 navigation buttons need to react differently when clicked.
484 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
485 the onEnterKeyDown() method because it's now overriden in the
486 subclasses that are specific to the related list tables and the list
488 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
489 the vertical size a little because the buttons add a bit of vertical
490 space to table. This is not a perfect solution because the vertical
491 size of with table fewer than 5 rows will be a little smaller.
492 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
493 changes in how navigation buttons are handled.
494 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
495 getSuitableRecordToViewDetails() using the new RelatedListNavigation
496 database access object.
497 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
498 to find the portal for a given relationship name from
499 RelatedListDBAccess. Add method to find a primary key field for a
501 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
502 Move code to find the portal for a given relationship name to
504 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
505 New file: database access object for getting the related list
506 navigation information (the table name and the primary key value).
507 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
508 DTO for transferring a table name to navigate to and a primary key
510 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
511 boolean and getter/setter to specifies if the related list should add
514 2011-10-24 Murray Cumming <murrayc@murrayc.com>
516 Use the master branch of java-libglom
518 * pom.xml: Depend on java-libglom 1.19 instead.
520 This is the master branch. See also the libglom-1-18 branch.
522 2011-10-11 Ben Konrath <ben@bagu.org>
524 Enable the open navigation button when the data has been set.
526 This avoids having active buttons that don't do anything when the data
529 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
531 2011-10-11 Ben Konrath <ben@bagu.org>
533 Use IsWidget interface for FlowTableItem.
535 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
536 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
538 2011-10-11 Ben Konrath <ben@bagu.org>
540 Remove GWT styling from open button in details view.
542 There are still some issues with how the details cell is arranged but
543 this should be made to match Glom 1.20. I'm going to leave fixing this
544 until I have Glom 1.20 up and running.
546 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
547 style name on open button.
548 * src/main/webapp/style.css: Move and edit details-navigation class.
549 Re-arrange some classes to make them appear in the same order as the
552 2011-10-07 Ben Konrath <ben@bagu.org>
556 * .gitignore: Ignore new cache directory.
557 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
558 * pom.xml: Change GWT and maven plugin to 2.4.0.
559 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
561 * src/main/java/org/glom/web/client/ClientFactory.java:
562 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
563 * src/main/java/org/glom/web/client/OnlineGlom.java:
564 Update source for API changes.
565 * utils/build-onlineglom-war.sh: Remove cache directory before the
568 2011-10-07 Ben Konrath <ben@bagu.org>
570 Add navigation buttons in the details view.
572 This isn't finished but I thought I'd commit what I have as it's a
573 pretty good start. I still need to:
575 1. Change the style so that it fits better into the current theme
576 2. Adjust the details cell to expand as much as possible.
578 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
579 click handlers to navigation buttons in the DetailsCells. Create a
580 refreshData() method to get just the data from the server without the
582 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
583 Update the tableSelector and browser title when the table name
584 changes without using the tableSelector.
585 * src/main/java/org/glom/web/client/ui/DetailsView.java:
586 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
587 getDetailsCells() to getCells(). Update variable names.
588 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
589 method to set click handler on navigation button. Rename a few
590 variables. Add navigation buttons where needed.
591 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
592 variables and methods.
593 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
594 navigation boolean and navigation table as required in the
596 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
597 variables for navigation along with getter/setter methods.
599 2011-10-07 Ben Konrath <ben@bagu.org>
601 Rename Field to DetailsCell.
603 This is a refactor-only commit. No functionality has been added or
606 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
607 Update variable and method names.
608 * src/main/java/org/glom/web/client/ui/DetailsView.java:
609 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
610 variable and method names.
611 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
613 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
614 variable and method names.
616 2011-10-07 Ben Konrath <ben@bagu.org>
618 Create separate methods for layout and data the details view.
620 This is a refactor-only commit. No functionality has been added or
623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
624 private methods: setData(), createLayout().
626 2011-10-07 Ben Konrath <ben@bagu.org>
628 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
630 This is part of a change to get navigation buttons in the details view
631 but it should have been done this way from the start.
633 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
634 for method name change in TableSelectionView.
635 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
636 Create TableChangeEvent and set the browser title using the
637 TableSelectionView API.
638 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
639 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
640 Change getSelectedTable() to getSelectedTableName(). Add
641 getSelectedTableTitle().
643 2011-10-07 Ben Konrath <ben@bagu.org>
645 Use primaryKeyValue naming convention in constructor of DetailsPlace.
647 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
649 2011-10-07 Ben Konrath <ben@bagu.org>
651 Update TableChangeEvent to use newTableName naming convention.
653 This makes the class more consistent with GWT naming conventions.
655 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
656 Update for method name change in TableChangeEvent.
657 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
658 for method name change in TableChangeEvent.
659 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
660 newTableName variable and getter method. Make toDebugString()
663 2011-09-30 Ben Konrath <ben@bagu.org>
665 Disable the pager in the list tables when the data row count is less than the minimum.
667 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
668 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
670 2011-09-30 Ben Konrath <ben@bagu.org>
672 Add empty rows to the end of related list and list view tables.
674 I also extracted the cell rendering classes from the ListTable because
675 the code was becoming a little crazy with all the anonymous inner
676 classes. My plan is to use these cell rendering classes in the details
677 view as well so this refactor will be needed for that change.
679 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
680 set the row count in related list tables if the data has more rows
681 than the minimum number of rows visible.
682 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
683 row count in list view tables if the data has more rows than the
684 minimum number of rows visible.
685 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
686 for rendering TYPE_BOOLEAN cells. The code was extracted from the
688 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
689 for rendering TYPE_NUMERIC cells. The code was extracted from the
691 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
692 class for rendering cells with buttons in list views. The code was
693 extracted from the ListTable class.
694 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
695 for rendering TYPE_TEXT cells. The code was extracted from the
697 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
698 Add empty rows to the end of the data if required. Implement
699 ListTable.getMinNumVisibleRows().
700 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
701 cell renderer code to public classes. Return null in
702 Column.getValue() for empty rows. Add new abstract method:
703 getMinNumVisibleRows(). Move code to set the row count of the list view
704 table to ListViewImpl.
705 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
706 empty rows to the end of the data if required. Implement
707 ListTable.getMinNumVisibleRows().
710 2011-09-27 Ben Konrath <ben@bagu.org>
712 Use GWT.log for client-side debugging statements.
714 These are optimized out when deployed so I should have used this method
715 in the first place. These statements will eventually be replaced with some sort
716 of notification in the browser.
718 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
719 * src/main/java/org/glom/web/client/activity/ListActivity.java:
720 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
721 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
722 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
724 2011-09-27 Ben Konrath <ben@bagu.org>
726 Put tableselector on the right, back to list link on right.
728 The idea is that the table selector is acting like a label for the
729 currently displayed table so it should be placed below the document title. This
730 puts the table title in a similar position to where it is in Glom.
732 * mockups/details-contacts.html:
733 * mockups/details-projects.html:
734 * mockups/listview-contacts.html:
735 * mockups/listview-projects.html:
737 Update mockups to match how the interfaces currently look.
738 * src/main/webapp/style.css: Swap positions of backlink with the table
739 selector. Add some space on the left side of the table selector to
740 line things up with the document title.
742 2011-09-27 Ben Konrath <ben@bagu.org>
744 Add field colouring to details view.
746 This change re-works how field colouring works. The colour formatting
747 information is now set to the client with the layout information instead of
748 with the data. This eliminates the need to send the same colour strings for
749 data in list view column when colour information is set.
751 In order to set an alternate colour for negative numeric values, the
752 number is now sent to client and formatted with the GWT NumberFormat class.
754 This change also fixes:
756 https://bugzilla.gnome.org/show_bug.cgi?id=659752
758 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
759 internationalization framework which is needed for client side numeric
761 * src/main/java/org/glom/web/client/Utils.java: New file for some
762 client static utility methods.
763 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
764 the DataItem object to the Field class. Use a utility method to
765 create the foreignKeyValue string.
766 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
767 alignment and text colours in the constructor. Add setData(DataItem)
768 method. Remove setText(String) method.
769 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
770 colour information to GlomTextCell. Create and use GlomNumberCell for
771 rendering numbers. Use utility method to get the string for the
772 primary key of the key provider. Re-work how the horizontal alignment
774 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
775 formatting to layout information. Methods for converting the libglom
776 formatting information were moved from DBAccess.
777 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
778 numeric formatting (it's now done on the client side). Don't set text
779 colours in DataItem. Move libglom formatting conversion methods to
781 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
782 getters/setters for text colour information.
783 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
784 for transferring the libglom NumericFormat information to the client.
785 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
786 and getters/setters for: GlomNumericFormat, background colour and
787 foreground colour strings.
789 2011-09-26 Ben Konrath <ben@bagu.org>
791 Simplify code that iterates through the LayoutGroup.
793 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
795 2011-09-26 Ben Konrath <ben@bagu.org>
797 Accept Eclipse formatting for OnlineGlomServiceAsync.
799 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
801 2011-09-26 Ben Konrath <ben@bagu.org>
803 Don't use the ListDBAccess classes to get the primary key layout information.
805 This was causing a bug where the wrong index for the hidden primary key
806 was being sent to the client.
808 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
809 primary key while creating the LayoutGroup DTO. Create a
810 LayoutItemField DTO for hidden primary keys. Don't use the
811 RelatedListDBAccess because it was only used for getting the primary
813 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
814 access modifier from public to protected for getPrimaryKeyField() and
815 getPrimaryKeyLayoutItemField().
816 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
817 abstract method getExpectedResultSize() because RelatedListDBAccess
818 doesn't have enough info to implement it.
819 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
820 Remove @Override for getExpectedResultSize().
821 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
822 Remove method getExpectedResultSize().
824 2011-09-23 Ben Konrath <ben@bagu.org>
826 Log which layout (list or details) the ignored item is from.
828 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
830 2011-09-23 Ben Konrath <ben@bagu.org>
832 Remove annotations that turn off code formatting in DataItem.
834 * src/main/java/org/glom/web/shared/DataItem.java:
836 2011-09-23 Ben Konrath <ben@bagu.org>
838 Rename GlomField to DataItem and update associated methods.
840 This is a rename-only refactor. No functionality has been added or
843 * src/main/java/org/glom/web/client/OnlineGlomService.java:
844 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
845 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
846 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
847 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
848 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
849 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
850 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
851 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
852 * src/main/java/org/glom/web/server/database/DBAccess.java:
853 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
854 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
855 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
856 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
857 * src/main/java/org/glom/web/shared/DataItem.java:
858 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
859 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
861 2011-09-23 Ben Konrath <ben@bagu.org>
863 Rename GlomDocument to DocumentInfo and update associated methods.
865 This is a rename-only refactor. No functionality has been added or
868 * src/main/java/org/glom/web/client/OnlineGlomService.java:
869 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
870 * src/main/java/org/glom/web/client/activity/ListActivity.java:
871 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
872 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 * src/main/java/org/glom/web/shared/DocumentInfo.java:
876 2011-09-20 Ben Konrath <ben@bagu.org>
878 Require java-libglom 1.17.3.
880 This picks up the fix for the seg fault problem with the Scenes table
881 in the Openismus Film Manager example.
885 2011-09-20 Ben Konrath <ben@bagu.org>
887 Change the way sort clause is added for primary key when no sort clause is requested.
889 The primary key is now added to the LayoutFieldVector (fieldsToGet)
890 before the sort clause is created. When a sort clause is not requested, the
891 sort clause is created by finding the primary key in the LayoutFieldVector
894 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
896 2011-09-20 Ben Konrath <ben@bagu.org>
898 Log error message if no documents are found in the configured directory.
900 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
901 Extract the glom file extension string to a private static final class
902 variable (mostly as syntactic sugar). Accept a minor formatting change.
903 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
904 the example glom.document.directory configuration property to make it
905 more clear that it can any directory, not just the home directory.
907 2011-09-18 Ben Konrath <ben@bagu.org>
909 Add related lists to details view.
911 The related list table has support for paging and sorting just like the
912 table in the list view.
914 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
915 SQL queries for the related list tables.
916 * src/main/java/org/glom/web/client/OnlineGlomService.java:
917 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
918 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
919 Rename getList methods to getListView and add comments. Remove
920 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
921 it being unused. Add methods: getDetailsLayoutAndData(),
922 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
923 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
924 Create the layout and set the data for the fields in one async call
925 instead of two. Create related lists where appropriate.
926 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
927 for method name changes in OnlineGlomService.
928 * src/main/java/org/glom/web/client/ui/DetailsView.java:
929 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
930 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
932 * src/main/java/org/glom/web/client/ui/ListView.java:
933 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
934 tableName from setCellTable(). Create a ListViewTable instead of
936 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
937 represent a data field in the details view.
938 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
939 from addDetailsCell() to Field class. Keep track of the Fields and
940 Portals in the details view.
941 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
942 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
943 and add a method to get it. Add method to set the contents of the
945 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
946 New class for related list tables. This class has the data provider
947 for the related list table.
948 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
949 abstract class which is the base class for the ListViewTable and the
951 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
952 New class for list view tables. This class has the data provider for
954 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
955 methods for related list tables. Add more information to the
956 LayoutItemField and LayoutItemPortal DTOs.
957 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
958 Remove debugging print statement.
959 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
960 Remove debugging print statements. Add primary key field to SQL count
962 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
963 Remove unnecessary LayoutFieldVector parameter from
964 getResultSizeOfSQLQuery() method.
965 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
966 New class for related list table database access.
967 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
968 class that is a wrapper DTO for details view layout and data.
969 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
970 new 'fromField' string to this DTO.
971 * src/main/webapp/style.css: Remove bottom margin and override top
974 2011-09-15 Ben Konrath <ben@bagu.org>
976 Breakup the OnlineGlomServiceImpl class to make it more manageable.
978 This sets things up to make it easier to add the data retrieval for
979 related lists (portals). No user noticeable changes were made with
982 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
983 class has the code to retrieve the layouts and access the
984 database using the new database helper classes.
985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
986 Most of the functionality has been removed from this class. This
987 class now represents the public interface for the client side
988 code. It also deals with configuring the servlet and cleaning
989 things up when the servlet is stopped.
990 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
991 of static methods into this utility class.
992 * src/main/java/org/glom/web/server/database/DBAccess.java:
993 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
994 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
995 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
996 These classes have the database retrieval code. The class hierarchy
997 has been setup to make it easy to reuse code for similar
1000 2011-09-06 Ben Konrath <ben@bagu.org>
1002 Create separate classes for list table code and the data provider.
1004 As part of this refactor, I also split up the code a bit to make it
1007 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1008 table code to two new classes (below).
1009 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1010 with code from ListViewImpl.
1011 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1012 New file with code from ListViewImpl.
1014 2011-09-06 Ben Konrath <ben@bagu.org>
1016 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1018 This fixes the LayoutItemPortal DTO to match the libglom layout object
1021 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1023 2011-09-01 Ben Konrath <ben@bagu.org>
1025 Set title of Portals in the Details View.
1027 * pom.xml: Bump required version of java-libglom to 1.17.1.
1028 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1029 widget creation to its own class. Add comments to constructor.
1030 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1031 The code is mostly from the Group class with the title now set.
1032 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1033 title of Portal. Update some comments. Fix some code formatting.
1035 2011-09-01 Ben Konrath <ben@bagu.org>
1037 Remove TODO comment for the flow table column width.
1039 The flow table column width is working correctly and doesn't need to be
1040 changed. See this mailing list post for more info:
1042 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1044 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1046 2011-08-27 Ben Konrath <ben@bagu.org>
1048 Add document title (database name) to top of the browser page.
1050 I added the document title to the TableSelecitonView but that will
1051 change if / when we add a view that doesn't require table selection.
1053 * mockups/details-contacts.html:
1054 * mockups/details-projects.html:
1055 * mockups/listview-contacts.html:
1056 * mockups/listview-projects.html:
1057 * mockups/style.css: Add document title to mockups to keep things
1059 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1060 sizes to account for the document title.
1061 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1062 Set the document title when it has been retrieved from the server.
1063 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1064 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1065 and implement setDocumentTitle(String) method.
1066 * src/main/webapp/style.css: Add ID for document title style.
1068 2011-08-25 Ben Konrath <ben@bagu.org>
1070 Add NavigationType enum to LayoutItemPortal DTO.
1072 This is the start of adding support for Portals to the Details View.
1074 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1075 LayoutItem_Portal.navigation_type enum from libglom to
1076 LayoutItemPortal.NavigationType enum.
1077 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1078 NavigationType enum, field for storing the NavigationType and getter
1081 2011-08-25 Ben Konrath <ben@bagu.org>
1083 Implement the flow table layout in the Details View.
1085 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1086 FlowTable to Group to account for the renamed class.
1087 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1088 File. This is a container widget that implements the Glom details view
1089 flow table behaviour.
1090 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1091 org/glom/web/client/ui/FlowTable.java.
1092 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1093 so that the size of the subgroups are a closer match to the size of
1094 the Glom subgroups. This makes the flowtable layout match the layout
1095 in Glom for the Music Collection example file.
1097 2011-08-16 Ben Konrath <ben@bagu.org>
1099 Create container element for LayoutItemPortal in Details View.
1101 This will help me develop the layout for the FlowTable.
1103 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1104 fieldPanel variable to detailsCell.
1106 2011-08-15 Ben Konrath <ben@bagu.org>
1108 Set the height of the data element in the Details View.
1110 I changed the InlineLabels (text in a span element) to Labels (text in
1111 a div element) so that I could set the height of the details-data
1112 elements instead of the details-cell parent elements. This allows the
1113 the details-data element to display the correct height if style is
1114 applied that shows the height.
1116 This change has the added benefit of allowing the order of the labels
1117 and data elements to be changed for right-to-left languages.
1119 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1120 InlineLabels to Labels.
1121 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1122 InlineLabels to Labels. Set the height of the data element.
1123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1124 multiline text height in the Formatting DTO.
1125 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1126 for multiline height along with getter and setter methods.
1127 * src/main/webapp/style.css: Adjust style to account for the change
1128 from span elements to div elements in the details cell.
1130 2011-08-15 Ben Konrath <ben@bagu.org>
1132 Make the List View appearance match the mockups.
1134 It doesn't match exactly but it's much better than it was.
1136 * mockups/listview-contacts.html: Remove unused css classes.
1137 * mockups/listview-projects.html: Remove unused css classes.
1138 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1139 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1140 for mainPanel instead of VerticalPanel (table). Set style name on
1141 CellTable. Set style name on Details column. Right-align Details
1143 * src/main/webapp/style.css: Adjust properties to match the mockups.
1145 2011-08-12 Ben Konrath <ben@bagu.org>
1147 Add better support for subgroups in the details view.
1149 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1150 changed FlowTable constructor.
1151 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1152 support for subgroups and subgroup-titles.
1153 * src/main/webapp/style.css: Add CSS class for subgroups and
1156 2011-08-12 Ben Konrath <ben@bagu.org>
1158 Return the top level LayoutGroup title.
1160 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1162 2011-08-11 Ben Konrath <ben@bagu.org>
1164 Make the TableSelector header match the mockup.
1166 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1167 the layout panel. Properly lineup the table selection header with
1168 the list and details view.
1169 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1170 margin around the details view.
1171 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1172 Rename listBox variable to tableSelector. Set id for the style sheet.
1173 Use a FlowPanel instead of a HorizontalPanel.
1174 * src/main/webapp/style.css: Add properties to make the TableSelector
1175 box match the mockups.
1177 2011-07-13 Ben Konrath <ben@bagu.org>
1179 Update install script for java-libglom version change.
1181 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1184 2011-07-13 Ben Konrath <ben@bagu.org>
1186 Add support sub-group in the details view.
1188 I also removed the code that special-cased the default details view
1191 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1193 I still have to make a proper flowtable.
1195 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1196 Don't special-case default details view layout.
1197 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1198 addLayoutField() as I'm going to use it.
1199 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1200 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1202 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1203 extracted from DetailsViewImpl.GroupPanel. Add support for
1205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1206 column count when getting the details layout.
1208 2011-07-12 Ben Konrath <ben@bagu.org>
1210 Set browser title with database and table titles.
1212 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1213 Set the browser title when the table changes and when the activity
1215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1216 title when retrieving document info (the GlomDocument object).
1217 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1218 with getter and setter methods. Remove unused convenience constructor.
1219 Use default code formatting.
1221 2011-07-12 Ben Konrath <ben@bagu.org>
1223 Ignore LayoutItemPortals in the details view.
1225 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1228 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1229 LayoutItemPortal layout objects.
1230 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1231 LayoutItemPortal objects when retrieving the details layout.
1232 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1233 file. This is an empty class and just used to get type information for
1236 2011-07-12 Ben Konrath <ben@bagu.org>
1238 Use java-libglom 1.17.0.
1242 2011-07-11 Ben Konrath <ben@bagu.org>
1244 Remove "Table:" label from table selector.
1246 This matches a recent change in the Glom UI.
1248 * mockups/details-contacts.html:
1249 * mockups/details-projects.html:
1250 * mockups/listview-contacts.html:
1251 * mockups/listview-projects.html: Remove the "Table:" label from the
1253 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1255 2011-07-11 Ben Konrath <ben@bagu.org>
1257 Add main groups to the details view.
1259 This makes things look a little nicer in the details view. The next step
1260 is to implement the flowtable.
1262 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1263 resources from the standard gwt css theme. Standard.css is now
1264 included in OnlineGlom.html so that the online glom css rules have
1265 precedence over the gwt theme.
1266 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1267 the whole LayoutGroup to the DetailsView instead of just the titles.
1268 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1269 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1270 details layout with a helper class (GroupPanel). I might extract this
1271 class when I make the full flowtable.
1272 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1273 string as default so I don't have to worry about NPEs when processing
1275 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1276 note beside OnlineGlom.gwt.xml above).
1277 * src/main/webapp/style.css: Add default font-size to body to override
1278 the font-size set by the standard theme. Don't use h2 tags for
1279 group-title. Create new details-cell class.
1281 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1283 ConfiguredDocument: Set the port number too.
1285 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1286 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1287 Glom document. Presumably this worked sometimes so far because there is a
1288 default port number.
1290 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1292 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1294 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1295 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1296 correct, though we should throw an exception too.
1298 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1300 Fix a addDocuemnt typo.
1302 * src/main/java/org/glom/web/shared/Documents.java
1303 (Documents.addDocuemnt): Rename to addDocument().
1304 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1305 (OnlineGlomServiceImpl.getDocuments): Adapt.
1307 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1309 Slightly improved log output when connection fails.
1311 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1312 (ConfiguredDocument.setUsernameAndPassword):
1313 We don't know for sure if it' the username/password that's wrong, so
1314 rephrase the message.
1315 Also ouput the exception message, though it's generic in this case.
1317 2011-07-08 Ben Konrath <ben@bagu.org>
1321 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1322 added braces to a one line if statement because the Eclipse formatter
1323 was getting confused.
1325 2011-07-07 Ben Konrath <ben@bagu.org>
1327 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1329 These should really be two separate tasks but I counldn't get things to
1330 work with GWT 2.2.0 and Eclipse 3.7.
1334 * .settings/org.eclipse.jdt.core.prefs:
1335 * .settings/org.eclipse.jdt.ui.prefs:
1336 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1337 * .settings/org.eclipse.m2e.core.prefs:
1338 Add new config files. Update current files. Remove references to the
1339 webtools plugins as we're not using any of the webtools features.
1340 * .gitignore: Add logs directory which is created when running with
1342 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1343 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1344 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1346 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1348 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1350 onlineglom.properties: Add explanatory comments.
1352 * src/main/resources/onlineglom.properties: Also change the default user
1353 from ben to someuser, to avoid the risk of people thinking we just
1354 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1356 2011-06-28 Ben Konrath <ben@bagu.org>
1358 Use filename in Log for incorrect passwords.
1360 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1361 getFileName(String) method to get the filename from the URI.
1363 2011-06-28 Ben Konrath <ben@bagu.org>
1365 Add the table name to the URL token for the ListPlace.
1367 This makes things consistent between the DetailsPlace and the
1368 ListPlace. It also allows the the ListPlace to be bookmarked.
1370 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1371 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1373 Remove getDefaultListLayout(). The default layout is now returned
1374 by the getListLayout() method when the table name is an empty string.
1375 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1376 Add table name field. Change to a new ListPlace when the table
1377 has been changed. Use getListLayout() for getting the default
1379 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1380 Add table name field. Set the correct table name in the list box
1381 when loading from bookmark. This corrects a problem for the
1383 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1384 Move table name to super-class (HasSelectableTable). Move document
1385 and table URL keys to super-class in HasSelectableTable.
1386 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1387 Add table name field. Add Tokenizer class with URL key common to
1388 the subclasses (DetailsPlace and ListPlace).
1389 * src/main/java/org/glom/web/client/place/ListPlace.java:
1390 Add table name. Add code to parse the URL token.
1391 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1392 Update ListPlace construction with empty table name string.
1393 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1394 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1395 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1396 Update ListPlace construction with table name string.
1397 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1398 Change defaultTableName field to tableName to reflect how it's now
1399 used. Update the getter and setter methods.
1401 2011-06-28 Ben Konrath <ben@bagu.org>
1403 Enable the table selector in the DetailsView.
1405 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1406 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1407 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1408 Remove getDefaultDetailsLayout(). The default layout is now returned
1409 by the getDetailsLayout() method when the table name is an empty
1411 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1412 event handler for table change event. Change to using
1413 getDetailsLayout() for the default details layout.
1414 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1416 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1417 when navigating to the details place.
1419 2011-06-27 Ben Konrath <ben@bagu.org>
1421 Use filename based unique document ID in URL and for RPC.
1423 The document ID is the glom document name with spaces (' ') replaced
1424 with pluses ('+') and without the .glom extension.
1426 This change is mostly a string substitution of 'documentTitle' for
1427 'documentID'. The only code change is the addition of a Documents DTO to get the
1428 filename to document title mappings as indicated below.
1430 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1431 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1432 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1433 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1434 Use Documents DTO to create the document links in the document
1436 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1437 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1438 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1439 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1440 * src/main/java/org/glom/web/client/place/ListPlace.java:
1441 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1442 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1443 * src/main/java/org/glom/web/client/ui/ListView.java:
1444 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1445 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1446 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1447 * src/main/java/org/glom/web/server/Log.java:
1448 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1449 getDocumentTitles() to getDocuments() and return the Documents DTO.
1450 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1451 transferring the filename to document title mappings.
1453 2011-06-25 Ben Konrath <ben@bagu.org>
1455 Make the authentication popup work again.
1457 This bug was introduced when I extracted ConfiguredDocument to its own class.
1459 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1460 correct success / fail status in setUsernameAndPassword().
1462 2011-06-25 Ben Konrath <ben@bagu.org>
1464 Use filename as unique key for configuring database usernames and passwords.
1466 This replaces the use of the Glom document title which could change
1467 depending on the locale. Thanks to Murray Cumming for pointing out this
1470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1471 * src/main/resources/onlineglom.properties:
1473 2011-06-24 Ben Konrath <ben@bagu.org>
1475 Pass primary key value to DetailsView.
1477 This enables the DetailsView to load the correct data.
1479 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1480 primary key value field and set in constructor. Pass primary key
1481 value to getDetailsData().
1482 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1483 variables for document title and primary key value.
1484 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1485 key value to the DetailsPlace.
1487 2011-06-24 Ben Konrath <ben@bagu.org>
1489 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1491 This allows the primary key to be retrieved by the Details button. This
1492 functionality has not been implemented yet but it's in the works.
1494 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1495 the LayoutGroup result to ListView.setCellTable instead of all of its
1496 fields individually.
1497 * src/main/java/org/glom/web/client/ui/ListView.java:
1498 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1499 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1500 get the primary key for the table.
1501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1502 index of the primary key in the LayoutGroup accounting for hidden
1503 primary keys. Rename getJavaNumberFormat() to
1504 convertToJavaNumberFormat() for consistency. Cleanup / add some
1506 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1507 field for primary key index and a field to indicate whether the
1508 primary key is hidden or not.
1510 2011-06-23 Ben Konrath <ben@bagu.org>
1512 Rename getTableData methods to getListData.
1514 This is a rename refactor for consistency with other methods.
1516 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1517 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1518 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1521 2011-06-23 Ben Konrath <ben@bagu.org>
1523 Extract the ConfiguredDocument innerclass into its own class.
1525 This makes the servlet code more object oriented.
1527 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1528 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1529 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1530 new ConfiguredDocument class.
1532 2011-06-21 Ben Konrath <ben@bagu.org>
1534 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1536 This makes things more inline with how libglom works and reduces code
1537 duplication. This refactor lays the groundwork for adding the primary key to
1538 the LayoutGroup object.
1540 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1541 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1542 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1543 Change method names to getListLayout and getDefaultListLayout for
1544 consistency. Use LayoutGroup as the DTO for the list layout instead of
1545 ColumnInfo and LayoutListTable.
1546 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1547 new method names along with the LayoutGroup object for transferring the
1549 * src/main/java/org/glom/web/client/ui/ListView.java:
1550 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1551 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1552 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1554 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1555 Replaced with LayoutGroup.
1556 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1557 expectedResultSize and defaultTableName fields which are needed for
1559 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1560 type field which is needed for the list layout but will also be
1561 useful for the details layout as things progress.
1562 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1563 Make class abstract. Remove the unnecessary
1564 getFormattingHorizontalAlignment method. Add setFormatting method.
1566 2011-06-16 Ben Konrath <ben@bagu.org>
1568 Add scripts for building and installing war.
1570 These will help when updating OnlineGlom but they're also good
1571 supplemental documentation of the build and deployment proceeding.
1573 * utils/build-onlineglom-war.sh: New file.
1574 * utils/install-onlineglom-war.sh: New file.
1576 2011-06-16 Ben Konrath <ben@bagu.org>
1578 Create wrapper class to create consistent log messages.
1580 I wrapped methods in the Log class of gwt-log to add the method names
1581 from the servlet and create consistent formatting of the document title
1582 and table names in the log messages.
1584 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1585 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1586 log methods to use methods from wrapped Log class.
1588 2011-06-16 Ben Konrath <ben@bagu.org>
1590 Remove superfluous conditional return.
1592 Thanks to Murray Cumming for pointing this out!
1594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1596 2011-06-15 Ben Konrath <ben@bagu.org>
1598 Return an ArrayList of LayoutGroups for the Details layout.
1600 This corrects a problem with the details layout as it can have more
1601 than one top level LayoutGroup.
1603 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1604 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1605 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1606 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1607 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1608 with ArrayList of LayoutGroups for the details view layout.
1609 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1610 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1611 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1612 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1613 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1614 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1616 2011-06-14 Ben Konrath <ben@bagu.org>
1618 Use cast_dynamic method to determine the libglom LayoutItem type.
1620 This is better than finding the LayoutItem type by using the string
1621 returned from the get_part_type_name() method.
1623 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1625 2011-06-14 Ben Konrath <ben@bagu.org>
1627 Add method names to log entries in the servlet.
1629 This helps when tracking down deployment problems.
1631 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1633 2011-06-14 Ben Konrath <ben@bagu.org>
1635 Add data to the DetailsView using a hard-coded primary key value.
1637 The layout and functionality of the DetailsView is not complete. This
1638 is just a checkpoint so the patch doesn't get too big.
1640 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1641 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1642 Add getDetailsData() servlet method.
1643 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1644 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1645 LayoutFields are added to the DetailsView.
1646 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1647 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1648 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1649 take the string for the title instead of the object.
1650 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1651 Add implementation getDetailsData() along with some private helper
1653 * src/main/webapp/style.css: Add padding to details-data class. Add a
1654 details-label class with the same padding as the details-data class.
1656 2011-06-03 Ben Konrath <ben@bagu.org>
1658 Use presenter.goTo() to change to the DetailsPlace.
1660 This will make things easier when we need to open the DetailsView with
1661 data specific to the row that was clicked.
1663 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1665 2011-06-02 Ben Konrath <ben@bagu.org>
1667 Add CSS file from mockups.
1669 I'm adding this now because it's going to be useful to have when
1670 developing the DetailsView. The TableSelectionView and ListView aren't
1673 * src/main/webapp/OnlineGlom.html:
1674 * src/main/webapp/style.css:
1676 2011-06-02 Ben Konrath <ben@bagu.org>
1678 Use String.isEmpty() to check for empty string.
1680 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1682 2011-06-02 Ben Konrath <ben@bagu.org>
1684 Display main layout group titles in the DetailsView.
1686 This is the start of the DetailsActivity/DetailsView implementation.
1688 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1689 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1690 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1691 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1692 Get the layout information for the details view from the server and set
1693 the main layout group titles.
1694 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1695 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1696 Add addLayoutGroup() and addLayoutField() methods. This are just
1697 temporary methods for creating the the details view that will change
1699 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1700 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1702 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1703 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1704 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1705 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1706 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1707 Data Transfer Objects that mimic the libglom object structure. These are
1708 used for transferring the details layout but could also be used for
1709 transferring the list layout.
1711 2011-05-27 Ben Konrath <ben@bagu.org>
1713 Reset the AuthenticationPopup when clearing the ListView.
1715 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1717 2011-05-27 Ben Konrath <ben@bagu.org>
1719 Fix problem with onlineglom.properties file loading.
1721 The old way worked in Eclipse but not on the server. Loading the
1722 onlineglom.properties file now works in Eclipse and on the server.
1724 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1726 2011-05-24 Ben Konrath <ben@bagu.org>
1728 Update gwt-log from 3.1.0 to 3.1.2.
1730 Gwt-log 3.1.0 has been marked as depreciated.
1734 2011-05-24 Ben Konrath <ben@bagu.org>
1736 Add comment to ListActivity.goTo() method.
1738 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1740 2011-05-24 Ben Konrath <ben@bagu.org>
1742 Remove FIXME in convertGdkColorToHtmlColour()
1744 The Gdk::Color value returned by libglom is 16-bits per channel on both
1745 64 and 32-bit platforms.
1747 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1749 2011-05-19 Ben Konrath <ben@bagu.org>
1751 Improve performance of initial ListView load.
1753 I removed a round trip to the server for getting the default table name
1754 and then requesting information about that table. This also removes a potential
1755 problem with the table change handler not being setup in time to receive the
1756 table change event from the ListActivity.
1758 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1759 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1760 getDefaultLayoutListTable() method. Improve comments.
1761 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1762 getDefaultLayoutListTable() method instead of firing a table change
1763 event to get the table to load.
1764 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1765 implementation of getDefaultLayoutListTable() method.
1766 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1769 2011-05-19 Ben Konrath <ben@bagu.org>
1771 Override toDebugString() in TableChangeEvent.
1773 This is useful to have for debugging.
1775 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1777 2011-05-19 Ben Konrath <ben@bagu.org>
1779 Add a "Back to List" link when at the DetailsPlace.
1781 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1782 Populate the CellTable based on the selected table of the ListBox if
1783 it's set otherwise use the default table. This allows the "Back to
1785 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1786 Remove Place from constructors. Add a setPlace() method. Add
1787 goToPlace() method. Set class as presenter for TableSelectionView.
1788 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1789 Use the same TableSelectionActivity when switching between the List and
1791 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1792 Subclass the new HasSelectableTablePlace. This removes some duplicate
1794 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1795 New class to represent Places that display the TableSelectionView.
1796 * src/main/java/org/glom/web/client/place/ListPlace.java:
1797 Subclass the new HasSelectableTablePlace. This removes some duplicate
1799 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1800 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1801 Add Presenter interface. Add setBackLinkVisible() method. Add
1802 setBackLink() method.
1804 2011-05-18 Ben Konrath <ben@bagu.org>
1806 Enable the "Details" buttons.
1808 Right now only an empty details view is displayed.
1810 * src/main/java/org/glom/web/client/ClientFactory.java:
1811 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1812 Add DetailsView to ClientFactory.
1813 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1814 A basic activity for the details view.
1815 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1816 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1818 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1819 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1821 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1822 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1823 unnecessary super() in constructor.
1824 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1825 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1826 really shouldn't create a new TableSelectionActivity for both the ListPlace
1827 and the DetailsPlace so this should be considered a temporary solution.
1828 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1829 New file. Represents a URL for the details view.
1830 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1831 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1832 A basic details view interface and implementation.
1833 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1834 Enable the "Details" buttons.
1836 2011-05-12 Ben Konrath <ben@bagu.org>
1838 Use a LayoutPanel with multiple display areas for main layout.
1840 This is mostly a refactor in that there are no changes from the user
1841 point of view. These changes are required so that we can swap out the list view
1842 with the details view when the user clicks the "Details" button.
1844 * src/main/java/org/glom/web/client/ClientFactory.java:
1845 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1846 OnlineGlomView. Add TableSelectionView, ListView and
1847 AuthenticationPopup.
1848 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1849 for main layout. Add display regions for main activities. Add
1850 activity manager for for main activities.
1851 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1852 file from parts of the deleted OnlineGlomActivity.
1853 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1854 New file from parts of the deleted OnlineGlomActivity.
1855 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1856 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1857 New files for app wide table change event.
1858 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1859 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1860 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1861 Activity mappers for the main activities replace the deleted app-wide
1863 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1864 Fix a spelling error in he comment.
1865 * src/main/java/org/glom/web/client/ui/ListView.java:
1866 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1867 Renamed from LayoutListView and modified for MVP. This still not a
1868 proper dumb view as prescribed by the MVP pattern but it works for now.
1869 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1870 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1871 New widget stripped out of the deleted OnlineGlomView.
1872 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1873 Remove hack that is fixed by this patch.
1875 2011-05-06 Ben Konrath <ben@bagu.org>
1877 Rename OnlineGlomPlace to ListPlace.
1879 The only change besides the rename is that url will now display #list
1880 instead of #Document.
1882 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1883 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1884 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1885 * src/main/java/org/glom/web/client/place/ListPlace.java:
1886 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1888 2011-05-06 Ben Konrath <ben@bagu.org>
1890 Use Presenter for app navigation.
1892 This is the proper way to deal with Place (URL) changes with the MVP
1895 * src/main/java/org/glom/web/client/ClientFactory.java:
1896 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1897 PlaceHistoryMapper and PlaceHistoryHandler.
1898 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1899 PlaceHistoryMapper and PlaceHistoryHandler.
1900 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1901 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1902 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1903 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1904 Add Presenter interface and setPresenter methods. Rename addHyperLink
1905 to addDocumentLink taking only the document title as a parameter.
1907 2011-04-14 Ben Konrath <ben@bagu.org>
1909 Prompt for db username/password if they haven't been set.
1911 This is implemented with a popup widget that is contained within the
1912 OnlineGlomView and managed by the OnlineGlomActivity.
1914 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1915 methods for checking and setting the database username and password.
1916 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1917 new methods for checking and setting the database username and
1919 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1920 Display authentication popup if the JDBC connection to the database
1921 has not been authenticated.
1922 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1924 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1925 for dealing with the authentication popup.
1926 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1927 Implement the methods for dealing with the authentication popup.
1928 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1929 try to executed queries if the database connection hasn't been
1930 authenticated. Implement methods for checking and setting the
1931 database username and password.
1933 2011-04-12 Ben Konrath <ben@bagu.org>
1935 Make log messages a little clearer.
1937 Add a dash betweeen the document title and the table name.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1941 2011-04-12 Ben Konrath <ben@bagu.org>
1943 Protect against NPEs when cleaning up database resources.
1945 While this isn't strictly necessary because the exception is caught,
1946 not protecting against the NPEs makes it harder to find the real error
1949 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1951 2011-04-12 Ben Konrath <ben@bagu.org>
1953 Move configuration of the servlet to the constructor.
1955 The servlet will be initialized even if the database authentication
1956 information is not set or correct. I still need to add the UI for prompting
1957 the user for the authentication information when it's required.
1959 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1960 javadocs for getDocumentTitles() method.
1961 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1962 Set error message when RPC fails.
1963 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1964 glom files directory from the configuration file. Try to set the
1965 database authentication information for the specific document if it's
1966 set and works otherwise try to use the global authentication
1967 information set for the directory.
1968 * src/main/resources/onlineglom.properties: Moved from
1969 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1970 Added detailed comments for the new keys.
1972 2011-04-11 Ben Konrath <ben@bagu.org>
1974 Remove unnecessary @Override in DocumentSelectionViewImpl.
1976 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1978 2011-04-11 Ben Konrath <ben@bagu.org>
1980 Remove center alignment in DocumentSelectionView.
1982 The title element is still centred but the document titles and bottom
1983 sentence are both left-aligned.
1985 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1987 2011-04-11 Ben Konrath <ben@bagu.org>
1989 Change 'Demo' naming convention to 'Document'.
1991 This is just a rename refactor with no functional changes to the code.
1993 * src/main/java/org/glom/web/client/ClientFactory.java:
1994 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1995 * src/main/java/org/glom/web/client/OnlineGlom.java:
1996 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1997 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1998 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1999 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2000 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2001 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2002 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2003 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2004 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2005 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2007 2011-04-08 Ben Konrath <ben@bagu.org>
2009 Remove FIXME from safeLongToInt() method.
2011 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2014 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2016 2011-04-08 Ben Konrath <ben@bagu.org>
2018 Display an error if no glom documents are found in the specified directory.
2020 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2021 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2022 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2023 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2025 2011-04-08 Ben Konrath <ben@bagu.org>
2027 Add copyright header to one more file ... oops.
2029 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2031 2011-04-08 Ben Konrath <ben@bagu.org>
2033 Add copyright header to files without it.
2035 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2036 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2037 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2038 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2039 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2040 * src/main/java/org/glom/web/shared/GlomField.java:
2042 2011-04-08 Ben Konrath <ben@bagu.org>
2044 Add support for accessing multiple glom documents in the servlet.
2046 This completes the demo selection functionality.
2048 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2049 document title to methods.
2050 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2051 document title to methods.
2052 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2053 Set browser window title when the activity starts. Correct name of
2054 document title variable.
2055 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2056 Set browser window title when the activity starts. Set the table
2057 selector change handler after table selector has been set. Clear the
2058 OnlineGlomView when the activity has been stopped.
2059 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2060 document title as the place token. Use "#Document:" instead of
2061 "#OnlineGlomPlace:" in the URL.
2062 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2063 Change heading to "Online Glom"
2064 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2065 document title in RPC methods.
2066 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2067 setDocumentTitle() method. Add clear() method.
2068 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2069 setDocumentTitle() method. Implement clear() method which removes the
2070 change handler on the ListBox, clears the ListBox and clears the
2072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2073 Implement methods with document title. Keep track for the configured
2074 glom documents and their corresponding JDBC configurations in a hash
2075 table. This information is retrieved using the document title as the
2076 key in the hash table.
2077 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2078 document title field as it's no longer needed.
2080 2011-04-08 Ben Konrath <ben@bagu.org>
2082 Update the Eclipse JDT configuration.
2084 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2085 methods. Automatically add the copyright header to new files.
2087 2011-04-05 Ben Konrath <ben@bagu.org>
2089 Add new page for demo selection.
2091 This patch adds all the components required to view and start an
2092 OnlineGlom demo by clicking on the desired hyperlink. The user is
2093 able to return to the demo selection page with the browser's back
2094 button. I still need to modify the servlet to work with multiple
2095 documents so all demo links will load the file defined in the
2096 OnlineGlom.properties.
2098 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2099 This is only useful during development so we don't need to save it.
2100 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2101 get a reference to the DemoSelectionView.
2102 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2103 method to get a reference to the DemoSelectionView.
2104 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2105 default view to DemoSelectionView.
2106 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2107 to get glom document titles for glom files in a hard-coded directory.
2108 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2109 method to get glom document titles for glom files in a hard-coded
2111 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2112 Presenter for DemoSelectionView.
2113 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2114 for DemoSelectionView.
2115 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2116 Update for DemoSelectionView.
2117 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2118 Basic 'Place' implementation for the DemoSelectionView.
2119 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2120 The interface for the DemoSelectionView.
2121 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2122 The implementation of the DemoSelectionView.
2123 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2124 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2125 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2126 implementation of method to get glom document titles for glom files
2127 in a hard-coded directory.
2128 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2129 on longer being used.
2130 * src/main/webapp/glom.png: Glom logo.
2132 2011-04-05 Ben Konrath <ben@bagu.org>
2134 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2136 This is the forth and final commit of a refactor that will allow
2137 OnlineGlom to be used with multiple documents.
2139 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2140 Move RPC code from OnlineGlomViewImpl to this class.
2141 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2143 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2144 RPC code to the presenter class (the P in MVP).
2146 2011-04-04 Ben Konrath <ben@bagu.org>
2148 Start moving the existing OnlineGlom code to MVP.
2150 This work is based on the GWT MVP framework that is documented here:
2152 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2154 This is the third commit of a refactor that will allow OnlineGlom to
2155 be used with multiple documents.
2157 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2158 Interface for client factory which is used to get instances of various
2159 classes throughout the app.
2160 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2161 Implementation of client factory.
2162 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2163 initialize the MVP framework.
2164 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2165 New file. Activity manager for the main container widget. This is the
2167 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2168 Maps place (URL) to its corresponding activity.
2169 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2170 New file. This is just a place holder for a generated file.
2171 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2172 New file. Represents the URL for the main Online Glom app.
2173 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2174 for changes in LayoutListViewImpl.
2175 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2176 interface for View. Move code to OnlineGlomViewImpl class.
2177 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2178 file. Implementation of OnlineGlomView.
2179 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2180 Place resources. Use ClientFactoryImpl by default.
2182 2011-04-04 Ben Konrath <ben@bagu.org>
2184 Move View classes to their own package.
2186 This is the second commit of a refactor that will allow OnlineGlom to
2187 be used with multiple documents.
2189 * src/main/java/org/glom/web/client/OnlineGlom.java:
2190 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2191 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2193 2011-04-02 Ben Konrath <ben@bagu.org>
2195 Move UI code from the main module to its own class.
2197 This is the first commit of a refactor that will allow OnlineGlom to be
2198 used with multiple documents.
2200 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2201 references to OnlineGlom to OnlineGlomView.
2202 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2203 OnlineGlomView and instantiate it here.
2204 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2205 represents the main OnlineGlomView with one document.
2207 2011-04-01 Ben Konrath <ben@bagu.org>
2209 Fix formatting of gwt.xml and add DTD.
2211 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2213 2011-03-30 Ben Konrath <ben@bagu.org>
2215 Propperly convert gdkColor string to html colour string.
2217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2219 2011-03-28 Ben Konrath <ben@bagu.org>
2221 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2223 This implementation matches
2224 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2225 readable and is not tied to Swig.
2227 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2229 2011-03-28 Ben Konrath <ben@bagu.org>
2231 Use read-only checkboxes for boolean field types.
2233 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2234 in the CellTable based on the field type. It currently only
2235 distinguishes between boolean and text columns but I'll need to add
2236 support for more types.
2237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2238 column type in the ColumnInfo object. Add method to convert between the
2239 glom field type enum in ColumnInfo and the glom field type in libglom.
2240 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2242 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2243 getting and setting booleans.
2245 2011-03-25 Ben Konrath <ben@bagu.org>
2247 Don't get the Date twice from the ResultSet.
2249 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2251 2011-03-25 Ben Konrath <ben@bagu.org>
2253 Cleanup code in the servlet.
2255 * TODO: Remove item about row count. Add item about testing row count
2256 query with large number of rows.
2257 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2258 spelling mistakes, change method parameter to be consistent with
2261 2011-03-25 Ben Konrath <ben@bagu.org>
2263 Add server side logging with the gwt-log library.
2265 * .gitignore: Ignore the log file we're now producing.
2266 * TODO: Add a couple TODO item for logging.
2267 * pom.xml: Add gwt-log and log4j as a dependency.
2268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2269 logging of errors, warnings and some important info.
2270 * src/main/resources/log4j.properties: New file to configure log4j.
2272 2011-03-24 Ben Konrath <ben@bagu.org>
2274 Add a disable button for the Details view.
2276 * src/main/java/org/glom/web/client/LayoutListView.java:
2278 2011-03-22 Ben Konrath <ben@bagu.org>
2280 Use a count query to get the number of rows for the list view pager.
2282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2284 2011-03-22 Ben Konrath <ben@bagu.org>
2286 Add more TODO information about CellTable pager positioning.
2290 2011-03-19 Ben Konrath <ben@bagu.org>
2292 Add TODO item about CellTable pager positioning.
2296 2011-03-18 Ben Konrath <ben@bagu.org>
2298 Remove unneeded GlomFieldColumn class.
2300 This is just a small code cleanup.
2302 * src/main/java/org/glom/web/client/LayoutListView.java:
2304 2011-03-18 Ben Konrath <ben@bagu.org>
2306 Use cursor mode in the query that gets data for the list view.
2308 I still need to fix the potential memory problem when getting the row
2309 count for the list view.
2311 * TODO: Add note about testing memory usage with large data sets. Add
2312 item about fixing row counting with large data sets.
2313 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2314 PostgreSQL JDBC driver into cursor mode when getting data for the
2317 2011-03-15 Ben Konrath <ben@bagu.org>
2319 Remove the GWT Container from the Eclipse build classpath.
2321 The GWT dependencies are set by Maven so this isn't needed.
2325 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2327 Added some earlier mockups to git, but not to the tarball dist.
2329 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2330 Openismus. These hopefully show how we might structure the HTML so that
2331 it can be styled easily with CSS. However, we probably need to adapt them
2332 for the CSS structure that GWT dictates for common widgets.
2334 2011-03-14 Ben Konrath <ben@bagu.org>
2336 Locate OnlineGlom.properties using the ServletContext.
2338 This is required to be able to locate the file in the deployed servlet.
2340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2341 Configure the database and glom document in in a helper method so
2342 that the ServletContext can be used to locate OnlineGlom.properties.
2343 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2344 src/main/webapp. This is the proper location for .properites files.
2346 2011-03-12 Ben Konrath <ben@bagu.org>
2348 Add note to README about why we're compiling down to obfuscated JavaScript.
2352 2011-03-11 Ben Konrath <ben@bagu.org>
2354 Use properties file to configure servlet.
2356 This allows people to change the glom file path, db username and db
2357 password without recompiling the code.
2359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2360 * src/main/webapp/OnlineGlom.properties:
2362 2011-03-11 Ben Konrath <ben@bagu.org>
2364 Use table fields in layout list view if the layout list is not defined.
2366 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2367 Manually create a LayoutFieldVector for the query builder using the
2368 table fields when a layout list is not defined in the glom file.
2370 2011-03-11 Ben Konrath <ben@bagu.org>
2372 Only show FIXME string for images when there's an image.
2374 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2375 in this change are some small code cleanups.
2377 2011-03-11 Ben Konrath <ben@bagu.org>
2379 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2381 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2383 2011-03-11 Ben Konrath <ben@bagu.org>
2385 Correctly set the index of the default table.
2387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2388 Correctly set the index of the default table. Add commented out example
2391 2011-03-10 Ben Konrath <ben@bagu.org>
2393 Add comment to pom.xml about the previous change.
2395 * pom.xml: Add comment about the deployment issue so that it's obvious
2396 why java-libglom is set to the provided scope.
2398 2011-03-10 Ben Konrath <ben@bagu.org>
2400 Change java-libglom dependency from compile to provided in pom.xml.
2402 Since java-libglom uses jni it can only be loaded once and therefore
2403 must be placed in $CATALINA_HOME/lib and not included in each war.
2404 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2405 More information about this issue can be found in the Tomcat 6 release
2406 notes in the "JNI Based Applications" section:
2408 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2410 * README: Remove note about this issue. Deployment info should really
2411 be on the wiki anyway so I'll add it right now.
2412 * pom.xml: Change java-libglom dependency from compile to provided so
2413 that it's copied in to the packaged war.
2415 2011-03-09 Ben Konrath <ben@bagu.org>
2417 Change to using a neutral locale for currency, date and time formatting.
2419 This solves the problem of currency values being represented without a
2420 space between the currency code and the number (e.g. "EUR5.89" is now
2421 represented as "EUR 5.89"). More work is required when we implement
2422 a locale preference setting.
2424 * TODO: Add note about currency formatting issues with different
2426 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2427 to using the neutral ROOT locale.
2429 2011-03-09 Ben Konrath <ben@bagu.org>
2431 Add support for currency codes that are not ISO 4217 codes.
2433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2434 the currency code defined in the glom file when it's not 3 characters
2435 long or when Java doesn't recognize the string as an ISO 4217 code.
2437 2011-03-08 Ben Konrath <ben@bagu.org>
2439 Remove test classes, launch configurations and configuration.
2441 The test stuff was getting in the way when creating the war. To make
2442 the war file you can now do 'mvn clean package'. The packaged war file
2443 will be in the target directory.
2445 * .classpath: Remove unused classpathentry for tests and i18n.
2446 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2447 property. Don't run test or i18n goals when packaging the war.
2448 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2453 * OnlineGlomTest-dev.launch:
2454 * OnlineGlomTest-prod.launch:
2455 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2456 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2458 2011-03-07 Ben Konrath <ben@bagu.org>
2460 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2462 These fixes allow me to use 'mvn deploy' to create the war file.
2464 * .classpath: This generated config has been updated by Eclipse. This
2465 change was probably triggered by me updating from Eclipse 3.6.1 to
2467 * .gitignore: Add entry to ignore the directory
2468 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2469 * .project: The generated config has been updated by Eclipse. This
2470 change was probably triggered by me updating from Eclipse 3.6.1 to
2472 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2473 so that Eclipse doesn't complain
2474 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2475 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2476 'tests' directory to 'client' directory. This is the new
2477 gwt-maven-plugin convension.
2478 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2479 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2481 2011-03-07 Ben Konrath <ben@bagu.org>
2483 Add support for horizontal alignment in the LayoutList columns.
2485 * TODO: Remove item about horizontal alignment. Add item about
2486 improvements to ColumnInfo.
2487 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2488 alignment on the columns. Use ColumnInfo RPC object get the column
2489 title and horizontal alignment.
2490 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2491 LayoutListView creation with ColumnInfo RPC object.
2492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2493 a ColumnInfo object for every LayoutList columnn. Convert the
2494 FieldFormatting.HorizontalAlignment to the correct
2495 ColumnnInfo.HorizontatlAlignment with the new
2496 getColumnInfoHorizontalAlignment helper method.
2497 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2498 to encapsulate column information like alignment and title. This
2499 could be used to set the colour instead of on a per cell field basis.
2500 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2501 column title storage and retrieval with ColumnInfo.
2503 2011-03-04 Ben Konrath <ben@bagu.org>
2505 Add support for column sorting.
2507 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2508 AsynDataProvider to be an anonymous inner class. Use new
2509 getSortedTableData RPC method when column sort is requested. Set all
2510 columns sortable and add an AsyncHandler to activate sorting in the
2512 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2513 method getSortedTableData(). Cleanup other method signatures.
2514 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2515 new method getSortedTableData(). Cleanup other method signatures.
2516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2517 Implement getSortedTableData() and getTableData() methods by using a
2518 private helper method with the appropriate parameters filled in. Use
2519 user supplied sort clause when supplied, otherwise fall back to
2520 sorting by the primary key. Move destroy() method to be underneath
2521 constructor for readability. Cleanup comments.
2523 2011-03-03 Ben Konrath <ben@bagu.org>
2525 Add support for colour text and colour backgrounds to the layout list cells.
2527 Only the cell backgrounds are coloured which leaves a gap between the
2528 cells that isn't coloured. I need to figure out a way to set
2529 'style=background-colour:' on the whole column rather than just the
2532 * TODO: Add a note about colouring the background of the whole column.
2533 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2534 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2535 render the coloured text and backgrounds. Use GlomField[] for the row type.
2536 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2538 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2539 GlomField[] for the row type.
2540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2541 GlomField[] for the row type. Set the text, text colour and background
2542 colour in the GlomField objects as specified in the glom document. Add
2543 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2544 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2545 the glom field text, foreground colour and background colour.
2547 2011-03-02 Ben Konrath <ben@bagu.org>
2549 Don't display hidden tables in the combo box.
2551 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2553 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2554 code to ignore hidden tables using ArrayLists for the table names and
2556 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2557 tableNames to use ArrayLists instead of String[]. Update getter and setter
2560 2011-03-01 Ben Konrath <ben@bagu.org>
2562 Add support for Date and Time number types.
2564 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2565 Implement formatting for Date and Time values. Change the default glom
2566 file to small business example.
2568 2011-03-01 Ben Konrath <ben@bagu.org>
2570 Add support for formatting glom types as specified in the glom file.
2572 Formatting isn't finished yet - I still need to add support for Date
2575 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2576 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2577 checks for null values in JDBC cleanup code and catch all exceptions
2578 instead of just SQLExceptions.
2579 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2582 2011-03-01 Ben Konrath <ben@bagu.org>
2584 Use GWT 2.2.0 instead of 2.1.1.
2586 * pom.xml: Change GWT version numbers.
2588 2011-03-01 Ben Konrath <ben@bagu.org>
2590 A few small code cleanups.
2592 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2594 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2595 unnecessary object creation in constructor.
2596 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2597 unnecessary object creation in constructor.
2599 2011-02-28 Ben Konrath <ben@bagu.org>
2601 Add file for TODO list.
2605 2011-02-18 Ben Konrath <ben@bagu.org>
2607 Enable the CellTable Pager when more than 20 rows need to be viewed.
2609 The Pager will automatically become active when the results are larger
2610 than the CellTable size which is currently set to 20 lines.
2612 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2613 name on debug statment in RPC call in LayoutListDataProvider, add
2614 numRows parameter to LayoutListView constructor, propperly set rowCount
2616 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2617 name on debug statment in RPC call, use LayoutListTable object in RPC
2618 calls, pass rowCount to LayoutListView.
2619 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2620 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2622 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2623 interface for changes in OnlineGlomService.
2624 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2625 getLayoutListHeaders() to getLayoutListTable() and return
2626 LayoutListTable. Using this object allows me to pass other information
2627 about the LayoutList like the expected number of rows in the result set.
2628 The Connection object from the connection pool is now propperly closed.
2629 Only the requested number of lines are returned to the client in
2631 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2632 GlomTable and add columnTitles and numRows.
2634 2011-02-18 Ben Konrath <ben@bagu.org>
2636 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2638 This is a small performance boost. I'll use GlomTable to get the required
2639 layoutlist information.
2641 * src/main/java/org/glom/web/client/OnlineGlom.java:
2642 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2643 * src/main/java/org/glom/web/shared/GlomDocument.java:
2645 2011-02-18 Ben Konrath <ben@bagu.org>
2647 Add option to turn off formatting in JDT formatter preferences.
2649 * .settings/org.eclipse.jdt.core.prefs:
2651 2011-02-18 Ben Konrath <ben@bagu.org>
2653 Rename LayoutList to LayoutListView.
2655 I'm working towards setting things up to easily use MVP when the time
2658 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2660 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2663 2011-02-17 Ben Konrath <ben@bagu.org>
2665 Move LayoutListDataProvider class into LayoutList.java.
2667 * src/main/java/org/glom/web/client/LayoutList.java:
2669 2011-02-17 Ben Konrath <ben@bagu.org>
2671 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2673 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2675 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2676 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2677 from LibGlomServer.java.
2678 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2679 Rename from LibGlomServiceAsync.java.
2680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2681 Rename from LibGlomServiceImpl.java.
2682 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2684 2011-02-17 Ben Konrath <ben@bagu.org>
2686 Update JDT settings.
2688 * .settings/org.eclipse.jdt.core.prefs:
2690 2011-02-17 Ben Konrath <ben@bagu.org>
2692 Move GWT-RPC objects to shared package (where they should be).
2694 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2695 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2696 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2697 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2698 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2699 org.glom.web.shared package.
2700 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2701 org.glom.web.shared package.
2702 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2703 directory in compilation to javascript.
2705 2011-02-16 Ben Konrath <ben@bagu.org>
2707 Add sort clause to the sql query that grabs table information.
2709 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2710 if one of the columns is a primary key.
2712 2011-02-16 Ben Konrath <ben@bagu.org>
2714 Disable generateAsync feature of gwt-maven.
2716 The generated interface does not correctly match the methods in LibGlomService
2717 and the generated singleton Util inner-class doesn't respect the servlet
2720 * pom.xml: Turn off generateAsync feature.
2721 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2722 with singleton Util inner-class.
2724 2011-02-14 Ben Konrath <ben@bagu.org>
2726 Add LGPL v3 licence notices.
2728 Followed directions listed here:
2729 http://www.gnu.org/licenses/gpl-howto.html
2731 * COPYING: This file is a copy of the GPL v3.
2732 * COPYING.LESSER: This file is a copy of the LGPL v3.
2733 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2735 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2737 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2739 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2741 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2743 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2745 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2748 2011-02-14 Ben Konrath <ben@bagu.org>
2750 Use ArrayList instead of Array in GWT-RPC calls.
2752 Apparently this gives a slight performance boost to the compiled
2755 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2757 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2760 2011-02-14 Ben Konrath <ben@bagu.org>
2762 Access data from a postgres db rather than the example glom file.
2764 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2765 compile down to obfuscated javascript.
2766 * pom.xml: Add c3p0 and postgres JDBC libraries.
2767 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2768 using a postgres db accessed through the c3p0 connection pooling library.
2770 2011-02-14 Ben Konrath <ben@bagu.org>
2772 Update Java formatter settings.
2774 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2776 2011-02-02 Ben Konrath <ben@bagu.org>
2778 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2780 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2782 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2783 the compiled webapp directory that Eclipse uses as we're using Maven now.
2784 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2785 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2787 * pom.xml: Format file, change target Java version to 1.6.
2789 2011-02-02 Ben Konrath <ben@bagu.org>
2791 Add information about a deployment related issue.
2793 * README: Add Notes section with the problem outlined.
2795 2011-02-02 Ben Konrath <ben@bagu.org>
2797 Call Glom.libglom_deinit() when the servlet is shutdown.
2799 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2800 Glom.libglom_deinit() to destroy() method.
2802 2011-01-28 Ben Konrath <ben@bagu.org>
2804 Use generated Util class to get the RPC Async interface.
2806 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2808 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2809 getInstance() method to get a reference to the RPC Async interface.
2810 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2811 getInstance() method to get a reference to the RPC Async interface, remove
2812 the now unused getLibGlomServiceProxy() method.
2814 2011-01-27 Ben Konrath <ben@bagu.org>
2816 Cleanup ChangeLog entry from previous commit.
2818 * ChangeLog: Group logical changes together and add comments.
2820 2011-01-25 Ben Konrath <ben@bagu.org>
2822 Convert to gwt-maven project.
2824 * .gitignore: Update for new project structure.
2825 * README: New file with a link to the online documentation.
2826 * pom.xml: The generated maven configuration file with some tweaks.
2828 Add / update Eclipse settings. These files are a merge of the files that
2829 were generated with the gwt-maven plugin and the files we were previously
2833 * .settings/.jsdtscope:
2834 * .settings/com.google.gdt.eclipse.core.prefs:
2835 * .settings/com.google.gwt.eclipse.core.prefs:
2836 * .settings/org.eclipse.jdt.core.prefs:
2837 * .settings/org.eclipse.wst.common.component:
2838 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2839 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2840 * .settings/org.maven.ide.eclipse.prefs:
2841 * OnlineGlomTest-dev.launch:
2842 * OnlineGlomTest-prod.launch:
2844 Java source files moved from the 'src' directory to the directory structure
2846 * src/main/java/org/glom/web/client/GlomDocument.java:
2847 * src/main/java/org/glom/web/client/GlomTable.java:
2848 * src/main/java/org/glom/web/client/LayoutList.java:
2849 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2850 * src/main/java/org/glom/web/client/LibGlomService.java:
2851 * src/main/java/org/glom/web/client/OnlineGlom.java:
2852 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2854 Non-functional property file used for translations. I included this as
2855 reminder that it's something I need to sort out.
2856 * src/main/resources/org/glom/web/client/Messages.properties:
2858 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2859 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2861 The servlet configuration files moved from the 'war' directory.
2862 * src/main/webapp/OnlineGlom.css:
2863 * src/main/webapp/OnlineGlom.html:
2864 * src/main/webapp/WEB-INF/web.xml:
2866 Generated test files with most of the code commented out. I included these
2867 so that it's easy to add tests when we're ready for them.
2868 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2869 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2871 2011-01-25 Ben Konrath <ben@bagu.org>
2873 Remove unused println.
2875 * src/org/glom/web/server/LibGlomServiceImpl.java:
2877 2011-01-25 Ben Konrath <ben@bagu.org>
2879 Add project specific JDT settings.
2881 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2882 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2884 2011-01-25 Ben Konrath <ben@bagu.org>
2886 Populate celltable with example data.
2888 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2889 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2890 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2891 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2892 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2893 asynchronously gets the example data.
2894 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2895 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2896 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2897 curently selected table to be retrieved by other widgets.
2898 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2899 implement getTableData() in a hacky way. This method needs to be updated
2900 to grab information from the database when database creating is
2903 2011-01-20 Ben Konrath <ben@bagu.org>
2905 Set table headers when table dropBox changes.
2907 * src/org/glom/web/client/GlomDocument.java: Correct some method
2909 * src/org/glom/web/client/LibGlomService.java: Add method
2910 to get list layout field names.
2911 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2912 to get list layout field names.
2913 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2914 widget for list layout table.
2915 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2916 the table drop box and add new updateTable() method to asynchronously
2917 get the layout list field names for the currently selected table.
2918 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2919 implementation of getLayoutListHeaders() method.
2920 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2922 2011-01-18 Ben Konrath <ben@bagu.org>
2924 Make a listBox with table titles instead of the flexTable demo.
2926 This is the start of something more useful.
2928 * .classpath: Exclude a bunch of packages from the JVM that are
2929 getting in the way of the Eclipse content assist.
2930 * src/org/glom/web/client/GlomDocument.java:
2931 * src/org/glom/web/client/GlomTable.java:
2932 * src/org/glom/web/client/LibGlomService.java:
2933 * src/org/glom/web/client/LibGlomServiceAsync.java:
2934 * src/org/glom/web/client/OnlineGlom.java:
2935 * src/org/glom/web/server/LibGlomServiceImpl.java:
2936 * war/OnlineGlom.html:
2937 * war/WEB-INF/web.xml:
2939 211-01-13 Ben Konrath <ben@bagu.org>
2941 Update to new java-libglom API.
2943 * .gitignore: Ignore OnlineGlom.war.
2944 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2946 2010-12-20 Ben Konrath <ben@bagu.org>
2948 Add some basic style to the table listing.
2950 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2951 header, print useful error message on async callback failure.
2952 * war/OnlineGlom.css: Add style for table header, remove defaults
2953 provided by the Eclipse project wizard.
2955 2010-12-20 Ben Konrath <ben@bagu.org>
2957 Load example file from installed glom dir.
2959 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2960 provided by java-libglom to find the example file.
2962 2010-12-20 Ben Konrath <ben@bagu.org>
2964 Update Eclipse settings.
2967 * .settings/com.google.gdt.eclipse.core.prefs:
2968 * .settings/com.google.gwt.eclipse.core.prefs:
2970 2010-12-17 Ben Konrath <ben@bagu.org>
2974 * .classpath: New file.
2975 * .gitignore: New file.
2976 * .project: New file.
2977 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2978 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2979 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2980 * src/org/glom/web/client/GlomTable.java: New file.
2981 * src/org/glom/web/client/OnlineGlom.java: New file.
2982 * src/org/glom/web/client/TableNameService.java: New file.
2983 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2984 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2985 * war/OnlineGlom.css: New file.
2986 * war/OnlineGlom.html: New file.
2987 * war/WEB-INF/web.xml: New file.
2988 * war/images/glom.png: New file.