1 2011-10-11 Ben Konrath <ben@bagu.org>
3 Remove GWT styling from open button in details view.
5 There are still some issues with how the details cell is arranged but
6 this should be made to match Glom 1.20. I'm going to leave fixing this
7 until I have Glom 1.20 up and running.
9 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
10 style name on open button.
11 * src/main/webapp/style.css: Move and edit details-navigation class.
12 Re-arrange some classes to make them appear in the same order as the
15 2011-10-07 Ben Konrath <ben@bagu.org>
19 * .gitignore: Ignore new cache directory.
20 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
21 * pom.xml: Change GWT and maven plugin to 2.4.0.
22 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
24 * src/main/java/org/glom/web/client/ClientFactory.java:
25 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
26 * src/main/java/org/glom/web/client/OnlineGlom.java:
27 Update source for API changes.
28 * utils/build-onlineglom-war.sh: Remove cache directory before the
31 2011-10-07 Ben Konrath <ben@bagu.org>
33 Add navigation buttons in the details view.
35 This isn't finished but I thought I'd commit what I have as it's a
36 pretty good start. I still need to:
38 1. Change the style so that it fits better into the current theme
39 2. Adjust the details cell to expand as much as possible.
41 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
42 click handlers to navigation buttons in the DetailsCells. Create a
43 refreshData() method to get just the data from the server without the
45 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
46 Update the tableSelector and browser title when the table name
47 changes without using the tableSelector.
48 * src/main/java/org/glom/web/client/ui/DetailsView.java:
49 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
50 getDetailsCells() to getCells(). Update variable names.
51 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
52 method to set click handler on navigation button. Rename a few
53 variables. Add navigation buttons where needed.
54 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
55 variables and methods.
56 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
57 navigation boolean and navigation table as required in the
59 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
60 variables for navigation along with getter/setter methods.
62 2011-10-07 Ben Konrath <ben@bagu.org>
64 Rename Field to DetailsCell.
66 This is a refactor-only commit. No functionality has been added or
69 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
70 Update variable and method names.
71 * src/main/java/org/glom/web/client/ui/DetailsView.java:
72 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
73 variable and method names.
74 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
76 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
77 variable and method names.
79 2011-10-07 Ben Konrath <ben@bagu.org>
81 Create separate methods for layout and data the details view.
83 This is a refactor-only commit. No functionality has been added or
86 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
87 private methods: setData(), createLayout().
89 2011-10-07 Ben Konrath <ben@bagu.org>
91 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
93 This is part of a change to get navigation buttons in the details view
94 but it should have been done this way from the start.
96 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
97 for method name change in TableSelectionView.
98 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
99 Create TableChangeEvent and set the browser title using the
100 TableSelectionView API.
101 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
102 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
103 Change getSelectedTable() to getSelectedTableName(). Add
104 getSelectedTableTitle().
106 2011-10-07 Ben Konrath <ben@bagu.org>
108 Use primaryKeyValue naming convention in constructor of DetailsPlace.
110 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
112 2011-10-07 Ben Konrath <ben@bagu.org>
114 Update TableChangeEvent to use newTableName naming convention.
116 This makes the class more consistent with GWT naming conventions.
118 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
119 Update for method name change in TableChangeEvent.
120 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
121 for method name change in TableChangeEvent.
122 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
123 newTableName variable and getter method. Make toDebugString()
126 2011-09-30 Ben Konrath <ben@bagu.org>
128 Disable the pager in the list tables when the data row count is less than the minimum.
130 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
131 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
133 2011-09-30 Ben Konrath <ben@bagu.org>
135 Add empty rows to the end of related list and list view tables.
137 I also extracted the cell rendering classes from the ListTable because
138 the code was becoming a little crazy with all the anonymous inner
139 classes. My plan is to use these cell rendering classes in the details
140 view as well so this refactor will be needed for that change.
142 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
143 set the row count in related list tables if the data has more rows
144 than the minimum number of rows visible.
145 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
146 row count in list view tables if the data has more rows than the
147 minimum number of rows visible.
148 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
149 for rendering TYPE_BOOLEAN cells. The code was extracted from the
151 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
152 for rendering TYPE_NUMERIC cells. The code was extracted from the
154 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
155 class for rendering cells with buttons in list views. The code was
156 extracted from the ListTable class.
157 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
158 for rendering TYPE_TEXT cells. The code was extracted from the
160 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
161 Add empty rows to the end of the data if required. Implement
162 ListTable.getMinNumVisibleRows().
163 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
164 cell renderer code to public classes. Return null in
165 Column.getValue() for empty rows. Add new abstract method:
166 getMinNumVisibleRows(). Move code to set the row count of the list view
167 table to ListViewImpl.
168 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
169 empty rows to the end of the data if required. Implement
170 ListTable.getMinNumVisibleRows().
173 2011-09-27 Ben Konrath <ben@bagu.org>
175 Use GWT.log for client-side debugging statements.
177 These are optimized out when deployed so I should have used this method
178 in the first place. These statements will eventually be replaced with some sort
179 of notification in the browser.
181 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
182 * src/main/java/org/glom/web/client/activity/ListActivity.java:
183 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
184 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
185 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
187 2011-09-27 Ben Konrath <ben@bagu.org>
189 Put tableselector on the right, back to list link on right.
191 The idea is that the table selector is acting like a label for the
192 currently displayed table so it should be placed below the document title. This
193 puts the table title in a similar position to where it is in Glom.
195 * mockups/details-contacts.html:
196 * mockups/details-projects.html:
197 * mockups/listview-contacts.html:
198 * mockups/listview-projects.html:
200 Update mockups to match how the interfaces currently look.
201 * src/main/webapp/style.css: Swap positions of backlink with the table
202 selector. Add some space on the left side of the table selector to
203 line things up with the document title.
205 2011-09-27 Ben Konrath <ben@bagu.org>
207 Add field colouring to details view.
209 This change re-works how field colouring works. The colour formatting
210 information is now set to the client with the layout information instead of
211 with the data. This eliminates the need to send the same colour strings for
212 data in list view column when colour information is set.
214 In order to set an alternate colour for negative numeric values, the
215 number is now sent to client and formatted with the GWT NumberFormat class.
217 This change also fixes:
219 https://bugzilla.gnome.org/show_bug.cgi?id=659752
221 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
222 internationalization framework which is needed for client side numeric
224 * src/main/java/org/glom/web/client/Utils.java: New file for some
225 client static utility methods.
226 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
227 the DataItem object to the Field class. Use a utility method to
228 create the foreignKeyValue string.
229 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
230 alignment and text colours in the constructor. Add setData(DataItem)
231 method. Remove setText(String) method.
232 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
233 colour information to GlomTextCell. Create and use GlomNumberCell for
234 rendering numbers. Use utility method to get the string for the
235 primary key of the key provider. Re-work how the horizontal alignment
237 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
238 formatting to layout information. Methods for converting the libglom
239 formatting information were moved from DBAccess.
240 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
241 numeric formatting (it's now done on the client side). Don't set text
242 colours in DataItem. Move libglom formatting conversion methods to
244 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
245 getters/setters for text colour information.
246 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
247 for transferring the libglom NumericFormat information to the client.
248 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
249 and getters/setters for: GlomNumericFormat, background colour and
250 foreground colour strings.
252 2011-09-26 Ben Konrath <ben@bagu.org>
254 Simplify code that iterates through the LayoutGroup.
256 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
258 2011-09-26 Ben Konrath <ben@bagu.org>
260 Accept Eclipse formatting for OnlineGlomServiceAsync.
262 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
264 2011-09-26 Ben Konrath <ben@bagu.org>
266 Don't use the ListDBAccess classes to get the primary key layout information.
268 This was causing a bug where the wrong index for the hidden primary key
269 was being sent to the client.
271 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
272 primary key while creating the LayoutGroup DTO. Create a
273 LayoutItemField DTO for hidden primary keys. Don't use the
274 RelatedListDBAccess because it was only used for getting the primary
276 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
277 access modifier from public to protected for getPrimaryKeyField() and
278 getPrimaryKeyLayoutItemField().
279 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
280 abstract method getExpectedResultSize() because RelatedListDBAccess
281 doesn't have enough info to implement it.
282 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
283 Remove @Override for getExpectedResultSize().
284 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
285 Remove method getExpectedResultSize().
287 2011-09-23 Ben Konrath <ben@bagu.org>
289 Log which layout (list or details) the ignored item is from.
291 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
293 2011-09-23 Ben Konrath <ben@bagu.org>
295 Remove annotations that turn off code formatting in DataItem.
297 * src/main/java/org/glom/web/shared/DataItem.java:
299 2011-09-23 Ben Konrath <ben@bagu.org>
301 Rename GlomField to DataItem and update associated methods.
303 This is a rename-only refactor. No functionality has been added or
306 * src/main/java/org/glom/web/client/OnlineGlomService.java:
307 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
308 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
309 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
310 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
311 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
312 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
313 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
314 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
315 * src/main/java/org/glom/web/server/database/DBAccess.java:
316 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
317 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
318 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
319 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
320 * src/main/java/org/glom/web/shared/DataItem.java:
321 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
322 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
324 2011-09-23 Ben Konrath <ben@bagu.org>
326 Rename GlomDocument to DocumentInfo and update associated methods.
328 This is a rename-only refactor. No functionality has been added or
331 * src/main/java/org/glom/web/client/OnlineGlomService.java:
332 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
333 * src/main/java/org/glom/web/client/activity/ListActivity.java:
334 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
335 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
336 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
337 * src/main/java/org/glom/web/shared/DocumentInfo.java:
339 2011-09-20 Ben Konrath <ben@bagu.org>
341 Require java-libglom 1.17.3.
343 This picks up the fix for the seg fault problem with the Scenes table
344 in the Openismus Film Manager example.
348 2011-09-20 Ben Konrath <ben@bagu.org>
350 Change the way sort clause is added for primary key when no sort clause is requested.
352 The primary key is now added to the LayoutFieldVector (fieldsToGet)
353 before the sort clause is created. When a sort clause is not requested, the
354 sort clause is created by finding the primary key in the LayoutFieldVector
357 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
359 2011-09-20 Ben Konrath <ben@bagu.org>
361 Log error message if no documents are found in the configured directory.
363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
364 Extract the glom file extension string to a private static final class
365 variable (mostly as syntactic sugar). Accept a minor formatting change.
366 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
367 the example glom.document.directory configuration property to make it
368 more clear that it can any directory, not just the home directory.
370 2011-09-18 Ben Konrath <ben@bagu.org>
372 Add related lists to details view.
374 The related list table has support for paging and sorting just like the
375 table in the list view.
377 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
378 SQL queries for the related list tables.
379 * src/main/java/org/glom/web/client/OnlineGlomService.java:
380 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
381 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
382 Rename getList methods to getListView and add comments. Remove
383 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
384 it being unused. Add methods: getDetailsLayoutAndData(),
385 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
386 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
387 Create the layout and set the data for the fields in one async call
388 instead of two. Create related lists where appropriate.
389 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
390 for method name changes in OnlineGlomService.
391 * src/main/java/org/glom/web/client/ui/DetailsView.java:
392 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
393 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
395 * src/main/java/org/glom/web/client/ui/ListView.java:
396 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
397 tableName from setCellTable(). Create a ListViewTable instead of
399 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
400 represent a data field in the details view.
401 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
402 from addDetailsCell() to Field class. Keep track of the Fields and
403 Portals in the details view.
404 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
405 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
406 and add a method to get it. Add method to set the contents of the
408 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
409 New class for related list tables. This class has the data provider
410 for the related list table.
411 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
412 abstract class which is the base class for the ListViewTable and the
414 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
415 New class for list view tables. This class has the data provider for
417 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
418 methods for related list tables. Add more information to the
419 LayoutItemField and LayoutItemPortal DTOs.
420 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
421 Remove debugging print statement.
422 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
423 Remove debugging print statements. Add primary key field to SQL count
425 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
426 Remove unnecessary LayoutFieldVector parameter from
427 getResultSizeOfSQLQuery() method.
428 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
429 New class for related list table database access.
430 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
431 class that is a wrapper DTO for details view layout and data.
432 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
433 new 'fromField' string to this DTO.
434 * src/main/webapp/style.css: Remove bottom margin and override top
437 2011-09-15 Ben Konrath <ben@bagu.org>
439 Breakup the OnlineGlomServiceImpl class to make it more manageable.
441 This sets things up to make it easier to add the data retrieval for
442 related lists (portals). No user noticeable changes were made with
445 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
446 class has the code to retrieve the layouts and access the
447 database using the new database helper classes.
448 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
449 Most of the functionality has been removed from this class. This
450 class now represents the public interface for the client side
451 code. It also deals with configuring the servlet and cleaning
452 things up when the servlet is stopped.
453 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
454 of static methods into this utility class.
455 * src/main/java/org/glom/web/server/database/DBAccess.java:
456 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
457 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
458 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
459 These classes have the database retrieval code. The class hierarchy
460 has been setup to make it easy to reuse code for similar
463 2011-09-06 Ben Konrath <ben@bagu.org>
465 Create separate classes for list table code and the data provider.
467 As part of this refactor, I also split up the code a bit to make it
470 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
471 table code to two new classes (below).
472 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
473 with code from ListViewImpl.
474 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
475 New file with code from ListViewImpl.
477 2011-09-06 Ben Konrath <ben@bagu.org>
479 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
481 This fixes the LayoutItemPortal DTO to match the libglom layout object
484 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
486 2011-09-01 Ben Konrath <ben@bagu.org>
488 Set title of Portals in the Details View.
490 * pom.xml: Bump required version of java-libglom to 1.17.1.
491 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
492 widget creation to its own class. Add comments to constructor.
493 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
494 The code is mostly from the Group class with the title now set.
495 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
496 title of Portal. Update some comments. Fix some code formatting.
498 2011-09-01 Ben Konrath <ben@bagu.org>
500 Remove TODO comment for the flow table column width.
502 The flow table column width is working correctly and doesn't need to be
503 changed. See this mailing list post for more info:
505 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
507 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
509 2011-08-27 Ben Konrath <ben@bagu.org>
511 Add document title (database name) to top of the browser page.
513 I added the document title to the TableSelecitonView but that will
514 change if / when we add a view that doesn't require table selection.
516 * mockups/details-contacts.html:
517 * mockups/details-projects.html:
518 * mockups/listview-contacts.html:
519 * mockups/listview-projects.html:
520 * mockups/style.css: Add document title to mockups to keep things
522 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
523 sizes to account for the document title.
524 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
525 Set the document title when it has been retrieved from the server.
526 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
527 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
528 and implement setDocumentTitle(String) method.
529 * src/main/webapp/style.css: Add ID for document title style.
531 2011-08-25 Ben Konrath <ben@bagu.org>
533 Add NavigationType enum to LayoutItemPortal DTO.
535 This is the start of adding support for Portals to the Details View.
537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
538 LayoutItem_Portal.navigation_type enum from libglom to
539 LayoutItemPortal.NavigationType enum.
540 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
541 NavigationType enum, field for storing the NavigationType and getter
544 2011-08-25 Ben Konrath <ben@bagu.org>
546 Implement the flow table layout in the Details View.
548 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
549 FlowTable to Group to account for the renamed class.
550 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
551 File. This is a container widget that implements the Glom details view
552 flow table behaviour.
553 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
554 org/glom/web/client/ui/FlowTable.java.
555 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
556 so that the size of the subgroups are a closer match to the size of
557 the Glom subgroups. This makes the flowtable layout match the layout
558 in Glom for the Music Collection example file.
560 2011-08-16 Ben Konrath <ben@bagu.org>
562 Create container element for LayoutItemPortal in Details View.
564 This will help me develop the layout for the FlowTable.
566 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
567 fieldPanel variable to detailsCell.
569 2011-08-15 Ben Konrath <ben@bagu.org>
571 Set the height of the data element in the Details View.
573 I changed the InlineLabels (text in a span element) to Labels (text in
574 a div element) so that I could set the height of the details-data
575 elements instead of the details-cell parent elements. This allows the
576 the details-data element to display the correct height if style is
577 applied that shows the height.
579 This change has the added benefit of allowing the order of the labels
580 and data elements to be changed for right-to-left languages.
582 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
583 InlineLabels to Labels.
584 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
585 InlineLabels to Labels. Set the height of the data element.
586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
587 multiline text height in the Formatting DTO.
588 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
589 for multiline height along with getter and setter methods.
590 * src/main/webapp/style.css: Adjust style to account for the change
591 from span elements to div elements in the details cell.
593 2011-08-15 Ben Konrath <ben@bagu.org>
595 Make the List View appearance match the mockups.
597 It doesn't match exactly but it's much better than it was.
599 * mockups/listview-contacts.html: Remove unused css classes.
600 * mockups/listview-projects.html: Remove unused css classes.
601 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
602 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
603 for mainPanel instead of VerticalPanel (table). Set style name on
604 CellTable. Set style name on Details column. Right-align Details
606 * src/main/webapp/style.css: Adjust properties to match the mockups.
608 2011-08-12 Ben Konrath <ben@bagu.org>
610 Add better support for subgroups in the details view.
612 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
613 changed FlowTable constructor.
614 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
615 support for subgroups and subgroup-titles.
616 * src/main/webapp/style.css: Add CSS class for subgroups and
619 2011-08-12 Ben Konrath <ben@bagu.org>
621 Return the top level LayoutGroup title.
623 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
625 2011-08-11 Ben Konrath <ben@bagu.org>
627 Make the TableSelector header match the mockup.
629 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
630 the layout panel. Properly lineup the table selection header with
631 the list and details view.
632 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
633 margin around the details view.
634 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
635 Rename listBox variable to tableSelector. Set id for the style sheet.
636 Use a FlowPanel instead of a HorizontalPanel.
637 * src/main/webapp/style.css: Add properties to make the TableSelector
638 box match the mockups.
640 2011-07-13 Ben Konrath <ben@bagu.org>
642 Update install script for java-libglom version change.
644 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
647 2011-07-13 Ben Konrath <ben@bagu.org>
649 Add support sub-group in the details view.
651 I also removed the code that special-cased the default details view
654 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
656 I still have to make a proper flowtable.
658 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
659 Don't special-case default details view layout.
660 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
661 addLayoutField() as I'm going to use it.
662 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
663 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
665 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
666 extracted from DetailsViewImpl.GroupPanel. Add support for
668 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
669 column count when getting the details layout.
671 2011-07-12 Ben Konrath <ben@bagu.org>
673 Set browser title with database and table titles.
675 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
676 Set the browser title when the table changes and when the activity
678 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
679 title when retrieving document info (the GlomDocument object).
680 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
681 with getter and setter methods. Remove unused convenience constructor.
682 Use default code formatting.
684 2011-07-12 Ben Konrath <ben@bagu.org>
686 Ignore LayoutItemPortals in the details view.
688 I added a new DTO for the LayoutItemPortal so that I can ignore it in
691 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
692 LayoutItemPortal layout objects.
693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
694 LayoutItemPortal objects when retrieving the details layout.
695 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
696 file. This is an empty class and just used to get type information for
699 2011-07-12 Ben Konrath <ben@bagu.org>
701 Use java-libglom 1.17.0.
705 2011-07-11 Ben Konrath <ben@bagu.org>
707 Remove "Table:" label from table selector.
709 This matches a recent change in the Glom UI.
711 * mockups/details-contacts.html:
712 * mockups/details-projects.html:
713 * mockups/listview-contacts.html:
714 * mockups/listview-projects.html: Remove the "Table:" label from the
716 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
718 2011-07-11 Ben Konrath <ben@bagu.org>
720 Add main groups to the details view.
722 This makes things look a little nicer in the details view. The next step
723 is to implement the flowtable.
725 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
726 resources from the standard gwt css theme. Standard.css is now
727 included in OnlineGlom.html so that the online glom css rules have
728 precedence over the gwt theme.
729 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
730 the whole LayoutGroup to the DetailsView instead of just the titles.
731 * src/main/java/org/glom/web/client/ui/DetailsView.java:
732 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
733 details layout with a helper class (GroupPanel). I might extract this
734 class when I make the full flowtable.
735 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
736 string as default so I don't have to worry about NPEs when processing
738 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
739 note beside OnlineGlom.gwt.xml above).
740 * src/main/webapp/style.css: Add default font-size to body to override
741 the font-size set by the standard theme. Don't use h2 tags for
742 group-title. Create new details-cell class.
744 2011-07-08 Murray Cumming <murrayc@murrayc.com>
746 ConfiguredDocument: Set the port number too.
748 * src/main/java/org/glom/web/server/ConfiguredDocument.java
749 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
750 Glom document. Presumably this worked sometimes so far because there is a
753 2011-07-08 Murray Cumming <murrayc@murrayc.com>
755 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
757 * src/main/java/org/glom/web/server/ConfiguredDocument.java
758 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
759 correct, though we should throw an exception too.
761 2011-07-08 Murray Cumming <murrayc@murrayc.com>
763 Fix a addDocuemnt typo.
765 * src/main/java/org/glom/web/shared/Documents.java
766 (Documents.addDocuemnt): Rename to addDocument().
767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
768 (OnlineGlomServiceImpl.getDocuments): Adapt.
770 2011-07-08 Murray Cumming <murrayc@murrayc.com>
772 Slightly improved log output when connection fails.
774 * src/main/java/org/glom/web/server/ConfiguredDocument.java
775 (ConfiguredDocument.setUsernameAndPassword):
776 We don't know for sure if it' the username/password that's wrong, so
777 rephrase the message.
778 Also ouput the exception message, though it's generic in this case.
780 2011-07-08 Ben Konrath <ben@bagu.org>
784 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
785 added braces to a one line if statement because the Eclipse formatter
786 was getting confused.
788 2011-07-07 Ben Konrath <ben@bagu.org>
790 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
792 These should really be two separate tasks but I counldn't get things to
793 work with GWT 2.2.0 and Eclipse 3.7.
797 * .settings/org.eclipse.jdt.core.prefs:
798 * .settings/org.eclipse.jdt.ui.prefs:
799 * .settings/org.eclipse.ltk.core.refactoring.prefs:
800 * .settings/org.eclipse.m2e.core.prefs:
801 Add new config files. Update current files. Remove references to the
802 webtools plugins as we're not using any of the webtools features.
803 * .gitignore: Add logs directory which is created when running with
805 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
806 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
807 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
809 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
811 2011-07-07 Murray Cumming <murrayc@murrayc.com>
813 onlineglom.properties: Add explanatory comments.
815 * src/main/resources/onlineglom.properties: Also change the default user
816 from ben to someuser, to avoid the risk of people thinking we just
817 stupidly hard-coded a locale path, when they see that on stderr or in a log.
819 2011-06-28 Ben Konrath <ben@bagu.org>
821 Use filename in Log for incorrect passwords.
823 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
824 getFileName(String) method to get the filename from the URI.
826 2011-06-28 Ben Konrath <ben@bagu.org>
828 Add the table name to the URL token for the ListPlace.
830 This makes things consistent between the DetailsPlace and the
831 ListPlace. It also allows the the ListPlace to be bookmarked.
833 * src/main/java/org/glom/web/client/OnlineGlomService.java:
834 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
835 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
836 Remove getDefaultListLayout(). The default layout is now returned
837 by the getListLayout() method when the table name is an empty string.
838 * src/main/java/org/glom/web/client/activity/ListActivity.java:
839 Add table name field. Change to a new ListPlace when the table
840 has been changed. Use getListLayout() for getting the default
842 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
843 Add table name field. Set the correct table name in the list box
844 when loading from bookmark. This corrects a problem for the
846 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
847 Move table name to super-class (HasSelectableTable). Move document
848 and table URL keys to super-class in HasSelectableTable.
849 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
850 Add table name field. Add Tokenizer class with URL key common to
851 the subclasses (DetailsPlace and ListPlace).
852 * src/main/java/org/glom/web/client/place/ListPlace.java:
853 Add table name. Add code to parse the URL token.
854 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
855 Update ListPlace construction with empty table name string.
856 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
857 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
858 Change setTableSelectedIndex(int) to setSelectedTableName(String).
859 Update ListPlace construction with table name string.
860 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
861 Change defaultTableName field to tableName to reflect how it's now
862 used. Update the getter and setter methods.
864 2011-06-28 Ben Konrath <ben@bagu.org>
866 Enable the table selector in the DetailsView.
868 * src/main/java/org/glom/web/client/OnlineGlomService.java:
869 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
871 Remove getDefaultDetailsLayout(). The default layout is now returned
872 by the getDetailsLayout() method when the table name is an empty
874 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
875 event handler for table change event. Change to using
876 getDetailsLayout() for the default details layout.
877 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
879 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
880 when navigating to the details place.
882 2011-06-27 Ben Konrath <ben@bagu.org>
884 Use filename based unique document ID in URL and for RPC.
886 The document ID is the glom document name with spaces (' ') replaced
887 with pluses ('+') and without the .glom extension.
889 This change is mostly a string substitution of 'documentTitle' for
890 'documentID'. The only code change is the addition of a Documents DTO to get the
891 filename to document title mappings as indicated below.
893 * src/main/java/org/glom/web/client/OnlineGlomService.java:
894 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
895 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
896 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
897 Use Documents DTO to create the document links in the document
899 * src/main/java/org/glom/web/client/activity/ListActivity.java:
900 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
901 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
902 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
903 * src/main/java/org/glom/web/client/place/ListPlace.java:
904 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
905 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
906 * src/main/java/org/glom/web/client/ui/ListView.java:
907 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
908 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
909 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
910 * src/main/java/org/glom/web/server/Log.java:
911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
912 getDocumentTitles() to getDocuments() and return the Documents DTO.
913 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
914 transferring the filename to document title mappings.
916 2011-06-25 Ben Konrath <ben@bagu.org>
918 Make the authentication popup work again.
920 This bug was introduced when I extracted ConfiguredDocument to its own class.
922 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
923 correct success / fail status in setUsernameAndPassword().
925 2011-06-25 Ben Konrath <ben@bagu.org>
927 Use filename as unique key for configuring database usernames and passwords.
929 This replaces the use of the Glom document title which could change
930 depending on the locale. Thanks to Murray Cumming for pointing out this
933 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
934 * src/main/resources/onlineglom.properties:
936 2011-06-24 Ben Konrath <ben@bagu.org>
938 Pass primary key value to DetailsView.
940 This enables the DetailsView to load the correct data.
942 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
943 primary key value field and set in constructor. Pass primary key
944 value to getDetailsData().
945 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
946 variables for document title and primary key value.
947 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
948 key value to the DetailsPlace.
950 2011-06-24 Ben Konrath <ben@bagu.org>
952 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
954 This allows the primary key to be retrieved by the Details button. This
955 functionality has not been implemented yet but it's in the works.
957 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
958 the LayoutGroup result to ListView.setCellTable instead of all of its
960 * src/main/java/org/glom/web/client/ui/ListView.java:
961 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
962 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
963 get the primary key for the table.
964 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
965 index of the primary key in the LayoutGroup accounting for hidden
966 primary keys. Rename getJavaNumberFormat() to
967 convertToJavaNumberFormat() for consistency. Cleanup / add some
969 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
970 field for primary key index and a field to indicate whether the
971 primary key is hidden or not.
973 2011-06-23 Ben Konrath <ben@bagu.org>
975 Rename getTableData methods to getListData.
977 This is a rename refactor for consistency with other methods.
979 * src/main/java/org/glom/web/client/OnlineGlomService.java:
980 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
981 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
982 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
984 2011-06-23 Ben Konrath <ben@bagu.org>
986 Extract the ConfiguredDocument innerclass into its own class.
988 This makes the servlet code more object oriented.
990 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
991 from private ConfiguredDocument class in OnlineGlomServiceImpl.
992 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
993 new ConfiguredDocument class.
995 2011-06-21 Ben Konrath <ben@bagu.org>
997 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
999 This makes things more inline with how libglom works and reduces code
1000 duplication. This refactor lays the groundwork for adding the primary key to
1001 the LayoutGroup object.
1003 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1004 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1005 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1006 Change method names to getListLayout and getDefaultListLayout for
1007 consistency. Use LayoutGroup as the DTO for the list layout instead of
1008 ColumnInfo and LayoutListTable.
1009 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1010 new method names along with the LayoutGroup object for transferring the
1012 * src/main/java/org/glom/web/client/ui/ListView.java:
1013 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1014 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1015 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1017 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1018 Replaced with LayoutGroup.
1019 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1020 expectedResultSize and defaultTableName fields which are needed for
1022 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1023 type field which is needed for the list layout but will also be
1024 useful for the details layout as things progress.
1025 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1026 Make class abstract. Remove the unnecessary
1027 getFormattingHorizontalAlignment method. Add setFormatting method.
1029 2011-06-16 Ben Konrath <ben@bagu.org>
1031 Add scripts for building and installing war.
1033 These will help when updating OnlineGlom but they're also good
1034 supplemental documentation of the build and deployment proceeding.
1036 * utils/build-onlineglom-war.sh: New file.
1037 * utils/install-onlineglom-war.sh: New file.
1039 2011-06-16 Ben Konrath <ben@bagu.org>
1041 Create wrapper class to create consistent log messages.
1043 I wrapped methods in the Log class of gwt-log to add the method names
1044 from the servlet and create consistent formatting of the document title
1045 and table names in the log messages.
1047 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1048 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1049 log methods to use methods from wrapped Log class.
1051 2011-06-16 Ben Konrath <ben@bagu.org>
1053 Remove superfluous conditional return.
1055 Thanks to Murray Cumming for pointing this out!
1057 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1059 2011-06-15 Ben Konrath <ben@bagu.org>
1061 Return an ArrayList of LayoutGroups for the Details layout.
1063 This corrects a problem with the details layout as it can have more
1064 than one top level LayoutGroup.
1066 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1067 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1068 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1069 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1070 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1071 with ArrayList of LayoutGroups for the details view layout.
1072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1073 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1074 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1075 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1076 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1077 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1079 2011-06-14 Ben Konrath <ben@bagu.org>
1081 Use cast_dynamic method to determine the libglom LayoutItem type.
1083 This is better than finding the LayoutItem type by using the string
1084 returned from the get_part_type_name() method.
1086 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1088 2011-06-14 Ben Konrath <ben@bagu.org>
1090 Add method names to log entries in the servlet.
1092 This helps when tracking down deployment problems.
1094 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1096 2011-06-14 Ben Konrath <ben@bagu.org>
1098 Add data to the DetailsView using a hard-coded primary key value.
1100 The layout and functionality of the DetailsView is not complete. This
1101 is just a checkpoint so the patch doesn't get too big.
1103 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1104 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1105 Add getDetailsData() servlet method.
1106 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1107 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1108 LayoutFields are added to the DetailsView.
1109 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1110 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1111 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1112 take the string for the title instead of the object.
1113 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1114 Add implementation getDetailsData() along with some private helper
1116 * src/main/webapp/style.css: Add padding to details-data class. Add a
1117 details-label class with the same padding as the details-data class.
1119 2011-06-03 Ben Konrath <ben@bagu.org>
1121 Use presenter.goTo() to change to the DetailsPlace.
1123 This will make things easier when we need to open the DetailsView with
1124 data specific to the row that was clicked.
1126 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1128 2011-06-02 Ben Konrath <ben@bagu.org>
1130 Add CSS file from mockups.
1132 I'm adding this now because it's going to be useful to have when
1133 developing the DetailsView. The TableSelectionView and ListView aren't
1136 * src/main/webapp/OnlineGlom.html:
1137 * src/main/webapp/style.css:
1139 2011-06-02 Ben Konrath <ben@bagu.org>
1141 Use String.isEmpty() to check for empty string.
1143 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1145 2011-06-02 Ben Konrath <ben@bagu.org>
1147 Display main layout group titles in the DetailsView.
1149 This is the start of the DetailsActivity/DetailsView implementation.
1151 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1152 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1153 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1154 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1155 Get the layout information for the details view from the server and set
1156 the main layout group titles.
1157 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1158 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1159 Add addLayoutGroup() and addLayoutField() methods. This are just
1160 temporary methods for creating the the details view that will change
1162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1163 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1165 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1166 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1167 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1168 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1169 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1170 Data Transfer Objects that mimic the libglom object structure. These are
1171 used for transferring the details layout but could also be used for
1172 transferring the list layout.
1174 2011-05-27 Ben Konrath <ben@bagu.org>
1176 Reset the AuthenticationPopup when clearing the ListView.
1178 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1180 2011-05-27 Ben Konrath <ben@bagu.org>
1182 Fix problem with onlineglom.properties file loading.
1184 The old way worked in Eclipse but not on the server. Loading the
1185 onlineglom.properties file now works in Eclipse and on the server.
1187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1189 2011-05-24 Ben Konrath <ben@bagu.org>
1191 Update gwt-log from 3.1.0 to 3.1.2.
1193 Gwt-log 3.1.0 has been marked as depreciated.
1197 2011-05-24 Ben Konrath <ben@bagu.org>
1199 Add comment to ListActivity.goTo() method.
1201 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1203 2011-05-24 Ben Konrath <ben@bagu.org>
1205 Remove FIXME in convertGdkColorToHtmlColour()
1207 The Gdk::Color value returned by libglom is 16-bits per channel on both
1208 64 and 32-bit platforms.
1210 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1212 2011-05-19 Ben Konrath <ben@bagu.org>
1214 Improve performance of initial ListView load.
1216 I removed a round trip to the server for getting the default table name
1217 and then requesting information about that table. This also removes a potential
1218 problem with the table change handler not being setup in time to receive the
1219 table change event from the ListActivity.
1221 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1222 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1223 getDefaultLayoutListTable() method. Improve comments.
1224 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1225 getDefaultLayoutListTable() method instead of firing a table change
1226 event to get the table to load.
1227 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1228 implementation of getDefaultLayoutListTable() method.
1229 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1232 2011-05-19 Ben Konrath <ben@bagu.org>
1234 Override toDebugString() in TableChangeEvent.
1236 This is useful to have for debugging.
1238 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1240 2011-05-19 Ben Konrath <ben@bagu.org>
1242 Add a "Back to List" link when at the DetailsPlace.
1244 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1245 Populate the CellTable based on the selected table of the ListBox if
1246 it's set otherwise use the default table. This allows the "Back to
1248 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1249 Remove Place from constructors. Add a setPlace() method. Add
1250 goToPlace() method. Set class as presenter for TableSelectionView.
1251 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1252 Use the same TableSelectionActivity when switching between the List and
1254 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1255 Subclass the new HasSelectableTablePlace. This removes some duplicate
1257 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1258 New class to represent Places that display the TableSelectionView.
1259 * src/main/java/org/glom/web/client/place/ListPlace.java:
1260 Subclass the new HasSelectableTablePlace. This removes some duplicate
1262 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1263 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1264 Add Presenter interface. Add setBackLinkVisible() method. Add
1265 setBackLink() method.
1267 2011-05-18 Ben Konrath <ben@bagu.org>
1269 Enable the "Details" buttons.
1271 Right now only an empty details view is displayed.
1273 * src/main/java/org/glom/web/client/ClientFactory.java:
1274 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1275 Add DetailsView to ClientFactory.
1276 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1277 A basic activity for the details view.
1278 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1279 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1281 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1282 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1284 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1285 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1286 unnecessary super() in constructor.
1287 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1288 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1289 really shouldn't create a new TableSelectionActivity for both the ListPlace
1290 and the DetailsPlace so this should be considered a temporary solution.
1291 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1292 New file. Represents a URL for the details view.
1293 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1294 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1295 A basic details view interface and implementation.
1296 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1297 Enable the "Details" buttons.
1299 2011-05-12 Ben Konrath <ben@bagu.org>
1301 Use a LayoutPanel with multiple display areas for main layout.
1303 This is mostly a refactor in that there are no changes from the user
1304 point of view. These changes are required so that we can swap out the list view
1305 with the details view when the user clicks the "Details" button.
1307 * src/main/java/org/glom/web/client/ClientFactory.java:
1308 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1309 OnlineGlomView. Add TableSelectionView, ListView and
1310 AuthenticationPopup.
1311 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1312 for main layout. Add display regions for main activities. Add
1313 activity manager for for main activities.
1314 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1315 file from parts of the deleted OnlineGlomActivity.
1316 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1317 New file from parts of the deleted OnlineGlomActivity.
1318 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1319 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1320 New files for app wide table change event.
1321 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1322 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1323 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1324 Activity mappers for the main activities replace the deleted app-wide
1326 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1327 Fix a spelling error in he comment.
1328 * src/main/java/org/glom/web/client/ui/ListView.java:
1329 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1330 Renamed from LayoutListView and modified for MVP. This still not a
1331 proper dumb view as prescribed by the MVP pattern but it works for now.
1332 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1333 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1334 New widget stripped out of the deleted OnlineGlomView.
1335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1336 Remove hack that is fixed by this patch.
1338 2011-05-06 Ben Konrath <ben@bagu.org>
1340 Rename OnlineGlomPlace to ListPlace.
1342 The only change besides the rename is that url will now display #list
1343 instead of #Document.
1345 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1346 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1347 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1348 * src/main/java/org/glom/web/client/place/ListPlace.java:
1349 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1351 2011-05-06 Ben Konrath <ben@bagu.org>
1353 Use Presenter for app navigation.
1355 This is the proper way to deal with Place (URL) changes with the MVP
1358 * src/main/java/org/glom/web/client/ClientFactory.java:
1359 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1360 PlaceHistoryMapper and PlaceHistoryHandler.
1361 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1362 PlaceHistoryMapper and PlaceHistoryHandler.
1363 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1364 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1365 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1366 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1367 Add Presenter interface and setPresenter methods. Rename addHyperLink
1368 to addDocumentLink taking only the document title as a parameter.
1370 2011-04-14 Ben Konrath <ben@bagu.org>
1372 Prompt for db username/password if they haven't been set.
1374 This is implemented with a popup widget that is contained within the
1375 OnlineGlomView and managed by the OnlineGlomActivity.
1377 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1378 methods for checking and setting the database username and password.
1379 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1380 new methods for checking and setting the database username and
1382 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1383 Display authentication popup if the JDBC connection to the database
1384 has not been authenticated.
1385 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1387 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1388 for dealing with the authentication popup.
1389 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1390 Implement the methods for dealing with the authentication popup.
1391 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1392 try to executed queries if the database connection hasn't been
1393 authenticated. Implement methods for checking and setting the
1394 database username and password.
1396 2011-04-12 Ben Konrath <ben@bagu.org>
1398 Make log messages a little clearer.
1400 Add a dash betweeen the document title and the table name.
1402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1404 2011-04-12 Ben Konrath <ben@bagu.org>
1406 Protect against NPEs when cleaning up database resources.
1408 While this isn't strictly necessary because the exception is caught,
1409 not protecting against the NPEs makes it harder to find the real error
1412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1414 2011-04-12 Ben Konrath <ben@bagu.org>
1416 Move configuration of the servlet to the constructor.
1418 The servlet will be initialized even if the database authentication
1419 information is not set or correct. I still need to add the UI for prompting
1420 the user for the authentication information when it's required.
1422 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1423 javadocs for getDocumentTitles() method.
1424 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1425 Set error message when RPC fails.
1426 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1427 glom files directory from the configuration file. Try to set the
1428 database authentication information for the specific document if it's
1429 set and works otherwise try to use the global authentication
1430 information set for the directory.
1431 * src/main/resources/onlineglom.properties: Moved from
1432 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1433 Added detailed comments for the new keys.
1435 2011-04-11 Ben Konrath <ben@bagu.org>
1437 Remove unnecessary @Override in DocumentSelectionViewImpl.
1439 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1441 2011-04-11 Ben Konrath <ben@bagu.org>
1443 Remove center alignment in DocumentSelectionView.
1445 The title element is still centred but the document titles and bottom
1446 sentence are both left-aligned.
1448 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1450 2011-04-11 Ben Konrath <ben@bagu.org>
1452 Change 'Demo' naming convention to 'Document'.
1454 This is just a rename refactor with no functional changes to the code.
1456 * src/main/java/org/glom/web/client/ClientFactory.java:
1457 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1458 * src/main/java/org/glom/web/client/OnlineGlom.java:
1459 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1460 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1461 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1462 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1463 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1464 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1465 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1466 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1467 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1468 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1470 2011-04-08 Ben Konrath <ben@bagu.org>
1472 Remove FIXME from safeLongToInt() method.
1474 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1477 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1479 2011-04-08 Ben Konrath <ben@bagu.org>
1481 Display an error if no glom documents are found in the specified directory.
1483 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1484 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1485 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1488 2011-04-08 Ben Konrath <ben@bagu.org>
1490 Add copyright header to one more file ... oops.
1492 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1494 2011-04-08 Ben Konrath <ben@bagu.org>
1496 Add copyright header to files without it.
1498 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1499 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1500 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1501 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1502 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1503 * src/main/java/org/glom/web/shared/GlomField.java:
1505 2011-04-08 Ben Konrath <ben@bagu.org>
1507 Add support for accessing multiple glom documents in the servlet.
1509 This completes the demo selection functionality.
1511 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1512 document title to methods.
1513 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1514 document title to methods.
1515 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1516 Set browser window title when the activity starts. Correct name of
1517 document title variable.
1518 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1519 Set browser window title when the activity starts. Set the table
1520 selector change handler after table selector has been set. Clear the
1521 OnlineGlomView when the activity has been stopped.
1522 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1523 document title as the place token. Use "#Document:" instead of
1524 "#OnlineGlomPlace:" in the URL.
1525 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1526 Change heading to "Online Glom"
1527 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1528 document title in RPC methods.
1529 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1530 setDocumentTitle() method. Add clear() method.
1531 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1532 setDocumentTitle() method. Implement clear() method which removes the
1533 change handler on the ListBox, clears the ListBox and clears the
1535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1536 Implement methods with document title. Keep track for the configured
1537 glom documents and their corresponding JDBC configurations in a hash
1538 table. This information is retrieved using the document title as the
1539 key in the hash table.
1540 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1541 document title field as it's no longer needed.
1543 2011-04-08 Ben Konrath <ben@bagu.org>
1545 Update the Eclipse JDT configuration.
1547 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1548 methods. Automatically add the copyright header to new files.
1550 2011-04-05 Ben Konrath <ben@bagu.org>
1552 Add new page for demo selection.
1554 This patch adds all the components required to view and start an
1555 OnlineGlom demo by clicking on the desired hyperlink. The user is
1556 able to return to the demo selection page with the browser's back
1557 button. I still need to modify the servlet to work with multiple
1558 documents so all demo links will load the file defined in the
1559 OnlineGlom.properties.
1561 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1562 This is only useful during development so we don't need to save it.
1563 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1564 get a reference to the DemoSelectionView.
1565 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1566 method to get a reference to the DemoSelectionView.
1567 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1568 default view to DemoSelectionView.
1569 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1570 to get glom document titles for glom files in a hard-coded directory.
1571 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1572 method to get glom document titles for glom files in a hard-coded
1574 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1575 Presenter for DemoSelectionView.
1576 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1577 for DemoSelectionView.
1578 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1579 Update for DemoSelectionView.
1580 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1581 Basic 'Place' implementation for the DemoSelectionView.
1582 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1583 The interface for the DemoSelectionView.
1584 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1585 The implementation of the DemoSelectionView.
1586 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1587 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1589 implementation of method to get glom document titles for glom files
1590 in a hard-coded directory.
1591 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1592 on longer being used.
1593 * src/main/webapp/glom.png: Glom logo.
1595 2011-04-05 Ben Konrath <ben@bagu.org>
1597 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1599 This is the forth and final commit of a refactor that will allow
1600 OnlineGlom to be used with multiple documents.
1602 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1603 Move RPC code from OnlineGlomViewImpl to this class.
1604 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1606 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1607 RPC code to the presenter class (the P in MVP).
1609 2011-04-04 Ben Konrath <ben@bagu.org>
1611 Start moving the existing OnlineGlom code to MVP.
1613 This work is based on the GWT MVP framework that is documented here:
1615 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1617 This is the third commit of a refactor that will allow OnlineGlom to
1618 be used with multiple documents.
1620 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1621 Interface for client factory which is used to get instances of various
1622 classes throughout the app.
1623 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1624 Implementation of client factory.
1625 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1626 initialize the MVP framework.
1627 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1628 New file. Activity manager for the main container widget. This is the
1630 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1631 Maps place (URL) to its corresponding activity.
1632 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1633 New file. This is just a place holder for a generated file.
1634 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1635 New file. Represents the URL for the main Online Glom app.
1636 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1637 for changes in LayoutListViewImpl.
1638 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1639 interface for View. Move code to OnlineGlomViewImpl class.
1640 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1641 file. Implementation of OnlineGlomView.
1642 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1643 Place resources. Use ClientFactoryImpl by default.
1645 2011-04-04 Ben Konrath <ben@bagu.org>
1647 Move View classes to their own package.
1649 This is the second commit of a refactor that will allow OnlineGlom to
1650 be used with multiple documents.
1652 * src/main/java/org/glom/web/client/OnlineGlom.java:
1653 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1654 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1656 2011-04-02 Ben Konrath <ben@bagu.org>
1658 Move UI code from the main module to its own class.
1660 This is the first commit of a refactor that will allow OnlineGlom to be
1661 used with multiple documents.
1663 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1664 references to OnlineGlom to OnlineGlomView.
1665 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1666 OnlineGlomView and instantiate it here.
1667 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1668 represents the main OnlineGlomView with one document.
1670 2011-04-01 Ben Konrath <ben@bagu.org>
1672 Fix formatting of gwt.xml and add DTD.
1674 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1676 2011-03-30 Ben Konrath <ben@bagu.org>
1678 Propperly convert gdkColor string to html colour string.
1680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1682 2011-03-28 Ben Konrath <ben@bagu.org>
1684 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1686 This implementation matches
1687 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1688 readable and is not tied to Swig.
1690 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1692 2011-03-28 Ben Konrath <ben@bagu.org>
1694 Use read-only checkboxes for boolean field types.
1696 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1697 in the CellTable based on the field type. It currently only
1698 distinguishes between boolean and text columns but I'll need to add
1699 support for more types.
1700 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1701 column type in the ColumnInfo object. Add method to convert between the
1702 glom field type enum in ColumnInfo and the glom field type in libglom.
1703 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1705 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1706 getting and setting booleans.
1708 2011-03-25 Ben Konrath <ben@bagu.org>
1710 Don't get the Date twice from the ResultSet.
1712 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1714 2011-03-25 Ben Konrath <ben@bagu.org>
1716 Cleanup code in the servlet.
1718 * TODO: Remove item about row count. Add item about testing row count
1719 query with large number of rows.
1720 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1721 spelling mistakes, change method parameter to be consistent with
1724 2011-03-25 Ben Konrath <ben@bagu.org>
1726 Add server side logging with the gwt-log library.
1728 * .gitignore: Ignore the log file we're now producing.
1729 * TODO: Add a couple TODO item for logging.
1730 * pom.xml: Add gwt-log and log4j as a dependency.
1731 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1732 logging of errors, warnings and some important info.
1733 * src/main/resources/log4j.properties: New file to configure log4j.
1735 2011-03-24 Ben Konrath <ben@bagu.org>
1737 Add a disable button for the Details view.
1739 * src/main/java/org/glom/web/client/LayoutListView.java:
1741 2011-03-22 Ben Konrath <ben@bagu.org>
1743 Use a count query to get the number of rows for the list view pager.
1745 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1747 2011-03-22 Ben Konrath <ben@bagu.org>
1749 Add more TODO information about CellTable pager positioning.
1753 2011-03-19 Ben Konrath <ben@bagu.org>
1755 Add TODO item about CellTable pager positioning.
1759 2011-03-18 Ben Konrath <ben@bagu.org>
1761 Remove unneeded GlomFieldColumn class.
1763 This is just a small code cleanup.
1765 * src/main/java/org/glom/web/client/LayoutListView.java:
1767 2011-03-18 Ben Konrath <ben@bagu.org>
1769 Use cursor mode in the query that gets data for the list view.
1771 I still need to fix the potential memory problem when getting the row
1772 count for the list view.
1774 * TODO: Add note about testing memory usage with large data sets. Add
1775 item about fixing row counting with large data sets.
1776 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1777 PostgreSQL JDBC driver into cursor mode when getting data for the
1780 2011-03-15 Ben Konrath <ben@bagu.org>
1782 Remove the GWT Container from the Eclipse build classpath.
1784 The GWT dependencies are set by Maven so this isn't needed.
1788 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1790 Added some earlier mockups to git, but not to the tarball dist.
1792 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1793 Openismus. These hopefully show how we might structure the HTML so that
1794 it can be styled easily with CSS. However, we probably need to adapt them
1795 for the CSS structure that GWT dictates for common widgets.
1797 2011-03-14 Ben Konrath <ben@bagu.org>
1799 Locate OnlineGlom.properties using the ServletContext.
1801 This is required to be able to locate the file in the deployed servlet.
1803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1804 Configure the database and glom document in in a helper method so
1805 that the ServletContext can be used to locate OnlineGlom.properties.
1806 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1807 src/main/webapp. This is the proper location for .properites files.
1809 2011-03-12 Ben Konrath <ben@bagu.org>
1811 Add note to README about why we're compiling down to obfuscated JavaScript.
1815 2011-03-11 Ben Konrath <ben@bagu.org>
1817 Use properties file to configure servlet.
1819 This allows people to change the glom file path, db username and db
1820 password without recompiling the code.
1822 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1823 * src/main/webapp/OnlineGlom.properties:
1825 2011-03-11 Ben Konrath <ben@bagu.org>
1827 Use table fields in layout list view if the layout list is not defined.
1829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1830 Manually create a LayoutFieldVector for the query builder using the
1831 table fields when a layout list is not defined in the glom file.
1833 2011-03-11 Ben Konrath <ben@bagu.org>
1835 Only show FIXME string for images when there's an image.
1837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1838 in this change are some small code cleanups.
1840 2011-03-11 Ben Konrath <ben@bagu.org>
1842 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1846 2011-03-11 Ben Konrath <ben@bagu.org>
1848 Correctly set the index of the default table.
1850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1851 Correctly set the index of the default table. Add commented out example
1854 2011-03-10 Ben Konrath <ben@bagu.org>
1856 Add comment to pom.xml about the previous change.
1858 * pom.xml: Add comment about the deployment issue so that it's obvious
1859 why java-libglom is set to the provided scope.
1861 2011-03-10 Ben Konrath <ben@bagu.org>
1863 Change java-libglom dependency from compile to provided in pom.xml.
1865 Since java-libglom uses jni it can only be loaded once and therefore
1866 must be placed in $CATALINA_HOME/lib and not included in each war.
1867 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1868 More information about this issue can be found in the Tomcat 6 release
1869 notes in the "JNI Based Applications" section:
1871 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1873 * README: Remove note about this issue. Deployment info should really
1874 be on the wiki anyway so I'll add it right now.
1875 * pom.xml: Change java-libglom dependency from compile to provided so
1876 that it's copied in to the packaged war.
1878 2011-03-09 Ben Konrath <ben@bagu.org>
1880 Change to using a neutral locale for currency, date and time formatting.
1882 This solves the problem of currency values being represented without a
1883 space between the currency code and the number (e.g. "EUR5.89" is now
1884 represented as "EUR 5.89"). More work is required when we implement
1885 a locale preference setting.
1887 * TODO: Add note about currency formatting issues with different
1889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1890 to using the neutral ROOT locale.
1892 2011-03-09 Ben Konrath <ben@bagu.org>
1894 Add support for currency codes that are not ISO 4217 codes.
1896 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1897 the currency code defined in the glom file when it's not 3 characters
1898 long or when Java doesn't recognize the string as an ISO 4217 code.
1900 2011-03-08 Ben Konrath <ben@bagu.org>
1902 Remove test classes, launch configurations and configuration.
1904 The test stuff was getting in the way when creating the war. To make
1905 the war file you can now do 'mvn clean package'. The packaged war file
1906 will be in the target directory.
1908 * .classpath: Remove unused classpathentry for tests and i18n.
1909 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1910 property. Don't run test or i18n goals when packaging the war.
1911 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1916 * OnlineGlomTest-dev.launch:
1917 * OnlineGlomTest-prod.launch:
1918 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1919 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1921 2011-03-07 Ben Konrath <ben@bagu.org>
1923 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1925 These fixes allow me to use 'mvn deploy' to create the war file.
1927 * .classpath: This generated config has been updated by Eclipse. This
1928 change was probably triggered by me updating from Eclipse 3.6.1 to
1930 * .gitignore: Add entry to ignore the directory
1931 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1932 * .project: The generated config has been updated by Eclipse. This
1933 change was probably triggered by me updating from Eclipse 3.6.1 to
1935 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1936 so that Eclipse doesn't complain
1937 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1938 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1939 'tests' directory to 'client' directory. This is the new
1940 gwt-maven-plugin convension.
1941 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1942 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1944 2011-03-07 Ben Konrath <ben@bagu.org>
1946 Add support for horizontal alignment in the LayoutList columns.
1948 * TODO: Remove item about horizontal alignment. Add item about
1949 improvements to ColumnInfo.
1950 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1951 alignment on the columns. Use ColumnInfo RPC object get the column
1952 title and horizontal alignment.
1953 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1954 LayoutListView creation with ColumnInfo RPC object.
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1956 a ColumnInfo object for every LayoutList columnn. Convert the
1957 FieldFormatting.HorizontalAlignment to the correct
1958 ColumnnInfo.HorizontatlAlignment with the new
1959 getColumnInfoHorizontalAlignment helper method.
1960 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1961 to encapsulate column information like alignment and title. This
1962 could be used to set the colour instead of on a per cell field basis.
1963 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1964 column title storage and retrieval with ColumnInfo.
1966 2011-03-04 Ben Konrath <ben@bagu.org>
1968 Add support for column sorting.
1970 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1971 AsynDataProvider to be an anonymous inner class. Use new
1972 getSortedTableData RPC method when column sort is requested. Set all
1973 columns sortable and add an AsyncHandler to activate sorting in the
1975 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1976 method getSortedTableData(). Cleanup other method signatures.
1977 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1978 new method getSortedTableData(). Cleanup other method signatures.
1979 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1980 Implement getSortedTableData() and getTableData() methods by using a
1981 private helper method with the appropriate parameters filled in. Use
1982 user supplied sort clause when supplied, otherwise fall back to
1983 sorting by the primary key. Move destroy() method to be underneath
1984 constructor for readability. Cleanup comments.
1986 2011-03-03 Ben Konrath <ben@bagu.org>
1988 Add support for colour text and colour backgrounds to the layout list cells.
1990 Only the cell backgrounds are coloured which leaves a gap between the
1991 cells that isn't coloured. I need to figure out a way to set
1992 'style=background-colour:' on the whole column rather than just the
1995 * TODO: Add a note about colouring the background of the whole column.
1996 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1997 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1998 render the coloured text and backgrounds. Use GlomField[] for the row type.
1999 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2001 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2002 GlomField[] for the row type.
2003 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2004 GlomField[] for the row type. Set the text, text colour and background
2005 colour in the GlomField objects as specified in the glom document. Add
2006 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2007 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2008 the glom field text, foreground colour and background colour.
2010 2011-03-02 Ben Konrath <ben@bagu.org>
2012 Don't display hidden tables in the combo box.
2014 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2017 code to ignore hidden tables using ArrayLists for the table names and
2019 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2020 tableNames to use ArrayLists instead of String[]. Update getter and setter
2023 2011-03-01 Ben Konrath <ben@bagu.org>
2025 Add support for Date and Time number types.
2027 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2028 Implement formatting for Date and Time values. Change the default glom
2029 file to small business example.
2031 2011-03-01 Ben Konrath <ben@bagu.org>
2033 Add support for formatting glom types as specified in the glom file.
2035 Formatting isn't finished yet - I still need to add support for Date
2038 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2039 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2040 checks for null values in JDBC cleanup code and catch all exceptions
2041 instead of just SQLExceptions.
2042 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2045 2011-03-01 Ben Konrath <ben@bagu.org>
2047 Use GWT 2.2.0 instead of 2.1.1.
2049 * pom.xml: Change GWT version numbers.
2051 2011-03-01 Ben Konrath <ben@bagu.org>
2053 A few small code cleanups.
2055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2057 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2058 unnecessary object creation in constructor.
2059 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2060 unnecessary object creation in constructor.
2062 2011-02-28 Ben Konrath <ben@bagu.org>
2064 Add file for TODO list.
2068 2011-02-18 Ben Konrath <ben@bagu.org>
2070 Enable the CellTable Pager when more than 20 rows need to be viewed.
2072 The Pager will automatically become active when the results are larger
2073 than the CellTable size which is currently set to 20 lines.
2075 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2076 name on debug statment in RPC call in LayoutListDataProvider, add
2077 numRows parameter to LayoutListView constructor, propperly set rowCount
2079 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2080 name on debug statment in RPC call, use LayoutListTable object in RPC
2081 calls, pass rowCount to LayoutListView.
2082 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2083 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2085 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2086 interface for changes in OnlineGlomService.
2087 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2088 getLayoutListHeaders() to getLayoutListTable() and return
2089 LayoutListTable. Using this object allows me to pass other information
2090 about the LayoutList like the expected number of rows in the result set.
2091 The Connection object from the connection pool is now propperly closed.
2092 Only the requested number of lines are returned to the client in
2094 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2095 GlomTable and add columnTitles and numRows.
2097 2011-02-18 Ben Konrath <ben@bagu.org>
2099 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2101 This is a small performance boost. I'll use GlomTable to get the required
2102 layoutlist information.
2104 * src/main/java/org/glom/web/client/OnlineGlom.java:
2105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2106 * src/main/java/org/glom/web/shared/GlomDocument.java:
2108 2011-02-18 Ben Konrath <ben@bagu.org>
2110 Add option to turn off formatting in JDT formatter preferences.
2112 * .settings/org.eclipse.jdt.core.prefs:
2114 2011-02-18 Ben Konrath <ben@bagu.org>
2116 Rename LayoutList to LayoutListView.
2118 I'm working towards setting things up to easily use MVP when the time
2121 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2123 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2126 2011-02-17 Ben Konrath <ben@bagu.org>
2128 Move LayoutListDataProvider class into LayoutList.java.
2130 * src/main/java/org/glom/web/client/LayoutList.java:
2132 2011-02-17 Ben Konrath <ben@bagu.org>
2134 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2136 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2138 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2139 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2140 from LibGlomServer.java.
2141 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2142 Rename from LibGlomServiceAsync.java.
2143 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2144 Rename from LibGlomServiceImpl.java.
2145 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2147 2011-02-17 Ben Konrath <ben@bagu.org>
2149 Update JDT settings.
2151 * .settings/org.eclipse.jdt.core.prefs:
2153 2011-02-17 Ben Konrath <ben@bagu.org>
2155 Move GWT-RPC objects to shared package (where they should be).
2157 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2158 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2159 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2160 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2161 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2162 org.glom.web.shared package.
2163 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2164 org.glom.web.shared package.
2165 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2166 directory in compilation to javascript.
2168 2011-02-16 Ben Konrath <ben@bagu.org>
2170 Add sort clause to the sql query that grabs table information.
2172 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2173 if one of the columns is a primary key.
2175 2011-02-16 Ben Konrath <ben@bagu.org>
2177 Disable generateAsync feature of gwt-maven.
2179 The generated interface does not correctly match the methods in LibGlomService
2180 and the generated singleton Util inner-class doesn't respect the servlet
2183 * pom.xml: Turn off generateAsync feature.
2184 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2185 with singleton Util inner-class.
2187 2011-02-14 Ben Konrath <ben@bagu.org>
2189 Add LGPL v3 licence notices.
2191 Followed directions listed here:
2192 http://www.gnu.org/licenses/gpl-howto.html
2194 * COPYING: This file is a copy of the GPL v3.
2195 * COPYING.LESSER: This file is a copy of the LGPL v3.
2196 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2198 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2200 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2202 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2204 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2206 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2208 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2211 2011-02-14 Ben Konrath <ben@bagu.org>
2213 Use ArrayList instead of Array in GWT-RPC calls.
2215 Apparently this gives a slight performance boost to the compiled
2218 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2220 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2223 2011-02-14 Ben Konrath <ben@bagu.org>
2225 Access data from a postgres db rather than the example glom file.
2227 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2228 compile down to obfuscated javascript.
2229 * pom.xml: Add c3p0 and postgres JDBC libraries.
2230 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2231 using a postgres db accessed through the c3p0 connection pooling library.
2233 2011-02-14 Ben Konrath <ben@bagu.org>
2235 Update Java formatter settings.
2237 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2239 2011-02-02 Ben Konrath <ben@bagu.org>
2241 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2243 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2245 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2246 the compiled webapp directory that Eclipse uses as we're using Maven now.
2247 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2248 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2250 * pom.xml: Format file, change target Java version to 1.6.
2252 2011-02-02 Ben Konrath <ben@bagu.org>
2254 Add information about a deployment related issue.
2256 * README: Add Notes section with the problem outlined.
2258 2011-02-02 Ben Konrath <ben@bagu.org>
2260 Call Glom.libglom_deinit() when the servlet is shutdown.
2262 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2263 Glom.libglom_deinit() to destroy() method.
2265 2011-01-28 Ben Konrath <ben@bagu.org>
2267 Use generated Util class to get the RPC Async interface.
2269 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2271 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2272 getInstance() method to get a reference to the RPC Async interface.
2273 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2274 getInstance() method to get a reference to the RPC Async interface, remove
2275 the now unused getLibGlomServiceProxy() method.
2277 2011-01-27 Ben Konrath <ben@bagu.org>
2279 Cleanup ChangeLog entry from previous commit.
2281 * ChangeLog: Group logical changes together and add comments.
2283 2011-01-25 Ben Konrath <ben@bagu.org>
2285 Convert to gwt-maven project.
2287 * .gitignore: Update for new project structure.
2288 * README: New file with a link to the online documentation.
2289 * pom.xml: The generated maven configuration file with some tweaks.
2291 Add / update Eclipse settings. These files are a merge of the files that
2292 were generated with the gwt-maven plugin and the files we were previously
2296 * .settings/.jsdtscope:
2297 * .settings/com.google.gdt.eclipse.core.prefs:
2298 * .settings/com.google.gwt.eclipse.core.prefs:
2299 * .settings/org.eclipse.jdt.core.prefs:
2300 * .settings/org.eclipse.wst.common.component:
2301 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2302 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2303 * .settings/org.maven.ide.eclipse.prefs:
2304 * OnlineGlomTest-dev.launch:
2305 * OnlineGlomTest-prod.launch:
2307 Java source files moved from the 'src' directory to the directory structure
2309 * src/main/java/org/glom/web/client/GlomDocument.java:
2310 * src/main/java/org/glom/web/client/GlomTable.java:
2311 * src/main/java/org/glom/web/client/LayoutList.java:
2312 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2313 * src/main/java/org/glom/web/client/LibGlomService.java:
2314 * src/main/java/org/glom/web/client/OnlineGlom.java:
2315 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2317 Non-functional property file used for translations. I included this as
2318 reminder that it's something I need to sort out.
2319 * src/main/resources/org/glom/web/client/Messages.properties:
2321 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2322 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2324 The servlet configuration files moved from the 'war' directory.
2325 * src/main/webapp/OnlineGlom.css:
2326 * src/main/webapp/OnlineGlom.html:
2327 * src/main/webapp/WEB-INF/web.xml:
2329 Generated test files with most of the code commented out. I included these
2330 so that it's easy to add tests when we're ready for them.
2331 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2332 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2334 2011-01-25 Ben Konrath <ben@bagu.org>
2336 Remove unused println.
2338 * src/org/glom/web/server/LibGlomServiceImpl.java:
2340 2011-01-25 Ben Konrath <ben@bagu.org>
2342 Add project specific JDT settings.
2344 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2345 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2347 2011-01-25 Ben Konrath <ben@bagu.org>
2349 Populate celltable with example data.
2351 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2352 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2353 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2354 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2355 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2356 asynchronously gets the example data.
2357 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2358 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2359 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2360 curently selected table to be retrieved by other widgets.
2361 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2362 implement getTableData() in a hacky way. This method needs to be updated
2363 to grab information from the database when database creating is
2366 2011-01-20 Ben Konrath <ben@bagu.org>
2368 Set table headers when table dropBox changes.
2370 * src/org/glom/web/client/GlomDocument.java: Correct some method
2372 * src/org/glom/web/client/LibGlomService.java: Add method
2373 to get list layout field names.
2374 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2375 to get list layout field names.
2376 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2377 widget for list layout table.
2378 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2379 the table drop box and add new updateTable() method to asynchronously
2380 get the layout list field names for the currently selected table.
2381 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2382 implementation of getLayoutListHeaders() method.
2383 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2385 2011-01-18 Ben Konrath <ben@bagu.org>
2387 Make a listBox with table titles instead of the flexTable demo.
2389 This is the start of something more useful.
2391 * .classpath: Exclude a bunch of packages from the JVM that are
2392 getting in the way of the Eclipse content assist.
2393 * src/org/glom/web/client/GlomDocument.java:
2394 * src/org/glom/web/client/GlomTable.java:
2395 * src/org/glom/web/client/LibGlomService.java:
2396 * src/org/glom/web/client/LibGlomServiceAsync.java:
2397 * src/org/glom/web/client/OnlineGlom.java:
2398 * src/org/glom/web/server/LibGlomServiceImpl.java:
2399 * war/OnlineGlom.html:
2400 * war/WEB-INF/web.xml:
2402 211-01-13 Ben Konrath <ben@bagu.org>
2404 Update to new java-libglom API.
2406 * .gitignore: Ignore OnlineGlom.war.
2407 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2409 2010-12-20 Ben Konrath <ben@bagu.org>
2411 Add some basic style to the table listing.
2413 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2414 header, print useful error message on async callback failure.
2415 * war/OnlineGlom.css: Add style for table header, remove defaults
2416 provided by the Eclipse project wizard.
2418 2010-12-20 Ben Konrath <ben@bagu.org>
2420 Load example file from installed glom dir.
2422 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2423 provided by java-libglom to find the example file.
2425 2010-12-20 Ben Konrath <ben@bagu.org>
2427 Update Eclipse settings.
2430 * .settings/com.google.gdt.eclipse.core.prefs:
2431 * .settings/com.google.gwt.eclipse.core.prefs:
2433 2010-12-17 Ben Konrath <ben@bagu.org>
2437 * .classpath: New file.
2438 * .gitignore: New file.
2439 * .project: New file.
2440 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2441 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2442 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2443 * src/org/glom/web/client/GlomTable.java: New file.
2444 * src/org/glom/web/client/OnlineGlom.java: New file.
2445 * src/org/glom/web/client/TableNameService.java: New file.
2446 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2447 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2448 * war/OnlineGlom.css: New file.
2449 * war/OnlineGlom.html: New file.
2450 * war/WEB-INF/web.xml: New file.
2451 * war/images/glom.png: New file.