1 2011-10-26 Ben Konrath <ben@bagu.org>
3 Add script to monitor and restart tomcat if required.
5 * utils/check-and-recover-tomcat.py: New file.
7 2011-10-26 Ben Konrath <ben@bagu.org>
9 Display the correct number of data items in the pager.
13 https://bugzilla.gnome.org/show_bug.cgi?id=661441
15 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
16 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
17 The implementation is the same for both tables: Keep track of the
18 number of non-empty rows and fire and RowCountChangeEvent after the data has
20 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
21 custom Pager class that subclasses SimplePager to handle displaying
22 the correct number when empty rows have been added.
24 2011-10-26 Ben Konrath <ben@bagu.org>
26 Correct error in previous commit.
28 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
29 eventBus parameter from listView.setCellTable().
31 2011-10-26 Ben Konrath <ben@bagu.org>
33 Fix error in TODO comment.
35 * src/main/java/org/glom/web/client/activity/ListActivity.java:
37 2011-10-24 Ben Konrath <ben@bagu.org>
39 Create Notebook widgets to the details view.
41 This isn't finished just yet - I still need to create a reasonable
42 style to match the current theme.
44 * src/main/java/org/glom/web/client/Utils.java: Add method for
45 calculating the height of a widget. This is used in the Notebook class.
46 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
47 new constructor method in Group.
48 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
49 method for creating child widget that can be used by subclasses
50 like Notebook. New constructor that allows disabling the group
51 titles - Notebooks don't set a group title for their child groups.
52 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
53 to make Notebooks using GWT's TabLayoutPanel.
54 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
55 constructor that allows disabling the group titles.
56 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
57 LayoutItemNotebook DTO.
58 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
59 DTO for Notebooks. It's just an empty class for now but we might need
60 it to transfer some specific information in the future.
62 2011-10-21 Ben Konrath <ben@bagu.org>
64 Add navigation buttons to related list tables.
66 * src/main/java/org/glom/web/client/OnlineGlomService.java:
67 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
68 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
69 method getSuitableRecordToViewDetails() for getting the table name
70 and primary key value for related list navigation buttons.
71 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
72 private cell renderer class to get the navigation information for
73 related list tables from the server. Extract the navigation
74 processing code from the details cell navigation and use it for the
75 related list navigation as well.
76 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
77 cell renderer class for the details open buttons. This was needed
78 because the related list navigation buttons and the list view
79 navigation buttons need to react differently when clicked.
80 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
81 the onEnterKeyDown() method because it's now overriden in the
82 subclasses that are specific to the related list tables and the list
84 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
85 the vertical size a little because the buttons add a bit of vertical
86 space to table. This is not a perfect solution because the vertical
87 size of with table fewer than 5 rows will be a little smaller.
88 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
89 changes in how navigation buttons are handled.
90 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
91 getSuitableRecordToViewDetails() using the new RelatedListNavigation
92 database access object.
93 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
94 to find the portal for a given relationship name from
95 RelatedListDBAccess. Add method to find a primary key field for a
97 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
98 Move code to find the portal for a given relationship name to
100 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
101 New file: database access object for getting the related list
102 navigation information (the table name and the primary key value).
103 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
104 DTO for transferring a table name to navigate to and a primary key
106 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
107 boolean and getter/setter to specifies if the related list should add
110 2011-10-11 Ben Konrath <ben@bagu.org>
112 Enable the open navigation button when the data has been set.
114 This avoids having active buttons that don't do anything when the data
117 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
119 2011-10-11 Ben Konrath <ben@bagu.org>
121 Use IsWidget interface for FlowTableItem.
123 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
124 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
126 2011-10-11 Ben Konrath <ben@bagu.org>
128 Remove GWT styling from open button in details view.
130 There are still some issues with how the details cell is arranged but
131 this should be made to match Glom 1.20. I'm going to leave fixing this
132 until I have Glom 1.20 up and running.
134 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
135 style name on open button.
136 * src/main/webapp/style.css: Move and edit details-navigation class.
137 Re-arrange some classes to make them appear in the same order as the
140 2011-10-07 Ben Konrath <ben@bagu.org>
144 * .gitignore: Ignore new cache directory.
145 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
146 * pom.xml: Change GWT and maven plugin to 2.4.0.
147 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
149 * src/main/java/org/glom/web/client/ClientFactory.java:
150 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
151 * src/main/java/org/glom/web/client/OnlineGlom.java:
152 Update source for API changes.
153 * utils/build-onlineglom-war.sh: Remove cache directory before the
156 2011-10-07 Ben Konrath <ben@bagu.org>
158 Add navigation buttons in the details view.
160 This isn't finished but I thought I'd commit what I have as it's a
161 pretty good start. I still need to:
163 1. Change the style so that it fits better into the current theme
164 2. Adjust the details cell to expand as much as possible.
166 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
167 click handlers to navigation buttons in the DetailsCells. Create a
168 refreshData() method to get just the data from the server without the
170 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
171 Update the tableSelector and browser title when the table name
172 changes without using the tableSelector.
173 * src/main/java/org/glom/web/client/ui/DetailsView.java:
174 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
175 getDetailsCells() to getCells(). Update variable names.
176 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
177 method to set click handler on navigation button. Rename a few
178 variables. Add navigation buttons where needed.
179 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
180 variables and methods.
181 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
182 navigation boolean and navigation table as required in the
184 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
185 variables for navigation along with getter/setter methods.
187 2011-10-07 Ben Konrath <ben@bagu.org>
189 Rename Field to DetailsCell.
191 This is a refactor-only commit. No functionality has been added or
194 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
195 Update variable and method names.
196 * src/main/java/org/glom/web/client/ui/DetailsView.java:
197 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
198 variable and method names.
199 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
201 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
202 variable and method names.
204 2011-10-07 Ben Konrath <ben@bagu.org>
206 Create separate methods for layout and data the details view.
208 This is a refactor-only commit. No functionality has been added or
211 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
212 private methods: setData(), createLayout().
214 2011-10-07 Ben Konrath <ben@bagu.org>
216 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
218 This is part of a change to get navigation buttons in the details view
219 but it should have been done this way from the start.
221 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
222 for method name change in TableSelectionView.
223 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
224 Create TableChangeEvent and set the browser title using the
225 TableSelectionView API.
226 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
227 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
228 Change getSelectedTable() to getSelectedTableName(). Add
229 getSelectedTableTitle().
231 2011-10-07 Ben Konrath <ben@bagu.org>
233 Use primaryKeyValue naming convention in constructor of DetailsPlace.
235 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
237 2011-10-07 Ben Konrath <ben@bagu.org>
239 Update TableChangeEvent to use newTableName naming convention.
241 This makes the class more consistent with GWT naming conventions.
243 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
244 Update for method name change in TableChangeEvent.
245 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
246 for method name change in TableChangeEvent.
247 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
248 newTableName variable and getter method. Make toDebugString()
251 2011-09-30 Ben Konrath <ben@bagu.org>
253 Disable the pager in the list tables when the data row count is less than the minimum.
255 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
256 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
258 2011-09-30 Ben Konrath <ben@bagu.org>
260 Add empty rows to the end of related list and list view tables.
262 I also extracted the cell rendering classes from the ListTable because
263 the code was becoming a little crazy with all the anonymous inner
264 classes. My plan is to use these cell rendering classes in the details
265 view as well so this refactor will be needed for that change.
267 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
268 set the row count in related list tables if the data has more rows
269 than the minimum number of rows visible.
270 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
271 row count in list view tables if the data has more rows than the
272 minimum number of rows visible.
273 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
274 for rendering TYPE_BOOLEAN cells. The code was extracted from the
276 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
277 for rendering TYPE_NUMERIC cells. The code was extracted from the
279 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
280 class for rendering cells with buttons in list views. The code was
281 extracted from the ListTable class.
282 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
283 for rendering TYPE_TEXT cells. The code was extracted from the
285 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
286 Add empty rows to the end of the data if required. Implement
287 ListTable.getMinNumVisibleRows().
288 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
289 cell renderer code to public classes. Return null in
290 Column.getValue() for empty rows. Add new abstract method:
291 getMinNumVisibleRows(). Move code to set the row count of the list view
292 table to ListViewImpl.
293 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
294 empty rows to the end of the data if required. Implement
295 ListTable.getMinNumVisibleRows().
298 2011-09-27 Ben Konrath <ben@bagu.org>
300 Use GWT.log for client-side debugging statements.
302 These are optimized out when deployed so I should have used this method
303 in the first place. These statements will eventually be replaced with some sort
304 of notification in the browser.
306 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
307 * src/main/java/org/glom/web/client/activity/ListActivity.java:
308 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
309 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
310 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
312 2011-09-27 Ben Konrath <ben@bagu.org>
314 Put tableselector on the right, back to list link on right.
316 The idea is that the table selector is acting like a label for the
317 currently displayed table so it should be placed below the document title. This
318 puts the table title in a similar position to where it is in Glom.
320 * mockups/details-contacts.html:
321 * mockups/details-projects.html:
322 * mockups/listview-contacts.html:
323 * mockups/listview-projects.html:
325 Update mockups to match how the interfaces currently look.
326 * src/main/webapp/style.css: Swap positions of backlink with the table
327 selector. Add some space on the left side of the table selector to
328 line things up with the document title.
330 2011-09-27 Ben Konrath <ben@bagu.org>
332 Add field colouring to details view.
334 This change re-works how field colouring works. The colour formatting
335 information is now set to the client with the layout information instead of
336 with the data. This eliminates the need to send the same colour strings for
337 data in list view column when colour information is set.
339 In order to set an alternate colour for negative numeric values, the
340 number is now sent to client and formatted with the GWT NumberFormat class.
342 This change also fixes:
344 https://bugzilla.gnome.org/show_bug.cgi?id=659752
346 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
347 internationalization framework which is needed for client side numeric
349 * src/main/java/org/glom/web/client/Utils.java: New file for some
350 client static utility methods.
351 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
352 the DataItem object to the Field class. Use a utility method to
353 create the foreignKeyValue string.
354 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
355 alignment and text colours in the constructor. Add setData(DataItem)
356 method. Remove setText(String) method.
357 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
358 colour information to GlomTextCell. Create and use GlomNumberCell for
359 rendering numbers. Use utility method to get the string for the
360 primary key of the key provider. Re-work how the horizontal alignment
362 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
363 formatting to layout information. Methods for converting the libglom
364 formatting information were moved from DBAccess.
365 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
366 numeric formatting (it's now done on the client side). Don't set text
367 colours in DataItem. Move libglom formatting conversion methods to
369 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
370 getters/setters for text colour information.
371 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
372 for transferring the libglom NumericFormat information to the client.
373 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
374 and getters/setters for: GlomNumericFormat, background colour and
375 foreground colour strings.
377 2011-09-26 Ben Konrath <ben@bagu.org>
379 Simplify code that iterates through the LayoutGroup.
381 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
383 2011-09-26 Ben Konrath <ben@bagu.org>
385 Accept Eclipse formatting for OnlineGlomServiceAsync.
387 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
389 2011-09-26 Ben Konrath <ben@bagu.org>
391 Don't use the ListDBAccess classes to get the primary key layout information.
393 This was causing a bug where the wrong index for the hidden primary key
394 was being sent to the client.
396 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
397 primary key while creating the LayoutGroup DTO. Create a
398 LayoutItemField DTO for hidden primary keys. Don't use the
399 RelatedListDBAccess because it was only used for getting the primary
401 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
402 access modifier from public to protected for getPrimaryKeyField() and
403 getPrimaryKeyLayoutItemField().
404 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
405 abstract method getExpectedResultSize() because RelatedListDBAccess
406 doesn't have enough info to implement it.
407 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
408 Remove @Override for getExpectedResultSize().
409 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
410 Remove method getExpectedResultSize().
412 2011-09-23 Ben Konrath <ben@bagu.org>
414 Log which layout (list or details) the ignored item is from.
416 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
418 2011-09-23 Ben Konrath <ben@bagu.org>
420 Remove annotations that turn off code formatting in DataItem.
422 * src/main/java/org/glom/web/shared/DataItem.java:
424 2011-09-23 Ben Konrath <ben@bagu.org>
426 Rename GlomField to DataItem and update associated methods.
428 This is a rename-only refactor. No functionality has been added or
431 * src/main/java/org/glom/web/client/OnlineGlomService.java:
432 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
433 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
434 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
435 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
436 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
437 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
438 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
440 * src/main/java/org/glom/web/server/database/DBAccess.java:
441 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
442 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
443 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
444 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
445 * src/main/java/org/glom/web/shared/DataItem.java:
446 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
447 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
449 2011-09-23 Ben Konrath <ben@bagu.org>
451 Rename GlomDocument to DocumentInfo and update associated methods.
453 This is a rename-only refactor. No functionality has been added or
456 * src/main/java/org/glom/web/client/OnlineGlomService.java:
457 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
458 * src/main/java/org/glom/web/client/activity/ListActivity.java:
459 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
460 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
461 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
462 * src/main/java/org/glom/web/shared/DocumentInfo.java:
464 2011-09-20 Ben Konrath <ben@bagu.org>
466 Require java-libglom 1.17.3.
468 This picks up the fix for the seg fault problem with the Scenes table
469 in the Openismus Film Manager example.
473 2011-09-20 Ben Konrath <ben@bagu.org>
475 Change the way sort clause is added for primary key when no sort clause is requested.
477 The primary key is now added to the LayoutFieldVector (fieldsToGet)
478 before the sort clause is created. When a sort clause is not requested, the
479 sort clause is created by finding the primary key in the LayoutFieldVector
482 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
484 2011-09-20 Ben Konrath <ben@bagu.org>
486 Log error message if no documents are found in the configured directory.
488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
489 Extract the glom file extension string to a private static final class
490 variable (mostly as syntactic sugar). Accept a minor formatting change.
491 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
492 the example glom.document.directory configuration property to make it
493 more clear that it can any directory, not just the home directory.
495 2011-09-18 Ben Konrath <ben@bagu.org>
497 Add related lists to details view.
499 The related list table has support for paging and sorting just like the
500 table in the list view.
502 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
503 SQL queries for the related list tables.
504 * src/main/java/org/glom/web/client/OnlineGlomService.java:
505 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
506 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
507 Rename getList methods to getListView and add comments. Remove
508 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
509 it being unused. Add methods: getDetailsLayoutAndData(),
510 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
511 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
512 Create the layout and set the data for the fields in one async call
513 instead of two. Create related lists where appropriate.
514 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
515 for method name changes in OnlineGlomService.
516 * src/main/java/org/glom/web/client/ui/DetailsView.java:
517 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
518 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
520 * src/main/java/org/glom/web/client/ui/ListView.java:
521 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
522 tableName from setCellTable(). Create a ListViewTable instead of
524 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
525 represent a data field in the details view.
526 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
527 from addDetailsCell() to Field class. Keep track of the Fields and
528 Portals in the details view.
529 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
530 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
531 and add a method to get it. Add method to set the contents of the
533 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
534 New class for related list tables. This class has the data provider
535 for the related list table.
536 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
537 abstract class which is the base class for the ListViewTable and the
539 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
540 New class for list view tables. This class has the data provider for
542 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
543 methods for related list tables. Add more information to the
544 LayoutItemField and LayoutItemPortal DTOs.
545 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
546 Remove debugging print statement.
547 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
548 Remove debugging print statements. Add primary key field to SQL count
550 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
551 Remove unnecessary LayoutFieldVector parameter from
552 getResultSizeOfSQLQuery() method.
553 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
554 New class for related list table database access.
555 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
556 class that is a wrapper DTO for details view layout and data.
557 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
558 new 'fromField' string to this DTO.
559 * src/main/webapp/style.css: Remove bottom margin and override top
562 2011-09-15 Ben Konrath <ben@bagu.org>
564 Breakup the OnlineGlomServiceImpl class to make it more manageable.
566 This sets things up to make it easier to add the data retrieval for
567 related lists (portals). No user noticeable changes were made with
570 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
571 class has the code to retrieve the layouts and access the
572 database using the new database helper classes.
573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
574 Most of the functionality has been removed from this class. This
575 class now represents the public interface for the client side
576 code. It also deals with configuring the servlet and cleaning
577 things up when the servlet is stopped.
578 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
579 of static methods into this utility class.
580 * src/main/java/org/glom/web/server/database/DBAccess.java:
581 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
582 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
583 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
584 These classes have the database retrieval code. The class hierarchy
585 has been setup to make it easy to reuse code for similar
588 2011-09-06 Ben Konrath <ben@bagu.org>
590 Create separate classes for list table code and the data provider.
592 As part of this refactor, I also split up the code a bit to make it
595 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
596 table code to two new classes (below).
597 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
598 with code from ListViewImpl.
599 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
600 New file with code from ListViewImpl.
602 2011-09-06 Ben Konrath <ben@bagu.org>
604 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
606 This fixes the LayoutItemPortal DTO to match the libglom layout object
609 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
611 2011-09-01 Ben Konrath <ben@bagu.org>
613 Set title of Portals in the Details View.
615 * pom.xml: Bump required version of java-libglom to 1.17.1.
616 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
617 widget creation to its own class. Add comments to constructor.
618 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
619 The code is mostly from the Group class with the title now set.
620 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
621 title of Portal. Update some comments. Fix some code formatting.
623 2011-09-01 Ben Konrath <ben@bagu.org>
625 Remove TODO comment for the flow table column width.
627 The flow table column width is working correctly and doesn't need to be
628 changed. See this mailing list post for more info:
630 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
632 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
634 2011-08-27 Ben Konrath <ben@bagu.org>
636 Add document title (database name) to top of the browser page.
638 I added the document title to the TableSelecitonView but that will
639 change if / when we add a view that doesn't require table selection.
641 * mockups/details-contacts.html:
642 * mockups/details-projects.html:
643 * mockups/listview-contacts.html:
644 * mockups/listview-projects.html:
645 * mockups/style.css: Add document title to mockups to keep things
647 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
648 sizes to account for the document title.
649 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
650 Set the document title when it has been retrieved from the server.
651 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
652 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
653 and implement setDocumentTitle(String) method.
654 * src/main/webapp/style.css: Add ID for document title style.
656 2011-08-25 Ben Konrath <ben@bagu.org>
658 Add NavigationType enum to LayoutItemPortal DTO.
660 This is the start of adding support for Portals to the Details View.
662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
663 LayoutItem_Portal.navigation_type enum from libglom to
664 LayoutItemPortal.NavigationType enum.
665 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
666 NavigationType enum, field for storing the NavigationType and getter
669 2011-08-25 Ben Konrath <ben@bagu.org>
671 Implement the flow table layout in the Details View.
673 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
674 FlowTable to Group to account for the renamed class.
675 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
676 File. This is a container widget that implements the Glom details view
677 flow table behaviour.
678 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
679 org/glom/web/client/ui/FlowTable.java.
680 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
681 so that the size of the subgroups are a closer match to the size of
682 the Glom subgroups. This makes the flowtable layout match the layout
683 in Glom for the Music Collection example file.
685 2011-08-16 Ben Konrath <ben@bagu.org>
687 Create container element for LayoutItemPortal in Details View.
689 This will help me develop the layout for the FlowTable.
691 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
692 fieldPanel variable to detailsCell.
694 2011-08-15 Ben Konrath <ben@bagu.org>
696 Set the height of the data element in the Details View.
698 I changed the InlineLabels (text in a span element) to Labels (text in
699 a div element) so that I could set the height of the details-data
700 elements instead of the details-cell parent elements. This allows the
701 the details-data element to display the correct height if style is
702 applied that shows the height.
704 This change has the added benefit of allowing the order of the labels
705 and data elements to be changed for right-to-left languages.
707 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
708 InlineLabels to Labels.
709 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
710 InlineLabels to Labels. Set the height of the data element.
711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
712 multiline text height in the Formatting DTO.
713 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
714 for multiline height along with getter and setter methods.
715 * src/main/webapp/style.css: Adjust style to account for the change
716 from span elements to div elements in the details cell.
718 2011-08-15 Ben Konrath <ben@bagu.org>
720 Make the List View appearance match the mockups.
722 It doesn't match exactly but it's much better than it was.
724 * mockups/listview-contacts.html: Remove unused css classes.
725 * mockups/listview-projects.html: Remove unused css classes.
726 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
727 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
728 for mainPanel instead of VerticalPanel (table). Set style name on
729 CellTable. Set style name on Details column. Right-align Details
731 * src/main/webapp/style.css: Adjust properties to match the mockups.
733 2011-08-12 Ben Konrath <ben@bagu.org>
735 Add better support for subgroups in the details view.
737 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
738 changed FlowTable constructor.
739 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
740 support for subgroups and subgroup-titles.
741 * src/main/webapp/style.css: Add CSS class for subgroups and
744 2011-08-12 Ben Konrath <ben@bagu.org>
746 Return the top level LayoutGroup title.
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
750 2011-08-11 Ben Konrath <ben@bagu.org>
752 Make the TableSelector header match the mockup.
754 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
755 the layout panel. Properly lineup the table selection header with
756 the list and details view.
757 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
758 margin around the details view.
759 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
760 Rename listBox variable to tableSelector. Set id for the style sheet.
761 Use a FlowPanel instead of a HorizontalPanel.
762 * src/main/webapp/style.css: Add properties to make the TableSelector
763 box match the mockups.
765 2011-07-13 Ben Konrath <ben@bagu.org>
767 Update install script for java-libglom version change.
769 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
772 2011-07-13 Ben Konrath <ben@bagu.org>
774 Add support sub-group in the details view.
776 I also removed the code that special-cased the default details view
779 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
781 I still have to make a proper flowtable.
783 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
784 Don't special-case default details view layout.
785 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
786 addLayoutField() as I'm going to use it.
787 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
788 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
790 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
791 extracted from DetailsViewImpl.GroupPanel. Add support for
793 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
794 column count when getting the details layout.
796 2011-07-12 Ben Konrath <ben@bagu.org>
798 Set browser title with database and table titles.
800 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
801 Set the browser title when the table changes and when the activity
803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
804 title when retrieving document info (the GlomDocument object).
805 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
806 with getter and setter methods. Remove unused convenience constructor.
807 Use default code formatting.
809 2011-07-12 Ben Konrath <ben@bagu.org>
811 Ignore LayoutItemPortals in the details view.
813 I added a new DTO for the LayoutItemPortal so that I can ignore it in
816 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
817 LayoutItemPortal layout objects.
818 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
819 LayoutItemPortal objects when retrieving the details layout.
820 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
821 file. This is an empty class and just used to get type information for
824 2011-07-12 Ben Konrath <ben@bagu.org>
826 Use java-libglom 1.17.0.
830 2011-07-11 Ben Konrath <ben@bagu.org>
832 Remove "Table:" label from table selector.
834 This matches a recent change in the Glom UI.
836 * mockups/details-contacts.html:
837 * mockups/details-projects.html:
838 * mockups/listview-contacts.html:
839 * mockups/listview-projects.html: Remove the "Table:" label from the
841 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
843 2011-07-11 Ben Konrath <ben@bagu.org>
845 Add main groups to the details view.
847 This makes things look a little nicer in the details view. The next step
848 is to implement the flowtable.
850 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
851 resources from the standard gwt css theme. Standard.css is now
852 included in OnlineGlom.html so that the online glom css rules have
853 precedence over the gwt theme.
854 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
855 the whole LayoutGroup to the DetailsView instead of just the titles.
856 * src/main/java/org/glom/web/client/ui/DetailsView.java:
857 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
858 details layout with a helper class (GroupPanel). I might extract this
859 class when I make the full flowtable.
860 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
861 string as default so I don't have to worry about NPEs when processing
863 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
864 note beside OnlineGlom.gwt.xml above).
865 * src/main/webapp/style.css: Add default font-size to body to override
866 the font-size set by the standard theme. Don't use h2 tags for
867 group-title. Create new details-cell class.
869 2011-07-08 Murray Cumming <murrayc@murrayc.com>
871 ConfiguredDocument: Set the port number too.
873 * src/main/java/org/glom/web/server/ConfiguredDocument.java
874 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
875 Glom document. Presumably this worked sometimes so far because there is a
878 2011-07-08 Murray Cumming <murrayc@murrayc.com>
880 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
882 * src/main/java/org/glom/web/server/ConfiguredDocument.java
883 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
884 correct, though we should throw an exception too.
886 2011-07-08 Murray Cumming <murrayc@murrayc.com>
888 Fix a addDocuemnt typo.
890 * src/main/java/org/glom/web/shared/Documents.java
891 (Documents.addDocuemnt): Rename to addDocument().
892 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
893 (OnlineGlomServiceImpl.getDocuments): Adapt.
895 2011-07-08 Murray Cumming <murrayc@murrayc.com>
897 Slightly improved log output when connection fails.
899 * src/main/java/org/glom/web/server/ConfiguredDocument.java
900 (ConfiguredDocument.setUsernameAndPassword):
901 We don't know for sure if it' the username/password that's wrong, so
902 rephrase the message.
903 Also ouput the exception message, though it's generic in this case.
905 2011-07-08 Ben Konrath <ben@bagu.org>
909 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
910 added braces to a one line if statement because the Eclipse formatter
911 was getting confused.
913 2011-07-07 Ben Konrath <ben@bagu.org>
915 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
917 These should really be two separate tasks but I counldn't get things to
918 work with GWT 2.2.0 and Eclipse 3.7.
922 * .settings/org.eclipse.jdt.core.prefs:
923 * .settings/org.eclipse.jdt.ui.prefs:
924 * .settings/org.eclipse.ltk.core.refactoring.prefs:
925 * .settings/org.eclipse.m2e.core.prefs:
926 Add new config files. Update current files. Remove references to the
927 webtools plugins as we're not using any of the webtools features.
928 * .gitignore: Add logs directory which is created when running with
930 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
931 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
932 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
934 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
936 2011-07-07 Murray Cumming <murrayc@murrayc.com>
938 onlineglom.properties: Add explanatory comments.
940 * src/main/resources/onlineglom.properties: Also change the default user
941 from ben to someuser, to avoid the risk of people thinking we just
942 stupidly hard-coded a locale path, when they see that on stderr or in a log.
944 2011-06-28 Ben Konrath <ben@bagu.org>
946 Use filename in Log for incorrect passwords.
948 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
949 getFileName(String) method to get the filename from the URI.
951 2011-06-28 Ben Konrath <ben@bagu.org>
953 Add the table name to the URL token for the ListPlace.
955 This makes things consistent between the DetailsPlace and the
956 ListPlace. It also allows the the ListPlace to be bookmarked.
958 * src/main/java/org/glom/web/client/OnlineGlomService.java:
959 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
960 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
961 Remove getDefaultListLayout(). The default layout is now returned
962 by the getListLayout() method when the table name is an empty string.
963 * src/main/java/org/glom/web/client/activity/ListActivity.java:
964 Add table name field. Change to a new ListPlace when the table
965 has been changed. Use getListLayout() for getting the default
967 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
968 Add table name field. Set the correct table name in the list box
969 when loading from bookmark. This corrects a problem for the
971 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
972 Move table name to super-class (HasSelectableTable). Move document
973 and table URL keys to super-class in HasSelectableTable.
974 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
975 Add table name field. Add Tokenizer class with URL key common to
976 the subclasses (DetailsPlace and ListPlace).
977 * src/main/java/org/glom/web/client/place/ListPlace.java:
978 Add table name. Add code to parse the URL token.
979 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
980 Update ListPlace construction with empty table name string.
981 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
982 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
983 Change setTableSelectedIndex(int) to setSelectedTableName(String).
984 Update ListPlace construction with table name string.
985 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
986 Change defaultTableName field to tableName to reflect how it's now
987 used. Update the getter and setter methods.
989 2011-06-28 Ben Konrath <ben@bagu.org>
991 Enable the table selector in the DetailsView.
993 * src/main/java/org/glom/web/client/OnlineGlomService.java:
994 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
996 Remove getDefaultDetailsLayout(). The default layout is now returned
997 by the getDetailsLayout() method when the table name is an empty
999 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1000 event handler for table change event. Change to using
1001 getDetailsLayout() for the default details layout.
1002 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1004 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1005 when navigating to the details place.
1007 2011-06-27 Ben Konrath <ben@bagu.org>
1009 Use filename based unique document ID in URL and for RPC.
1011 The document ID is the glom document name with spaces (' ') replaced
1012 with pluses ('+') and without the .glom extension.
1014 This change is mostly a string substitution of 'documentTitle' for
1015 'documentID'. The only code change is the addition of a Documents DTO to get the
1016 filename to document title mappings as indicated below.
1018 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1019 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1020 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1021 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1022 Use Documents DTO to create the document links in the document
1024 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1025 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1026 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1027 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1028 * src/main/java/org/glom/web/client/place/ListPlace.java:
1029 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1030 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1031 * src/main/java/org/glom/web/client/ui/ListView.java:
1032 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1033 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1034 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1035 * src/main/java/org/glom/web/server/Log.java:
1036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1037 getDocumentTitles() to getDocuments() and return the Documents DTO.
1038 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1039 transferring the filename to document title mappings.
1041 2011-06-25 Ben Konrath <ben@bagu.org>
1043 Make the authentication popup work again.
1045 This bug was introduced when I extracted ConfiguredDocument to its own class.
1047 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1048 correct success / fail status in setUsernameAndPassword().
1050 2011-06-25 Ben Konrath <ben@bagu.org>
1052 Use filename as unique key for configuring database usernames and passwords.
1054 This replaces the use of the Glom document title which could change
1055 depending on the locale. Thanks to Murray Cumming for pointing out this
1058 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1059 * src/main/resources/onlineglom.properties:
1061 2011-06-24 Ben Konrath <ben@bagu.org>
1063 Pass primary key value to DetailsView.
1065 This enables the DetailsView to load the correct data.
1067 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1068 primary key value field and set in constructor. Pass primary key
1069 value to getDetailsData().
1070 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1071 variables for document title and primary key value.
1072 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1073 key value to the DetailsPlace.
1075 2011-06-24 Ben Konrath <ben@bagu.org>
1077 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1079 This allows the primary key to be retrieved by the Details button. This
1080 functionality has not been implemented yet but it's in the works.
1082 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1083 the LayoutGroup result to ListView.setCellTable instead of all of its
1084 fields individually.
1085 * src/main/java/org/glom/web/client/ui/ListView.java:
1086 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1087 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1088 get the primary key for the table.
1089 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1090 index of the primary key in the LayoutGroup accounting for hidden
1091 primary keys. Rename getJavaNumberFormat() to
1092 convertToJavaNumberFormat() for consistency. Cleanup / add some
1094 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1095 field for primary key index and a field to indicate whether the
1096 primary key is hidden or not.
1098 2011-06-23 Ben Konrath <ben@bagu.org>
1100 Rename getTableData methods to getListData.
1102 This is a rename refactor for consistency with other methods.
1104 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1105 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1106 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1109 2011-06-23 Ben Konrath <ben@bagu.org>
1111 Extract the ConfiguredDocument innerclass into its own class.
1113 This makes the servlet code more object oriented.
1115 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1116 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1117 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1118 new ConfiguredDocument class.
1120 2011-06-21 Ben Konrath <ben@bagu.org>
1122 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1124 This makes things more inline with how libglom works and reduces code
1125 duplication. This refactor lays the groundwork for adding the primary key to
1126 the LayoutGroup object.
1128 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1129 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1131 Change method names to getListLayout and getDefaultListLayout for
1132 consistency. Use LayoutGroup as the DTO for the list layout instead of
1133 ColumnInfo and LayoutListTable.
1134 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1135 new method names along with the LayoutGroup object for transferring the
1137 * src/main/java/org/glom/web/client/ui/ListView.java:
1138 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1139 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1140 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1142 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1143 Replaced with LayoutGroup.
1144 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1145 expectedResultSize and defaultTableName fields which are needed for
1147 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1148 type field which is needed for the list layout but will also be
1149 useful for the details layout as things progress.
1150 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1151 Make class abstract. Remove the unnecessary
1152 getFormattingHorizontalAlignment method. Add setFormatting method.
1154 2011-06-16 Ben Konrath <ben@bagu.org>
1156 Add scripts for building and installing war.
1158 These will help when updating OnlineGlom but they're also good
1159 supplemental documentation of the build and deployment proceeding.
1161 * utils/build-onlineglom-war.sh: New file.
1162 * utils/install-onlineglom-war.sh: New file.
1164 2011-06-16 Ben Konrath <ben@bagu.org>
1166 Create wrapper class to create consistent log messages.
1168 I wrapped methods in the Log class of gwt-log to add the method names
1169 from the servlet and create consistent formatting of the document title
1170 and table names in the log messages.
1172 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1173 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1174 log methods to use methods from wrapped Log class.
1176 2011-06-16 Ben Konrath <ben@bagu.org>
1178 Remove superfluous conditional return.
1180 Thanks to Murray Cumming for pointing this out!
1182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1184 2011-06-15 Ben Konrath <ben@bagu.org>
1186 Return an ArrayList of LayoutGroups for the Details layout.
1188 This corrects a problem with the details layout as it can have more
1189 than one top level LayoutGroup.
1191 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1192 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1193 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1194 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1195 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1196 with ArrayList of LayoutGroups for the details view layout.
1197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1198 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1199 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1200 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1201 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1202 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1204 2011-06-14 Ben Konrath <ben@bagu.org>
1206 Use cast_dynamic method to determine the libglom LayoutItem type.
1208 This is better than finding the LayoutItem type by using the string
1209 returned from the get_part_type_name() method.
1211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1213 2011-06-14 Ben Konrath <ben@bagu.org>
1215 Add method names to log entries in the servlet.
1217 This helps when tracking down deployment problems.
1219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1221 2011-06-14 Ben Konrath <ben@bagu.org>
1223 Add data to the DetailsView using a hard-coded primary key value.
1225 The layout and functionality of the DetailsView is not complete. This
1226 is just a checkpoint so the patch doesn't get too big.
1228 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1229 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1230 Add getDetailsData() servlet method.
1231 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1232 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1233 LayoutFields are added to the DetailsView.
1234 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1235 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1236 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1237 take the string for the title instead of the object.
1238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1239 Add implementation getDetailsData() along with some private helper
1241 * src/main/webapp/style.css: Add padding to details-data class. Add a
1242 details-label class with the same padding as the details-data class.
1244 2011-06-03 Ben Konrath <ben@bagu.org>
1246 Use presenter.goTo() to change to the DetailsPlace.
1248 This will make things easier when we need to open the DetailsView with
1249 data specific to the row that was clicked.
1251 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1253 2011-06-02 Ben Konrath <ben@bagu.org>
1255 Add CSS file from mockups.
1257 I'm adding this now because it's going to be useful to have when
1258 developing the DetailsView. The TableSelectionView and ListView aren't
1261 * src/main/webapp/OnlineGlom.html:
1262 * src/main/webapp/style.css:
1264 2011-06-02 Ben Konrath <ben@bagu.org>
1266 Use String.isEmpty() to check for empty string.
1268 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1270 2011-06-02 Ben Konrath <ben@bagu.org>
1272 Display main layout group titles in the DetailsView.
1274 This is the start of the DetailsActivity/DetailsView implementation.
1276 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1277 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1278 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1279 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1280 Get the layout information for the details view from the server and set
1281 the main layout group titles.
1282 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1283 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1284 Add addLayoutGroup() and addLayoutField() methods. This are just
1285 temporary methods for creating the the details view that will change
1287 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1288 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1290 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1291 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1292 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1293 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1294 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1295 Data Transfer Objects that mimic the libglom object structure. These are
1296 used for transferring the details layout but could also be used for
1297 transferring the list layout.
1299 2011-05-27 Ben Konrath <ben@bagu.org>
1301 Reset the AuthenticationPopup when clearing the ListView.
1303 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1305 2011-05-27 Ben Konrath <ben@bagu.org>
1307 Fix problem with onlineglom.properties file loading.
1309 The old way worked in Eclipse but not on the server. Loading the
1310 onlineglom.properties file now works in Eclipse and on the server.
1312 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1314 2011-05-24 Ben Konrath <ben@bagu.org>
1316 Update gwt-log from 3.1.0 to 3.1.2.
1318 Gwt-log 3.1.0 has been marked as depreciated.
1322 2011-05-24 Ben Konrath <ben@bagu.org>
1324 Add comment to ListActivity.goTo() method.
1326 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1328 2011-05-24 Ben Konrath <ben@bagu.org>
1330 Remove FIXME in convertGdkColorToHtmlColour()
1332 The Gdk::Color value returned by libglom is 16-bits per channel on both
1333 64 and 32-bit platforms.
1335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1337 2011-05-19 Ben Konrath <ben@bagu.org>
1339 Improve performance of initial ListView load.
1341 I removed a round trip to the server for getting the default table name
1342 and then requesting information about that table. This also removes a potential
1343 problem with the table change handler not being setup in time to receive the
1344 table change event from the ListActivity.
1346 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1347 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1348 getDefaultLayoutListTable() method. Improve comments.
1349 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1350 getDefaultLayoutListTable() method instead of firing a table change
1351 event to get the table to load.
1352 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1353 implementation of getDefaultLayoutListTable() method.
1354 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1357 2011-05-19 Ben Konrath <ben@bagu.org>
1359 Override toDebugString() in TableChangeEvent.
1361 This is useful to have for debugging.
1363 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1365 2011-05-19 Ben Konrath <ben@bagu.org>
1367 Add a "Back to List" link when at the DetailsPlace.
1369 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1370 Populate the CellTable based on the selected table of the ListBox if
1371 it's set otherwise use the default table. This allows the "Back to
1373 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1374 Remove Place from constructors. Add a setPlace() method. Add
1375 goToPlace() method. Set class as presenter for TableSelectionView.
1376 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1377 Use the same TableSelectionActivity when switching between the List and
1379 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1380 Subclass the new HasSelectableTablePlace. This removes some duplicate
1382 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1383 New class to represent Places that display the TableSelectionView.
1384 * src/main/java/org/glom/web/client/place/ListPlace.java:
1385 Subclass the new HasSelectableTablePlace. This removes some duplicate
1387 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1388 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1389 Add Presenter interface. Add setBackLinkVisible() method. Add
1390 setBackLink() method.
1392 2011-05-18 Ben Konrath <ben@bagu.org>
1394 Enable the "Details" buttons.
1396 Right now only an empty details view is displayed.
1398 * src/main/java/org/glom/web/client/ClientFactory.java:
1399 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1400 Add DetailsView to ClientFactory.
1401 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1402 A basic activity for the details view.
1403 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1404 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1406 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1407 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1409 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1410 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1411 unnecessary super() in constructor.
1412 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1413 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1414 really shouldn't create a new TableSelectionActivity for both the ListPlace
1415 and the DetailsPlace so this should be considered a temporary solution.
1416 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1417 New file. Represents a URL for the details view.
1418 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1419 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1420 A basic details view interface and implementation.
1421 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1422 Enable the "Details" buttons.
1424 2011-05-12 Ben Konrath <ben@bagu.org>
1426 Use a LayoutPanel with multiple display areas for main layout.
1428 This is mostly a refactor in that there are no changes from the user
1429 point of view. These changes are required so that we can swap out the list view
1430 with the details view when the user clicks the "Details" button.
1432 * src/main/java/org/glom/web/client/ClientFactory.java:
1433 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1434 OnlineGlomView. Add TableSelectionView, ListView and
1435 AuthenticationPopup.
1436 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1437 for main layout. Add display regions for main activities. Add
1438 activity manager for for main activities.
1439 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1440 file from parts of the deleted OnlineGlomActivity.
1441 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1442 New file from parts of the deleted OnlineGlomActivity.
1443 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1444 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1445 New files for app wide table change event.
1446 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1447 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1448 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1449 Activity mappers for the main activities replace the deleted app-wide
1451 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1452 Fix a spelling error in he comment.
1453 * src/main/java/org/glom/web/client/ui/ListView.java:
1454 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1455 Renamed from LayoutListView and modified for MVP. This still not a
1456 proper dumb view as prescribed by the MVP pattern but it works for now.
1457 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1458 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1459 New widget stripped out of the deleted OnlineGlomView.
1460 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1461 Remove hack that is fixed by this patch.
1463 2011-05-06 Ben Konrath <ben@bagu.org>
1465 Rename OnlineGlomPlace to ListPlace.
1467 The only change besides the rename is that url will now display #list
1468 instead of #Document.
1470 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1471 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1472 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1473 * src/main/java/org/glom/web/client/place/ListPlace.java:
1474 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1476 2011-05-06 Ben Konrath <ben@bagu.org>
1478 Use Presenter for app navigation.
1480 This is the proper way to deal with Place (URL) changes with the MVP
1483 * src/main/java/org/glom/web/client/ClientFactory.java:
1484 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1485 PlaceHistoryMapper and PlaceHistoryHandler.
1486 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1487 PlaceHistoryMapper and PlaceHistoryHandler.
1488 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1489 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1490 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1491 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1492 Add Presenter interface and setPresenter methods. Rename addHyperLink
1493 to addDocumentLink taking only the document title as a parameter.
1495 2011-04-14 Ben Konrath <ben@bagu.org>
1497 Prompt for db username/password if they haven't been set.
1499 This is implemented with a popup widget that is contained within the
1500 OnlineGlomView and managed by the OnlineGlomActivity.
1502 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1503 methods for checking and setting the database username and password.
1504 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1505 new methods for checking and setting the database username and
1507 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1508 Display authentication popup if the JDBC connection to the database
1509 has not been authenticated.
1510 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1512 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1513 for dealing with the authentication popup.
1514 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1515 Implement the methods for dealing with the authentication popup.
1516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1517 try to executed queries if the database connection hasn't been
1518 authenticated. Implement methods for checking and setting the
1519 database username and password.
1521 2011-04-12 Ben Konrath <ben@bagu.org>
1523 Make log messages a little clearer.
1525 Add a dash betweeen the document title and the table name.
1527 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1529 2011-04-12 Ben Konrath <ben@bagu.org>
1531 Protect against NPEs when cleaning up database resources.
1533 While this isn't strictly necessary because the exception is caught,
1534 not protecting against the NPEs makes it harder to find the real error
1537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1539 2011-04-12 Ben Konrath <ben@bagu.org>
1541 Move configuration of the servlet to the constructor.
1543 The servlet will be initialized even if the database authentication
1544 information is not set or correct. I still need to add the UI for prompting
1545 the user for the authentication information when it's required.
1547 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1548 javadocs for getDocumentTitles() method.
1549 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1550 Set error message when RPC fails.
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1552 glom files directory from the configuration file. Try to set the
1553 database authentication information for the specific document if it's
1554 set and works otherwise try to use the global authentication
1555 information set for the directory.
1556 * src/main/resources/onlineglom.properties: Moved from
1557 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1558 Added detailed comments for the new keys.
1560 2011-04-11 Ben Konrath <ben@bagu.org>
1562 Remove unnecessary @Override in DocumentSelectionViewImpl.
1564 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1566 2011-04-11 Ben Konrath <ben@bagu.org>
1568 Remove center alignment in DocumentSelectionView.
1570 The title element is still centred but the document titles and bottom
1571 sentence are both left-aligned.
1573 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1575 2011-04-11 Ben Konrath <ben@bagu.org>
1577 Change 'Demo' naming convention to 'Document'.
1579 This is just a rename refactor with no functional changes to the code.
1581 * src/main/java/org/glom/web/client/ClientFactory.java:
1582 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1583 * src/main/java/org/glom/web/client/OnlineGlom.java:
1584 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1585 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1586 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1587 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1588 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1589 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1590 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1591 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1592 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1595 2011-04-08 Ben Konrath <ben@bagu.org>
1597 Remove FIXME from safeLongToInt() method.
1599 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1604 2011-04-08 Ben Konrath <ben@bagu.org>
1606 Display an error if no glom documents are found in the specified directory.
1608 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1609 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1610 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1611 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1613 2011-04-08 Ben Konrath <ben@bagu.org>
1615 Add copyright header to one more file ... oops.
1617 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1619 2011-04-08 Ben Konrath <ben@bagu.org>
1621 Add copyright header to files without it.
1623 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1624 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1625 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1626 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1627 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1628 * src/main/java/org/glom/web/shared/GlomField.java:
1630 2011-04-08 Ben Konrath <ben@bagu.org>
1632 Add support for accessing multiple glom documents in the servlet.
1634 This completes the demo selection functionality.
1636 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1637 document title to methods.
1638 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1639 document title to methods.
1640 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1641 Set browser window title when the activity starts. Correct name of
1642 document title variable.
1643 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1644 Set browser window title when the activity starts. Set the table
1645 selector change handler after table selector has been set. Clear the
1646 OnlineGlomView when the activity has been stopped.
1647 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1648 document title as the place token. Use "#Document:" instead of
1649 "#OnlineGlomPlace:" in the URL.
1650 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1651 Change heading to "Online Glom"
1652 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1653 document title in RPC methods.
1654 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1655 setDocumentTitle() method. Add clear() method.
1656 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1657 setDocumentTitle() method. Implement clear() method which removes the
1658 change handler on the ListBox, clears the ListBox and clears the
1660 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1661 Implement methods with document title. Keep track for the configured
1662 glom documents and their corresponding JDBC configurations in a hash
1663 table. This information is retrieved using the document title as the
1664 key in the hash table.
1665 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1666 document title field as it's no longer needed.
1668 2011-04-08 Ben Konrath <ben@bagu.org>
1670 Update the Eclipse JDT configuration.
1672 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1673 methods. Automatically add the copyright header to new files.
1675 2011-04-05 Ben Konrath <ben@bagu.org>
1677 Add new page for demo selection.
1679 This patch adds all the components required to view and start an
1680 OnlineGlom demo by clicking on the desired hyperlink. The user is
1681 able to return to the demo selection page with the browser's back
1682 button. I still need to modify the servlet to work with multiple
1683 documents so all demo links will load the file defined in the
1684 OnlineGlom.properties.
1686 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1687 This is only useful during development so we don't need to save it.
1688 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1689 get a reference to the DemoSelectionView.
1690 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1691 method to get a reference to the DemoSelectionView.
1692 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1693 default view to DemoSelectionView.
1694 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1695 to get glom document titles for glom files in a hard-coded directory.
1696 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1697 method to get glom document titles for glom files in a hard-coded
1699 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1700 Presenter for DemoSelectionView.
1701 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1702 for DemoSelectionView.
1703 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1704 Update for DemoSelectionView.
1705 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1706 Basic 'Place' implementation for the DemoSelectionView.
1707 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1708 The interface for the DemoSelectionView.
1709 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1710 The implementation of the DemoSelectionView.
1711 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1712 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1713 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1714 implementation of method to get glom document titles for glom files
1715 in a hard-coded directory.
1716 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1717 on longer being used.
1718 * src/main/webapp/glom.png: Glom logo.
1720 2011-04-05 Ben Konrath <ben@bagu.org>
1722 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1724 This is the forth and final commit of a refactor that will allow
1725 OnlineGlom to be used with multiple documents.
1727 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1728 Move RPC code from OnlineGlomViewImpl to this class.
1729 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1731 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1732 RPC code to the presenter class (the P in MVP).
1734 2011-04-04 Ben Konrath <ben@bagu.org>
1736 Start moving the existing OnlineGlom code to MVP.
1738 This work is based on the GWT MVP framework that is documented here:
1740 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1742 This is the third commit of a refactor that will allow OnlineGlom to
1743 be used with multiple documents.
1745 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1746 Interface for client factory which is used to get instances of various
1747 classes throughout the app.
1748 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1749 Implementation of client factory.
1750 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1751 initialize the MVP framework.
1752 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1753 New file. Activity manager for the main container widget. This is the
1755 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1756 Maps place (URL) to its corresponding activity.
1757 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1758 New file. This is just a place holder for a generated file.
1759 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1760 New file. Represents the URL for the main Online Glom app.
1761 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1762 for changes in LayoutListViewImpl.
1763 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1764 interface for View. Move code to OnlineGlomViewImpl class.
1765 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1766 file. Implementation of OnlineGlomView.
1767 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1768 Place resources. Use ClientFactoryImpl by default.
1770 2011-04-04 Ben Konrath <ben@bagu.org>
1772 Move View classes to their own package.
1774 This is the second commit of a refactor that will allow OnlineGlom to
1775 be used with multiple documents.
1777 * src/main/java/org/glom/web/client/OnlineGlom.java:
1778 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1779 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1781 2011-04-02 Ben Konrath <ben@bagu.org>
1783 Move UI code from the main module to its own class.
1785 This is the first commit of a refactor that will allow OnlineGlom to be
1786 used with multiple documents.
1788 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1789 references to OnlineGlom to OnlineGlomView.
1790 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1791 OnlineGlomView and instantiate it here.
1792 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1793 represents the main OnlineGlomView with one document.
1795 2011-04-01 Ben Konrath <ben@bagu.org>
1797 Fix formatting of gwt.xml and add DTD.
1799 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1801 2011-03-30 Ben Konrath <ben@bagu.org>
1803 Propperly convert gdkColor string to html colour string.
1805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1807 2011-03-28 Ben Konrath <ben@bagu.org>
1809 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1811 This implementation matches
1812 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1813 readable and is not tied to Swig.
1815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1817 2011-03-28 Ben Konrath <ben@bagu.org>
1819 Use read-only checkboxes for boolean field types.
1821 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1822 in the CellTable based on the field type. It currently only
1823 distinguishes between boolean and text columns but I'll need to add
1824 support for more types.
1825 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1826 column type in the ColumnInfo object. Add method to convert between the
1827 glom field type enum in ColumnInfo and the glom field type in libglom.
1828 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1830 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1831 getting and setting booleans.
1833 2011-03-25 Ben Konrath <ben@bagu.org>
1835 Don't get the Date twice from the ResultSet.
1837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1839 2011-03-25 Ben Konrath <ben@bagu.org>
1841 Cleanup code in the servlet.
1843 * TODO: Remove item about row count. Add item about testing row count
1844 query with large number of rows.
1845 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1846 spelling mistakes, change method parameter to be consistent with
1849 2011-03-25 Ben Konrath <ben@bagu.org>
1851 Add server side logging with the gwt-log library.
1853 * .gitignore: Ignore the log file we're now producing.
1854 * TODO: Add a couple TODO item for logging.
1855 * pom.xml: Add gwt-log and log4j as a dependency.
1856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1857 logging of errors, warnings and some important info.
1858 * src/main/resources/log4j.properties: New file to configure log4j.
1860 2011-03-24 Ben Konrath <ben@bagu.org>
1862 Add a disable button for the Details view.
1864 * src/main/java/org/glom/web/client/LayoutListView.java:
1866 2011-03-22 Ben Konrath <ben@bagu.org>
1868 Use a count query to get the number of rows for the list view pager.
1870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1872 2011-03-22 Ben Konrath <ben@bagu.org>
1874 Add more TODO information about CellTable pager positioning.
1878 2011-03-19 Ben Konrath <ben@bagu.org>
1880 Add TODO item about CellTable pager positioning.
1884 2011-03-18 Ben Konrath <ben@bagu.org>
1886 Remove unneeded GlomFieldColumn class.
1888 This is just a small code cleanup.
1890 * src/main/java/org/glom/web/client/LayoutListView.java:
1892 2011-03-18 Ben Konrath <ben@bagu.org>
1894 Use cursor mode in the query that gets data for the list view.
1896 I still need to fix the potential memory problem when getting the row
1897 count for the list view.
1899 * TODO: Add note about testing memory usage with large data sets. Add
1900 item about fixing row counting with large data sets.
1901 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1902 PostgreSQL JDBC driver into cursor mode when getting data for the
1905 2011-03-15 Ben Konrath <ben@bagu.org>
1907 Remove the GWT Container from the Eclipse build classpath.
1909 The GWT dependencies are set by Maven so this isn't needed.
1913 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1915 Added some earlier mockups to git, but not to the tarball dist.
1917 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1918 Openismus. These hopefully show how we might structure the HTML so that
1919 it can be styled easily with CSS. However, we probably need to adapt them
1920 for the CSS structure that GWT dictates for common widgets.
1922 2011-03-14 Ben Konrath <ben@bagu.org>
1924 Locate OnlineGlom.properties using the ServletContext.
1926 This is required to be able to locate the file in the deployed servlet.
1928 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1929 Configure the database and glom document in in a helper method so
1930 that the ServletContext can be used to locate OnlineGlom.properties.
1931 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1932 src/main/webapp. This is the proper location for .properites files.
1934 2011-03-12 Ben Konrath <ben@bagu.org>
1936 Add note to README about why we're compiling down to obfuscated JavaScript.
1940 2011-03-11 Ben Konrath <ben@bagu.org>
1942 Use properties file to configure servlet.
1944 This allows people to change the glom file path, db username and db
1945 password without recompiling the code.
1947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1948 * src/main/webapp/OnlineGlom.properties:
1950 2011-03-11 Ben Konrath <ben@bagu.org>
1952 Use table fields in layout list view if the layout list is not defined.
1954 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1955 Manually create a LayoutFieldVector for the query builder using the
1956 table fields when a layout list is not defined in the glom file.
1958 2011-03-11 Ben Konrath <ben@bagu.org>
1960 Only show FIXME string for images when there's an image.
1962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1963 in this change are some small code cleanups.
1965 2011-03-11 Ben Konrath <ben@bagu.org>
1967 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1971 2011-03-11 Ben Konrath <ben@bagu.org>
1973 Correctly set the index of the default table.
1975 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1976 Correctly set the index of the default table. Add commented out example
1979 2011-03-10 Ben Konrath <ben@bagu.org>
1981 Add comment to pom.xml about the previous change.
1983 * pom.xml: Add comment about the deployment issue so that it's obvious
1984 why java-libglom is set to the provided scope.
1986 2011-03-10 Ben Konrath <ben@bagu.org>
1988 Change java-libglom dependency from compile to provided in pom.xml.
1990 Since java-libglom uses jni it can only be loaded once and therefore
1991 must be placed in $CATALINA_HOME/lib and not included in each war.
1992 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1993 More information about this issue can be found in the Tomcat 6 release
1994 notes in the "JNI Based Applications" section:
1996 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1998 * README: Remove note about this issue. Deployment info should really
1999 be on the wiki anyway so I'll add it right now.
2000 * pom.xml: Change java-libglom dependency from compile to provided so
2001 that it's copied in to the packaged war.
2003 2011-03-09 Ben Konrath <ben@bagu.org>
2005 Change to using a neutral locale for currency, date and time formatting.
2007 This solves the problem of currency values being represented without a
2008 space between the currency code and the number (e.g. "EUR5.89" is now
2009 represented as "EUR 5.89"). More work is required when we implement
2010 a locale preference setting.
2012 * TODO: Add note about currency formatting issues with different
2014 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2015 to using the neutral ROOT locale.
2017 2011-03-09 Ben Konrath <ben@bagu.org>
2019 Add support for currency codes that are not ISO 4217 codes.
2021 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2022 the currency code defined in the glom file when it's not 3 characters
2023 long or when Java doesn't recognize the string as an ISO 4217 code.
2025 2011-03-08 Ben Konrath <ben@bagu.org>
2027 Remove test classes, launch configurations and configuration.
2029 The test stuff was getting in the way when creating the war. To make
2030 the war file you can now do 'mvn clean package'. The packaged war file
2031 will be in the target directory.
2033 * .classpath: Remove unused classpathentry for tests and i18n.
2034 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2035 property. Don't run test or i18n goals when packaging the war.
2036 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2041 * OnlineGlomTest-dev.launch:
2042 * OnlineGlomTest-prod.launch:
2043 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2044 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2046 2011-03-07 Ben Konrath <ben@bagu.org>
2048 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2050 These fixes allow me to use 'mvn deploy' to create the war file.
2052 * .classpath: This generated config has been updated by Eclipse. This
2053 change was probably triggered by me updating from Eclipse 3.6.1 to
2055 * .gitignore: Add entry to ignore the directory
2056 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2057 * .project: The generated config has been updated by Eclipse. This
2058 change was probably triggered by me updating from Eclipse 3.6.1 to
2060 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2061 so that Eclipse doesn't complain
2062 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2063 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2064 'tests' directory to 'client' directory. This is the new
2065 gwt-maven-plugin convension.
2066 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2067 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2069 2011-03-07 Ben Konrath <ben@bagu.org>
2071 Add support for horizontal alignment in the LayoutList columns.
2073 * TODO: Remove item about horizontal alignment. Add item about
2074 improvements to ColumnInfo.
2075 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2076 alignment on the columns. Use ColumnInfo RPC object get the column
2077 title and horizontal alignment.
2078 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2079 LayoutListView creation with ColumnInfo RPC object.
2080 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2081 a ColumnInfo object for every LayoutList columnn. Convert the
2082 FieldFormatting.HorizontalAlignment to the correct
2083 ColumnnInfo.HorizontatlAlignment with the new
2084 getColumnInfoHorizontalAlignment helper method.
2085 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2086 to encapsulate column information like alignment and title. This
2087 could be used to set the colour instead of on a per cell field basis.
2088 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2089 column title storage and retrieval with ColumnInfo.
2091 2011-03-04 Ben Konrath <ben@bagu.org>
2093 Add support for column sorting.
2095 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2096 AsynDataProvider to be an anonymous inner class. Use new
2097 getSortedTableData RPC method when column sort is requested. Set all
2098 columns sortable and add an AsyncHandler to activate sorting in the
2100 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2101 method getSortedTableData(). Cleanup other method signatures.
2102 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2103 new method getSortedTableData(). Cleanup other method signatures.
2104 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2105 Implement getSortedTableData() and getTableData() methods by using a
2106 private helper method with the appropriate parameters filled in. Use
2107 user supplied sort clause when supplied, otherwise fall back to
2108 sorting by the primary key. Move destroy() method to be underneath
2109 constructor for readability. Cleanup comments.
2111 2011-03-03 Ben Konrath <ben@bagu.org>
2113 Add support for colour text and colour backgrounds to the layout list cells.
2115 Only the cell backgrounds are coloured which leaves a gap between the
2116 cells that isn't coloured. I need to figure out a way to set
2117 'style=background-colour:' on the whole column rather than just the
2120 * TODO: Add a note about colouring the background of the whole column.
2121 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2122 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2123 render the coloured text and backgrounds. Use GlomField[] for the row type.
2124 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2126 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2127 GlomField[] for the row type.
2128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2129 GlomField[] for the row type. Set the text, text colour and background
2130 colour in the GlomField objects as specified in the glom document. Add
2131 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2132 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2133 the glom field text, foreground colour and background colour.
2135 2011-03-02 Ben Konrath <ben@bagu.org>
2137 Don't display hidden tables in the combo box.
2139 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2141 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2142 code to ignore hidden tables using ArrayLists for the table names and
2144 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2145 tableNames to use ArrayLists instead of String[]. Update getter and setter
2148 2011-03-01 Ben Konrath <ben@bagu.org>
2150 Add support for Date and Time number types.
2152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2153 Implement formatting for Date and Time values. Change the default glom
2154 file to small business example.
2156 2011-03-01 Ben Konrath <ben@bagu.org>
2158 Add support for formatting glom types as specified in the glom file.
2160 Formatting isn't finished yet - I still need to add support for Date
2163 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2164 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2165 checks for null values in JDBC cleanup code and catch all exceptions
2166 instead of just SQLExceptions.
2167 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2170 2011-03-01 Ben Konrath <ben@bagu.org>
2172 Use GWT 2.2.0 instead of 2.1.1.
2174 * pom.xml: Change GWT version numbers.
2176 2011-03-01 Ben Konrath <ben@bagu.org>
2178 A few small code cleanups.
2180 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2182 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2183 unnecessary object creation in constructor.
2184 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2185 unnecessary object creation in constructor.
2187 2011-02-28 Ben Konrath <ben@bagu.org>
2189 Add file for TODO list.
2193 2011-02-18 Ben Konrath <ben@bagu.org>
2195 Enable the CellTable Pager when more than 20 rows need to be viewed.
2197 The Pager will automatically become active when the results are larger
2198 than the CellTable size which is currently set to 20 lines.
2200 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2201 name on debug statment in RPC call in LayoutListDataProvider, add
2202 numRows parameter to LayoutListView constructor, propperly set rowCount
2204 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2205 name on debug statment in RPC call, use LayoutListTable object in RPC
2206 calls, pass rowCount to LayoutListView.
2207 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2208 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2210 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2211 interface for changes in OnlineGlomService.
2212 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2213 getLayoutListHeaders() to getLayoutListTable() and return
2214 LayoutListTable. Using this object allows me to pass other information
2215 about the LayoutList like the expected number of rows in the result set.
2216 The Connection object from the connection pool is now propperly closed.
2217 Only the requested number of lines are returned to the client in
2219 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2220 GlomTable and add columnTitles and numRows.
2222 2011-02-18 Ben Konrath <ben@bagu.org>
2224 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2226 This is a small performance boost. I'll use GlomTable to get the required
2227 layoutlist information.
2229 * src/main/java/org/glom/web/client/OnlineGlom.java:
2230 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2231 * src/main/java/org/glom/web/shared/GlomDocument.java:
2233 2011-02-18 Ben Konrath <ben@bagu.org>
2235 Add option to turn off formatting in JDT formatter preferences.
2237 * .settings/org.eclipse.jdt.core.prefs:
2239 2011-02-18 Ben Konrath <ben@bagu.org>
2241 Rename LayoutList to LayoutListView.
2243 I'm working towards setting things up to easily use MVP when the time
2246 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2248 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2251 2011-02-17 Ben Konrath <ben@bagu.org>
2253 Move LayoutListDataProvider class into LayoutList.java.
2255 * src/main/java/org/glom/web/client/LayoutList.java:
2257 2011-02-17 Ben Konrath <ben@bagu.org>
2259 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2261 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2263 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2264 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2265 from LibGlomServer.java.
2266 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2267 Rename from LibGlomServiceAsync.java.
2268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2269 Rename from LibGlomServiceImpl.java.
2270 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2272 2011-02-17 Ben Konrath <ben@bagu.org>
2274 Update JDT settings.
2276 * .settings/org.eclipse.jdt.core.prefs:
2278 2011-02-17 Ben Konrath <ben@bagu.org>
2280 Move GWT-RPC objects to shared package (where they should be).
2282 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2283 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2284 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2285 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2286 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2287 org.glom.web.shared package.
2288 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2289 org.glom.web.shared package.
2290 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2291 directory in compilation to javascript.
2293 2011-02-16 Ben Konrath <ben@bagu.org>
2295 Add sort clause to the sql query that grabs table information.
2297 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2298 if one of the columns is a primary key.
2300 2011-02-16 Ben Konrath <ben@bagu.org>
2302 Disable generateAsync feature of gwt-maven.
2304 The generated interface does not correctly match the methods in LibGlomService
2305 and the generated singleton Util inner-class doesn't respect the servlet
2308 * pom.xml: Turn off generateAsync feature.
2309 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2310 with singleton Util inner-class.
2312 2011-02-14 Ben Konrath <ben@bagu.org>
2314 Add LGPL v3 licence notices.
2316 Followed directions listed here:
2317 http://www.gnu.org/licenses/gpl-howto.html
2319 * COPYING: This file is a copy of the GPL v3.
2320 * COPYING.LESSER: This file is a copy of the LGPL v3.
2321 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2323 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2325 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2327 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2329 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2331 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2333 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2336 2011-02-14 Ben Konrath <ben@bagu.org>
2338 Use ArrayList instead of Array in GWT-RPC calls.
2340 Apparently this gives a slight performance boost to the compiled
2343 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2345 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2348 2011-02-14 Ben Konrath <ben@bagu.org>
2350 Access data from a postgres db rather than the example glom file.
2352 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2353 compile down to obfuscated javascript.
2354 * pom.xml: Add c3p0 and postgres JDBC libraries.
2355 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2356 using a postgres db accessed through the c3p0 connection pooling library.
2358 2011-02-14 Ben Konrath <ben@bagu.org>
2360 Update Java formatter settings.
2362 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2364 2011-02-02 Ben Konrath <ben@bagu.org>
2366 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2368 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2370 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2371 the compiled webapp directory that Eclipse uses as we're using Maven now.
2372 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2373 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2375 * pom.xml: Format file, change target Java version to 1.6.
2377 2011-02-02 Ben Konrath <ben@bagu.org>
2379 Add information about a deployment related issue.
2381 * README: Add Notes section with the problem outlined.
2383 2011-02-02 Ben Konrath <ben@bagu.org>
2385 Call Glom.libglom_deinit() when the servlet is shutdown.
2387 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2388 Glom.libglom_deinit() to destroy() method.
2390 2011-01-28 Ben Konrath <ben@bagu.org>
2392 Use generated Util class to get the RPC Async interface.
2394 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2396 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2397 getInstance() method to get a reference to the RPC Async interface.
2398 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2399 getInstance() method to get a reference to the RPC Async interface, remove
2400 the now unused getLibGlomServiceProxy() method.
2402 2011-01-27 Ben Konrath <ben@bagu.org>
2404 Cleanup ChangeLog entry from previous commit.
2406 * ChangeLog: Group logical changes together and add comments.
2408 2011-01-25 Ben Konrath <ben@bagu.org>
2410 Convert to gwt-maven project.
2412 * .gitignore: Update for new project structure.
2413 * README: New file with a link to the online documentation.
2414 * pom.xml: The generated maven configuration file with some tweaks.
2416 Add / update Eclipse settings. These files are a merge of the files that
2417 were generated with the gwt-maven plugin and the files we were previously
2421 * .settings/.jsdtscope:
2422 * .settings/com.google.gdt.eclipse.core.prefs:
2423 * .settings/com.google.gwt.eclipse.core.prefs:
2424 * .settings/org.eclipse.jdt.core.prefs:
2425 * .settings/org.eclipse.wst.common.component:
2426 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2427 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2428 * .settings/org.maven.ide.eclipse.prefs:
2429 * OnlineGlomTest-dev.launch:
2430 * OnlineGlomTest-prod.launch:
2432 Java source files moved from the 'src' directory to the directory structure
2434 * src/main/java/org/glom/web/client/GlomDocument.java:
2435 * src/main/java/org/glom/web/client/GlomTable.java:
2436 * src/main/java/org/glom/web/client/LayoutList.java:
2437 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2438 * src/main/java/org/glom/web/client/LibGlomService.java:
2439 * src/main/java/org/glom/web/client/OnlineGlom.java:
2440 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2442 Non-functional property file used for translations. I included this as
2443 reminder that it's something I need to sort out.
2444 * src/main/resources/org/glom/web/client/Messages.properties:
2446 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2447 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2449 The servlet configuration files moved from the 'war' directory.
2450 * src/main/webapp/OnlineGlom.css:
2451 * src/main/webapp/OnlineGlom.html:
2452 * src/main/webapp/WEB-INF/web.xml:
2454 Generated test files with most of the code commented out. I included these
2455 so that it's easy to add tests when we're ready for them.
2456 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2457 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2459 2011-01-25 Ben Konrath <ben@bagu.org>
2461 Remove unused println.
2463 * src/org/glom/web/server/LibGlomServiceImpl.java:
2465 2011-01-25 Ben Konrath <ben@bagu.org>
2467 Add project specific JDT settings.
2469 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2470 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2472 2011-01-25 Ben Konrath <ben@bagu.org>
2474 Populate celltable with example data.
2476 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2477 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2478 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2479 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2480 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2481 asynchronously gets the example data.
2482 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2483 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2484 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2485 curently selected table to be retrieved by other widgets.
2486 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2487 implement getTableData() in a hacky way. This method needs to be updated
2488 to grab information from the database when database creating is
2491 2011-01-20 Ben Konrath <ben@bagu.org>
2493 Set table headers when table dropBox changes.
2495 * src/org/glom/web/client/GlomDocument.java: Correct some method
2497 * src/org/glom/web/client/LibGlomService.java: Add method
2498 to get list layout field names.
2499 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2500 to get list layout field names.
2501 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2502 widget for list layout table.
2503 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2504 the table drop box and add new updateTable() method to asynchronously
2505 get the layout list field names for the currently selected table.
2506 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2507 implementation of getLayoutListHeaders() method.
2508 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2510 2011-01-18 Ben Konrath <ben@bagu.org>
2512 Make a listBox with table titles instead of the flexTable demo.
2514 This is the start of something more useful.
2516 * .classpath: Exclude a bunch of packages from the JVM that are
2517 getting in the way of the Eclipse content assist.
2518 * src/org/glom/web/client/GlomDocument.java:
2519 * src/org/glom/web/client/GlomTable.java:
2520 * src/org/glom/web/client/LibGlomService.java:
2521 * src/org/glom/web/client/LibGlomServiceAsync.java:
2522 * src/org/glom/web/client/OnlineGlom.java:
2523 * src/org/glom/web/server/LibGlomServiceImpl.java:
2524 * war/OnlineGlom.html:
2525 * war/WEB-INF/web.xml:
2527 211-01-13 Ben Konrath <ben@bagu.org>
2529 Update to new java-libglom API.
2531 * .gitignore: Ignore OnlineGlom.war.
2532 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2534 2010-12-20 Ben Konrath <ben@bagu.org>
2536 Add some basic style to the table listing.
2538 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2539 header, print useful error message on async callback failure.
2540 * war/OnlineGlom.css: Add style for table header, remove defaults
2541 provided by the Eclipse project wizard.
2543 2010-12-20 Ben Konrath <ben@bagu.org>
2545 Load example file from installed glom dir.
2547 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2548 provided by java-libglom to find the example file.
2550 2010-12-20 Ben Konrath <ben@bagu.org>
2552 Update Eclipse settings.
2555 * .settings/com.google.gdt.eclipse.core.prefs:
2556 * .settings/com.google.gwt.eclipse.core.prefs:
2558 2010-12-17 Ben Konrath <ben@bagu.org>
2562 * .classpath: New file.
2563 * .gitignore: New file.
2564 * .project: New file.
2565 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2566 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2567 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2568 * src/org/glom/web/client/GlomTable.java: New file.
2569 * src/org/glom/web/client/OnlineGlom.java: New file.
2570 * src/org/glom/web/client/TableNameService.java: New file.
2571 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2572 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2573 * war/OnlineGlom.css: New file.
2574 * war/OnlineGlom.html: New file.
2575 * war/WEB-INF/web.xml: New file.
2576 * war/images/glom.png: New file.