1 2011-10-27 Ben Konrath <ben@bagu.org>
3 Require the latest release of java-libglom (1.17.4).
7 2011-10-26 Ben Konrath <ben@bagu.org>
9 Add style to Notebook that matches current theme.
11 It's not the best style in the world but it's better than the default.
13 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
14 padding at the bottom of the child widgets.
15 * src/main/webapp/style.css: Add style for the Notebook.
17 2011-10-26 Ben Konrath <ben@bagu.org>
19 Move servlet initialization code to overridden init method.
21 This is half of the solution to getting proper error messages
22 displayed when configuration errors occur. Here's the relevant bug:
24 https://bugzilla.gnome.org/show_bug.cgi?id=662792
26 The rest of the solution involves surrounding the init method with a
27 try/catch block and setting a global variable with the error /
28 exception. A new async method should be created to retrieve and display
29 the error message / exception.
31 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
32 code from constructor to init method adding exceptions as needed.
34 2011-10-26 Ben Konrath <ben@bagu.org>
36 Add script to monitor and restart tomcat if required.
38 * utils/check-and-recover-tomcat.py: New file.
40 2011-10-26 Ben Konrath <ben@bagu.org>
42 Display the correct number of data items in the pager.
46 https://bugzilla.gnome.org/show_bug.cgi?id=661441
48 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
49 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
50 The implementation is the same for both tables: Keep track of the
51 number of non-empty rows and fire and RowCountChangeEvent after the data has
53 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
54 custom Pager class that subclasses SimplePager to handle displaying
55 the correct number when empty rows have been added.
57 2011-10-26 Ben Konrath <ben@bagu.org>
59 Correct error in previous commit.
61 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
62 eventBus parameter from listView.setCellTable().
64 2011-10-26 Ben Konrath <ben@bagu.org>
66 Fix error in TODO comment.
68 * src/main/java/org/glom/web/client/activity/ListActivity.java:
70 2011-10-24 Ben Konrath <ben@bagu.org>
72 Create Notebook widgets to the details view.
74 This isn't finished just yet - I still need to create a reasonable
75 style to match the current theme.
77 * src/main/java/org/glom/web/client/Utils.java: Add method for
78 calculating the height of a widget. This is used in the Notebook class.
79 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
80 new constructor method in Group.
81 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
82 method for creating child widget that can be used by subclasses
83 like Notebook. New constructor that allows disabling the group
84 titles - Notebooks don't set a group title for their child groups.
85 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
86 to make Notebooks using GWT's TabLayoutPanel.
87 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
88 constructor that allows disabling the group titles.
89 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
90 LayoutItemNotebook DTO.
91 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
92 DTO for Notebooks. It's just an empty class for now but we might need
93 it to transfer some specific information in the future.
95 2011-10-21 Ben Konrath <ben@bagu.org>
97 Add navigation buttons to related list tables.
99 * src/main/java/org/glom/web/client/OnlineGlomService.java:
100 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
102 method getSuitableRecordToViewDetails() for getting the table name
103 and primary key value for related list navigation buttons.
104 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
105 private cell renderer class to get the navigation information for
106 related list tables from the server. Extract the navigation
107 processing code from the details cell navigation and use it for the
108 related list navigation as well.
109 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
110 cell renderer class for the details open buttons. This was needed
111 because the related list navigation buttons and the list view
112 navigation buttons need to react differently when clicked.
113 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
114 the onEnterKeyDown() method because it's now overriden in the
115 subclasses that are specific to the related list tables and the list
117 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
118 the vertical size a little because the buttons add a bit of vertical
119 space to table. This is not a perfect solution because the vertical
120 size of with table fewer than 5 rows will be a little smaller.
121 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
122 changes in how navigation buttons are handled.
123 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
124 getSuitableRecordToViewDetails() using the new RelatedListNavigation
125 database access object.
126 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
127 to find the portal for a given relationship name from
128 RelatedListDBAccess. Add method to find a primary key field for a
130 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
131 Move code to find the portal for a given relationship name to
133 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
134 New file: database access object for getting the related list
135 navigation information (the table name and the primary key value).
136 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
137 DTO for transferring a table name to navigate to and a primary key
139 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
140 boolean and getter/setter to specifies if the related list should add
143 2011-10-24 Murray Cumming <murrayc@murrayc.com>
145 Use the master branch of java-libglom
147 * pom.xml: Depend on java-libglom 1.19 instead.
149 This is the master branch. See also the libglom-1-18 branch.
151 2011-10-11 Ben Konrath <ben@bagu.org>
153 Enable the open navigation button when the data has been set.
155 This avoids having active buttons that don't do anything when the data
158 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
160 2011-10-11 Ben Konrath <ben@bagu.org>
162 Use IsWidget interface for FlowTableItem.
164 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
165 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
167 2011-10-11 Ben Konrath <ben@bagu.org>
169 Remove GWT styling from open button in details view.
171 There are still some issues with how the details cell is arranged but
172 this should be made to match Glom 1.20. I'm going to leave fixing this
173 until I have Glom 1.20 up and running.
175 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
176 style name on open button.
177 * src/main/webapp/style.css: Move and edit details-navigation class.
178 Re-arrange some classes to make them appear in the same order as the
181 2011-10-07 Ben Konrath <ben@bagu.org>
185 * .gitignore: Ignore new cache directory.
186 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
187 * pom.xml: Change GWT and maven plugin to 2.4.0.
188 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
190 * src/main/java/org/glom/web/client/ClientFactory.java:
191 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
192 * src/main/java/org/glom/web/client/OnlineGlom.java:
193 Update source for API changes.
194 * utils/build-onlineglom-war.sh: Remove cache directory before the
197 2011-10-07 Ben Konrath <ben@bagu.org>
199 Add navigation buttons in the details view.
201 This isn't finished but I thought I'd commit what I have as it's a
202 pretty good start. I still need to:
204 1. Change the style so that it fits better into the current theme
205 2. Adjust the details cell to expand as much as possible.
207 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
208 click handlers to navigation buttons in the DetailsCells. Create a
209 refreshData() method to get just the data from the server without the
211 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
212 Update the tableSelector and browser title when the table name
213 changes without using the tableSelector.
214 * src/main/java/org/glom/web/client/ui/DetailsView.java:
215 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
216 getDetailsCells() to getCells(). Update variable names.
217 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
218 method to set click handler on navigation button. Rename a few
219 variables. Add navigation buttons where needed.
220 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
221 variables and methods.
222 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
223 navigation boolean and navigation table as required in the
225 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
226 variables for navigation along with getter/setter methods.
228 2011-10-07 Ben Konrath <ben@bagu.org>
230 Rename Field to DetailsCell.
232 This is a refactor-only commit. No functionality has been added or
235 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
236 Update variable and method names.
237 * src/main/java/org/glom/web/client/ui/DetailsView.java:
238 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
239 variable and method names.
240 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
242 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
243 variable and method names.
245 2011-10-07 Ben Konrath <ben@bagu.org>
247 Create separate methods for layout and data the details view.
249 This is a refactor-only commit. No functionality has been added or
252 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
253 private methods: setData(), createLayout().
255 2011-10-07 Ben Konrath <ben@bagu.org>
257 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
259 This is part of a change to get navigation buttons in the details view
260 but it should have been done this way from the start.
262 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
263 for method name change in TableSelectionView.
264 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
265 Create TableChangeEvent and set the browser title using the
266 TableSelectionView API.
267 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
268 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
269 Change getSelectedTable() to getSelectedTableName(). Add
270 getSelectedTableTitle().
272 2011-10-07 Ben Konrath <ben@bagu.org>
274 Use primaryKeyValue naming convention in constructor of DetailsPlace.
276 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
278 2011-10-07 Ben Konrath <ben@bagu.org>
280 Update TableChangeEvent to use newTableName naming convention.
282 This makes the class more consistent with GWT naming conventions.
284 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
285 Update for method name change in TableChangeEvent.
286 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
287 for method name change in TableChangeEvent.
288 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
289 newTableName variable and getter method. Make toDebugString()
292 2011-09-30 Ben Konrath <ben@bagu.org>
294 Disable the pager in the list tables when the data row count is less than the minimum.
296 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
297 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
299 2011-09-30 Ben Konrath <ben@bagu.org>
301 Add empty rows to the end of related list and list view tables.
303 I also extracted the cell rendering classes from the ListTable because
304 the code was becoming a little crazy with all the anonymous inner
305 classes. My plan is to use these cell rendering classes in the details
306 view as well so this refactor will be needed for that change.
308 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
309 set the row count in related list tables if the data has more rows
310 than the minimum number of rows visible.
311 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
312 row count in list view tables if the data has more rows than the
313 minimum number of rows visible.
314 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
315 for rendering TYPE_BOOLEAN cells. The code was extracted from the
317 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
318 for rendering TYPE_NUMERIC cells. The code was extracted from the
320 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
321 class for rendering cells with buttons in list views. The code was
322 extracted from the ListTable class.
323 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
324 for rendering TYPE_TEXT cells. The code was extracted from the
326 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
327 Add empty rows to the end of the data if required. Implement
328 ListTable.getMinNumVisibleRows().
329 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
330 cell renderer code to public classes. Return null in
331 Column.getValue() for empty rows. Add new abstract method:
332 getMinNumVisibleRows(). Move code to set the row count of the list view
333 table to ListViewImpl.
334 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
335 empty rows to the end of the data if required. Implement
336 ListTable.getMinNumVisibleRows().
339 2011-09-27 Ben Konrath <ben@bagu.org>
341 Use GWT.log for client-side debugging statements.
343 These are optimized out when deployed so I should have used this method
344 in the first place. These statements will eventually be replaced with some sort
345 of notification in the browser.
347 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
348 * src/main/java/org/glom/web/client/activity/ListActivity.java:
349 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
350 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
351 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
353 2011-09-27 Ben Konrath <ben@bagu.org>
355 Put tableselector on the right, back to list link on right.
357 The idea is that the table selector is acting like a label for the
358 currently displayed table so it should be placed below the document title. This
359 puts the table title in a similar position to where it is in Glom.
361 * mockups/details-contacts.html:
362 * mockups/details-projects.html:
363 * mockups/listview-contacts.html:
364 * mockups/listview-projects.html:
366 Update mockups to match how the interfaces currently look.
367 * src/main/webapp/style.css: Swap positions of backlink with the table
368 selector. Add some space on the left side of the table selector to
369 line things up with the document title.
371 2011-09-27 Ben Konrath <ben@bagu.org>
373 Add field colouring to details view.
375 This change re-works how field colouring works. The colour formatting
376 information is now set to the client with the layout information instead of
377 with the data. This eliminates the need to send the same colour strings for
378 data in list view column when colour information is set.
380 In order to set an alternate colour for negative numeric values, the
381 number is now sent to client and formatted with the GWT NumberFormat class.
383 This change also fixes:
385 https://bugzilla.gnome.org/show_bug.cgi?id=659752
387 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
388 internationalization framework which is needed for client side numeric
390 * src/main/java/org/glom/web/client/Utils.java: New file for some
391 client static utility methods.
392 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
393 the DataItem object to the Field class. Use a utility method to
394 create the foreignKeyValue string.
395 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
396 alignment and text colours in the constructor. Add setData(DataItem)
397 method. Remove setText(String) method.
398 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
399 colour information to GlomTextCell. Create and use GlomNumberCell for
400 rendering numbers. Use utility method to get the string for the
401 primary key of the key provider. Re-work how the horizontal alignment
403 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
404 formatting to layout information. Methods for converting the libglom
405 formatting information were moved from DBAccess.
406 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
407 numeric formatting (it's now done on the client side). Don't set text
408 colours in DataItem. Move libglom formatting conversion methods to
410 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
411 getters/setters for text colour information.
412 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
413 for transferring the libglom NumericFormat information to the client.
414 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
415 and getters/setters for: GlomNumericFormat, background colour and
416 foreground colour strings.
418 2011-09-26 Ben Konrath <ben@bagu.org>
420 Simplify code that iterates through the LayoutGroup.
422 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
424 2011-09-26 Ben Konrath <ben@bagu.org>
426 Accept Eclipse formatting for OnlineGlomServiceAsync.
428 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
430 2011-09-26 Ben Konrath <ben@bagu.org>
432 Don't use the ListDBAccess classes to get the primary key layout information.
434 This was causing a bug where the wrong index for the hidden primary key
435 was being sent to the client.
437 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
438 primary key while creating the LayoutGroup DTO. Create a
439 LayoutItemField DTO for hidden primary keys. Don't use the
440 RelatedListDBAccess because it was only used for getting the primary
442 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
443 access modifier from public to protected for getPrimaryKeyField() and
444 getPrimaryKeyLayoutItemField().
445 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
446 abstract method getExpectedResultSize() because RelatedListDBAccess
447 doesn't have enough info to implement it.
448 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
449 Remove @Override for getExpectedResultSize().
450 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
451 Remove method getExpectedResultSize().
453 2011-09-23 Ben Konrath <ben@bagu.org>
455 Log which layout (list or details) the ignored item is from.
457 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
459 2011-09-23 Ben Konrath <ben@bagu.org>
461 Remove annotations that turn off code formatting in DataItem.
463 * src/main/java/org/glom/web/shared/DataItem.java:
465 2011-09-23 Ben Konrath <ben@bagu.org>
467 Rename GlomField to DataItem and update associated methods.
469 This is a rename-only refactor. No functionality has been added or
472 * src/main/java/org/glom/web/client/OnlineGlomService.java:
473 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
474 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
475 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
476 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
477 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
478 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
479 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
481 * src/main/java/org/glom/web/server/database/DBAccess.java:
482 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
483 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
484 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
485 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
486 * src/main/java/org/glom/web/shared/DataItem.java:
487 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
488 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
490 2011-09-23 Ben Konrath <ben@bagu.org>
492 Rename GlomDocument to DocumentInfo and update associated methods.
494 This is a rename-only refactor. No functionality has been added or
497 * src/main/java/org/glom/web/client/OnlineGlomService.java:
498 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
499 * src/main/java/org/glom/web/client/activity/ListActivity.java:
500 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
501 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
502 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
503 * src/main/java/org/glom/web/shared/DocumentInfo.java:
505 2011-09-20 Ben Konrath <ben@bagu.org>
507 Require java-libglom 1.17.3.
509 This picks up the fix for the seg fault problem with the Scenes table
510 in the Openismus Film Manager example.
514 2011-09-20 Ben Konrath <ben@bagu.org>
516 Change the way sort clause is added for primary key when no sort clause is requested.
518 The primary key is now added to the LayoutFieldVector (fieldsToGet)
519 before the sort clause is created. When a sort clause is not requested, the
520 sort clause is created by finding the primary key in the LayoutFieldVector
523 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
525 2011-09-20 Ben Konrath <ben@bagu.org>
527 Log error message if no documents are found in the configured directory.
529 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
530 Extract the glom file extension string to a private static final class
531 variable (mostly as syntactic sugar). Accept a minor formatting change.
532 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
533 the example glom.document.directory configuration property to make it
534 more clear that it can any directory, not just the home directory.
536 2011-09-18 Ben Konrath <ben@bagu.org>
538 Add related lists to details view.
540 The related list table has support for paging and sorting just like the
541 table in the list view.
543 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
544 SQL queries for the related list tables.
545 * src/main/java/org/glom/web/client/OnlineGlomService.java:
546 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
547 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
548 Rename getList methods to getListView and add comments. Remove
549 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
550 it being unused. Add methods: getDetailsLayoutAndData(),
551 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
552 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
553 Create the layout and set the data for the fields in one async call
554 instead of two. Create related lists where appropriate.
555 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
556 for method name changes in OnlineGlomService.
557 * src/main/java/org/glom/web/client/ui/DetailsView.java:
558 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
559 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
561 * src/main/java/org/glom/web/client/ui/ListView.java:
562 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
563 tableName from setCellTable(). Create a ListViewTable instead of
565 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
566 represent a data field in the details view.
567 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
568 from addDetailsCell() to Field class. Keep track of the Fields and
569 Portals in the details view.
570 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
571 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
572 and add a method to get it. Add method to set the contents of the
574 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
575 New class for related list tables. This class has the data provider
576 for the related list table.
577 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
578 abstract class which is the base class for the ListViewTable and the
580 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
581 New class for list view tables. This class has the data provider for
583 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
584 methods for related list tables. Add more information to the
585 LayoutItemField and LayoutItemPortal DTOs.
586 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
587 Remove debugging print statement.
588 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
589 Remove debugging print statements. Add primary key field to SQL count
591 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
592 Remove unnecessary LayoutFieldVector parameter from
593 getResultSizeOfSQLQuery() method.
594 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
595 New class for related list table database access.
596 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
597 class that is a wrapper DTO for details view layout and data.
598 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
599 new 'fromField' string to this DTO.
600 * src/main/webapp/style.css: Remove bottom margin and override top
603 2011-09-15 Ben Konrath <ben@bagu.org>
605 Breakup the OnlineGlomServiceImpl class to make it more manageable.
607 This sets things up to make it easier to add the data retrieval for
608 related lists (portals). No user noticeable changes were made with
611 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
612 class has the code to retrieve the layouts and access the
613 database using the new database helper classes.
614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
615 Most of the functionality has been removed from this class. This
616 class now represents the public interface for the client side
617 code. It also deals with configuring the servlet and cleaning
618 things up when the servlet is stopped.
619 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
620 of static methods into this utility class.
621 * src/main/java/org/glom/web/server/database/DBAccess.java:
622 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
623 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
624 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
625 These classes have the database retrieval code. The class hierarchy
626 has been setup to make it easy to reuse code for similar
629 2011-09-06 Ben Konrath <ben@bagu.org>
631 Create separate classes for list table code and the data provider.
633 As part of this refactor, I also split up the code a bit to make it
636 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
637 table code to two new classes (below).
638 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
639 with code from ListViewImpl.
640 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
641 New file with code from ListViewImpl.
643 2011-09-06 Ben Konrath <ben@bagu.org>
645 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
647 This fixes the LayoutItemPortal DTO to match the libglom layout object
650 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
652 2011-09-01 Ben Konrath <ben@bagu.org>
654 Set title of Portals in the Details View.
656 * pom.xml: Bump required version of java-libglom to 1.17.1.
657 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
658 widget creation to its own class. Add comments to constructor.
659 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
660 The code is mostly from the Group class with the title now set.
661 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
662 title of Portal. Update some comments. Fix some code formatting.
664 2011-09-01 Ben Konrath <ben@bagu.org>
666 Remove TODO comment for the flow table column width.
668 The flow table column width is working correctly and doesn't need to be
669 changed. See this mailing list post for more info:
671 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
673 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
675 2011-08-27 Ben Konrath <ben@bagu.org>
677 Add document title (database name) to top of the browser page.
679 I added the document title to the TableSelecitonView but that will
680 change if / when we add a view that doesn't require table selection.
682 * mockups/details-contacts.html:
683 * mockups/details-projects.html:
684 * mockups/listview-contacts.html:
685 * mockups/listview-projects.html:
686 * mockups/style.css: Add document title to mockups to keep things
688 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
689 sizes to account for the document title.
690 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
691 Set the document title when it has been retrieved from the server.
692 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
693 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
694 and implement setDocumentTitle(String) method.
695 * src/main/webapp/style.css: Add ID for document title style.
697 2011-08-25 Ben Konrath <ben@bagu.org>
699 Add NavigationType enum to LayoutItemPortal DTO.
701 This is the start of adding support for Portals to the Details View.
703 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
704 LayoutItem_Portal.navigation_type enum from libglom to
705 LayoutItemPortal.NavigationType enum.
706 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
707 NavigationType enum, field for storing the NavigationType and getter
710 2011-08-25 Ben Konrath <ben@bagu.org>
712 Implement the flow table layout in the Details View.
714 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
715 FlowTable to Group to account for the renamed class.
716 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
717 File. This is a container widget that implements the Glom details view
718 flow table behaviour.
719 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
720 org/glom/web/client/ui/FlowTable.java.
721 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
722 so that the size of the subgroups are a closer match to the size of
723 the Glom subgroups. This makes the flowtable layout match the layout
724 in Glom for the Music Collection example file.
726 2011-08-16 Ben Konrath <ben@bagu.org>
728 Create container element for LayoutItemPortal in Details View.
730 This will help me develop the layout for the FlowTable.
732 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
733 fieldPanel variable to detailsCell.
735 2011-08-15 Ben Konrath <ben@bagu.org>
737 Set the height of the data element in the Details View.
739 I changed the InlineLabels (text in a span element) to Labels (text in
740 a div element) so that I could set the height of the details-data
741 elements instead of the details-cell parent elements. This allows the
742 the details-data element to display the correct height if style is
743 applied that shows the height.
745 This change has the added benefit of allowing the order of the labels
746 and data elements to be changed for right-to-left languages.
748 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
749 InlineLabels to Labels.
750 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
751 InlineLabels to Labels. Set the height of the data element.
752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
753 multiline text height in the Formatting DTO.
754 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
755 for multiline height along with getter and setter methods.
756 * src/main/webapp/style.css: Adjust style to account for the change
757 from span elements to div elements in the details cell.
759 2011-08-15 Ben Konrath <ben@bagu.org>
761 Make the List View appearance match the mockups.
763 It doesn't match exactly but it's much better than it was.
765 * mockups/listview-contacts.html: Remove unused css classes.
766 * mockups/listview-projects.html: Remove unused css classes.
767 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
768 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
769 for mainPanel instead of VerticalPanel (table). Set style name on
770 CellTable. Set style name on Details column. Right-align Details
772 * src/main/webapp/style.css: Adjust properties to match the mockups.
774 2011-08-12 Ben Konrath <ben@bagu.org>
776 Add better support for subgroups in the details view.
778 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
779 changed FlowTable constructor.
780 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
781 support for subgroups and subgroup-titles.
782 * src/main/webapp/style.css: Add CSS class for subgroups and
785 2011-08-12 Ben Konrath <ben@bagu.org>
787 Return the top level LayoutGroup title.
789 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
791 2011-08-11 Ben Konrath <ben@bagu.org>
793 Make the TableSelector header match the mockup.
795 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
796 the layout panel. Properly lineup the table selection header with
797 the list and details view.
798 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
799 margin around the details view.
800 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
801 Rename listBox variable to tableSelector. Set id for the style sheet.
802 Use a FlowPanel instead of a HorizontalPanel.
803 * src/main/webapp/style.css: Add properties to make the TableSelector
804 box match the mockups.
806 2011-07-13 Ben Konrath <ben@bagu.org>
808 Update install script for java-libglom version change.
810 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
813 2011-07-13 Ben Konrath <ben@bagu.org>
815 Add support sub-group in the details view.
817 I also removed the code that special-cased the default details view
820 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
822 I still have to make a proper flowtable.
824 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
825 Don't special-case default details view layout.
826 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
827 addLayoutField() as I'm going to use it.
828 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
829 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
831 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
832 extracted from DetailsViewImpl.GroupPanel. Add support for
834 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
835 column count when getting the details layout.
837 2011-07-12 Ben Konrath <ben@bagu.org>
839 Set browser title with database and table titles.
841 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
842 Set the browser title when the table changes and when the activity
844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
845 title when retrieving document info (the GlomDocument object).
846 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
847 with getter and setter methods. Remove unused convenience constructor.
848 Use default code formatting.
850 2011-07-12 Ben Konrath <ben@bagu.org>
852 Ignore LayoutItemPortals in the details view.
854 I added a new DTO for the LayoutItemPortal so that I can ignore it in
857 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
858 LayoutItemPortal layout objects.
859 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
860 LayoutItemPortal objects when retrieving the details layout.
861 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
862 file. This is an empty class and just used to get type information for
865 2011-07-12 Ben Konrath <ben@bagu.org>
867 Use java-libglom 1.17.0.
871 2011-07-11 Ben Konrath <ben@bagu.org>
873 Remove "Table:" label from table selector.
875 This matches a recent change in the Glom UI.
877 * mockups/details-contacts.html:
878 * mockups/details-projects.html:
879 * mockups/listview-contacts.html:
880 * mockups/listview-projects.html: Remove the "Table:" label from the
882 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
884 2011-07-11 Ben Konrath <ben@bagu.org>
886 Add main groups to the details view.
888 This makes things look a little nicer in the details view. The next step
889 is to implement the flowtable.
891 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
892 resources from the standard gwt css theme. Standard.css is now
893 included in OnlineGlom.html so that the online glom css rules have
894 precedence over the gwt theme.
895 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
896 the whole LayoutGroup to the DetailsView instead of just the titles.
897 * src/main/java/org/glom/web/client/ui/DetailsView.java:
898 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
899 details layout with a helper class (GroupPanel). I might extract this
900 class when I make the full flowtable.
901 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
902 string as default so I don't have to worry about NPEs when processing
904 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
905 note beside OnlineGlom.gwt.xml above).
906 * src/main/webapp/style.css: Add default font-size to body to override
907 the font-size set by the standard theme. Don't use h2 tags for
908 group-title. Create new details-cell class.
910 2011-07-08 Murray Cumming <murrayc@murrayc.com>
912 ConfiguredDocument: Set the port number too.
914 * src/main/java/org/glom/web/server/ConfiguredDocument.java
915 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
916 Glom document. Presumably this worked sometimes so far because there is a
919 2011-07-08 Murray Cumming <murrayc@murrayc.com>
921 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
923 * src/main/java/org/glom/web/server/ConfiguredDocument.java
924 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
925 correct, though we should throw an exception too.
927 2011-07-08 Murray Cumming <murrayc@murrayc.com>
929 Fix a addDocuemnt typo.
931 * src/main/java/org/glom/web/shared/Documents.java
932 (Documents.addDocuemnt): Rename to addDocument().
933 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
934 (OnlineGlomServiceImpl.getDocuments): Adapt.
936 2011-07-08 Murray Cumming <murrayc@murrayc.com>
938 Slightly improved log output when connection fails.
940 * src/main/java/org/glom/web/server/ConfiguredDocument.java
941 (ConfiguredDocument.setUsernameAndPassword):
942 We don't know for sure if it' the username/password that's wrong, so
943 rephrase the message.
944 Also ouput the exception message, though it's generic in this case.
946 2011-07-08 Ben Konrath <ben@bagu.org>
950 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
951 added braces to a one line if statement because the Eclipse formatter
952 was getting confused.
954 2011-07-07 Ben Konrath <ben@bagu.org>
956 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
958 These should really be two separate tasks but I counldn't get things to
959 work with GWT 2.2.0 and Eclipse 3.7.
963 * .settings/org.eclipse.jdt.core.prefs:
964 * .settings/org.eclipse.jdt.ui.prefs:
965 * .settings/org.eclipse.ltk.core.refactoring.prefs:
966 * .settings/org.eclipse.m2e.core.prefs:
967 Add new config files. Update current files. Remove references to the
968 webtools plugins as we're not using any of the webtools features.
969 * .gitignore: Add logs directory which is created when running with
971 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
972 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
973 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
975 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
977 2011-07-07 Murray Cumming <murrayc@murrayc.com>
979 onlineglom.properties: Add explanatory comments.
981 * src/main/resources/onlineglom.properties: Also change the default user
982 from ben to someuser, to avoid the risk of people thinking we just
983 stupidly hard-coded a locale path, when they see that on stderr or in a log.
985 2011-06-28 Ben Konrath <ben@bagu.org>
987 Use filename in Log for incorrect passwords.
989 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
990 getFileName(String) method to get the filename from the URI.
992 2011-06-28 Ben Konrath <ben@bagu.org>
994 Add the table name to the URL token for the ListPlace.
996 This makes things consistent between the DetailsPlace and the
997 ListPlace. It also allows the the ListPlace to be bookmarked.
999 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1000 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1002 Remove getDefaultListLayout(). The default layout is now returned
1003 by the getListLayout() method when the table name is an empty string.
1004 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1005 Add table name field. Change to a new ListPlace when the table
1006 has been changed. Use getListLayout() for getting the default
1008 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1009 Add table name field. Set the correct table name in the list box
1010 when loading from bookmark. This corrects a problem for the
1012 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1013 Move table name to super-class (HasSelectableTable). Move document
1014 and table URL keys to super-class in HasSelectableTable.
1015 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1016 Add table name field. Add Tokenizer class with URL key common to
1017 the subclasses (DetailsPlace and ListPlace).
1018 * src/main/java/org/glom/web/client/place/ListPlace.java:
1019 Add table name. Add code to parse the URL token.
1020 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1021 Update ListPlace construction with empty table name string.
1022 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1023 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1024 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1025 Update ListPlace construction with table name string.
1026 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1027 Change defaultTableName field to tableName to reflect how it's now
1028 used. Update the getter and setter methods.
1030 2011-06-28 Ben Konrath <ben@bagu.org>
1032 Enable the table selector in the DetailsView.
1034 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1035 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1037 Remove getDefaultDetailsLayout(). The default layout is now returned
1038 by the getDetailsLayout() method when the table name is an empty
1040 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1041 event handler for table change event. Change to using
1042 getDetailsLayout() for the default details layout.
1043 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1045 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1046 when navigating to the details place.
1048 2011-06-27 Ben Konrath <ben@bagu.org>
1050 Use filename based unique document ID in URL and for RPC.
1052 The document ID is the glom document name with spaces (' ') replaced
1053 with pluses ('+') and without the .glom extension.
1055 This change is mostly a string substitution of 'documentTitle' for
1056 'documentID'. The only code change is the addition of a Documents DTO to get the
1057 filename to document title mappings as indicated below.
1059 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1060 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1061 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1062 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1063 Use Documents DTO to create the document links in the document
1065 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1066 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1067 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1068 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1069 * src/main/java/org/glom/web/client/place/ListPlace.java:
1070 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1071 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1072 * src/main/java/org/glom/web/client/ui/ListView.java:
1073 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1074 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1075 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1076 * src/main/java/org/glom/web/server/Log.java:
1077 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1078 getDocumentTitles() to getDocuments() and return the Documents DTO.
1079 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1080 transferring the filename to document title mappings.
1082 2011-06-25 Ben Konrath <ben@bagu.org>
1084 Make the authentication popup work again.
1086 This bug was introduced when I extracted ConfiguredDocument to its own class.
1088 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1089 correct success / fail status in setUsernameAndPassword().
1091 2011-06-25 Ben Konrath <ben@bagu.org>
1093 Use filename as unique key for configuring database usernames and passwords.
1095 This replaces the use of the Glom document title which could change
1096 depending on the locale. Thanks to Murray Cumming for pointing out this
1099 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1100 * src/main/resources/onlineglom.properties:
1102 2011-06-24 Ben Konrath <ben@bagu.org>
1104 Pass primary key value to DetailsView.
1106 This enables the DetailsView to load the correct data.
1108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1109 primary key value field and set in constructor. Pass primary key
1110 value to getDetailsData().
1111 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1112 variables for document title and primary key value.
1113 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1114 key value to the DetailsPlace.
1116 2011-06-24 Ben Konrath <ben@bagu.org>
1118 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1120 This allows the primary key to be retrieved by the Details button. This
1121 functionality has not been implemented yet but it's in the works.
1123 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1124 the LayoutGroup result to ListView.setCellTable instead of all of its
1125 fields individually.
1126 * src/main/java/org/glom/web/client/ui/ListView.java:
1127 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1128 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1129 get the primary key for the table.
1130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1131 index of the primary key in the LayoutGroup accounting for hidden
1132 primary keys. Rename getJavaNumberFormat() to
1133 convertToJavaNumberFormat() for consistency. Cleanup / add some
1135 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1136 field for primary key index and a field to indicate whether the
1137 primary key is hidden or not.
1139 2011-06-23 Ben Konrath <ben@bagu.org>
1141 Rename getTableData methods to getListData.
1143 This is a rename refactor for consistency with other methods.
1145 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1146 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1147 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1150 2011-06-23 Ben Konrath <ben@bagu.org>
1152 Extract the ConfiguredDocument innerclass into its own class.
1154 This makes the servlet code more object oriented.
1156 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1157 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1159 new ConfiguredDocument class.
1161 2011-06-21 Ben Konrath <ben@bagu.org>
1163 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1165 This makes things more inline with how libglom works and reduces code
1166 duplication. This refactor lays the groundwork for adding the primary key to
1167 the LayoutGroup object.
1169 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1170 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1172 Change method names to getListLayout and getDefaultListLayout for
1173 consistency. Use LayoutGroup as the DTO for the list layout instead of
1174 ColumnInfo and LayoutListTable.
1175 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1176 new method names along with the LayoutGroup object for transferring the
1178 * src/main/java/org/glom/web/client/ui/ListView.java:
1179 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1180 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1181 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1183 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1184 Replaced with LayoutGroup.
1185 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1186 expectedResultSize and defaultTableName fields which are needed for
1188 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1189 type field which is needed for the list layout but will also be
1190 useful for the details layout as things progress.
1191 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1192 Make class abstract. Remove the unnecessary
1193 getFormattingHorizontalAlignment method. Add setFormatting method.
1195 2011-06-16 Ben Konrath <ben@bagu.org>
1197 Add scripts for building and installing war.
1199 These will help when updating OnlineGlom but they're also good
1200 supplemental documentation of the build and deployment proceeding.
1202 * utils/build-onlineglom-war.sh: New file.
1203 * utils/install-onlineglom-war.sh: New file.
1205 2011-06-16 Ben Konrath <ben@bagu.org>
1207 Create wrapper class to create consistent log messages.
1209 I wrapped methods in the Log class of gwt-log to add the method names
1210 from the servlet and create consistent formatting of the document title
1211 and table names in the log messages.
1213 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1215 log methods to use methods from wrapped Log class.
1217 2011-06-16 Ben Konrath <ben@bagu.org>
1219 Remove superfluous conditional return.
1221 Thanks to Murray Cumming for pointing this out!
1223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1225 2011-06-15 Ben Konrath <ben@bagu.org>
1227 Return an ArrayList of LayoutGroups for the Details layout.
1229 This corrects a problem with the details layout as it can have more
1230 than one top level LayoutGroup.
1232 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1233 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1234 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1235 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1236 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1237 with ArrayList of LayoutGroups for the details view layout.
1238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1239 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1240 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1241 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1242 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1243 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1245 2011-06-14 Ben Konrath <ben@bagu.org>
1247 Use cast_dynamic method to determine the libglom LayoutItem type.
1249 This is better than finding the LayoutItem type by using the string
1250 returned from the get_part_type_name() method.
1252 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1254 2011-06-14 Ben Konrath <ben@bagu.org>
1256 Add method names to log entries in the servlet.
1258 This helps when tracking down deployment problems.
1260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1262 2011-06-14 Ben Konrath <ben@bagu.org>
1264 Add data to the DetailsView using a hard-coded primary key value.
1266 The layout and functionality of the DetailsView is not complete. This
1267 is just a checkpoint so the patch doesn't get too big.
1269 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1270 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1271 Add getDetailsData() servlet method.
1272 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1273 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1274 LayoutFields are added to the DetailsView.
1275 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1276 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1277 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1278 take the string for the title instead of the object.
1279 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1280 Add implementation getDetailsData() along with some private helper
1282 * src/main/webapp/style.css: Add padding to details-data class. Add a
1283 details-label class with the same padding as the details-data class.
1285 2011-06-03 Ben Konrath <ben@bagu.org>
1287 Use presenter.goTo() to change to the DetailsPlace.
1289 This will make things easier when we need to open the DetailsView with
1290 data specific to the row that was clicked.
1292 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1294 2011-06-02 Ben Konrath <ben@bagu.org>
1296 Add CSS file from mockups.
1298 I'm adding this now because it's going to be useful to have when
1299 developing the DetailsView. The TableSelectionView and ListView aren't
1302 * src/main/webapp/OnlineGlom.html:
1303 * src/main/webapp/style.css:
1305 2011-06-02 Ben Konrath <ben@bagu.org>
1307 Use String.isEmpty() to check for empty string.
1309 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1311 2011-06-02 Ben Konrath <ben@bagu.org>
1313 Display main layout group titles in the DetailsView.
1315 This is the start of the DetailsActivity/DetailsView implementation.
1317 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1318 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1319 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1320 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1321 Get the layout information for the details view from the server and set
1322 the main layout group titles.
1323 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1324 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1325 Add addLayoutGroup() and addLayoutField() methods. This are just
1326 temporary methods for creating the the details view that will change
1328 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1329 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1331 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1332 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1333 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1334 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1335 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1336 Data Transfer Objects that mimic the libglom object structure. These are
1337 used for transferring the details layout but could also be used for
1338 transferring the list layout.
1340 2011-05-27 Ben Konrath <ben@bagu.org>
1342 Reset the AuthenticationPopup when clearing the ListView.
1344 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1346 2011-05-27 Ben Konrath <ben@bagu.org>
1348 Fix problem with onlineglom.properties file loading.
1350 The old way worked in Eclipse but not on the server. Loading the
1351 onlineglom.properties file now works in Eclipse and on the server.
1353 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1355 2011-05-24 Ben Konrath <ben@bagu.org>
1357 Update gwt-log from 3.1.0 to 3.1.2.
1359 Gwt-log 3.1.0 has been marked as depreciated.
1363 2011-05-24 Ben Konrath <ben@bagu.org>
1365 Add comment to ListActivity.goTo() method.
1367 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1369 2011-05-24 Ben Konrath <ben@bagu.org>
1371 Remove FIXME in convertGdkColorToHtmlColour()
1373 The Gdk::Color value returned by libglom is 16-bits per channel on both
1374 64 and 32-bit platforms.
1376 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1378 2011-05-19 Ben Konrath <ben@bagu.org>
1380 Improve performance of initial ListView load.
1382 I removed a round trip to the server for getting the default table name
1383 and then requesting information about that table. This also removes a potential
1384 problem with the table change handler not being setup in time to receive the
1385 table change event from the ListActivity.
1387 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1388 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1389 getDefaultLayoutListTable() method. Improve comments.
1390 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1391 getDefaultLayoutListTable() method instead of firing a table change
1392 event to get the table to load.
1393 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1394 implementation of getDefaultLayoutListTable() method.
1395 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1398 2011-05-19 Ben Konrath <ben@bagu.org>
1400 Override toDebugString() in TableChangeEvent.
1402 This is useful to have for debugging.
1404 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1406 2011-05-19 Ben Konrath <ben@bagu.org>
1408 Add a "Back to List" link when at the DetailsPlace.
1410 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1411 Populate the CellTable based on the selected table of the ListBox if
1412 it's set otherwise use the default table. This allows the "Back to
1414 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1415 Remove Place from constructors. Add a setPlace() method. Add
1416 goToPlace() method. Set class as presenter for TableSelectionView.
1417 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1418 Use the same TableSelectionActivity when switching between the List and
1420 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1421 Subclass the new HasSelectableTablePlace. This removes some duplicate
1423 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1424 New class to represent Places that display the TableSelectionView.
1425 * src/main/java/org/glom/web/client/place/ListPlace.java:
1426 Subclass the new HasSelectableTablePlace. This removes some duplicate
1428 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1429 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1430 Add Presenter interface. Add setBackLinkVisible() method. Add
1431 setBackLink() method.
1433 2011-05-18 Ben Konrath <ben@bagu.org>
1435 Enable the "Details" buttons.
1437 Right now only an empty details view is displayed.
1439 * src/main/java/org/glom/web/client/ClientFactory.java:
1440 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1441 Add DetailsView to ClientFactory.
1442 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1443 A basic activity for the details view.
1444 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1445 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1447 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1448 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1450 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1451 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1452 unnecessary super() in constructor.
1453 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1454 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1455 really shouldn't create a new TableSelectionActivity for both the ListPlace
1456 and the DetailsPlace so this should be considered a temporary solution.
1457 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1458 New file. Represents a URL for the details view.
1459 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1460 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1461 A basic details view interface and implementation.
1462 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1463 Enable the "Details" buttons.
1465 2011-05-12 Ben Konrath <ben@bagu.org>
1467 Use a LayoutPanel with multiple display areas for main layout.
1469 This is mostly a refactor in that there are no changes from the user
1470 point of view. These changes are required so that we can swap out the list view
1471 with the details view when the user clicks the "Details" button.
1473 * src/main/java/org/glom/web/client/ClientFactory.java:
1474 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1475 OnlineGlomView. Add TableSelectionView, ListView and
1476 AuthenticationPopup.
1477 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1478 for main layout. Add display regions for main activities. Add
1479 activity manager for for main activities.
1480 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1481 file from parts of the deleted OnlineGlomActivity.
1482 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1483 New file from parts of the deleted OnlineGlomActivity.
1484 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1485 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1486 New files for app wide table change event.
1487 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1488 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1489 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1490 Activity mappers for the main activities replace the deleted app-wide
1492 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1493 Fix a spelling error in he comment.
1494 * src/main/java/org/glom/web/client/ui/ListView.java:
1495 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1496 Renamed from LayoutListView and modified for MVP. This still not a
1497 proper dumb view as prescribed by the MVP pattern but it works for now.
1498 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1499 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1500 New widget stripped out of the deleted OnlineGlomView.
1501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1502 Remove hack that is fixed by this patch.
1504 2011-05-06 Ben Konrath <ben@bagu.org>
1506 Rename OnlineGlomPlace to ListPlace.
1508 The only change besides the rename is that url will now display #list
1509 instead of #Document.
1511 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1512 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1513 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1514 * src/main/java/org/glom/web/client/place/ListPlace.java:
1515 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1517 2011-05-06 Ben Konrath <ben@bagu.org>
1519 Use Presenter for app navigation.
1521 This is the proper way to deal with Place (URL) changes with the MVP
1524 * src/main/java/org/glom/web/client/ClientFactory.java:
1525 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1526 PlaceHistoryMapper and PlaceHistoryHandler.
1527 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1528 PlaceHistoryMapper and PlaceHistoryHandler.
1529 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1530 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1531 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1532 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1533 Add Presenter interface and setPresenter methods. Rename addHyperLink
1534 to addDocumentLink taking only the document title as a parameter.
1536 2011-04-14 Ben Konrath <ben@bagu.org>
1538 Prompt for db username/password if they haven't been set.
1540 This is implemented with a popup widget that is contained within the
1541 OnlineGlomView and managed by the OnlineGlomActivity.
1543 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1544 methods for checking and setting the database username and password.
1545 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1546 new methods for checking and setting the database username and
1548 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1549 Display authentication popup if the JDBC connection to the database
1550 has not been authenticated.
1551 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1553 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1554 for dealing with the authentication popup.
1555 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1556 Implement the methods for dealing with the authentication popup.
1557 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1558 try to executed queries if the database connection hasn't been
1559 authenticated. Implement methods for checking and setting the
1560 database username and password.
1562 2011-04-12 Ben Konrath <ben@bagu.org>
1564 Make log messages a little clearer.
1566 Add a dash betweeen the document title and the table name.
1568 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1570 2011-04-12 Ben Konrath <ben@bagu.org>
1572 Protect against NPEs when cleaning up database resources.
1574 While this isn't strictly necessary because the exception is caught,
1575 not protecting against the NPEs makes it harder to find the real error
1578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1580 2011-04-12 Ben Konrath <ben@bagu.org>
1582 Move configuration of the servlet to the constructor.
1584 The servlet will be initialized even if the database authentication
1585 information is not set or correct. I still need to add the UI for prompting
1586 the user for the authentication information when it's required.
1588 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1589 javadocs for getDocumentTitles() method.
1590 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1591 Set error message when RPC fails.
1592 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1593 glom files directory from the configuration file. Try to set the
1594 database authentication information for the specific document if it's
1595 set and works otherwise try to use the global authentication
1596 information set for the directory.
1597 * src/main/resources/onlineglom.properties: Moved from
1598 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1599 Added detailed comments for the new keys.
1601 2011-04-11 Ben Konrath <ben@bagu.org>
1603 Remove unnecessary @Override in DocumentSelectionViewImpl.
1605 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1607 2011-04-11 Ben Konrath <ben@bagu.org>
1609 Remove center alignment in DocumentSelectionView.
1611 The title element is still centred but the document titles and bottom
1612 sentence are both left-aligned.
1614 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1616 2011-04-11 Ben Konrath <ben@bagu.org>
1618 Change 'Demo' naming convention to 'Document'.
1620 This is just a rename refactor with no functional changes to the code.
1622 * src/main/java/org/glom/web/client/ClientFactory.java:
1623 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1624 * src/main/java/org/glom/web/client/OnlineGlom.java:
1625 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1626 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1627 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1628 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1629 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1630 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1631 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1632 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1633 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1634 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1636 2011-04-08 Ben Konrath <ben@bagu.org>
1638 Remove FIXME from safeLongToInt() method.
1640 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1645 2011-04-08 Ben Konrath <ben@bagu.org>
1647 Display an error if no glom documents are found in the specified directory.
1649 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1650 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1651 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1652 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1654 2011-04-08 Ben Konrath <ben@bagu.org>
1656 Add copyright header to one more file ... oops.
1658 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1660 2011-04-08 Ben Konrath <ben@bagu.org>
1662 Add copyright header to files without it.
1664 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1665 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1666 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1667 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1668 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1669 * src/main/java/org/glom/web/shared/GlomField.java:
1671 2011-04-08 Ben Konrath <ben@bagu.org>
1673 Add support for accessing multiple glom documents in the servlet.
1675 This completes the demo selection functionality.
1677 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1678 document title to methods.
1679 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1680 document title to methods.
1681 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1682 Set browser window title when the activity starts. Correct name of
1683 document title variable.
1684 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1685 Set browser window title when the activity starts. Set the table
1686 selector change handler after table selector has been set. Clear the
1687 OnlineGlomView when the activity has been stopped.
1688 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1689 document title as the place token. Use "#Document:" instead of
1690 "#OnlineGlomPlace:" in the URL.
1691 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1692 Change heading to "Online Glom"
1693 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1694 document title in RPC methods.
1695 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1696 setDocumentTitle() method. Add clear() method.
1697 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1698 setDocumentTitle() method. Implement clear() method which removes the
1699 change handler on the ListBox, clears the ListBox and clears the
1701 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1702 Implement methods with document title. Keep track for the configured
1703 glom documents and their corresponding JDBC configurations in a hash
1704 table. This information is retrieved using the document title as the
1705 key in the hash table.
1706 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1707 document title field as it's no longer needed.
1709 2011-04-08 Ben Konrath <ben@bagu.org>
1711 Update the Eclipse JDT configuration.
1713 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1714 methods. Automatically add the copyright header to new files.
1716 2011-04-05 Ben Konrath <ben@bagu.org>
1718 Add new page for demo selection.
1720 This patch adds all the components required to view and start an
1721 OnlineGlom demo by clicking on the desired hyperlink. The user is
1722 able to return to the demo selection page with the browser's back
1723 button. I still need to modify the servlet to work with multiple
1724 documents so all demo links will load the file defined in the
1725 OnlineGlom.properties.
1727 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1728 This is only useful during development so we don't need to save it.
1729 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1730 get a reference to the DemoSelectionView.
1731 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1732 method to get a reference to the DemoSelectionView.
1733 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1734 default view to DemoSelectionView.
1735 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1736 to get glom document titles for glom files in a hard-coded directory.
1737 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1738 method to get glom document titles for glom files in a hard-coded
1740 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1741 Presenter for DemoSelectionView.
1742 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1743 for DemoSelectionView.
1744 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1745 Update for DemoSelectionView.
1746 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1747 Basic 'Place' implementation for the DemoSelectionView.
1748 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1749 The interface for the DemoSelectionView.
1750 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1751 The implementation of the DemoSelectionView.
1752 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1753 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1754 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1755 implementation of method to get glom document titles for glom files
1756 in a hard-coded directory.
1757 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1758 on longer being used.
1759 * src/main/webapp/glom.png: Glom logo.
1761 2011-04-05 Ben Konrath <ben@bagu.org>
1763 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1765 This is the forth and final commit of a refactor that will allow
1766 OnlineGlom to be used with multiple documents.
1768 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1769 Move RPC code from OnlineGlomViewImpl to this class.
1770 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1772 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1773 RPC code to the presenter class (the P in MVP).
1775 2011-04-04 Ben Konrath <ben@bagu.org>
1777 Start moving the existing OnlineGlom code to MVP.
1779 This work is based on the GWT MVP framework that is documented here:
1781 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1783 This is the third commit of a refactor that will allow OnlineGlom to
1784 be used with multiple documents.
1786 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1787 Interface for client factory which is used to get instances of various
1788 classes throughout the app.
1789 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1790 Implementation of client factory.
1791 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1792 initialize the MVP framework.
1793 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1794 New file. Activity manager for the main container widget. This is the
1796 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1797 Maps place (URL) to its corresponding activity.
1798 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1799 New file. This is just a place holder for a generated file.
1800 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1801 New file. Represents the URL for the main Online Glom app.
1802 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1803 for changes in LayoutListViewImpl.
1804 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1805 interface for View. Move code to OnlineGlomViewImpl class.
1806 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1807 file. Implementation of OnlineGlomView.
1808 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1809 Place resources. Use ClientFactoryImpl by default.
1811 2011-04-04 Ben Konrath <ben@bagu.org>
1813 Move View classes to their own package.
1815 This is the second commit of a refactor that will allow OnlineGlom to
1816 be used with multiple documents.
1818 * src/main/java/org/glom/web/client/OnlineGlom.java:
1819 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1820 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1822 2011-04-02 Ben Konrath <ben@bagu.org>
1824 Move UI code from the main module to its own class.
1826 This is the first commit of a refactor that will allow OnlineGlom to be
1827 used with multiple documents.
1829 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1830 references to OnlineGlom to OnlineGlomView.
1831 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1832 OnlineGlomView and instantiate it here.
1833 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1834 represents the main OnlineGlomView with one document.
1836 2011-04-01 Ben Konrath <ben@bagu.org>
1838 Fix formatting of gwt.xml and add DTD.
1840 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1842 2011-03-30 Ben Konrath <ben@bagu.org>
1844 Propperly convert gdkColor string to html colour string.
1846 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1848 2011-03-28 Ben Konrath <ben@bagu.org>
1850 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1852 This implementation matches
1853 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1854 readable and is not tied to Swig.
1856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1858 2011-03-28 Ben Konrath <ben@bagu.org>
1860 Use read-only checkboxes for boolean field types.
1862 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1863 in the CellTable based on the field type. It currently only
1864 distinguishes between boolean and text columns but I'll need to add
1865 support for more types.
1866 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1867 column type in the ColumnInfo object. Add method to convert between the
1868 glom field type enum in ColumnInfo and the glom field type in libglom.
1869 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1871 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1872 getting and setting booleans.
1874 2011-03-25 Ben Konrath <ben@bagu.org>
1876 Don't get the Date twice from the ResultSet.
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1880 2011-03-25 Ben Konrath <ben@bagu.org>
1882 Cleanup code in the servlet.
1884 * TODO: Remove item about row count. Add item about testing row count
1885 query with large number of rows.
1886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1887 spelling mistakes, change method parameter to be consistent with
1890 2011-03-25 Ben Konrath <ben@bagu.org>
1892 Add server side logging with the gwt-log library.
1894 * .gitignore: Ignore the log file we're now producing.
1895 * TODO: Add a couple TODO item for logging.
1896 * pom.xml: Add gwt-log and log4j as a dependency.
1897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1898 logging of errors, warnings and some important info.
1899 * src/main/resources/log4j.properties: New file to configure log4j.
1901 2011-03-24 Ben Konrath <ben@bagu.org>
1903 Add a disable button for the Details view.
1905 * src/main/java/org/glom/web/client/LayoutListView.java:
1907 2011-03-22 Ben Konrath <ben@bagu.org>
1909 Use a count query to get the number of rows for the list view pager.
1911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1913 2011-03-22 Ben Konrath <ben@bagu.org>
1915 Add more TODO information about CellTable pager positioning.
1919 2011-03-19 Ben Konrath <ben@bagu.org>
1921 Add TODO item about CellTable pager positioning.
1925 2011-03-18 Ben Konrath <ben@bagu.org>
1927 Remove unneeded GlomFieldColumn class.
1929 This is just a small code cleanup.
1931 * src/main/java/org/glom/web/client/LayoutListView.java:
1933 2011-03-18 Ben Konrath <ben@bagu.org>
1935 Use cursor mode in the query that gets data for the list view.
1937 I still need to fix the potential memory problem when getting the row
1938 count for the list view.
1940 * TODO: Add note about testing memory usage with large data sets. Add
1941 item about fixing row counting with large data sets.
1942 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1943 PostgreSQL JDBC driver into cursor mode when getting data for the
1946 2011-03-15 Ben Konrath <ben@bagu.org>
1948 Remove the GWT Container from the Eclipse build classpath.
1950 The GWT dependencies are set by Maven so this isn't needed.
1954 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1956 Added some earlier mockups to git, but not to the tarball dist.
1958 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1959 Openismus. These hopefully show how we might structure the HTML so that
1960 it can be styled easily with CSS. However, we probably need to adapt them
1961 for the CSS structure that GWT dictates for common widgets.
1963 2011-03-14 Ben Konrath <ben@bagu.org>
1965 Locate OnlineGlom.properties using the ServletContext.
1967 This is required to be able to locate the file in the deployed servlet.
1969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1970 Configure the database and glom document in in a helper method so
1971 that the ServletContext can be used to locate OnlineGlom.properties.
1972 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1973 src/main/webapp. This is the proper location for .properites files.
1975 2011-03-12 Ben Konrath <ben@bagu.org>
1977 Add note to README about why we're compiling down to obfuscated JavaScript.
1981 2011-03-11 Ben Konrath <ben@bagu.org>
1983 Use properties file to configure servlet.
1985 This allows people to change the glom file path, db username and db
1986 password without recompiling the code.
1988 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1989 * src/main/webapp/OnlineGlom.properties:
1991 2011-03-11 Ben Konrath <ben@bagu.org>
1993 Use table fields in layout list view if the layout list is not defined.
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1996 Manually create a LayoutFieldVector for the query builder using the
1997 table fields when a layout list is not defined in the glom file.
1999 2011-03-11 Ben Konrath <ben@bagu.org>
2001 Only show FIXME string for images when there's an image.
2003 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2004 in this change are some small code cleanups.
2006 2011-03-11 Ben Konrath <ben@bagu.org>
2008 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2010 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2012 2011-03-11 Ben Konrath <ben@bagu.org>
2014 Correctly set the index of the default table.
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2017 Correctly set the index of the default table. Add commented out example
2020 2011-03-10 Ben Konrath <ben@bagu.org>
2022 Add comment to pom.xml about the previous change.
2024 * pom.xml: Add comment about the deployment issue so that it's obvious
2025 why java-libglom is set to the provided scope.
2027 2011-03-10 Ben Konrath <ben@bagu.org>
2029 Change java-libglom dependency from compile to provided in pom.xml.
2031 Since java-libglom uses jni it can only be loaded once and therefore
2032 must be placed in $CATALINA_HOME/lib and not included in each war.
2033 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2034 More information about this issue can be found in the Tomcat 6 release
2035 notes in the "JNI Based Applications" section:
2037 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2039 * README: Remove note about this issue. Deployment info should really
2040 be on the wiki anyway so I'll add it right now.
2041 * pom.xml: Change java-libglom dependency from compile to provided so
2042 that it's copied in to the packaged war.
2044 2011-03-09 Ben Konrath <ben@bagu.org>
2046 Change to using a neutral locale for currency, date and time formatting.
2048 This solves the problem of currency values being represented without a
2049 space between the currency code and the number (e.g. "EUR5.89" is now
2050 represented as "EUR 5.89"). More work is required when we implement
2051 a locale preference setting.
2053 * TODO: Add note about currency formatting issues with different
2055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2056 to using the neutral ROOT locale.
2058 2011-03-09 Ben Konrath <ben@bagu.org>
2060 Add support for currency codes that are not ISO 4217 codes.
2062 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2063 the currency code defined in the glom file when it's not 3 characters
2064 long or when Java doesn't recognize the string as an ISO 4217 code.
2066 2011-03-08 Ben Konrath <ben@bagu.org>
2068 Remove test classes, launch configurations and configuration.
2070 The test stuff was getting in the way when creating the war. To make
2071 the war file you can now do 'mvn clean package'. The packaged war file
2072 will be in the target directory.
2074 * .classpath: Remove unused classpathentry for tests and i18n.
2075 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2076 property. Don't run test or i18n goals when packaging the war.
2077 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2082 * OnlineGlomTest-dev.launch:
2083 * OnlineGlomTest-prod.launch:
2084 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2085 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2087 2011-03-07 Ben Konrath <ben@bagu.org>
2089 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2091 These fixes allow me to use 'mvn deploy' to create the war file.
2093 * .classpath: This generated config has been updated by Eclipse. This
2094 change was probably triggered by me updating from Eclipse 3.6.1 to
2096 * .gitignore: Add entry to ignore the directory
2097 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2098 * .project: The generated config has been updated by Eclipse. This
2099 change was probably triggered by me updating from Eclipse 3.6.1 to
2101 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2102 so that Eclipse doesn't complain
2103 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2104 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2105 'tests' directory to 'client' directory. This is the new
2106 gwt-maven-plugin convension.
2107 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2108 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2110 2011-03-07 Ben Konrath <ben@bagu.org>
2112 Add support for horizontal alignment in the LayoutList columns.
2114 * TODO: Remove item about horizontal alignment. Add item about
2115 improvements to ColumnInfo.
2116 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2117 alignment on the columns. Use ColumnInfo RPC object get the column
2118 title and horizontal alignment.
2119 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2120 LayoutListView creation with ColumnInfo RPC object.
2121 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2122 a ColumnInfo object for every LayoutList columnn. Convert the
2123 FieldFormatting.HorizontalAlignment to the correct
2124 ColumnnInfo.HorizontatlAlignment with the new
2125 getColumnInfoHorizontalAlignment helper method.
2126 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2127 to encapsulate column information like alignment and title. This
2128 could be used to set the colour instead of on a per cell field basis.
2129 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2130 column title storage and retrieval with ColumnInfo.
2132 2011-03-04 Ben Konrath <ben@bagu.org>
2134 Add support for column sorting.
2136 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2137 AsynDataProvider to be an anonymous inner class. Use new
2138 getSortedTableData RPC method when column sort is requested. Set all
2139 columns sortable and add an AsyncHandler to activate sorting in the
2141 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2142 method getSortedTableData(). Cleanup other method signatures.
2143 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2144 new method getSortedTableData(). Cleanup other method signatures.
2145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2146 Implement getSortedTableData() and getTableData() methods by using a
2147 private helper method with the appropriate parameters filled in. Use
2148 user supplied sort clause when supplied, otherwise fall back to
2149 sorting by the primary key. Move destroy() method to be underneath
2150 constructor for readability. Cleanup comments.
2152 2011-03-03 Ben Konrath <ben@bagu.org>
2154 Add support for colour text and colour backgrounds to the layout list cells.
2156 Only the cell backgrounds are coloured which leaves a gap between the
2157 cells that isn't coloured. I need to figure out a way to set
2158 'style=background-colour:' on the whole column rather than just the
2161 * TODO: Add a note about colouring the background of the whole column.
2162 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2163 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2164 render the coloured text and backgrounds. Use GlomField[] for the row type.
2165 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2167 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2168 GlomField[] for the row type.
2169 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2170 GlomField[] for the row type. Set the text, text colour and background
2171 colour in the GlomField objects as specified in the glom document. Add
2172 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2173 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2174 the glom field text, foreground colour and background colour.
2176 2011-03-02 Ben Konrath <ben@bagu.org>
2178 Don't display hidden tables in the combo box.
2180 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2183 code to ignore hidden tables using ArrayLists for the table names and
2185 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2186 tableNames to use ArrayLists instead of String[]. Update getter and setter
2189 2011-03-01 Ben Konrath <ben@bagu.org>
2191 Add support for Date and Time number types.
2193 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2194 Implement formatting for Date and Time values. Change the default glom
2195 file to small business example.
2197 2011-03-01 Ben Konrath <ben@bagu.org>
2199 Add support for formatting glom types as specified in the glom file.
2201 Formatting isn't finished yet - I still need to add support for Date
2204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2205 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2206 checks for null values in JDBC cleanup code and catch all exceptions
2207 instead of just SQLExceptions.
2208 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2211 2011-03-01 Ben Konrath <ben@bagu.org>
2213 Use GWT 2.2.0 instead of 2.1.1.
2215 * pom.xml: Change GWT version numbers.
2217 2011-03-01 Ben Konrath <ben@bagu.org>
2219 A few small code cleanups.
2221 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2223 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2224 unnecessary object creation in constructor.
2225 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2226 unnecessary object creation in constructor.
2228 2011-02-28 Ben Konrath <ben@bagu.org>
2230 Add file for TODO list.
2234 2011-02-18 Ben Konrath <ben@bagu.org>
2236 Enable the CellTable Pager when more than 20 rows need to be viewed.
2238 The Pager will automatically become active when the results are larger
2239 than the CellTable size which is currently set to 20 lines.
2241 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2242 name on debug statment in RPC call in LayoutListDataProvider, add
2243 numRows parameter to LayoutListView constructor, propperly set rowCount
2245 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2246 name on debug statment in RPC call, use LayoutListTable object in RPC
2247 calls, pass rowCount to LayoutListView.
2248 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2249 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2251 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2252 interface for changes in OnlineGlomService.
2253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2254 getLayoutListHeaders() to getLayoutListTable() and return
2255 LayoutListTable. Using this object allows me to pass other information
2256 about the LayoutList like the expected number of rows in the result set.
2257 The Connection object from the connection pool is now propperly closed.
2258 Only the requested number of lines are returned to the client in
2260 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2261 GlomTable and add columnTitles and numRows.
2263 2011-02-18 Ben Konrath <ben@bagu.org>
2265 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2267 This is a small performance boost. I'll use GlomTable to get the required
2268 layoutlist information.
2270 * src/main/java/org/glom/web/client/OnlineGlom.java:
2271 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2272 * src/main/java/org/glom/web/shared/GlomDocument.java:
2274 2011-02-18 Ben Konrath <ben@bagu.org>
2276 Add option to turn off formatting in JDT formatter preferences.
2278 * .settings/org.eclipse.jdt.core.prefs:
2280 2011-02-18 Ben Konrath <ben@bagu.org>
2282 Rename LayoutList to LayoutListView.
2284 I'm working towards setting things up to easily use MVP when the time
2287 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2289 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2292 2011-02-17 Ben Konrath <ben@bagu.org>
2294 Move LayoutListDataProvider class into LayoutList.java.
2296 * src/main/java/org/glom/web/client/LayoutList.java:
2298 2011-02-17 Ben Konrath <ben@bagu.org>
2300 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2302 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2304 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2305 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2306 from LibGlomServer.java.
2307 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2308 Rename from LibGlomServiceAsync.java.
2309 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2310 Rename from LibGlomServiceImpl.java.
2311 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2313 2011-02-17 Ben Konrath <ben@bagu.org>
2315 Update JDT settings.
2317 * .settings/org.eclipse.jdt.core.prefs:
2319 2011-02-17 Ben Konrath <ben@bagu.org>
2321 Move GWT-RPC objects to shared package (where they should be).
2323 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2324 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2325 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2326 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2327 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2328 org.glom.web.shared package.
2329 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2330 org.glom.web.shared package.
2331 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2332 directory in compilation to javascript.
2334 2011-02-16 Ben Konrath <ben@bagu.org>
2336 Add sort clause to the sql query that grabs table information.
2338 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2339 if one of the columns is a primary key.
2341 2011-02-16 Ben Konrath <ben@bagu.org>
2343 Disable generateAsync feature of gwt-maven.
2345 The generated interface does not correctly match the methods in LibGlomService
2346 and the generated singleton Util inner-class doesn't respect the servlet
2349 * pom.xml: Turn off generateAsync feature.
2350 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2351 with singleton Util inner-class.
2353 2011-02-14 Ben Konrath <ben@bagu.org>
2355 Add LGPL v3 licence notices.
2357 Followed directions listed here:
2358 http://www.gnu.org/licenses/gpl-howto.html
2360 * COPYING: This file is a copy of the GPL v3.
2361 * COPYING.LESSER: This file is a copy of the LGPL v3.
2362 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2364 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2366 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2368 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2370 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2372 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2374 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2377 2011-02-14 Ben Konrath <ben@bagu.org>
2379 Use ArrayList instead of Array in GWT-RPC calls.
2381 Apparently this gives a slight performance boost to the compiled
2384 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2386 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2389 2011-02-14 Ben Konrath <ben@bagu.org>
2391 Access data from a postgres db rather than the example glom file.
2393 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2394 compile down to obfuscated javascript.
2395 * pom.xml: Add c3p0 and postgres JDBC libraries.
2396 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2397 using a postgres db accessed through the c3p0 connection pooling library.
2399 2011-02-14 Ben Konrath <ben@bagu.org>
2401 Update Java formatter settings.
2403 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2405 2011-02-02 Ben Konrath <ben@bagu.org>
2407 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2409 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2411 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2412 the compiled webapp directory that Eclipse uses as we're using Maven now.
2413 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2414 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2416 * pom.xml: Format file, change target Java version to 1.6.
2418 2011-02-02 Ben Konrath <ben@bagu.org>
2420 Add information about a deployment related issue.
2422 * README: Add Notes section with the problem outlined.
2424 2011-02-02 Ben Konrath <ben@bagu.org>
2426 Call Glom.libglom_deinit() when the servlet is shutdown.
2428 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2429 Glom.libglom_deinit() to destroy() method.
2431 2011-01-28 Ben Konrath <ben@bagu.org>
2433 Use generated Util class to get the RPC Async interface.
2435 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2437 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2438 getInstance() method to get a reference to the RPC Async interface.
2439 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2440 getInstance() method to get a reference to the RPC Async interface, remove
2441 the now unused getLibGlomServiceProxy() method.
2443 2011-01-27 Ben Konrath <ben@bagu.org>
2445 Cleanup ChangeLog entry from previous commit.
2447 * ChangeLog: Group logical changes together and add comments.
2449 2011-01-25 Ben Konrath <ben@bagu.org>
2451 Convert to gwt-maven project.
2453 * .gitignore: Update for new project structure.
2454 * README: New file with a link to the online documentation.
2455 * pom.xml: The generated maven configuration file with some tweaks.
2457 Add / update Eclipse settings. These files are a merge of the files that
2458 were generated with the gwt-maven plugin and the files we were previously
2462 * .settings/.jsdtscope:
2463 * .settings/com.google.gdt.eclipse.core.prefs:
2464 * .settings/com.google.gwt.eclipse.core.prefs:
2465 * .settings/org.eclipse.jdt.core.prefs:
2466 * .settings/org.eclipse.wst.common.component:
2467 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2468 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2469 * .settings/org.maven.ide.eclipse.prefs:
2470 * OnlineGlomTest-dev.launch:
2471 * OnlineGlomTest-prod.launch:
2473 Java source files moved from the 'src' directory to the directory structure
2475 * src/main/java/org/glom/web/client/GlomDocument.java:
2476 * src/main/java/org/glom/web/client/GlomTable.java:
2477 * src/main/java/org/glom/web/client/LayoutList.java:
2478 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2479 * src/main/java/org/glom/web/client/LibGlomService.java:
2480 * src/main/java/org/glom/web/client/OnlineGlom.java:
2481 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2483 Non-functional property file used for translations. I included this as
2484 reminder that it's something I need to sort out.
2485 * src/main/resources/org/glom/web/client/Messages.properties:
2487 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2488 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2490 The servlet configuration files moved from the 'war' directory.
2491 * src/main/webapp/OnlineGlom.css:
2492 * src/main/webapp/OnlineGlom.html:
2493 * src/main/webapp/WEB-INF/web.xml:
2495 Generated test files with most of the code commented out. I included these
2496 so that it's easy to add tests when we're ready for them.
2497 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2498 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2500 2011-01-25 Ben Konrath <ben@bagu.org>
2502 Remove unused println.
2504 * src/org/glom/web/server/LibGlomServiceImpl.java:
2506 2011-01-25 Ben Konrath <ben@bagu.org>
2508 Add project specific JDT settings.
2510 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2511 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2513 2011-01-25 Ben Konrath <ben@bagu.org>
2515 Populate celltable with example data.
2517 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2518 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2519 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2520 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2521 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2522 asynchronously gets the example data.
2523 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2524 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2525 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2526 curently selected table to be retrieved by other widgets.
2527 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2528 implement getTableData() in a hacky way. This method needs to be updated
2529 to grab information from the database when database creating is
2532 2011-01-20 Ben Konrath <ben@bagu.org>
2534 Set table headers when table dropBox changes.
2536 * src/org/glom/web/client/GlomDocument.java: Correct some method
2538 * src/org/glom/web/client/LibGlomService.java: Add method
2539 to get list layout field names.
2540 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2541 to get list layout field names.
2542 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2543 widget for list layout table.
2544 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2545 the table drop box and add new updateTable() method to asynchronously
2546 get the layout list field names for the currently selected table.
2547 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2548 implementation of getLayoutListHeaders() method.
2549 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2551 2011-01-18 Ben Konrath <ben@bagu.org>
2553 Make a listBox with table titles instead of the flexTable demo.
2555 This is the start of something more useful.
2557 * .classpath: Exclude a bunch of packages from the JVM that are
2558 getting in the way of the Eclipse content assist.
2559 * src/org/glom/web/client/GlomDocument.java:
2560 * src/org/glom/web/client/GlomTable.java:
2561 * src/org/glom/web/client/LibGlomService.java:
2562 * src/org/glom/web/client/LibGlomServiceAsync.java:
2563 * src/org/glom/web/client/OnlineGlom.java:
2564 * src/org/glom/web/server/LibGlomServiceImpl.java:
2565 * war/OnlineGlom.html:
2566 * war/WEB-INF/web.xml:
2568 211-01-13 Ben Konrath <ben@bagu.org>
2570 Update to new java-libglom API.
2572 * .gitignore: Ignore OnlineGlom.war.
2573 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2575 2010-12-20 Ben Konrath <ben@bagu.org>
2577 Add some basic style to the table listing.
2579 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2580 header, print useful error message on async callback failure.
2581 * war/OnlineGlom.css: Add style for table header, remove defaults
2582 provided by the Eclipse project wizard.
2584 2010-12-20 Ben Konrath <ben@bagu.org>
2586 Load example file from installed glom dir.
2588 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2589 provided by java-libglom to find the example file.
2591 2010-12-20 Ben Konrath <ben@bagu.org>
2593 Update Eclipse settings.
2596 * .settings/com.google.gdt.eclipse.core.prefs:
2597 * .settings/com.google.gwt.eclipse.core.prefs:
2599 2010-12-17 Ben Konrath <ben@bagu.org>
2603 * .classpath: New file.
2604 * .gitignore: New file.
2605 * .project: New file.
2606 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2607 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2608 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2609 * src/org/glom/web/client/GlomTable.java: New file.
2610 * src/org/glom/web/client/OnlineGlom.java: New file.
2611 * src/org/glom/web/client/TableNameService.java: New file.
2612 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2613 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2614 * war/OnlineGlom.css: New file.
2615 * war/OnlineGlom.html: New file.
2616 * war/WEB-INF/web.xml: New file.
2617 * war/images/glom.png: New file.