1 2011-10-26 Ben Konrath <ben@bagu.org>
3 Display the correct number of data items in the pager.
7 https://bugzilla.gnome.org/show_bug.cgi?id=661441
9 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
10 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
11 The implementation is the same for both tables: Keep track of the
12 number of non-empty rows and fire and RowCountChangeEvent after the data has
14 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
15 custom Pager class that subclasses SimplePager to handle displaying
16 the correct number when empty rows have been added.
18 2011-10-26 Ben Konrath <ben@bagu.org>
20 Correct error in previous commit.
22 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
23 eventBus parameter from listView.setCellTable().
25 2011-10-26 Ben Konrath <ben@bagu.org>
27 Fix error in TODO comment.
29 * src/main/java/org/glom/web/client/activity/ListActivity.java:
31 2011-10-24 Ben Konrath <ben@bagu.org>
33 Create Notebook widgets to the details view.
35 This isn't finished just yet - I still need to create a reasonable
36 style to match the current theme.
38 * src/main/java/org/glom/web/client/Utils.java: Add method for
39 calculating the height of a widget. This is used in the Notebook class.
40 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
41 new constructor method in Group.
42 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
43 method for creating child widget that can be used by subclasses
44 like Notebook. New constructor that allows disabling the group
45 titles - Notebooks don't set a group title for their child groups.
46 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
47 to make Notebooks using GWT's TabLayoutPanel.
48 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
49 constructor that allows disabling the group titles.
50 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
51 LayoutItemNotebook DTO.
52 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
53 DTO for Notebooks. It's just an empty class for now but we might need
54 it to transfer some specific information in the future.
56 2011-10-21 Ben Konrath <ben@bagu.org>
58 Add navigation buttons to related list tables.
60 * src/main/java/org/glom/web/client/OnlineGlomService.java:
61 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
62 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
63 method getSuitableRecordToViewDetails() for getting the table name
64 and primary key value for related list navigation buttons.
65 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
66 private cell renderer class to get the navigation information for
67 related list tables from the server. Extract the navigation
68 processing code from the details cell navigation and use it for the
69 related list navigation as well.
70 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
71 cell renderer class for the details open buttons. This was needed
72 because the related list navigation buttons and the list view
73 navigation buttons need to react differently when clicked.
74 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
75 the onEnterKeyDown() method because it's now overriden in the
76 subclasses that are specific to the related list tables and the list
78 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
79 the vertical size a little because the buttons add a bit of vertical
80 space to table. This is not a perfect solution because the vertical
81 size of with table fewer than 5 rows will be a little smaller.
82 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
83 changes in how navigation buttons are handled.
84 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
85 getSuitableRecordToViewDetails() using the new RelatedListNavigation
86 database access object.
87 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
88 to find the portal for a given relationship name from
89 RelatedListDBAccess. Add method to find a primary key field for a
91 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
92 Move code to find the portal for a given relationship name to
94 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
95 New file: database access object for getting the related list
96 navigation information (the table name and the primary key value).
97 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
98 DTO for transferring a table name to navigate to and a primary key
100 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
101 boolean and getter/setter to specifies if the related list should add
104 2011-10-11 Ben Konrath <ben@bagu.org>
106 Enable the open navigation button when the data has been set.
108 This avoids having active buttons that don't do anything when the data
111 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
113 2011-10-11 Ben Konrath <ben@bagu.org>
115 Use IsWidget interface for FlowTableItem.
117 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
118 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
120 2011-10-11 Ben Konrath <ben@bagu.org>
122 Remove GWT styling from open button in details view.
124 There are still some issues with how the details cell is arranged but
125 this should be made to match Glom 1.20. I'm going to leave fixing this
126 until I have Glom 1.20 up and running.
128 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
129 style name on open button.
130 * src/main/webapp/style.css: Move and edit details-navigation class.
131 Re-arrange some classes to make them appear in the same order as the
134 2011-10-07 Ben Konrath <ben@bagu.org>
138 * .gitignore: Ignore new cache directory.
139 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
140 * pom.xml: Change GWT and maven plugin to 2.4.0.
141 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
143 * src/main/java/org/glom/web/client/ClientFactory.java:
144 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
145 * src/main/java/org/glom/web/client/OnlineGlom.java:
146 Update source for API changes.
147 * utils/build-onlineglom-war.sh: Remove cache directory before the
150 2011-10-07 Ben Konrath <ben@bagu.org>
152 Add navigation buttons in the details view.
154 This isn't finished but I thought I'd commit what I have as it's a
155 pretty good start. I still need to:
157 1. Change the style so that it fits better into the current theme
158 2. Adjust the details cell to expand as much as possible.
160 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
161 click handlers to navigation buttons in the DetailsCells. Create a
162 refreshData() method to get just the data from the server without the
164 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
165 Update the tableSelector and browser title when the table name
166 changes without using the tableSelector.
167 * src/main/java/org/glom/web/client/ui/DetailsView.java:
168 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
169 getDetailsCells() to getCells(). Update variable names.
170 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
171 method to set click handler on navigation button. Rename a few
172 variables. Add navigation buttons where needed.
173 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
174 variables and methods.
175 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
176 navigation boolean and navigation table as required in the
178 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
179 variables for navigation along with getter/setter methods.
181 2011-10-07 Ben Konrath <ben@bagu.org>
183 Rename Field to DetailsCell.
185 This is a refactor-only commit. No functionality has been added or
188 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
189 Update variable and method names.
190 * src/main/java/org/glom/web/client/ui/DetailsView.java:
191 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
192 variable and method names.
193 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
195 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
196 variable and method names.
198 2011-10-07 Ben Konrath <ben@bagu.org>
200 Create separate methods for layout and data the details view.
202 This is a refactor-only commit. No functionality has been added or
205 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
206 private methods: setData(), createLayout().
208 2011-10-07 Ben Konrath <ben@bagu.org>
210 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
212 This is part of a change to get navigation buttons in the details view
213 but it should have been done this way from the start.
215 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
216 for method name change in TableSelectionView.
217 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
218 Create TableChangeEvent and set the browser title using the
219 TableSelectionView API.
220 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
221 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
222 Change getSelectedTable() to getSelectedTableName(). Add
223 getSelectedTableTitle().
225 2011-10-07 Ben Konrath <ben@bagu.org>
227 Use primaryKeyValue naming convention in constructor of DetailsPlace.
229 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
231 2011-10-07 Ben Konrath <ben@bagu.org>
233 Update TableChangeEvent to use newTableName naming convention.
235 This makes the class more consistent with GWT naming conventions.
237 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
238 Update for method name change in TableChangeEvent.
239 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
240 for method name change in TableChangeEvent.
241 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
242 newTableName variable and getter method. Make toDebugString()
245 2011-09-30 Ben Konrath <ben@bagu.org>
247 Disable the pager in the list tables when the data row count is less than the minimum.
249 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
250 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
252 2011-09-30 Ben Konrath <ben@bagu.org>
254 Add empty rows to the end of related list and list view tables.
256 I also extracted the cell rendering classes from the ListTable because
257 the code was becoming a little crazy with all the anonymous inner
258 classes. My plan is to use these cell rendering classes in the details
259 view as well so this refactor will be needed for that change.
261 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
262 set the row count in related list tables if the data has more rows
263 than the minimum number of rows visible.
264 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
265 row count in list view tables if the data has more rows than the
266 minimum number of rows visible.
267 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
268 for rendering TYPE_BOOLEAN cells. The code was extracted from the
270 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
271 for rendering TYPE_NUMERIC cells. The code was extracted from the
273 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
274 class for rendering cells with buttons in list views. The code was
275 extracted from the ListTable class.
276 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
277 for rendering TYPE_TEXT cells. The code was extracted from the
279 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
280 Add empty rows to the end of the data if required. Implement
281 ListTable.getMinNumVisibleRows().
282 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
283 cell renderer code to public classes. Return null in
284 Column.getValue() for empty rows. Add new abstract method:
285 getMinNumVisibleRows(). Move code to set the row count of the list view
286 table to ListViewImpl.
287 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
288 empty rows to the end of the data if required. Implement
289 ListTable.getMinNumVisibleRows().
292 2011-09-27 Ben Konrath <ben@bagu.org>
294 Use GWT.log for client-side debugging statements.
296 These are optimized out when deployed so I should have used this method
297 in the first place. These statements will eventually be replaced with some sort
298 of notification in the browser.
300 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
301 * src/main/java/org/glom/web/client/activity/ListActivity.java:
302 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
303 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
304 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
306 2011-09-27 Ben Konrath <ben@bagu.org>
308 Put tableselector on the right, back to list link on right.
310 The idea is that the table selector is acting like a label for the
311 currently displayed table so it should be placed below the document title. This
312 puts the table title in a similar position to where it is in Glom.
314 * mockups/details-contacts.html:
315 * mockups/details-projects.html:
316 * mockups/listview-contacts.html:
317 * mockups/listview-projects.html:
319 Update mockups to match how the interfaces currently look.
320 * src/main/webapp/style.css: Swap positions of backlink with the table
321 selector. Add some space on the left side of the table selector to
322 line things up with the document title.
324 2011-09-27 Ben Konrath <ben@bagu.org>
326 Add field colouring to details view.
328 This change re-works how field colouring works. The colour formatting
329 information is now set to the client with the layout information instead of
330 with the data. This eliminates the need to send the same colour strings for
331 data in list view column when colour information is set.
333 In order to set an alternate colour for negative numeric values, the
334 number is now sent to client and formatted with the GWT NumberFormat class.
336 This change also fixes:
338 https://bugzilla.gnome.org/show_bug.cgi?id=659752
340 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
341 internationalization framework which is needed for client side numeric
343 * src/main/java/org/glom/web/client/Utils.java: New file for some
344 client static utility methods.
345 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
346 the DataItem object to the Field class. Use a utility method to
347 create the foreignKeyValue string.
348 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
349 alignment and text colours in the constructor. Add setData(DataItem)
350 method. Remove setText(String) method.
351 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
352 colour information to GlomTextCell. Create and use GlomNumberCell for
353 rendering numbers. Use utility method to get the string for the
354 primary key of the key provider. Re-work how the horizontal alignment
356 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
357 formatting to layout information. Methods for converting the libglom
358 formatting information were moved from DBAccess.
359 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
360 numeric formatting (it's now done on the client side). Don't set text
361 colours in DataItem. Move libglom formatting conversion methods to
363 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
364 getters/setters for text colour information.
365 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
366 for transferring the libglom NumericFormat information to the client.
367 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
368 and getters/setters for: GlomNumericFormat, background colour and
369 foreground colour strings.
371 2011-09-26 Ben Konrath <ben@bagu.org>
373 Simplify code that iterates through the LayoutGroup.
375 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
377 2011-09-26 Ben Konrath <ben@bagu.org>
379 Accept Eclipse formatting for OnlineGlomServiceAsync.
381 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
383 2011-09-26 Ben Konrath <ben@bagu.org>
385 Don't use the ListDBAccess classes to get the primary key layout information.
387 This was causing a bug where the wrong index for the hidden primary key
388 was being sent to the client.
390 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
391 primary key while creating the LayoutGroup DTO. Create a
392 LayoutItemField DTO for hidden primary keys. Don't use the
393 RelatedListDBAccess because it was only used for getting the primary
395 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
396 access modifier from public to protected for getPrimaryKeyField() and
397 getPrimaryKeyLayoutItemField().
398 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
399 abstract method getExpectedResultSize() because RelatedListDBAccess
400 doesn't have enough info to implement it.
401 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
402 Remove @Override for getExpectedResultSize().
403 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
404 Remove method getExpectedResultSize().
406 2011-09-23 Ben Konrath <ben@bagu.org>
408 Log which layout (list or details) the ignored item is from.
410 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
412 2011-09-23 Ben Konrath <ben@bagu.org>
414 Remove annotations that turn off code formatting in DataItem.
416 * src/main/java/org/glom/web/shared/DataItem.java:
418 2011-09-23 Ben Konrath <ben@bagu.org>
420 Rename GlomField to DataItem and update associated methods.
422 This is a rename-only refactor. No functionality has been added or
425 * src/main/java/org/glom/web/client/OnlineGlomService.java:
426 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
427 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
428 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
429 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
430 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
431 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
432 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
434 * src/main/java/org/glom/web/server/database/DBAccess.java:
435 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
436 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
437 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
438 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
439 * src/main/java/org/glom/web/shared/DataItem.java:
440 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
441 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
443 2011-09-23 Ben Konrath <ben@bagu.org>
445 Rename GlomDocument to DocumentInfo and update associated methods.
447 This is a rename-only refactor. No functionality has been added or
450 * src/main/java/org/glom/web/client/OnlineGlomService.java:
451 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
452 * src/main/java/org/glom/web/client/activity/ListActivity.java:
453 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
454 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
455 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
456 * src/main/java/org/glom/web/shared/DocumentInfo.java:
458 2011-09-20 Ben Konrath <ben@bagu.org>
460 Require java-libglom 1.17.3.
462 This picks up the fix for the seg fault problem with the Scenes table
463 in the Openismus Film Manager example.
467 2011-09-20 Ben Konrath <ben@bagu.org>
469 Change the way sort clause is added for primary key when no sort clause is requested.
471 The primary key is now added to the LayoutFieldVector (fieldsToGet)
472 before the sort clause is created. When a sort clause is not requested, the
473 sort clause is created by finding the primary key in the LayoutFieldVector
476 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
478 2011-09-20 Ben Konrath <ben@bagu.org>
480 Log error message if no documents are found in the configured directory.
482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
483 Extract the glom file extension string to a private static final class
484 variable (mostly as syntactic sugar). Accept a minor formatting change.
485 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
486 the example glom.document.directory configuration property to make it
487 more clear that it can any directory, not just the home directory.
489 2011-09-18 Ben Konrath <ben@bagu.org>
491 Add related lists to details view.
493 The related list table has support for paging and sorting just like the
494 table in the list view.
496 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
497 SQL queries for the related list tables.
498 * src/main/java/org/glom/web/client/OnlineGlomService.java:
499 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
501 Rename getList methods to getListView and add comments. Remove
502 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
503 it being unused. Add methods: getDetailsLayoutAndData(),
504 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
505 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
506 Create the layout and set the data for the fields in one async call
507 instead of two. Create related lists where appropriate.
508 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
509 for method name changes in OnlineGlomService.
510 * src/main/java/org/glom/web/client/ui/DetailsView.java:
511 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
512 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
514 * src/main/java/org/glom/web/client/ui/ListView.java:
515 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
516 tableName from setCellTable(). Create a ListViewTable instead of
518 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
519 represent a data field in the details view.
520 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
521 from addDetailsCell() to Field class. Keep track of the Fields and
522 Portals in the details view.
523 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
524 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
525 and add a method to get it. Add method to set the contents of the
527 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
528 New class for related list tables. This class has the data provider
529 for the related list table.
530 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
531 abstract class which is the base class for the ListViewTable and the
533 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
534 New class for list view tables. This class has the data provider for
536 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
537 methods for related list tables. Add more information to the
538 LayoutItemField and LayoutItemPortal DTOs.
539 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
540 Remove debugging print statement.
541 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
542 Remove debugging print statements. Add primary key field to SQL count
544 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
545 Remove unnecessary LayoutFieldVector parameter from
546 getResultSizeOfSQLQuery() method.
547 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
548 New class for related list table database access.
549 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
550 class that is a wrapper DTO for details view layout and data.
551 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
552 new 'fromField' string to this DTO.
553 * src/main/webapp/style.css: Remove bottom margin and override top
556 2011-09-15 Ben Konrath <ben@bagu.org>
558 Breakup the OnlineGlomServiceImpl class to make it more manageable.
560 This sets things up to make it easier to add the data retrieval for
561 related lists (portals). No user noticeable changes were made with
564 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
565 class has the code to retrieve the layouts and access the
566 database using the new database helper classes.
567 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
568 Most of the functionality has been removed from this class. This
569 class now represents the public interface for the client side
570 code. It also deals with configuring the servlet and cleaning
571 things up when the servlet is stopped.
572 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
573 of static methods into this utility class.
574 * src/main/java/org/glom/web/server/database/DBAccess.java:
575 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
576 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
577 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
578 These classes have the database retrieval code. The class hierarchy
579 has been setup to make it easy to reuse code for similar
582 2011-09-06 Ben Konrath <ben@bagu.org>
584 Create separate classes for list table code and the data provider.
586 As part of this refactor, I also split up the code a bit to make it
589 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
590 table code to two new classes (below).
591 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
592 with code from ListViewImpl.
593 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
594 New file with code from ListViewImpl.
596 2011-09-06 Ben Konrath <ben@bagu.org>
598 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
600 This fixes the LayoutItemPortal DTO to match the libglom layout object
603 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
605 2011-09-01 Ben Konrath <ben@bagu.org>
607 Set title of Portals in the Details View.
609 * pom.xml: Bump required version of java-libglom to 1.17.1.
610 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
611 widget creation to its own class. Add comments to constructor.
612 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
613 The code is mostly from the Group class with the title now set.
614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
615 title of Portal. Update some comments. Fix some code formatting.
617 2011-09-01 Ben Konrath <ben@bagu.org>
619 Remove TODO comment for the flow table column width.
621 The flow table column width is working correctly and doesn't need to be
622 changed. See this mailing list post for more info:
624 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
626 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
628 2011-08-27 Ben Konrath <ben@bagu.org>
630 Add document title (database name) to top of the browser page.
632 I added the document title to the TableSelecitonView but that will
633 change if / when we add a view that doesn't require table selection.
635 * mockups/details-contacts.html:
636 * mockups/details-projects.html:
637 * mockups/listview-contacts.html:
638 * mockups/listview-projects.html:
639 * mockups/style.css: Add document title to mockups to keep things
641 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
642 sizes to account for the document title.
643 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
644 Set the document title when it has been retrieved from the server.
645 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
646 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
647 and implement setDocumentTitle(String) method.
648 * src/main/webapp/style.css: Add ID for document title style.
650 2011-08-25 Ben Konrath <ben@bagu.org>
652 Add NavigationType enum to LayoutItemPortal DTO.
654 This is the start of adding support for Portals to the Details View.
656 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
657 LayoutItem_Portal.navigation_type enum from libglom to
658 LayoutItemPortal.NavigationType enum.
659 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
660 NavigationType enum, field for storing the NavigationType and getter
663 2011-08-25 Ben Konrath <ben@bagu.org>
665 Implement the flow table layout in the Details View.
667 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
668 FlowTable to Group to account for the renamed class.
669 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
670 File. This is a container widget that implements the Glom details view
671 flow table behaviour.
672 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
673 org/glom/web/client/ui/FlowTable.java.
674 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
675 so that the size of the subgroups are a closer match to the size of
676 the Glom subgroups. This makes the flowtable layout match the layout
677 in Glom for the Music Collection example file.
679 2011-08-16 Ben Konrath <ben@bagu.org>
681 Create container element for LayoutItemPortal in Details View.
683 This will help me develop the layout for the FlowTable.
685 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
686 fieldPanel variable to detailsCell.
688 2011-08-15 Ben Konrath <ben@bagu.org>
690 Set the height of the data element in the Details View.
692 I changed the InlineLabels (text in a span element) to Labels (text in
693 a div element) so that I could set the height of the details-data
694 elements instead of the details-cell parent elements. This allows the
695 the details-data element to display the correct height if style is
696 applied that shows the height.
698 This change has the added benefit of allowing the order of the labels
699 and data elements to be changed for right-to-left languages.
701 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
702 InlineLabels to Labels.
703 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
704 InlineLabels to Labels. Set the height of the data element.
705 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
706 multiline text height in the Formatting DTO.
707 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
708 for multiline height along with getter and setter methods.
709 * src/main/webapp/style.css: Adjust style to account for the change
710 from span elements to div elements in the details cell.
712 2011-08-15 Ben Konrath <ben@bagu.org>
714 Make the List View appearance match the mockups.
716 It doesn't match exactly but it's much better than it was.
718 * mockups/listview-contacts.html: Remove unused css classes.
719 * mockups/listview-projects.html: Remove unused css classes.
720 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
721 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
722 for mainPanel instead of VerticalPanel (table). Set style name on
723 CellTable. Set style name on Details column. Right-align Details
725 * src/main/webapp/style.css: Adjust properties to match the mockups.
727 2011-08-12 Ben Konrath <ben@bagu.org>
729 Add better support for subgroups in the details view.
731 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
732 changed FlowTable constructor.
733 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
734 support for subgroups and subgroup-titles.
735 * src/main/webapp/style.css: Add CSS class for subgroups and
738 2011-08-12 Ben Konrath <ben@bagu.org>
740 Return the top level LayoutGroup title.
742 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
744 2011-08-11 Ben Konrath <ben@bagu.org>
746 Make the TableSelector header match the mockup.
748 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
749 the layout panel. Properly lineup the table selection header with
750 the list and details view.
751 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
752 margin around the details view.
753 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
754 Rename listBox variable to tableSelector. Set id for the style sheet.
755 Use a FlowPanel instead of a HorizontalPanel.
756 * src/main/webapp/style.css: Add properties to make the TableSelector
757 box match the mockups.
759 2011-07-13 Ben Konrath <ben@bagu.org>
761 Update install script for java-libglom version change.
763 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
766 2011-07-13 Ben Konrath <ben@bagu.org>
768 Add support sub-group in the details view.
770 I also removed the code that special-cased the default details view
773 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
775 I still have to make a proper flowtable.
777 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
778 Don't special-case default details view layout.
779 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
780 addLayoutField() as I'm going to use it.
781 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
782 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
784 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
785 extracted from DetailsViewImpl.GroupPanel. Add support for
787 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
788 column count when getting the details layout.
790 2011-07-12 Ben Konrath <ben@bagu.org>
792 Set browser title with database and table titles.
794 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
795 Set the browser title when the table changes and when the activity
797 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
798 title when retrieving document info (the GlomDocument object).
799 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
800 with getter and setter methods. Remove unused convenience constructor.
801 Use default code formatting.
803 2011-07-12 Ben Konrath <ben@bagu.org>
805 Ignore LayoutItemPortals in the details view.
807 I added a new DTO for the LayoutItemPortal so that I can ignore it in
810 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
811 LayoutItemPortal layout objects.
812 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
813 LayoutItemPortal objects when retrieving the details layout.
814 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
815 file. This is an empty class and just used to get type information for
818 2011-07-12 Ben Konrath <ben@bagu.org>
820 Use java-libglom 1.17.0.
824 2011-07-11 Ben Konrath <ben@bagu.org>
826 Remove "Table:" label from table selector.
828 This matches a recent change in the Glom UI.
830 * mockups/details-contacts.html:
831 * mockups/details-projects.html:
832 * mockups/listview-contacts.html:
833 * mockups/listview-projects.html: Remove the "Table:" label from the
835 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
837 2011-07-11 Ben Konrath <ben@bagu.org>
839 Add main groups to the details view.
841 This makes things look a little nicer in the details view. The next step
842 is to implement the flowtable.
844 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
845 resources from the standard gwt css theme. Standard.css is now
846 included in OnlineGlom.html so that the online glom css rules have
847 precedence over the gwt theme.
848 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
849 the whole LayoutGroup to the DetailsView instead of just the titles.
850 * src/main/java/org/glom/web/client/ui/DetailsView.java:
851 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
852 details layout with a helper class (GroupPanel). I might extract this
853 class when I make the full flowtable.
854 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
855 string as default so I don't have to worry about NPEs when processing
857 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
858 note beside OnlineGlom.gwt.xml above).
859 * src/main/webapp/style.css: Add default font-size to body to override
860 the font-size set by the standard theme. Don't use h2 tags for
861 group-title. Create new details-cell class.
863 2011-07-08 Murray Cumming <murrayc@murrayc.com>
865 ConfiguredDocument: Set the port number too.
867 * src/main/java/org/glom/web/server/ConfiguredDocument.java
868 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
869 Glom document. Presumably this worked sometimes so far because there is a
872 2011-07-08 Murray Cumming <murrayc@murrayc.com>
874 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
876 * src/main/java/org/glom/web/server/ConfiguredDocument.java
877 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
878 correct, though we should throw an exception too.
880 2011-07-08 Murray Cumming <murrayc@murrayc.com>
882 Fix a addDocuemnt typo.
884 * src/main/java/org/glom/web/shared/Documents.java
885 (Documents.addDocuemnt): Rename to addDocument().
886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
887 (OnlineGlomServiceImpl.getDocuments): Adapt.
889 2011-07-08 Murray Cumming <murrayc@murrayc.com>
891 Slightly improved log output when connection fails.
893 * src/main/java/org/glom/web/server/ConfiguredDocument.java
894 (ConfiguredDocument.setUsernameAndPassword):
895 We don't know for sure if it' the username/password that's wrong, so
896 rephrase the message.
897 Also ouput the exception message, though it's generic in this case.
899 2011-07-08 Ben Konrath <ben@bagu.org>
903 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
904 added braces to a one line if statement because the Eclipse formatter
905 was getting confused.
907 2011-07-07 Ben Konrath <ben@bagu.org>
909 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
911 These should really be two separate tasks but I counldn't get things to
912 work with GWT 2.2.0 and Eclipse 3.7.
916 * .settings/org.eclipse.jdt.core.prefs:
917 * .settings/org.eclipse.jdt.ui.prefs:
918 * .settings/org.eclipse.ltk.core.refactoring.prefs:
919 * .settings/org.eclipse.m2e.core.prefs:
920 Add new config files. Update current files. Remove references to the
921 webtools plugins as we're not using any of the webtools features.
922 * .gitignore: Add logs directory which is created when running with
924 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
925 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
926 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
928 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
930 2011-07-07 Murray Cumming <murrayc@murrayc.com>
932 onlineglom.properties: Add explanatory comments.
934 * src/main/resources/onlineglom.properties: Also change the default user
935 from ben to someuser, to avoid the risk of people thinking we just
936 stupidly hard-coded a locale path, when they see that on stderr or in a log.
938 2011-06-28 Ben Konrath <ben@bagu.org>
940 Use filename in Log for incorrect passwords.
942 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
943 getFileName(String) method to get the filename from the URI.
945 2011-06-28 Ben Konrath <ben@bagu.org>
947 Add the table name to the URL token for the ListPlace.
949 This makes things consistent between the DetailsPlace and the
950 ListPlace. It also allows the the ListPlace to be bookmarked.
952 * src/main/java/org/glom/web/client/OnlineGlomService.java:
953 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
954 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
955 Remove getDefaultListLayout(). The default layout is now returned
956 by the getListLayout() method when the table name is an empty string.
957 * src/main/java/org/glom/web/client/activity/ListActivity.java:
958 Add table name field. Change to a new ListPlace when the table
959 has been changed. Use getListLayout() for getting the default
961 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
962 Add table name field. Set the correct table name in the list box
963 when loading from bookmark. This corrects a problem for the
965 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
966 Move table name to super-class (HasSelectableTable). Move document
967 and table URL keys to super-class in HasSelectableTable.
968 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
969 Add table name field. Add Tokenizer class with URL key common to
970 the subclasses (DetailsPlace and ListPlace).
971 * src/main/java/org/glom/web/client/place/ListPlace.java:
972 Add table name. Add code to parse the URL token.
973 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
974 Update ListPlace construction with empty table name string.
975 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
976 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
977 Change setTableSelectedIndex(int) to setSelectedTableName(String).
978 Update ListPlace construction with table name string.
979 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
980 Change defaultTableName field to tableName to reflect how it's now
981 used. Update the getter and setter methods.
983 2011-06-28 Ben Konrath <ben@bagu.org>
985 Enable the table selector in the DetailsView.
987 * src/main/java/org/glom/web/client/OnlineGlomService.java:
988 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
989 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
990 Remove getDefaultDetailsLayout(). The default layout is now returned
991 by the getDetailsLayout() method when the table name is an empty
993 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
994 event handler for table change event. Change to using
995 getDetailsLayout() for the default details layout.
996 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
998 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
999 when navigating to the details place.
1001 2011-06-27 Ben Konrath <ben@bagu.org>
1003 Use filename based unique document ID in URL and for RPC.
1005 The document ID is the glom document name with spaces (' ') replaced
1006 with pluses ('+') and without the .glom extension.
1008 This change is mostly a string substitution of 'documentTitle' for
1009 'documentID'. The only code change is the addition of a Documents DTO to get the
1010 filename to document title mappings as indicated below.
1012 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1013 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1014 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1015 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1016 Use Documents DTO to create the document links in the document
1018 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1019 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1020 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1021 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1022 * src/main/java/org/glom/web/client/place/ListPlace.java:
1023 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1024 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1025 * src/main/java/org/glom/web/client/ui/ListView.java:
1026 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1027 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1028 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1029 * src/main/java/org/glom/web/server/Log.java:
1030 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1031 getDocumentTitles() to getDocuments() and return the Documents DTO.
1032 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1033 transferring the filename to document title mappings.
1035 2011-06-25 Ben Konrath <ben@bagu.org>
1037 Make the authentication popup work again.
1039 This bug was introduced when I extracted ConfiguredDocument to its own class.
1041 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1042 correct success / fail status in setUsernameAndPassword().
1044 2011-06-25 Ben Konrath <ben@bagu.org>
1046 Use filename as unique key for configuring database usernames and passwords.
1048 This replaces the use of the Glom document title which could change
1049 depending on the locale. Thanks to Murray Cumming for pointing out this
1052 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1053 * src/main/resources/onlineglom.properties:
1055 2011-06-24 Ben Konrath <ben@bagu.org>
1057 Pass primary key value to DetailsView.
1059 This enables the DetailsView to load the correct data.
1061 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1062 primary key value field and set in constructor. Pass primary key
1063 value to getDetailsData().
1064 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1065 variables for document title and primary key value.
1066 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1067 key value to the DetailsPlace.
1069 2011-06-24 Ben Konrath <ben@bagu.org>
1071 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1073 This allows the primary key to be retrieved by the Details button. This
1074 functionality has not been implemented yet but it's in the works.
1076 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1077 the LayoutGroup result to ListView.setCellTable instead of all of its
1078 fields individually.
1079 * src/main/java/org/glom/web/client/ui/ListView.java:
1080 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1081 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1082 get the primary key for the table.
1083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1084 index of the primary key in the LayoutGroup accounting for hidden
1085 primary keys. Rename getJavaNumberFormat() to
1086 convertToJavaNumberFormat() for consistency. Cleanup / add some
1088 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1089 field for primary key index and a field to indicate whether the
1090 primary key is hidden or not.
1092 2011-06-23 Ben Konrath <ben@bagu.org>
1094 Rename getTableData methods to getListData.
1096 This is a rename refactor for consistency with other methods.
1098 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1099 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1100 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1103 2011-06-23 Ben Konrath <ben@bagu.org>
1105 Extract the ConfiguredDocument innerclass into its own class.
1107 This makes the servlet code more object oriented.
1109 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1110 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1112 new ConfiguredDocument class.
1114 2011-06-21 Ben Konrath <ben@bagu.org>
1116 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1118 This makes things more inline with how libglom works and reduces code
1119 duplication. This refactor lays the groundwork for adding the primary key to
1120 the LayoutGroup object.
1122 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1123 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1124 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1125 Change method names to getListLayout and getDefaultListLayout for
1126 consistency. Use LayoutGroup as the DTO for the list layout instead of
1127 ColumnInfo and LayoutListTable.
1128 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1129 new method names along with the LayoutGroup object for transferring the
1131 * src/main/java/org/glom/web/client/ui/ListView.java:
1132 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1133 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1134 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1136 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1137 Replaced with LayoutGroup.
1138 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1139 expectedResultSize and defaultTableName fields which are needed for
1141 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1142 type field which is needed for the list layout but will also be
1143 useful for the details layout as things progress.
1144 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1145 Make class abstract. Remove the unnecessary
1146 getFormattingHorizontalAlignment method. Add setFormatting method.
1148 2011-06-16 Ben Konrath <ben@bagu.org>
1150 Add scripts for building and installing war.
1152 These will help when updating OnlineGlom but they're also good
1153 supplemental documentation of the build and deployment proceeding.
1155 * utils/build-onlineglom-war.sh: New file.
1156 * utils/install-onlineglom-war.sh: New file.
1158 2011-06-16 Ben Konrath <ben@bagu.org>
1160 Create wrapper class to create consistent log messages.
1162 I wrapped methods in the Log class of gwt-log to add the method names
1163 from the servlet and create consistent formatting of the document title
1164 and table names in the log messages.
1166 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1167 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1168 log methods to use methods from wrapped Log class.
1170 2011-06-16 Ben Konrath <ben@bagu.org>
1172 Remove superfluous conditional return.
1174 Thanks to Murray Cumming for pointing this out!
1176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1178 2011-06-15 Ben Konrath <ben@bagu.org>
1180 Return an ArrayList of LayoutGroups for the Details layout.
1182 This corrects a problem with the details layout as it can have more
1183 than one top level LayoutGroup.
1185 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1186 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1187 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1188 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1189 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1190 with ArrayList of LayoutGroups for the details view layout.
1191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1192 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1193 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1194 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1195 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1196 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1198 2011-06-14 Ben Konrath <ben@bagu.org>
1200 Use cast_dynamic method to determine the libglom LayoutItem type.
1202 This is better than finding the LayoutItem type by using the string
1203 returned from the get_part_type_name() method.
1205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1207 2011-06-14 Ben Konrath <ben@bagu.org>
1209 Add method names to log entries in the servlet.
1211 This helps when tracking down deployment problems.
1213 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1215 2011-06-14 Ben Konrath <ben@bagu.org>
1217 Add data to the DetailsView using a hard-coded primary key value.
1219 The layout and functionality of the DetailsView is not complete. This
1220 is just a checkpoint so the patch doesn't get too big.
1222 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1223 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1224 Add getDetailsData() servlet method.
1225 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1226 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1227 LayoutFields are added to the DetailsView.
1228 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1229 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1230 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1231 take the string for the title instead of the object.
1232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1233 Add implementation getDetailsData() along with some private helper
1235 * src/main/webapp/style.css: Add padding to details-data class. Add a
1236 details-label class with the same padding as the details-data class.
1238 2011-06-03 Ben Konrath <ben@bagu.org>
1240 Use presenter.goTo() to change to the DetailsPlace.
1242 This will make things easier when we need to open the DetailsView with
1243 data specific to the row that was clicked.
1245 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1247 2011-06-02 Ben Konrath <ben@bagu.org>
1249 Add CSS file from mockups.
1251 I'm adding this now because it's going to be useful to have when
1252 developing the DetailsView. The TableSelectionView and ListView aren't
1255 * src/main/webapp/OnlineGlom.html:
1256 * src/main/webapp/style.css:
1258 2011-06-02 Ben Konrath <ben@bagu.org>
1260 Use String.isEmpty() to check for empty string.
1262 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1264 2011-06-02 Ben Konrath <ben@bagu.org>
1266 Display main layout group titles in the DetailsView.
1268 This is the start of the DetailsActivity/DetailsView implementation.
1270 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1271 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1272 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1273 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1274 Get the layout information for the details view from the server and set
1275 the main layout group titles.
1276 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1277 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1278 Add addLayoutGroup() and addLayoutField() methods. This are just
1279 temporary methods for creating the the details view that will change
1281 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1282 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1284 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1285 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1286 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1287 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1288 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1289 Data Transfer Objects that mimic the libglom object structure. These are
1290 used for transferring the details layout but could also be used for
1291 transferring the list layout.
1293 2011-05-27 Ben Konrath <ben@bagu.org>
1295 Reset the AuthenticationPopup when clearing the ListView.
1297 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1299 2011-05-27 Ben Konrath <ben@bagu.org>
1301 Fix problem with onlineglom.properties file loading.
1303 The old way worked in Eclipse but not on the server. Loading the
1304 onlineglom.properties file now works in Eclipse and on the server.
1306 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1308 2011-05-24 Ben Konrath <ben@bagu.org>
1310 Update gwt-log from 3.1.0 to 3.1.2.
1312 Gwt-log 3.1.0 has been marked as depreciated.
1316 2011-05-24 Ben Konrath <ben@bagu.org>
1318 Add comment to ListActivity.goTo() method.
1320 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1322 2011-05-24 Ben Konrath <ben@bagu.org>
1324 Remove FIXME in convertGdkColorToHtmlColour()
1326 The Gdk::Color value returned by libglom is 16-bits per channel on both
1327 64 and 32-bit platforms.
1329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1331 2011-05-19 Ben Konrath <ben@bagu.org>
1333 Improve performance of initial ListView load.
1335 I removed a round trip to the server for getting the default table name
1336 and then requesting information about that table. This also removes a potential
1337 problem with the table change handler not being setup in time to receive the
1338 table change event from the ListActivity.
1340 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1341 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1342 getDefaultLayoutListTable() method. Improve comments.
1343 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1344 getDefaultLayoutListTable() method instead of firing a table change
1345 event to get the table to load.
1346 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1347 implementation of getDefaultLayoutListTable() method.
1348 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1351 2011-05-19 Ben Konrath <ben@bagu.org>
1353 Override toDebugString() in TableChangeEvent.
1355 This is useful to have for debugging.
1357 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1359 2011-05-19 Ben Konrath <ben@bagu.org>
1361 Add a "Back to List" link when at the DetailsPlace.
1363 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1364 Populate the CellTable based on the selected table of the ListBox if
1365 it's set otherwise use the default table. This allows the "Back to
1367 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1368 Remove Place from constructors. Add a setPlace() method. Add
1369 goToPlace() method. Set class as presenter for TableSelectionView.
1370 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1371 Use the same TableSelectionActivity when switching between the List and
1373 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1374 Subclass the new HasSelectableTablePlace. This removes some duplicate
1376 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1377 New class to represent Places that display the TableSelectionView.
1378 * src/main/java/org/glom/web/client/place/ListPlace.java:
1379 Subclass the new HasSelectableTablePlace. This removes some duplicate
1381 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1382 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1383 Add Presenter interface. Add setBackLinkVisible() method. Add
1384 setBackLink() method.
1386 2011-05-18 Ben Konrath <ben@bagu.org>
1388 Enable the "Details" buttons.
1390 Right now only an empty details view is displayed.
1392 * src/main/java/org/glom/web/client/ClientFactory.java:
1393 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1394 Add DetailsView to ClientFactory.
1395 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1396 A basic activity for the details view.
1397 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1398 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1400 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1401 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1403 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1404 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1405 unnecessary super() in constructor.
1406 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1407 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1408 really shouldn't create a new TableSelectionActivity for both the ListPlace
1409 and the DetailsPlace so this should be considered a temporary solution.
1410 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1411 New file. Represents a URL for the details view.
1412 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1413 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1414 A basic details view interface and implementation.
1415 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1416 Enable the "Details" buttons.
1418 2011-05-12 Ben Konrath <ben@bagu.org>
1420 Use a LayoutPanel with multiple display areas for main layout.
1422 This is mostly a refactor in that there are no changes from the user
1423 point of view. These changes are required so that we can swap out the list view
1424 with the details view when the user clicks the "Details" button.
1426 * src/main/java/org/glom/web/client/ClientFactory.java:
1427 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1428 OnlineGlomView. Add TableSelectionView, ListView and
1429 AuthenticationPopup.
1430 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1431 for main layout. Add display regions for main activities. Add
1432 activity manager for for main activities.
1433 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1434 file from parts of the deleted OnlineGlomActivity.
1435 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1436 New file from parts of the deleted OnlineGlomActivity.
1437 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1438 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1439 New files for app wide table change event.
1440 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1441 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1442 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1443 Activity mappers for the main activities replace the deleted app-wide
1445 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1446 Fix a spelling error in he comment.
1447 * src/main/java/org/glom/web/client/ui/ListView.java:
1448 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1449 Renamed from LayoutListView and modified for MVP. This still not a
1450 proper dumb view as prescribed by the MVP pattern but it works for now.
1451 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1452 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1453 New widget stripped out of the deleted OnlineGlomView.
1454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1455 Remove hack that is fixed by this patch.
1457 2011-05-06 Ben Konrath <ben@bagu.org>
1459 Rename OnlineGlomPlace to ListPlace.
1461 The only change besides the rename is that url will now display #list
1462 instead of #Document.
1464 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1465 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1466 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1467 * src/main/java/org/glom/web/client/place/ListPlace.java:
1468 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1470 2011-05-06 Ben Konrath <ben@bagu.org>
1472 Use Presenter for app navigation.
1474 This is the proper way to deal with Place (URL) changes with the MVP
1477 * src/main/java/org/glom/web/client/ClientFactory.java:
1478 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1479 PlaceHistoryMapper and PlaceHistoryHandler.
1480 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1481 PlaceHistoryMapper and PlaceHistoryHandler.
1482 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1483 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1484 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1485 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1486 Add Presenter interface and setPresenter methods. Rename addHyperLink
1487 to addDocumentLink taking only the document title as a parameter.
1489 2011-04-14 Ben Konrath <ben@bagu.org>
1491 Prompt for db username/password if they haven't been set.
1493 This is implemented with a popup widget that is contained within the
1494 OnlineGlomView and managed by the OnlineGlomActivity.
1496 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1497 methods for checking and setting the database username and password.
1498 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1499 new methods for checking and setting the database username and
1501 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1502 Display authentication popup if the JDBC connection to the database
1503 has not been authenticated.
1504 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1506 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1507 for dealing with the authentication popup.
1508 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1509 Implement the methods for dealing with the authentication popup.
1510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1511 try to executed queries if the database connection hasn't been
1512 authenticated. Implement methods for checking and setting the
1513 database username and password.
1515 2011-04-12 Ben Konrath <ben@bagu.org>
1517 Make log messages a little clearer.
1519 Add a dash betweeen the document title and the table name.
1521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1523 2011-04-12 Ben Konrath <ben@bagu.org>
1525 Protect against NPEs when cleaning up database resources.
1527 While this isn't strictly necessary because the exception is caught,
1528 not protecting against the NPEs makes it harder to find the real error
1531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1533 2011-04-12 Ben Konrath <ben@bagu.org>
1535 Move configuration of the servlet to the constructor.
1537 The servlet will be initialized even if the database authentication
1538 information is not set or correct. I still need to add the UI for prompting
1539 the user for the authentication information when it's required.
1541 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1542 javadocs for getDocumentTitles() method.
1543 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1544 Set error message when RPC fails.
1545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1546 glom files directory from the configuration file. Try to set the
1547 database authentication information for the specific document if it's
1548 set and works otherwise try to use the global authentication
1549 information set for the directory.
1550 * src/main/resources/onlineglom.properties: Moved from
1551 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1552 Added detailed comments for the new keys.
1554 2011-04-11 Ben Konrath <ben@bagu.org>
1556 Remove unnecessary @Override in DocumentSelectionViewImpl.
1558 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1560 2011-04-11 Ben Konrath <ben@bagu.org>
1562 Remove center alignment in DocumentSelectionView.
1564 The title element is still centred but the document titles and bottom
1565 sentence are both left-aligned.
1567 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1569 2011-04-11 Ben Konrath <ben@bagu.org>
1571 Change 'Demo' naming convention to 'Document'.
1573 This is just a rename refactor with no functional changes to the code.
1575 * src/main/java/org/glom/web/client/ClientFactory.java:
1576 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1577 * src/main/java/org/glom/web/client/OnlineGlom.java:
1578 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1579 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1580 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1581 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1582 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1583 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1584 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1585 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1586 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1587 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1589 2011-04-08 Ben Konrath <ben@bagu.org>
1591 Remove FIXME from safeLongToInt() method.
1593 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1596 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1598 2011-04-08 Ben Konrath <ben@bagu.org>
1600 Display an error if no glom documents are found in the specified directory.
1602 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1603 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1604 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1605 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1607 2011-04-08 Ben Konrath <ben@bagu.org>
1609 Add copyright header to one more file ... oops.
1611 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1613 2011-04-08 Ben Konrath <ben@bagu.org>
1615 Add copyright header to files without it.
1617 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1618 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1619 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1620 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1621 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1622 * src/main/java/org/glom/web/shared/GlomField.java:
1624 2011-04-08 Ben Konrath <ben@bagu.org>
1626 Add support for accessing multiple glom documents in the servlet.
1628 This completes the demo selection functionality.
1630 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1631 document title to methods.
1632 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1633 document title to methods.
1634 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1635 Set browser window title when the activity starts. Correct name of
1636 document title variable.
1637 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1638 Set browser window title when the activity starts. Set the table
1639 selector change handler after table selector has been set. Clear the
1640 OnlineGlomView when the activity has been stopped.
1641 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1642 document title as the place token. Use "#Document:" instead of
1643 "#OnlineGlomPlace:" in the URL.
1644 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1645 Change heading to "Online Glom"
1646 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1647 document title in RPC methods.
1648 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1649 setDocumentTitle() method. Add clear() method.
1650 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1651 setDocumentTitle() method. Implement clear() method which removes the
1652 change handler on the ListBox, clears the ListBox and clears the
1654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1655 Implement methods with document title. Keep track for the configured
1656 glom documents and their corresponding JDBC configurations in a hash
1657 table. This information is retrieved using the document title as the
1658 key in the hash table.
1659 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1660 document title field as it's no longer needed.
1662 2011-04-08 Ben Konrath <ben@bagu.org>
1664 Update the Eclipse JDT configuration.
1666 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1667 methods. Automatically add the copyright header to new files.
1669 2011-04-05 Ben Konrath <ben@bagu.org>
1671 Add new page for demo selection.
1673 This patch adds all the components required to view and start an
1674 OnlineGlom demo by clicking on the desired hyperlink. The user is
1675 able to return to the demo selection page with the browser's back
1676 button. I still need to modify the servlet to work with multiple
1677 documents so all demo links will load the file defined in the
1678 OnlineGlom.properties.
1680 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1681 This is only useful during development so we don't need to save it.
1682 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1683 get a reference to the DemoSelectionView.
1684 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1685 method to get a reference to the DemoSelectionView.
1686 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1687 default view to DemoSelectionView.
1688 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1689 to get glom document titles for glom files in a hard-coded directory.
1690 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1691 method to get glom document titles for glom files in a hard-coded
1693 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1694 Presenter for DemoSelectionView.
1695 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1696 for DemoSelectionView.
1697 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1698 Update for DemoSelectionView.
1699 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1700 Basic 'Place' implementation for the DemoSelectionView.
1701 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1702 The interface for the DemoSelectionView.
1703 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1704 The implementation of the DemoSelectionView.
1705 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1706 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1707 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1708 implementation of method to get glom document titles for glom files
1709 in a hard-coded directory.
1710 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1711 on longer being used.
1712 * src/main/webapp/glom.png: Glom logo.
1714 2011-04-05 Ben Konrath <ben@bagu.org>
1716 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1718 This is the forth and final commit of a refactor that will allow
1719 OnlineGlom to be used with multiple documents.
1721 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1722 Move RPC code from OnlineGlomViewImpl to this class.
1723 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1725 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1726 RPC code to the presenter class (the P in MVP).
1728 2011-04-04 Ben Konrath <ben@bagu.org>
1730 Start moving the existing OnlineGlom code to MVP.
1732 This work is based on the GWT MVP framework that is documented here:
1734 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1736 This is the third commit of a refactor that will allow OnlineGlom to
1737 be used with multiple documents.
1739 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1740 Interface for client factory which is used to get instances of various
1741 classes throughout the app.
1742 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1743 Implementation of client factory.
1744 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1745 initialize the MVP framework.
1746 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1747 New file. Activity manager for the main container widget. This is the
1749 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1750 Maps place (URL) to its corresponding activity.
1751 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1752 New file. This is just a place holder for a generated file.
1753 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1754 New file. Represents the URL for the main Online Glom app.
1755 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1756 for changes in LayoutListViewImpl.
1757 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1758 interface for View. Move code to OnlineGlomViewImpl class.
1759 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1760 file. Implementation of OnlineGlomView.
1761 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1762 Place resources. Use ClientFactoryImpl by default.
1764 2011-04-04 Ben Konrath <ben@bagu.org>
1766 Move View classes to their own package.
1768 This is the second commit of a refactor that will allow OnlineGlom to
1769 be used with multiple documents.
1771 * src/main/java/org/glom/web/client/OnlineGlom.java:
1772 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1773 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1775 2011-04-02 Ben Konrath <ben@bagu.org>
1777 Move UI code from the main module to its own class.
1779 This is the first commit of a refactor that will allow OnlineGlom to be
1780 used with multiple documents.
1782 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1783 references to OnlineGlom to OnlineGlomView.
1784 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1785 OnlineGlomView and instantiate it here.
1786 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1787 represents the main OnlineGlomView with one document.
1789 2011-04-01 Ben Konrath <ben@bagu.org>
1791 Fix formatting of gwt.xml and add DTD.
1793 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1795 2011-03-30 Ben Konrath <ben@bagu.org>
1797 Propperly convert gdkColor string to html colour string.
1799 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1801 2011-03-28 Ben Konrath <ben@bagu.org>
1803 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1805 This implementation matches
1806 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1807 readable and is not tied to Swig.
1809 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1811 2011-03-28 Ben Konrath <ben@bagu.org>
1813 Use read-only checkboxes for boolean field types.
1815 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1816 in the CellTable based on the field type. It currently only
1817 distinguishes between boolean and text columns but I'll need to add
1818 support for more types.
1819 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1820 column type in the ColumnInfo object. Add method to convert between the
1821 glom field type enum in ColumnInfo and the glom field type in libglom.
1822 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1824 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1825 getting and setting booleans.
1827 2011-03-25 Ben Konrath <ben@bagu.org>
1829 Don't get the Date twice from the ResultSet.
1831 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1833 2011-03-25 Ben Konrath <ben@bagu.org>
1835 Cleanup code in the servlet.
1837 * TODO: Remove item about row count. Add item about testing row count
1838 query with large number of rows.
1839 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1840 spelling mistakes, change method parameter to be consistent with
1843 2011-03-25 Ben Konrath <ben@bagu.org>
1845 Add server side logging with the gwt-log library.
1847 * .gitignore: Ignore the log file we're now producing.
1848 * TODO: Add a couple TODO item for logging.
1849 * pom.xml: Add gwt-log and log4j as a dependency.
1850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1851 logging of errors, warnings and some important info.
1852 * src/main/resources/log4j.properties: New file to configure log4j.
1854 2011-03-24 Ben Konrath <ben@bagu.org>
1856 Add a disable button for the Details view.
1858 * src/main/java/org/glom/web/client/LayoutListView.java:
1860 2011-03-22 Ben Konrath <ben@bagu.org>
1862 Use a count query to get the number of rows for the list view pager.
1864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1866 2011-03-22 Ben Konrath <ben@bagu.org>
1868 Add more TODO information about CellTable pager positioning.
1872 2011-03-19 Ben Konrath <ben@bagu.org>
1874 Add TODO item about CellTable pager positioning.
1878 2011-03-18 Ben Konrath <ben@bagu.org>
1880 Remove unneeded GlomFieldColumn class.
1882 This is just a small code cleanup.
1884 * src/main/java/org/glom/web/client/LayoutListView.java:
1886 2011-03-18 Ben Konrath <ben@bagu.org>
1888 Use cursor mode in the query that gets data for the list view.
1890 I still need to fix the potential memory problem when getting the row
1891 count for the list view.
1893 * TODO: Add note about testing memory usage with large data sets. Add
1894 item about fixing row counting with large data sets.
1895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1896 PostgreSQL JDBC driver into cursor mode when getting data for the
1899 2011-03-15 Ben Konrath <ben@bagu.org>
1901 Remove the GWT Container from the Eclipse build classpath.
1903 The GWT dependencies are set by Maven so this isn't needed.
1907 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1909 Added some earlier mockups to git, but not to the tarball dist.
1911 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1912 Openismus. These hopefully show how we might structure the HTML so that
1913 it can be styled easily with CSS. However, we probably need to adapt them
1914 for the CSS structure that GWT dictates for common widgets.
1916 2011-03-14 Ben Konrath <ben@bagu.org>
1918 Locate OnlineGlom.properties using the ServletContext.
1920 This is required to be able to locate the file in the deployed servlet.
1922 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1923 Configure the database and glom document in in a helper method so
1924 that the ServletContext can be used to locate OnlineGlom.properties.
1925 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1926 src/main/webapp. This is the proper location for .properites files.
1928 2011-03-12 Ben Konrath <ben@bagu.org>
1930 Add note to README about why we're compiling down to obfuscated JavaScript.
1934 2011-03-11 Ben Konrath <ben@bagu.org>
1936 Use properties file to configure servlet.
1938 This allows people to change the glom file path, db username and db
1939 password without recompiling the code.
1941 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1942 * src/main/webapp/OnlineGlom.properties:
1944 2011-03-11 Ben Konrath <ben@bagu.org>
1946 Use table fields in layout list view if the layout list is not defined.
1948 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1949 Manually create a LayoutFieldVector for the query builder using the
1950 table fields when a layout list is not defined in the glom file.
1952 2011-03-11 Ben Konrath <ben@bagu.org>
1954 Only show FIXME string for images when there's an image.
1956 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1957 in this change are some small code cleanups.
1959 2011-03-11 Ben Konrath <ben@bagu.org>
1961 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1963 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1965 2011-03-11 Ben Konrath <ben@bagu.org>
1967 Correctly set the index of the default table.
1969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1970 Correctly set the index of the default table. Add commented out example
1973 2011-03-10 Ben Konrath <ben@bagu.org>
1975 Add comment to pom.xml about the previous change.
1977 * pom.xml: Add comment about the deployment issue so that it's obvious
1978 why java-libglom is set to the provided scope.
1980 2011-03-10 Ben Konrath <ben@bagu.org>
1982 Change java-libglom dependency from compile to provided in pom.xml.
1984 Since java-libglom uses jni it can only be loaded once and therefore
1985 must be placed in $CATALINA_HOME/lib and not included in each war.
1986 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1987 More information about this issue can be found in the Tomcat 6 release
1988 notes in the "JNI Based Applications" section:
1990 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1992 * README: Remove note about this issue. Deployment info should really
1993 be on the wiki anyway so I'll add it right now.
1994 * pom.xml: Change java-libglom dependency from compile to provided so
1995 that it's copied in to the packaged war.
1997 2011-03-09 Ben Konrath <ben@bagu.org>
1999 Change to using a neutral locale for currency, date and time formatting.
2001 This solves the problem of currency values being represented without a
2002 space between the currency code and the number (e.g. "EUR5.89" is now
2003 represented as "EUR 5.89"). More work is required when we implement
2004 a locale preference setting.
2006 * TODO: Add note about currency formatting issues with different
2008 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2009 to using the neutral ROOT locale.
2011 2011-03-09 Ben Konrath <ben@bagu.org>
2013 Add support for currency codes that are not ISO 4217 codes.
2015 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2016 the currency code defined in the glom file when it's not 3 characters
2017 long or when Java doesn't recognize the string as an ISO 4217 code.
2019 2011-03-08 Ben Konrath <ben@bagu.org>
2021 Remove test classes, launch configurations and configuration.
2023 The test stuff was getting in the way when creating the war. To make
2024 the war file you can now do 'mvn clean package'. The packaged war file
2025 will be in the target directory.
2027 * .classpath: Remove unused classpathentry for tests and i18n.
2028 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2029 property. Don't run test or i18n goals when packaging the war.
2030 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2035 * OnlineGlomTest-dev.launch:
2036 * OnlineGlomTest-prod.launch:
2037 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2038 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2040 2011-03-07 Ben Konrath <ben@bagu.org>
2042 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2044 These fixes allow me to use 'mvn deploy' to create the war file.
2046 * .classpath: This generated config has been updated by Eclipse. This
2047 change was probably triggered by me updating from Eclipse 3.6.1 to
2049 * .gitignore: Add entry to ignore the directory
2050 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2051 * .project: The generated config has been updated by Eclipse. This
2052 change was probably triggered by me updating from Eclipse 3.6.1 to
2054 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2055 so that Eclipse doesn't complain
2056 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2057 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2058 'tests' directory to 'client' directory. This is the new
2059 gwt-maven-plugin convension.
2060 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2061 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2063 2011-03-07 Ben Konrath <ben@bagu.org>
2065 Add support for horizontal alignment in the LayoutList columns.
2067 * TODO: Remove item about horizontal alignment. Add item about
2068 improvements to ColumnInfo.
2069 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2070 alignment on the columns. Use ColumnInfo RPC object get the column
2071 title and horizontal alignment.
2072 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2073 LayoutListView creation with ColumnInfo RPC object.
2074 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2075 a ColumnInfo object for every LayoutList columnn. Convert the
2076 FieldFormatting.HorizontalAlignment to the correct
2077 ColumnnInfo.HorizontatlAlignment with the new
2078 getColumnInfoHorizontalAlignment helper method.
2079 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2080 to encapsulate column information like alignment and title. This
2081 could be used to set the colour instead of on a per cell field basis.
2082 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2083 column title storage and retrieval with ColumnInfo.
2085 2011-03-04 Ben Konrath <ben@bagu.org>
2087 Add support for column sorting.
2089 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2090 AsynDataProvider to be an anonymous inner class. Use new
2091 getSortedTableData RPC method when column sort is requested. Set all
2092 columns sortable and add an AsyncHandler to activate sorting in the
2094 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2095 method getSortedTableData(). Cleanup other method signatures.
2096 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2097 new method getSortedTableData(). Cleanup other method signatures.
2098 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2099 Implement getSortedTableData() and getTableData() methods by using a
2100 private helper method with the appropriate parameters filled in. Use
2101 user supplied sort clause when supplied, otherwise fall back to
2102 sorting by the primary key. Move destroy() method to be underneath
2103 constructor for readability. Cleanup comments.
2105 2011-03-03 Ben Konrath <ben@bagu.org>
2107 Add support for colour text and colour backgrounds to the layout list cells.
2109 Only the cell backgrounds are coloured which leaves a gap between the
2110 cells that isn't coloured. I need to figure out a way to set
2111 'style=background-colour:' on the whole column rather than just the
2114 * TODO: Add a note about colouring the background of the whole column.
2115 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2116 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2117 render the coloured text and backgrounds. Use GlomField[] for the row type.
2118 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2120 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2121 GlomField[] for the row type.
2122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2123 GlomField[] for the row type. Set the text, text colour and background
2124 colour in the GlomField objects as specified in the glom document. Add
2125 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2126 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2127 the glom field text, foreground colour and background colour.
2129 2011-03-02 Ben Konrath <ben@bagu.org>
2131 Don't display hidden tables in the combo box.
2133 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2135 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2136 code to ignore hidden tables using ArrayLists for the table names and
2138 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2139 tableNames to use ArrayLists instead of String[]. Update getter and setter
2142 2011-03-01 Ben Konrath <ben@bagu.org>
2144 Add support for Date and Time number types.
2146 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2147 Implement formatting for Date and Time values. Change the default glom
2148 file to small business example.
2150 2011-03-01 Ben Konrath <ben@bagu.org>
2152 Add support for formatting glom types as specified in the glom file.
2154 Formatting isn't finished yet - I still need to add support for Date
2157 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2158 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2159 checks for null values in JDBC cleanup code and catch all exceptions
2160 instead of just SQLExceptions.
2161 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2164 2011-03-01 Ben Konrath <ben@bagu.org>
2166 Use GWT 2.2.0 instead of 2.1.1.
2168 * pom.xml: Change GWT version numbers.
2170 2011-03-01 Ben Konrath <ben@bagu.org>
2172 A few small code cleanups.
2174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2176 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2177 unnecessary object creation in constructor.
2178 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2179 unnecessary object creation in constructor.
2181 2011-02-28 Ben Konrath <ben@bagu.org>
2183 Add file for TODO list.
2187 2011-02-18 Ben Konrath <ben@bagu.org>
2189 Enable the CellTable Pager when more than 20 rows need to be viewed.
2191 The Pager will automatically become active when the results are larger
2192 than the CellTable size which is currently set to 20 lines.
2194 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2195 name on debug statment in RPC call in LayoutListDataProvider, add
2196 numRows parameter to LayoutListView constructor, propperly set rowCount
2198 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2199 name on debug statment in RPC call, use LayoutListTable object in RPC
2200 calls, pass rowCount to LayoutListView.
2201 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2202 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2204 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2205 interface for changes in OnlineGlomService.
2206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2207 getLayoutListHeaders() to getLayoutListTable() and return
2208 LayoutListTable. Using this object allows me to pass other information
2209 about the LayoutList like the expected number of rows in the result set.
2210 The Connection object from the connection pool is now propperly closed.
2211 Only the requested number of lines are returned to the client in
2213 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2214 GlomTable and add columnTitles and numRows.
2216 2011-02-18 Ben Konrath <ben@bagu.org>
2218 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2220 This is a small performance boost. I'll use GlomTable to get the required
2221 layoutlist information.
2223 * src/main/java/org/glom/web/client/OnlineGlom.java:
2224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2225 * src/main/java/org/glom/web/shared/GlomDocument.java:
2227 2011-02-18 Ben Konrath <ben@bagu.org>
2229 Add option to turn off formatting in JDT formatter preferences.
2231 * .settings/org.eclipse.jdt.core.prefs:
2233 2011-02-18 Ben Konrath <ben@bagu.org>
2235 Rename LayoutList to LayoutListView.
2237 I'm working towards setting things up to easily use MVP when the time
2240 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2242 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2245 2011-02-17 Ben Konrath <ben@bagu.org>
2247 Move LayoutListDataProvider class into LayoutList.java.
2249 * src/main/java/org/glom/web/client/LayoutList.java:
2251 2011-02-17 Ben Konrath <ben@bagu.org>
2253 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2255 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2257 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2258 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2259 from LibGlomServer.java.
2260 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2261 Rename from LibGlomServiceAsync.java.
2262 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2263 Rename from LibGlomServiceImpl.java.
2264 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2266 2011-02-17 Ben Konrath <ben@bagu.org>
2268 Update JDT settings.
2270 * .settings/org.eclipse.jdt.core.prefs:
2272 2011-02-17 Ben Konrath <ben@bagu.org>
2274 Move GWT-RPC objects to shared package (where they should be).
2276 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2277 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2278 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2279 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2280 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2281 org.glom.web.shared package.
2282 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2283 org.glom.web.shared package.
2284 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2285 directory in compilation to javascript.
2287 2011-02-16 Ben Konrath <ben@bagu.org>
2289 Add sort clause to the sql query that grabs table information.
2291 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2292 if one of the columns is a primary key.
2294 2011-02-16 Ben Konrath <ben@bagu.org>
2296 Disable generateAsync feature of gwt-maven.
2298 The generated interface does not correctly match the methods in LibGlomService
2299 and the generated singleton Util inner-class doesn't respect the servlet
2302 * pom.xml: Turn off generateAsync feature.
2303 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2304 with singleton Util inner-class.
2306 2011-02-14 Ben Konrath <ben@bagu.org>
2308 Add LGPL v3 licence notices.
2310 Followed directions listed here:
2311 http://www.gnu.org/licenses/gpl-howto.html
2313 * COPYING: This file is a copy of the GPL v3.
2314 * COPYING.LESSER: This file is a copy of the LGPL v3.
2315 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2317 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2319 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2321 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2323 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2325 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2327 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2330 2011-02-14 Ben Konrath <ben@bagu.org>
2332 Use ArrayList instead of Array in GWT-RPC calls.
2334 Apparently this gives a slight performance boost to the compiled
2337 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2339 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2342 2011-02-14 Ben Konrath <ben@bagu.org>
2344 Access data from a postgres db rather than the example glom file.
2346 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2347 compile down to obfuscated javascript.
2348 * pom.xml: Add c3p0 and postgres JDBC libraries.
2349 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2350 using a postgres db accessed through the c3p0 connection pooling library.
2352 2011-02-14 Ben Konrath <ben@bagu.org>
2354 Update Java formatter settings.
2356 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2358 2011-02-02 Ben Konrath <ben@bagu.org>
2360 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2362 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2364 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2365 the compiled webapp directory that Eclipse uses as we're using Maven now.
2366 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2367 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2369 * pom.xml: Format file, change target Java version to 1.6.
2371 2011-02-02 Ben Konrath <ben@bagu.org>
2373 Add information about a deployment related issue.
2375 * README: Add Notes section with the problem outlined.
2377 2011-02-02 Ben Konrath <ben@bagu.org>
2379 Call Glom.libglom_deinit() when the servlet is shutdown.
2381 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2382 Glom.libglom_deinit() to destroy() method.
2384 2011-01-28 Ben Konrath <ben@bagu.org>
2386 Use generated Util class to get the RPC Async interface.
2388 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2390 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2391 getInstance() method to get a reference to the RPC Async interface.
2392 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2393 getInstance() method to get a reference to the RPC Async interface, remove
2394 the now unused getLibGlomServiceProxy() method.
2396 2011-01-27 Ben Konrath <ben@bagu.org>
2398 Cleanup ChangeLog entry from previous commit.
2400 * ChangeLog: Group logical changes together and add comments.
2402 2011-01-25 Ben Konrath <ben@bagu.org>
2404 Convert to gwt-maven project.
2406 * .gitignore: Update for new project structure.
2407 * README: New file with a link to the online documentation.
2408 * pom.xml: The generated maven configuration file with some tweaks.
2410 Add / update Eclipse settings. These files are a merge of the files that
2411 were generated with the gwt-maven plugin and the files we were previously
2415 * .settings/.jsdtscope:
2416 * .settings/com.google.gdt.eclipse.core.prefs:
2417 * .settings/com.google.gwt.eclipse.core.prefs:
2418 * .settings/org.eclipse.jdt.core.prefs:
2419 * .settings/org.eclipse.wst.common.component:
2420 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2421 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2422 * .settings/org.maven.ide.eclipse.prefs:
2423 * OnlineGlomTest-dev.launch:
2424 * OnlineGlomTest-prod.launch:
2426 Java source files moved from the 'src' directory to the directory structure
2428 * src/main/java/org/glom/web/client/GlomDocument.java:
2429 * src/main/java/org/glom/web/client/GlomTable.java:
2430 * src/main/java/org/glom/web/client/LayoutList.java:
2431 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2432 * src/main/java/org/glom/web/client/LibGlomService.java:
2433 * src/main/java/org/glom/web/client/OnlineGlom.java:
2434 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2436 Non-functional property file used for translations. I included this as
2437 reminder that it's something I need to sort out.
2438 * src/main/resources/org/glom/web/client/Messages.properties:
2440 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2441 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2443 The servlet configuration files moved from the 'war' directory.
2444 * src/main/webapp/OnlineGlom.css:
2445 * src/main/webapp/OnlineGlom.html:
2446 * src/main/webapp/WEB-INF/web.xml:
2448 Generated test files with most of the code commented out. I included these
2449 so that it's easy to add tests when we're ready for them.
2450 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2451 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2453 2011-01-25 Ben Konrath <ben@bagu.org>
2455 Remove unused println.
2457 * src/org/glom/web/server/LibGlomServiceImpl.java:
2459 2011-01-25 Ben Konrath <ben@bagu.org>
2461 Add project specific JDT settings.
2463 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2464 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2466 2011-01-25 Ben Konrath <ben@bagu.org>
2468 Populate celltable with example data.
2470 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2471 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2472 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2473 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2474 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2475 asynchronously gets the example data.
2476 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2477 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2478 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2479 curently selected table to be retrieved by other widgets.
2480 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2481 implement getTableData() in a hacky way. This method needs to be updated
2482 to grab information from the database when database creating is
2485 2011-01-20 Ben Konrath <ben@bagu.org>
2487 Set table headers when table dropBox changes.
2489 * src/org/glom/web/client/GlomDocument.java: Correct some method
2491 * src/org/glom/web/client/LibGlomService.java: Add method
2492 to get list layout field names.
2493 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2494 to get list layout field names.
2495 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2496 widget for list layout table.
2497 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2498 the table drop box and add new updateTable() method to asynchronously
2499 get the layout list field names for the currently selected table.
2500 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2501 implementation of getLayoutListHeaders() method.
2502 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2504 2011-01-18 Ben Konrath <ben@bagu.org>
2506 Make a listBox with table titles instead of the flexTable demo.
2508 This is the start of something more useful.
2510 * .classpath: Exclude a bunch of packages from the JVM that are
2511 getting in the way of the Eclipse content assist.
2512 * src/org/glom/web/client/GlomDocument.java:
2513 * src/org/glom/web/client/GlomTable.java:
2514 * src/org/glom/web/client/LibGlomService.java:
2515 * src/org/glom/web/client/LibGlomServiceAsync.java:
2516 * src/org/glom/web/client/OnlineGlom.java:
2517 * src/org/glom/web/server/LibGlomServiceImpl.java:
2518 * war/OnlineGlom.html:
2519 * war/WEB-INF/web.xml:
2521 211-01-13 Ben Konrath <ben@bagu.org>
2523 Update to new java-libglom API.
2525 * .gitignore: Ignore OnlineGlom.war.
2526 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2528 2010-12-20 Ben Konrath <ben@bagu.org>
2530 Add some basic style to the table listing.
2532 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2533 header, print useful error message on async callback failure.
2534 * war/OnlineGlom.css: Add style for table header, remove defaults
2535 provided by the Eclipse project wizard.
2537 2010-12-20 Ben Konrath <ben@bagu.org>
2539 Load example file from installed glom dir.
2541 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2542 provided by java-libglom to find the example file.
2544 2010-12-20 Ben Konrath <ben@bagu.org>
2546 Update Eclipse settings.
2549 * .settings/com.google.gdt.eclipse.core.prefs:
2550 * .settings/com.google.gwt.eclipse.core.prefs:
2552 2010-12-17 Ben Konrath <ben@bagu.org>
2556 * .classpath: New file.
2557 * .gitignore: New file.
2558 * .project: New file.
2559 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2560 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2561 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2562 * src/org/glom/web/client/GlomTable.java: New file.
2563 * src/org/glom/web/client/OnlineGlom.java: New file.
2564 * src/org/glom/web/client/TableNameService.java: New file.
2565 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2566 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2567 * war/OnlineGlom.css: New file.
2568 * war/OnlineGlom.html: New file.
2569 * war/WEB-INF/web.xml: New file.
2570 * war/images/glom.png: New file.