1 2011-10-24 Ben Konrath <ben@bagu.org>
3 Create Notebook widgets to the details view.
5 This isn't finished just yet - I still need to create a reasonable
6 style to match the current theme.
8 * src/main/java/org/glom/web/client/Utils.java: Add method for
9 calculating the height of a widget. This is used in the Notebook class.
10 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
11 new constructor method in Group.
12 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
13 method for creating child widget that can be used by subclasses
14 like Notebook. New constructor that allows disabling the group
15 titles - Notebooks don't set a group title for their child groups.
16 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
17 to make Notebooks using GWT's TabLayoutPanel.
18 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
19 constructor that allows disabling the group titles.
20 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
21 LayoutItemNotebook DTO.
22 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
23 DTO for Notebooks. It's just an empty class for now but we might need
24 it to transfer some specific information in the future.
26 2011-10-21 Ben Konrath <ben@bagu.org>
28 Add navigation buttons to related list tables.
30 * src/main/java/org/glom/web/client/OnlineGlomService.java:
31 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
32 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
33 method getSuitableRecordToViewDetails() for getting the table name
34 and primary key value for related list navigation buttons.
35 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
36 private cell renderer class to get the navigation information for
37 related list tables from the server. Extract the navigation
38 processing code from the details cell navigation and use it for the
39 related list navigation as well.
40 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
41 cell renderer class for the details open buttons. This was needed
42 because the related list navigation buttons and the list view
43 navigation buttons need to react differently when clicked.
44 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
45 the onEnterKeyDown() method because it's now overriden in the
46 subclasses that are specific to the related list tables and the list
48 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
49 the vertical size a little because the buttons add a bit of vertical
50 space to table. This is not a perfect solution because the vertical
51 size of with table fewer than 5 rows will be a little smaller.
52 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
53 changes in how navigation buttons are handled.
54 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
55 getSuitableRecordToViewDetails() using the new RelatedListNavigation
56 database access object.
57 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
58 to find the portal for a given relationship name from
59 RelatedListDBAccess. Add method to find a primary key field for a
61 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
62 Move code to find the portal for a given relationship name to
64 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
65 New file: database access object for getting the related list
66 navigation information (the table name and the primary key value).
67 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
68 DTO for transferring a table name to navigate to and a primary key
70 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
71 boolean and getter/setter to specifies if the related list should add
74 2011-10-11 Ben Konrath <ben@bagu.org>
76 Enable the open navigation button when the data has been set.
78 This avoids having active buttons that don't do anything when the data
81 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
83 2011-10-11 Ben Konrath <ben@bagu.org>
85 Use IsWidget interface for FlowTableItem.
87 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
88 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
90 2011-10-11 Ben Konrath <ben@bagu.org>
92 Remove GWT styling from open button in details view.
94 There are still some issues with how the details cell is arranged but
95 this should be made to match Glom 1.20. I'm going to leave fixing this
96 until I have Glom 1.20 up and running.
98 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
99 style name on open button.
100 * src/main/webapp/style.css: Move and edit details-navigation class.
101 Re-arrange some classes to make them appear in the same order as the
104 2011-10-07 Ben Konrath <ben@bagu.org>
108 * .gitignore: Ignore new cache directory.
109 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
110 * pom.xml: Change GWT and maven plugin to 2.4.0.
111 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
113 * src/main/java/org/glom/web/client/ClientFactory.java:
114 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
115 * src/main/java/org/glom/web/client/OnlineGlom.java:
116 Update source for API changes.
117 * utils/build-onlineglom-war.sh: Remove cache directory before the
120 2011-10-07 Ben Konrath <ben@bagu.org>
122 Add navigation buttons in the details view.
124 This isn't finished but I thought I'd commit what I have as it's a
125 pretty good start. I still need to:
127 1. Change the style so that it fits better into the current theme
128 2. Adjust the details cell to expand as much as possible.
130 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
131 click handlers to navigation buttons in the DetailsCells. Create a
132 refreshData() method to get just the data from the server without the
134 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
135 Update the tableSelector and browser title when the table name
136 changes without using the tableSelector.
137 * src/main/java/org/glom/web/client/ui/DetailsView.java:
138 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
139 getDetailsCells() to getCells(). Update variable names.
140 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
141 method to set click handler on navigation button. Rename a few
142 variables. Add navigation buttons where needed.
143 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
144 variables and methods.
145 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
146 navigation boolean and navigation table as required in the
148 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
149 variables for navigation along with getter/setter methods.
151 2011-10-07 Ben Konrath <ben@bagu.org>
153 Rename Field to DetailsCell.
155 This is a refactor-only commit. No functionality has been added or
158 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
159 Update variable and method names.
160 * src/main/java/org/glom/web/client/ui/DetailsView.java:
161 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
162 variable and method names.
163 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
165 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
166 variable and method names.
168 2011-10-07 Ben Konrath <ben@bagu.org>
170 Create separate methods for layout and data the details view.
172 This is a refactor-only commit. No functionality has been added or
175 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
176 private methods: setData(), createLayout().
178 2011-10-07 Ben Konrath <ben@bagu.org>
180 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
182 This is part of a change to get navigation buttons in the details view
183 but it should have been done this way from the start.
185 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
186 for method name change in TableSelectionView.
187 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
188 Create TableChangeEvent and set the browser title using the
189 TableSelectionView API.
190 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
191 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
192 Change getSelectedTable() to getSelectedTableName(). Add
193 getSelectedTableTitle().
195 2011-10-07 Ben Konrath <ben@bagu.org>
197 Use primaryKeyValue naming convention in constructor of DetailsPlace.
199 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
201 2011-10-07 Ben Konrath <ben@bagu.org>
203 Update TableChangeEvent to use newTableName naming convention.
205 This makes the class more consistent with GWT naming conventions.
207 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
208 Update for method name change in TableChangeEvent.
209 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
210 for method name change in TableChangeEvent.
211 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
212 newTableName variable and getter method. Make toDebugString()
215 2011-09-30 Ben Konrath <ben@bagu.org>
217 Disable the pager in the list tables when the data row count is less than the minimum.
219 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
220 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
222 2011-09-30 Ben Konrath <ben@bagu.org>
224 Add empty rows to the end of related list and list view tables.
226 I also extracted the cell rendering classes from the ListTable because
227 the code was becoming a little crazy with all the anonymous inner
228 classes. My plan is to use these cell rendering classes in the details
229 view as well so this refactor will be needed for that change.
231 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
232 set the row count in related list tables if the data has more rows
233 than the minimum number of rows visible.
234 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
235 row count in list view tables if the data has more rows than the
236 minimum number of rows visible.
237 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
238 for rendering TYPE_BOOLEAN cells. The code was extracted from the
240 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
241 for rendering TYPE_NUMERIC cells. The code was extracted from the
243 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
244 class for rendering cells with buttons in list views. The code was
245 extracted from the ListTable class.
246 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
247 for rendering TYPE_TEXT cells. The code was extracted from the
249 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
250 Add empty rows to the end of the data if required. Implement
251 ListTable.getMinNumVisibleRows().
252 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
253 cell renderer code to public classes. Return null in
254 Column.getValue() for empty rows. Add new abstract method:
255 getMinNumVisibleRows(). Move code to set the row count of the list view
256 table to ListViewImpl.
257 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
258 empty rows to the end of the data if required. Implement
259 ListTable.getMinNumVisibleRows().
262 2011-09-27 Ben Konrath <ben@bagu.org>
264 Use GWT.log for client-side debugging statements.
266 These are optimized out when deployed so I should have used this method
267 in the first place. These statements will eventually be replaced with some sort
268 of notification in the browser.
270 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
271 * src/main/java/org/glom/web/client/activity/ListActivity.java:
272 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
273 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
274 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
276 2011-09-27 Ben Konrath <ben@bagu.org>
278 Put tableselector on the right, back to list link on right.
280 The idea is that the table selector is acting like a label for the
281 currently displayed table so it should be placed below the document title. This
282 puts the table title in a similar position to where it is in Glom.
284 * mockups/details-contacts.html:
285 * mockups/details-projects.html:
286 * mockups/listview-contacts.html:
287 * mockups/listview-projects.html:
289 Update mockups to match how the interfaces currently look.
290 * src/main/webapp/style.css: Swap positions of backlink with the table
291 selector. Add some space on the left side of the table selector to
292 line things up with the document title.
294 2011-09-27 Ben Konrath <ben@bagu.org>
296 Add field colouring to details view.
298 This change re-works how field colouring works. The colour formatting
299 information is now set to the client with the layout information instead of
300 with the data. This eliminates the need to send the same colour strings for
301 data in list view column when colour information is set.
303 In order to set an alternate colour for negative numeric values, the
304 number is now sent to client and formatted with the GWT NumberFormat class.
306 This change also fixes:
308 https://bugzilla.gnome.org/show_bug.cgi?id=659752
310 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
311 internationalization framework which is needed for client side numeric
313 * src/main/java/org/glom/web/client/Utils.java: New file for some
314 client static utility methods.
315 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
316 the DataItem object to the Field class. Use a utility method to
317 create the foreignKeyValue string.
318 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
319 alignment and text colours in the constructor. Add setData(DataItem)
320 method. Remove setText(String) method.
321 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
322 colour information to GlomTextCell. Create and use GlomNumberCell for
323 rendering numbers. Use utility method to get the string for the
324 primary key of the key provider. Re-work how the horizontal alignment
326 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
327 formatting to layout information. Methods for converting the libglom
328 formatting information were moved from DBAccess.
329 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
330 numeric formatting (it's now done on the client side). Don't set text
331 colours in DataItem. Move libglom formatting conversion methods to
333 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
334 getters/setters for text colour information.
335 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
336 for transferring the libglom NumericFormat information to the client.
337 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
338 and getters/setters for: GlomNumericFormat, background colour and
339 foreground colour strings.
341 2011-09-26 Ben Konrath <ben@bagu.org>
343 Simplify code that iterates through the LayoutGroup.
345 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
347 2011-09-26 Ben Konrath <ben@bagu.org>
349 Accept Eclipse formatting for OnlineGlomServiceAsync.
351 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
353 2011-09-26 Ben Konrath <ben@bagu.org>
355 Don't use the ListDBAccess classes to get the primary key layout information.
357 This was causing a bug where the wrong index for the hidden primary key
358 was being sent to the client.
360 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
361 primary key while creating the LayoutGroup DTO. Create a
362 LayoutItemField DTO for hidden primary keys. Don't use the
363 RelatedListDBAccess because it was only used for getting the primary
365 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
366 access modifier from public to protected for getPrimaryKeyField() and
367 getPrimaryKeyLayoutItemField().
368 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
369 abstract method getExpectedResultSize() because RelatedListDBAccess
370 doesn't have enough info to implement it.
371 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
372 Remove @Override for getExpectedResultSize().
373 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
374 Remove method getExpectedResultSize().
376 2011-09-23 Ben Konrath <ben@bagu.org>
378 Log which layout (list or details) the ignored item is from.
380 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
382 2011-09-23 Ben Konrath <ben@bagu.org>
384 Remove annotations that turn off code formatting in DataItem.
386 * src/main/java/org/glom/web/shared/DataItem.java:
388 2011-09-23 Ben Konrath <ben@bagu.org>
390 Rename GlomField to DataItem and update associated methods.
392 This is a rename-only refactor. No functionality has been added or
395 * src/main/java/org/glom/web/client/OnlineGlomService.java:
396 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
397 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
398 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
399 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
400 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
401 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
402 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
403 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
404 * src/main/java/org/glom/web/server/database/DBAccess.java:
405 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
406 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
407 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
408 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
409 * src/main/java/org/glom/web/shared/DataItem.java:
410 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
411 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
413 2011-09-23 Ben Konrath <ben@bagu.org>
415 Rename GlomDocument to DocumentInfo and update associated methods.
417 This is a rename-only refactor. No functionality has been added or
420 * src/main/java/org/glom/web/client/OnlineGlomService.java:
421 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
422 * src/main/java/org/glom/web/client/activity/ListActivity.java:
423 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
424 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
425 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
426 * src/main/java/org/glom/web/shared/DocumentInfo.java:
428 2011-09-20 Ben Konrath <ben@bagu.org>
430 Require java-libglom 1.17.3.
432 This picks up the fix for the seg fault problem with the Scenes table
433 in the Openismus Film Manager example.
437 2011-09-20 Ben Konrath <ben@bagu.org>
439 Change the way sort clause is added for primary key when no sort clause is requested.
441 The primary key is now added to the LayoutFieldVector (fieldsToGet)
442 before the sort clause is created. When a sort clause is not requested, the
443 sort clause is created by finding the primary key in the LayoutFieldVector
446 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
448 2011-09-20 Ben Konrath <ben@bagu.org>
450 Log error message if no documents are found in the configured directory.
452 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
453 Extract the glom file extension string to a private static final class
454 variable (mostly as syntactic sugar). Accept a minor formatting change.
455 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
456 the example glom.document.directory configuration property to make it
457 more clear that it can any directory, not just the home directory.
459 2011-09-18 Ben Konrath <ben@bagu.org>
461 Add related lists to details view.
463 The related list table has support for paging and sorting just like the
464 table in the list view.
466 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
467 SQL queries for the related list tables.
468 * src/main/java/org/glom/web/client/OnlineGlomService.java:
469 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
471 Rename getList methods to getListView and add comments. Remove
472 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
473 it being unused. Add methods: getDetailsLayoutAndData(),
474 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
475 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
476 Create the layout and set the data for the fields in one async call
477 instead of two. Create related lists where appropriate.
478 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
479 for method name changes in OnlineGlomService.
480 * src/main/java/org/glom/web/client/ui/DetailsView.java:
481 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
482 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
484 * src/main/java/org/glom/web/client/ui/ListView.java:
485 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
486 tableName from setCellTable(). Create a ListViewTable instead of
488 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
489 represent a data field in the details view.
490 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
491 from addDetailsCell() to Field class. Keep track of the Fields and
492 Portals in the details view.
493 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
494 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
495 and add a method to get it. Add method to set the contents of the
497 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
498 New class for related list tables. This class has the data provider
499 for the related list table.
500 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
501 abstract class which is the base class for the ListViewTable and the
503 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
504 New class for list view tables. This class has the data provider for
506 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
507 methods for related list tables. Add more information to the
508 LayoutItemField and LayoutItemPortal DTOs.
509 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
510 Remove debugging print statement.
511 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
512 Remove debugging print statements. Add primary key field to SQL count
514 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
515 Remove unnecessary LayoutFieldVector parameter from
516 getResultSizeOfSQLQuery() method.
517 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
518 New class for related list table database access.
519 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
520 class that is a wrapper DTO for details view layout and data.
521 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
522 new 'fromField' string to this DTO.
523 * src/main/webapp/style.css: Remove bottom margin and override top
526 2011-09-15 Ben Konrath <ben@bagu.org>
528 Breakup the OnlineGlomServiceImpl class to make it more manageable.
530 This sets things up to make it easier to add the data retrieval for
531 related lists (portals). No user noticeable changes were made with
534 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
535 class has the code to retrieve the layouts and access the
536 database using the new database helper classes.
537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
538 Most of the functionality has been removed from this class. This
539 class now represents the public interface for the client side
540 code. It also deals with configuring the servlet and cleaning
541 things up when the servlet is stopped.
542 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
543 of static methods into this utility class.
544 * src/main/java/org/glom/web/server/database/DBAccess.java:
545 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
546 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
547 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
548 These classes have the database retrieval code. The class hierarchy
549 has been setup to make it easy to reuse code for similar
552 2011-09-06 Ben Konrath <ben@bagu.org>
554 Create separate classes for list table code and the data provider.
556 As part of this refactor, I also split up the code a bit to make it
559 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
560 table code to two new classes (below).
561 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
562 with code from ListViewImpl.
563 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
564 New file with code from ListViewImpl.
566 2011-09-06 Ben Konrath <ben@bagu.org>
568 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
570 This fixes the LayoutItemPortal DTO to match the libglom layout object
573 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
575 2011-09-01 Ben Konrath <ben@bagu.org>
577 Set title of Portals in the Details View.
579 * pom.xml: Bump required version of java-libglom to 1.17.1.
580 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
581 widget creation to its own class. Add comments to constructor.
582 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
583 The code is mostly from the Group class with the title now set.
584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
585 title of Portal. Update some comments. Fix some code formatting.
587 2011-09-01 Ben Konrath <ben@bagu.org>
589 Remove TODO comment for the flow table column width.
591 The flow table column width is working correctly and doesn't need to be
592 changed. See this mailing list post for more info:
594 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
596 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
598 2011-08-27 Ben Konrath <ben@bagu.org>
600 Add document title (database name) to top of the browser page.
602 I added the document title to the TableSelecitonView but that will
603 change if / when we add a view that doesn't require table selection.
605 * mockups/details-contacts.html:
606 * mockups/details-projects.html:
607 * mockups/listview-contacts.html:
608 * mockups/listview-projects.html:
609 * mockups/style.css: Add document title to mockups to keep things
611 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
612 sizes to account for the document title.
613 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
614 Set the document title when it has been retrieved from the server.
615 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
616 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
617 and implement setDocumentTitle(String) method.
618 * src/main/webapp/style.css: Add ID for document title style.
620 2011-08-25 Ben Konrath <ben@bagu.org>
622 Add NavigationType enum to LayoutItemPortal DTO.
624 This is the start of adding support for Portals to the Details View.
626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
627 LayoutItem_Portal.navigation_type enum from libglom to
628 LayoutItemPortal.NavigationType enum.
629 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
630 NavigationType enum, field for storing the NavigationType and getter
633 2011-08-25 Ben Konrath <ben@bagu.org>
635 Implement the flow table layout in the Details View.
637 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
638 FlowTable to Group to account for the renamed class.
639 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
640 File. This is a container widget that implements the Glom details view
641 flow table behaviour.
642 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
643 org/glom/web/client/ui/FlowTable.java.
644 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
645 so that the size of the subgroups are a closer match to the size of
646 the Glom subgroups. This makes the flowtable layout match the layout
647 in Glom for the Music Collection example file.
649 2011-08-16 Ben Konrath <ben@bagu.org>
651 Create container element for LayoutItemPortal in Details View.
653 This will help me develop the layout for the FlowTable.
655 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
656 fieldPanel variable to detailsCell.
658 2011-08-15 Ben Konrath <ben@bagu.org>
660 Set the height of the data element in the Details View.
662 I changed the InlineLabels (text in a span element) to Labels (text in
663 a div element) so that I could set the height of the details-data
664 elements instead of the details-cell parent elements. This allows the
665 the details-data element to display the correct height if style is
666 applied that shows the height.
668 This change has the added benefit of allowing the order of the labels
669 and data elements to be changed for right-to-left languages.
671 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
672 InlineLabels to Labels.
673 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
674 InlineLabels to Labels. Set the height of the data element.
675 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
676 multiline text height in the Formatting DTO.
677 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
678 for multiline height along with getter and setter methods.
679 * src/main/webapp/style.css: Adjust style to account for the change
680 from span elements to div elements in the details cell.
682 2011-08-15 Ben Konrath <ben@bagu.org>
684 Make the List View appearance match the mockups.
686 It doesn't match exactly but it's much better than it was.
688 * mockups/listview-contacts.html: Remove unused css classes.
689 * mockups/listview-projects.html: Remove unused css classes.
690 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
691 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
692 for mainPanel instead of VerticalPanel (table). Set style name on
693 CellTable. Set style name on Details column. Right-align Details
695 * src/main/webapp/style.css: Adjust properties to match the mockups.
697 2011-08-12 Ben Konrath <ben@bagu.org>
699 Add better support for subgroups in the details view.
701 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
702 changed FlowTable constructor.
703 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
704 support for subgroups and subgroup-titles.
705 * src/main/webapp/style.css: Add CSS class for subgroups and
708 2011-08-12 Ben Konrath <ben@bagu.org>
710 Return the top level LayoutGroup title.
712 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
714 2011-08-11 Ben Konrath <ben@bagu.org>
716 Make the TableSelector header match the mockup.
718 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
719 the layout panel. Properly lineup the table selection header with
720 the list and details view.
721 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
722 margin around the details view.
723 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
724 Rename listBox variable to tableSelector. Set id for the style sheet.
725 Use a FlowPanel instead of a HorizontalPanel.
726 * src/main/webapp/style.css: Add properties to make the TableSelector
727 box match the mockups.
729 2011-07-13 Ben Konrath <ben@bagu.org>
731 Update install script for java-libglom version change.
733 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
736 2011-07-13 Ben Konrath <ben@bagu.org>
738 Add support sub-group in the details view.
740 I also removed the code that special-cased the default details view
743 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
745 I still have to make a proper flowtable.
747 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
748 Don't special-case default details view layout.
749 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
750 addLayoutField() as I'm going to use it.
751 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
752 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
754 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
755 extracted from DetailsViewImpl.GroupPanel. Add support for
757 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
758 column count when getting the details layout.
760 2011-07-12 Ben Konrath <ben@bagu.org>
762 Set browser title with database and table titles.
764 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
765 Set the browser title when the table changes and when the activity
767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
768 title when retrieving document info (the GlomDocument object).
769 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
770 with getter and setter methods. Remove unused convenience constructor.
771 Use default code formatting.
773 2011-07-12 Ben Konrath <ben@bagu.org>
775 Ignore LayoutItemPortals in the details view.
777 I added a new DTO for the LayoutItemPortal so that I can ignore it in
780 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
781 LayoutItemPortal layout objects.
782 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
783 LayoutItemPortal objects when retrieving the details layout.
784 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
785 file. This is an empty class and just used to get type information for
788 2011-07-12 Ben Konrath <ben@bagu.org>
790 Use java-libglom 1.17.0.
794 2011-07-11 Ben Konrath <ben@bagu.org>
796 Remove "Table:" label from table selector.
798 This matches a recent change in the Glom UI.
800 * mockups/details-contacts.html:
801 * mockups/details-projects.html:
802 * mockups/listview-contacts.html:
803 * mockups/listview-projects.html: Remove the "Table:" label from the
805 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
807 2011-07-11 Ben Konrath <ben@bagu.org>
809 Add main groups to the details view.
811 This makes things look a little nicer in the details view. The next step
812 is to implement the flowtable.
814 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
815 resources from the standard gwt css theme. Standard.css is now
816 included in OnlineGlom.html so that the online glom css rules have
817 precedence over the gwt theme.
818 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
819 the whole LayoutGroup to the DetailsView instead of just the titles.
820 * src/main/java/org/glom/web/client/ui/DetailsView.java:
821 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
822 details layout with a helper class (GroupPanel). I might extract this
823 class when I make the full flowtable.
824 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
825 string as default so I don't have to worry about NPEs when processing
827 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
828 note beside OnlineGlom.gwt.xml above).
829 * src/main/webapp/style.css: Add default font-size to body to override
830 the font-size set by the standard theme. Don't use h2 tags for
831 group-title. Create new details-cell class.
833 2011-07-08 Murray Cumming <murrayc@murrayc.com>
835 ConfiguredDocument: Set the port number too.
837 * src/main/java/org/glom/web/server/ConfiguredDocument.java
838 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
839 Glom document. Presumably this worked sometimes so far because there is a
842 2011-07-08 Murray Cumming <murrayc@murrayc.com>
844 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
846 * src/main/java/org/glom/web/server/ConfiguredDocument.java
847 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
848 correct, though we should throw an exception too.
850 2011-07-08 Murray Cumming <murrayc@murrayc.com>
852 Fix a addDocuemnt typo.
854 * src/main/java/org/glom/web/shared/Documents.java
855 (Documents.addDocuemnt): Rename to addDocument().
856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
857 (OnlineGlomServiceImpl.getDocuments): Adapt.
859 2011-07-08 Murray Cumming <murrayc@murrayc.com>
861 Slightly improved log output when connection fails.
863 * src/main/java/org/glom/web/server/ConfiguredDocument.java
864 (ConfiguredDocument.setUsernameAndPassword):
865 We don't know for sure if it' the username/password that's wrong, so
866 rephrase the message.
867 Also ouput the exception message, though it's generic in this case.
869 2011-07-08 Ben Konrath <ben@bagu.org>
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
874 added braces to a one line if statement because the Eclipse formatter
875 was getting confused.
877 2011-07-07 Ben Konrath <ben@bagu.org>
879 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
881 These should really be two separate tasks but I counldn't get things to
882 work with GWT 2.2.0 and Eclipse 3.7.
886 * .settings/org.eclipse.jdt.core.prefs:
887 * .settings/org.eclipse.jdt.ui.prefs:
888 * .settings/org.eclipse.ltk.core.refactoring.prefs:
889 * .settings/org.eclipse.m2e.core.prefs:
890 Add new config files. Update current files. Remove references to the
891 webtools plugins as we're not using any of the webtools features.
892 * .gitignore: Add logs directory which is created when running with
894 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
895 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
896 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
898 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
900 2011-07-07 Murray Cumming <murrayc@murrayc.com>
902 onlineglom.properties: Add explanatory comments.
904 * src/main/resources/onlineglom.properties: Also change the default user
905 from ben to someuser, to avoid the risk of people thinking we just
906 stupidly hard-coded a locale path, when they see that on stderr or in a log.
908 2011-06-28 Ben Konrath <ben@bagu.org>
910 Use filename in Log for incorrect passwords.
912 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
913 getFileName(String) method to get the filename from the URI.
915 2011-06-28 Ben Konrath <ben@bagu.org>
917 Add the table name to the URL token for the ListPlace.
919 This makes things consistent between the DetailsPlace and the
920 ListPlace. It also allows the the ListPlace to be bookmarked.
922 * src/main/java/org/glom/web/client/OnlineGlomService.java:
923 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
925 Remove getDefaultListLayout(). The default layout is now returned
926 by the getListLayout() method when the table name is an empty string.
927 * src/main/java/org/glom/web/client/activity/ListActivity.java:
928 Add table name field. Change to a new ListPlace when the table
929 has been changed. Use getListLayout() for getting the default
931 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
932 Add table name field. Set the correct table name in the list box
933 when loading from bookmark. This corrects a problem for the
935 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
936 Move table name to super-class (HasSelectableTable). Move document
937 and table URL keys to super-class in HasSelectableTable.
938 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
939 Add table name field. Add Tokenizer class with URL key common to
940 the subclasses (DetailsPlace and ListPlace).
941 * src/main/java/org/glom/web/client/place/ListPlace.java:
942 Add table name. Add code to parse the URL token.
943 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
944 Update ListPlace construction with empty table name string.
945 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
946 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
947 Change setTableSelectedIndex(int) to setSelectedTableName(String).
948 Update ListPlace construction with table name string.
949 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
950 Change defaultTableName field to tableName to reflect how it's now
951 used. Update the getter and setter methods.
953 2011-06-28 Ben Konrath <ben@bagu.org>
955 Enable the table selector in the DetailsView.
957 * src/main/java/org/glom/web/client/OnlineGlomService.java:
958 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
959 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
960 Remove getDefaultDetailsLayout(). The default layout is now returned
961 by the getDetailsLayout() method when the table name is an empty
963 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
964 event handler for table change event. Change to using
965 getDetailsLayout() for the default details layout.
966 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
968 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
969 when navigating to the details place.
971 2011-06-27 Ben Konrath <ben@bagu.org>
973 Use filename based unique document ID in URL and for RPC.
975 The document ID is the glom document name with spaces (' ') replaced
976 with pluses ('+') and without the .glom extension.
978 This change is mostly a string substitution of 'documentTitle' for
979 'documentID'. The only code change is the addition of a Documents DTO to get the
980 filename to document title mappings as indicated below.
982 * src/main/java/org/glom/web/client/OnlineGlomService.java:
983 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
984 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
985 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
986 Use Documents DTO to create the document links in the document
988 * src/main/java/org/glom/web/client/activity/ListActivity.java:
989 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
990 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
991 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
992 * src/main/java/org/glom/web/client/place/ListPlace.java:
993 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
994 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
995 * src/main/java/org/glom/web/client/ui/ListView.java:
996 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
997 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
998 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
999 * src/main/java/org/glom/web/server/Log.java:
1000 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1001 getDocumentTitles() to getDocuments() and return the Documents DTO.
1002 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1003 transferring the filename to document title mappings.
1005 2011-06-25 Ben Konrath <ben@bagu.org>
1007 Make the authentication popup work again.
1009 This bug was introduced when I extracted ConfiguredDocument to its own class.
1011 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1012 correct success / fail status in setUsernameAndPassword().
1014 2011-06-25 Ben Konrath <ben@bagu.org>
1016 Use filename as unique key for configuring database usernames and passwords.
1018 This replaces the use of the Glom document title which could change
1019 depending on the locale. Thanks to Murray Cumming for pointing out this
1022 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1023 * src/main/resources/onlineglom.properties:
1025 2011-06-24 Ben Konrath <ben@bagu.org>
1027 Pass primary key value to DetailsView.
1029 This enables the DetailsView to load the correct data.
1031 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1032 primary key value field and set in constructor. Pass primary key
1033 value to getDetailsData().
1034 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1035 variables for document title and primary key value.
1036 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1037 key value to the DetailsPlace.
1039 2011-06-24 Ben Konrath <ben@bagu.org>
1041 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1043 This allows the primary key to be retrieved by the Details button. This
1044 functionality has not been implemented yet but it's in the works.
1046 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1047 the LayoutGroup result to ListView.setCellTable instead of all of its
1048 fields individually.
1049 * src/main/java/org/glom/web/client/ui/ListView.java:
1050 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1051 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1052 get the primary key for the table.
1053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1054 index of the primary key in the LayoutGroup accounting for hidden
1055 primary keys. Rename getJavaNumberFormat() to
1056 convertToJavaNumberFormat() for consistency. Cleanup / add some
1058 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1059 field for primary key index and a field to indicate whether the
1060 primary key is hidden or not.
1062 2011-06-23 Ben Konrath <ben@bagu.org>
1064 Rename getTableData methods to getListData.
1066 This is a rename refactor for consistency with other methods.
1068 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1069 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1070 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1071 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1073 2011-06-23 Ben Konrath <ben@bagu.org>
1075 Extract the ConfiguredDocument innerclass into its own class.
1077 This makes the servlet code more object oriented.
1079 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1080 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1081 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1082 new ConfiguredDocument class.
1084 2011-06-21 Ben Konrath <ben@bagu.org>
1086 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1088 This makes things more inline with how libglom works and reduces code
1089 duplication. This refactor lays the groundwork for adding the primary key to
1090 the LayoutGroup object.
1092 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1093 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1094 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1095 Change method names to getListLayout and getDefaultListLayout for
1096 consistency. Use LayoutGroup as the DTO for the list layout instead of
1097 ColumnInfo and LayoutListTable.
1098 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1099 new method names along with the LayoutGroup object for transferring the
1101 * src/main/java/org/glom/web/client/ui/ListView.java:
1102 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1103 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1104 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1106 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1107 Replaced with LayoutGroup.
1108 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1109 expectedResultSize and defaultTableName fields which are needed for
1111 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1112 type field which is needed for the list layout but will also be
1113 useful for the details layout as things progress.
1114 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1115 Make class abstract. Remove the unnecessary
1116 getFormattingHorizontalAlignment method. Add setFormatting method.
1118 2011-06-16 Ben Konrath <ben@bagu.org>
1120 Add scripts for building and installing war.
1122 These will help when updating OnlineGlom but they're also good
1123 supplemental documentation of the build and deployment proceeding.
1125 * utils/build-onlineglom-war.sh: New file.
1126 * utils/install-onlineglom-war.sh: New file.
1128 2011-06-16 Ben Konrath <ben@bagu.org>
1130 Create wrapper class to create consistent log messages.
1132 I wrapped methods in the Log class of gwt-log to add the method names
1133 from the servlet and create consistent formatting of the document title
1134 and table names in the log messages.
1136 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1138 log methods to use methods from wrapped Log class.
1140 2011-06-16 Ben Konrath <ben@bagu.org>
1142 Remove superfluous conditional return.
1144 Thanks to Murray Cumming for pointing this out!
1146 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1148 2011-06-15 Ben Konrath <ben@bagu.org>
1150 Return an ArrayList of LayoutGroups for the Details layout.
1152 This corrects a problem with the details layout as it can have more
1153 than one top level LayoutGroup.
1155 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1156 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1157 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1158 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1159 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1160 with ArrayList of LayoutGroups for the details view layout.
1161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1162 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1163 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1164 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1165 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1166 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1168 2011-06-14 Ben Konrath <ben@bagu.org>
1170 Use cast_dynamic method to determine the libglom LayoutItem type.
1172 This is better than finding the LayoutItem type by using the string
1173 returned from the get_part_type_name() method.
1175 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1177 2011-06-14 Ben Konrath <ben@bagu.org>
1179 Add method names to log entries in the servlet.
1181 This helps when tracking down deployment problems.
1183 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1185 2011-06-14 Ben Konrath <ben@bagu.org>
1187 Add data to the DetailsView using a hard-coded primary key value.
1189 The layout and functionality of the DetailsView is not complete. This
1190 is just a checkpoint so the patch doesn't get too big.
1192 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1193 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1194 Add getDetailsData() servlet method.
1195 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1196 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1197 LayoutFields are added to the DetailsView.
1198 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1199 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1200 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1201 take the string for the title instead of the object.
1202 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1203 Add implementation getDetailsData() along with some private helper
1205 * src/main/webapp/style.css: Add padding to details-data class. Add a
1206 details-label class with the same padding as the details-data class.
1208 2011-06-03 Ben Konrath <ben@bagu.org>
1210 Use presenter.goTo() to change to the DetailsPlace.
1212 This will make things easier when we need to open the DetailsView with
1213 data specific to the row that was clicked.
1215 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1217 2011-06-02 Ben Konrath <ben@bagu.org>
1219 Add CSS file from mockups.
1221 I'm adding this now because it's going to be useful to have when
1222 developing the DetailsView. The TableSelectionView and ListView aren't
1225 * src/main/webapp/OnlineGlom.html:
1226 * src/main/webapp/style.css:
1228 2011-06-02 Ben Konrath <ben@bagu.org>
1230 Use String.isEmpty() to check for empty string.
1232 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1234 2011-06-02 Ben Konrath <ben@bagu.org>
1236 Display main layout group titles in the DetailsView.
1238 This is the start of the DetailsActivity/DetailsView implementation.
1240 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1241 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1242 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1243 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1244 Get the layout information for the details view from the server and set
1245 the main layout group titles.
1246 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1247 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1248 Add addLayoutGroup() and addLayoutField() methods. This are just
1249 temporary methods for creating the the details view that will change
1251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1252 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1254 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1255 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1256 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1257 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1258 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1259 Data Transfer Objects that mimic the libglom object structure. These are
1260 used for transferring the details layout but could also be used for
1261 transferring the list layout.
1263 2011-05-27 Ben Konrath <ben@bagu.org>
1265 Reset the AuthenticationPopup when clearing the ListView.
1267 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1269 2011-05-27 Ben Konrath <ben@bagu.org>
1271 Fix problem with onlineglom.properties file loading.
1273 The old way worked in Eclipse but not on the server. Loading the
1274 onlineglom.properties file now works in Eclipse and on the server.
1276 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1278 2011-05-24 Ben Konrath <ben@bagu.org>
1280 Update gwt-log from 3.1.0 to 3.1.2.
1282 Gwt-log 3.1.0 has been marked as depreciated.
1286 2011-05-24 Ben Konrath <ben@bagu.org>
1288 Add comment to ListActivity.goTo() method.
1290 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1292 2011-05-24 Ben Konrath <ben@bagu.org>
1294 Remove FIXME in convertGdkColorToHtmlColour()
1296 The Gdk::Color value returned by libglom is 16-bits per channel on both
1297 64 and 32-bit platforms.
1299 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1301 2011-05-19 Ben Konrath <ben@bagu.org>
1303 Improve performance of initial ListView load.
1305 I removed a round trip to the server for getting the default table name
1306 and then requesting information about that table. This also removes a potential
1307 problem with the table change handler not being setup in time to receive the
1308 table change event from the ListActivity.
1310 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1311 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1312 getDefaultLayoutListTable() method. Improve comments.
1313 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1314 getDefaultLayoutListTable() method instead of firing a table change
1315 event to get the table to load.
1316 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1317 implementation of getDefaultLayoutListTable() method.
1318 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1321 2011-05-19 Ben Konrath <ben@bagu.org>
1323 Override toDebugString() in TableChangeEvent.
1325 This is useful to have for debugging.
1327 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1329 2011-05-19 Ben Konrath <ben@bagu.org>
1331 Add a "Back to List" link when at the DetailsPlace.
1333 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1334 Populate the CellTable based on the selected table of the ListBox if
1335 it's set otherwise use the default table. This allows the "Back to
1337 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1338 Remove Place from constructors. Add a setPlace() method. Add
1339 goToPlace() method. Set class as presenter for TableSelectionView.
1340 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1341 Use the same TableSelectionActivity when switching between the List and
1343 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1344 Subclass the new HasSelectableTablePlace. This removes some duplicate
1346 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1347 New class to represent Places that display the TableSelectionView.
1348 * src/main/java/org/glom/web/client/place/ListPlace.java:
1349 Subclass the new HasSelectableTablePlace. This removes some duplicate
1351 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1352 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1353 Add Presenter interface. Add setBackLinkVisible() method. Add
1354 setBackLink() method.
1356 2011-05-18 Ben Konrath <ben@bagu.org>
1358 Enable the "Details" buttons.
1360 Right now only an empty details view is displayed.
1362 * src/main/java/org/glom/web/client/ClientFactory.java:
1363 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1364 Add DetailsView to ClientFactory.
1365 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1366 A basic activity for the details view.
1367 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1368 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1370 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1371 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1373 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1374 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1375 unnecessary super() in constructor.
1376 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1377 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1378 really shouldn't create a new TableSelectionActivity for both the ListPlace
1379 and the DetailsPlace so this should be considered a temporary solution.
1380 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1381 New file. Represents a URL for the details view.
1382 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1383 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1384 A basic details view interface and implementation.
1385 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1386 Enable the "Details" buttons.
1388 2011-05-12 Ben Konrath <ben@bagu.org>
1390 Use a LayoutPanel with multiple display areas for main layout.
1392 This is mostly a refactor in that there are no changes from the user
1393 point of view. These changes are required so that we can swap out the list view
1394 with the details view when the user clicks the "Details" button.
1396 * src/main/java/org/glom/web/client/ClientFactory.java:
1397 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1398 OnlineGlomView. Add TableSelectionView, ListView and
1399 AuthenticationPopup.
1400 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1401 for main layout. Add display regions for main activities. Add
1402 activity manager for for main activities.
1403 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1404 file from parts of the deleted OnlineGlomActivity.
1405 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1406 New file from parts of the deleted OnlineGlomActivity.
1407 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1408 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1409 New files for app wide table change event.
1410 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1411 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1412 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1413 Activity mappers for the main activities replace the deleted app-wide
1415 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1416 Fix a spelling error in he comment.
1417 * src/main/java/org/glom/web/client/ui/ListView.java:
1418 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1419 Renamed from LayoutListView and modified for MVP. This still not a
1420 proper dumb view as prescribed by the MVP pattern but it works for now.
1421 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1422 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1423 New widget stripped out of the deleted OnlineGlomView.
1424 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1425 Remove hack that is fixed by this patch.
1427 2011-05-06 Ben Konrath <ben@bagu.org>
1429 Rename OnlineGlomPlace to ListPlace.
1431 The only change besides the rename is that url will now display #list
1432 instead of #Document.
1434 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1435 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1436 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1437 * src/main/java/org/glom/web/client/place/ListPlace.java:
1438 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1440 2011-05-06 Ben Konrath <ben@bagu.org>
1442 Use Presenter for app navigation.
1444 This is the proper way to deal with Place (URL) changes with the MVP
1447 * src/main/java/org/glom/web/client/ClientFactory.java:
1448 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1449 PlaceHistoryMapper and PlaceHistoryHandler.
1450 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1451 PlaceHistoryMapper and PlaceHistoryHandler.
1452 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1453 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1454 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1455 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1456 Add Presenter interface and setPresenter methods. Rename addHyperLink
1457 to addDocumentLink taking only the document title as a parameter.
1459 2011-04-14 Ben Konrath <ben@bagu.org>
1461 Prompt for db username/password if they haven't been set.
1463 This is implemented with a popup widget that is contained within the
1464 OnlineGlomView and managed by the OnlineGlomActivity.
1466 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1467 methods for checking and setting the database username and password.
1468 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1469 new methods for checking and setting the database username and
1471 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1472 Display authentication popup if the JDBC connection to the database
1473 has not been authenticated.
1474 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1476 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1477 for dealing with the authentication popup.
1478 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1479 Implement the methods for dealing with the authentication popup.
1480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1481 try to executed queries if the database connection hasn't been
1482 authenticated. Implement methods for checking and setting the
1483 database username and password.
1485 2011-04-12 Ben Konrath <ben@bagu.org>
1487 Make log messages a little clearer.
1489 Add a dash betweeen the document title and the table name.
1491 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1493 2011-04-12 Ben Konrath <ben@bagu.org>
1495 Protect against NPEs when cleaning up database resources.
1497 While this isn't strictly necessary because the exception is caught,
1498 not protecting against the NPEs makes it harder to find the real error
1501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1503 2011-04-12 Ben Konrath <ben@bagu.org>
1505 Move configuration of the servlet to the constructor.
1507 The servlet will be initialized even if the database authentication
1508 information is not set or correct. I still need to add the UI for prompting
1509 the user for the authentication information when it's required.
1511 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1512 javadocs for getDocumentTitles() method.
1513 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1514 Set error message when RPC fails.
1515 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1516 glom files directory from the configuration file. Try to set the
1517 database authentication information for the specific document if it's
1518 set and works otherwise try to use the global authentication
1519 information set for the directory.
1520 * src/main/resources/onlineglom.properties: Moved from
1521 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1522 Added detailed comments for the new keys.
1524 2011-04-11 Ben Konrath <ben@bagu.org>
1526 Remove unnecessary @Override in DocumentSelectionViewImpl.
1528 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1530 2011-04-11 Ben Konrath <ben@bagu.org>
1532 Remove center alignment in DocumentSelectionView.
1534 The title element is still centred but the document titles and bottom
1535 sentence are both left-aligned.
1537 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1539 2011-04-11 Ben Konrath <ben@bagu.org>
1541 Change 'Demo' naming convention to 'Document'.
1543 This is just a rename refactor with no functional changes to the code.
1545 * src/main/java/org/glom/web/client/ClientFactory.java:
1546 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1547 * src/main/java/org/glom/web/client/OnlineGlom.java:
1548 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1549 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1550 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1551 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1552 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1553 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1554 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1555 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1556 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1557 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1559 2011-04-08 Ben Konrath <ben@bagu.org>
1561 Remove FIXME from safeLongToInt() method.
1563 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1568 2011-04-08 Ben Konrath <ben@bagu.org>
1570 Display an error if no glom documents are found in the specified directory.
1572 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1573 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1574 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1575 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1577 2011-04-08 Ben Konrath <ben@bagu.org>
1579 Add copyright header to one more file ... oops.
1581 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1583 2011-04-08 Ben Konrath <ben@bagu.org>
1585 Add copyright header to files without it.
1587 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1588 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1589 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1590 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1591 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1592 * src/main/java/org/glom/web/shared/GlomField.java:
1594 2011-04-08 Ben Konrath <ben@bagu.org>
1596 Add support for accessing multiple glom documents in the servlet.
1598 This completes the demo selection functionality.
1600 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1601 document title to methods.
1602 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1603 document title to methods.
1604 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1605 Set browser window title when the activity starts. Correct name of
1606 document title variable.
1607 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1608 Set browser window title when the activity starts. Set the table
1609 selector change handler after table selector has been set. Clear the
1610 OnlineGlomView when the activity has been stopped.
1611 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1612 document title as the place token. Use "#Document:" instead of
1613 "#OnlineGlomPlace:" in the URL.
1614 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1615 Change heading to "Online Glom"
1616 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1617 document title in RPC methods.
1618 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1619 setDocumentTitle() method. Add clear() method.
1620 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1621 setDocumentTitle() method. Implement clear() method which removes the
1622 change handler on the ListBox, clears the ListBox and clears the
1624 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1625 Implement methods with document title. Keep track for the configured
1626 glom documents and their corresponding JDBC configurations in a hash
1627 table. This information is retrieved using the document title as the
1628 key in the hash table.
1629 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1630 document title field as it's no longer needed.
1632 2011-04-08 Ben Konrath <ben@bagu.org>
1634 Update the Eclipse JDT configuration.
1636 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1637 methods. Automatically add the copyright header to new files.
1639 2011-04-05 Ben Konrath <ben@bagu.org>
1641 Add new page for demo selection.
1643 This patch adds all the components required to view and start an
1644 OnlineGlom demo by clicking on the desired hyperlink. The user is
1645 able to return to the demo selection page with the browser's back
1646 button. I still need to modify the servlet to work with multiple
1647 documents so all demo links will load the file defined in the
1648 OnlineGlom.properties.
1650 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1651 This is only useful during development so we don't need to save it.
1652 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1653 get a reference to the DemoSelectionView.
1654 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1655 method to get a reference to the DemoSelectionView.
1656 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1657 default view to DemoSelectionView.
1658 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1659 to get glom document titles for glom files in a hard-coded directory.
1660 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1661 method to get glom document titles for glom files in a hard-coded
1663 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1664 Presenter for DemoSelectionView.
1665 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1666 for DemoSelectionView.
1667 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1668 Update for DemoSelectionView.
1669 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1670 Basic 'Place' implementation for the DemoSelectionView.
1671 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1672 The interface for the DemoSelectionView.
1673 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1674 The implementation of the DemoSelectionView.
1675 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1676 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1677 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1678 implementation of method to get glom document titles for glom files
1679 in a hard-coded directory.
1680 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1681 on longer being used.
1682 * src/main/webapp/glom.png: Glom logo.
1684 2011-04-05 Ben Konrath <ben@bagu.org>
1686 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1688 This is the forth and final commit of a refactor that will allow
1689 OnlineGlom to be used with multiple documents.
1691 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1692 Move RPC code from OnlineGlomViewImpl to this class.
1693 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1695 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1696 RPC code to the presenter class (the P in MVP).
1698 2011-04-04 Ben Konrath <ben@bagu.org>
1700 Start moving the existing OnlineGlom code to MVP.
1702 This work is based on the GWT MVP framework that is documented here:
1704 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1706 This is the third commit of a refactor that will allow OnlineGlom to
1707 be used with multiple documents.
1709 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1710 Interface for client factory which is used to get instances of various
1711 classes throughout the app.
1712 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1713 Implementation of client factory.
1714 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1715 initialize the MVP framework.
1716 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1717 New file. Activity manager for the main container widget. This is the
1719 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1720 Maps place (URL) to its corresponding activity.
1721 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1722 New file. This is just a place holder for a generated file.
1723 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1724 New file. Represents the URL for the main Online Glom app.
1725 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1726 for changes in LayoutListViewImpl.
1727 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1728 interface for View. Move code to OnlineGlomViewImpl class.
1729 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1730 file. Implementation of OnlineGlomView.
1731 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1732 Place resources. Use ClientFactoryImpl by default.
1734 2011-04-04 Ben Konrath <ben@bagu.org>
1736 Move View classes to their own package.
1738 This is the second commit of a refactor that will allow OnlineGlom to
1739 be used with multiple documents.
1741 * src/main/java/org/glom/web/client/OnlineGlom.java:
1742 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1743 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1745 2011-04-02 Ben Konrath <ben@bagu.org>
1747 Move UI code from the main module to its own class.
1749 This is the first commit of a refactor that will allow OnlineGlom to be
1750 used with multiple documents.
1752 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1753 references to OnlineGlom to OnlineGlomView.
1754 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1755 OnlineGlomView and instantiate it here.
1756 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1757 represents the main OnlineGlomView with one document.
1759 2011-04-01 Ben Konrath <ben@bagu.org>
1761 Fix formatting of gwt.xml and add DTD.
1763 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1765 2011-03-30 Ben Konrath <ben@bagu.org>
1767 Propperly convert gdkColor string to html colour string.
1769 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1771 2011-03-28 Ben Konrath <ben@bagu.org>
1773 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1775 This implementation matches
1776 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1777 readable and is not tied to Swig.
1779 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1781 2011-03-28 Ben Konrath <ben@bagu.org>
1783 Use read-only checkboxes for boolean field types.
1785 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1786 in the CellTable based on the field type. It currently only
1787 distinguishes between boolean and text columns but I'll need to add
1788 support for more types.
1789 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1790 column type in the ColumnInfo object. Add method to convert between the
1791 glom field type enum in ColumnInfo and the glom field type in libglom.
1792 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1794 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1795 getting and setting booleans.
1797 2011-03-25 Ben Konrath <ben@bagu.org>
1799 Don't get the Date twice from the ResultSet.
1801 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1803 2011-03-25 Ben Konrath <ben@bagu.org>
1805 Cleanup code in the servlet.
1807 * TODO: Remove item about row count. Add item about testing row count
1808 query with large number of rows.
1809 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1810 spelling mistakes, change method parameter to be consistent with
1813 2011-03-25 Ben Konrath <ben@bagu.org>
1815 Add server side logging with the gwt-log library.
1817 * .gitignore: Ignore the log file we're now producing.
1818 * TODO: Add a couple TODO item for logging.
1819 * pom.xml: Add gwt-log and log4j as a dependency.
1820 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1821 logging of errors, warnings and some important info.
1822 * src/main/resources/log4j.properties: New file to configure log4j.
1824 2011-03-24 Ben Konrath <ben@bagu.org>
1826 Add a disable button for the Details view.
1828 * src/main/java/org/glom/web/client/LayoutListView.java:
1830 2011-03-22 Ben Konrath <ben@bagu.org>
1832 Use a count query to get the number of rows for the list view pager.
1834 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1836 2011-03-22 Ben Konrath <ben@bagu.org>
1838 Add more TODO information about CellTable pager positioning.
1842 2011-03-19 Ben Konrath <ben@bagu.org>
1844 Add TODO item about CellTable pager positioning.
1848 2011-03-18 Ben Konrath <ben@bagu.org>
1850 Remove unneeded GlomFieldColumn class.
1852 This is just a small code cleanup.
1854 * src/main/java/org/glom/web/client/LayoutListView.java:
1856 2011-03-18 Ben Konrath <ben@bagu.org>
1858 Use cursor mode in the query that gets data for the list view.
1860 I still need to fix the potential memory problem when getting the row
1861 count for the list view.
1863 * TODO: Add note about testing memory usage with large data sets. Add
1864 item about fixing row counting with large data sets.
1865 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1866 PostgreSQL JDBC driver into cursor mode when getting data for the
1869 2011-03-15 Ben Konrath <ben@bagu.org>
1871 Remove the GWT Container from the Eclipse build classpath.
1873 The GWT dependencies are set by Maven so this isn't needed.
1877 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1879 Added some earlier mockups to git, but not to the tarball dist.
1881 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1882 Openismus. These hopefully show how we might structure the HTML so that
1883 it can be styled easily with CSS. However, we probably need to adapt them
1884 for the CSS structure that GWT dictates for common widgets.
1886 2011-03-14 Ben Konrath <ben@bagu.org>
1888 Locate OnlineGlom.properties using the ServletContext.
1890 This is required to be able to locate the file in the deployed servlet.
1892 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1893 Configure the database and glom document in in a helper method so
1894 that the ServletContext can be used to locate OnlineGlom.properties.
1895 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1896 src/main/webapp. This is the proper location for .properites files.
1898 2011-03-12 Ben Konrath <ben@bagu.org>
1900 Add note to README about why we're compiling down to obfuscated JavaScript.
1904 2011-03-11 Ben Konrath <ben@bagu.org>
1906 Use properties file to configure servlet.
1908 This allows people to change the glom file path, db username and db
1909 password without recompiling the code.
1911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1912 * src/main/webapp/OnlineGlom.properties:
1914 2011-03-11 Ben Konrath <ben@bagu.org>
1916 Use table fields in layout list view if the layout list is not defined.
1918 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1919 Manually create a LayoutFieldVector for the query builder using the
1920 table fields when a layout list is not defined in the glom file.
1922 2011-03-11 Ben Konrath <ben@bagu.org>
1924 Only show FIXME string for images when there's an image.
1926 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1927 in this change are some small code cleanups.
1929 2011-03-11 Ben Konrath <ben@bagu.org>
1931 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1933 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1935 2011-03-11 Ben Konrath <ben@bagu.org>
1937 Correctly set the index of the default table.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1940 Correctly set the index of the default table. Add commented out example
1943 2011-03-10 Ben Konrath <ben@bagu.org>
1945 Add comment to pom.xml about the previous change.
1947 * pom.xml: Add comment about the deployment issue so that it's obvious
1948 why java-libglom is set to the provided scope.
1950 2011-03-10 Ben Konrath <ben@bagu.org>
1952 Change java-libglom dependency from compile to provided in pom.xml.
1954 Since java-libglom uses jni it can only be loaded once and therefore
1955 must be placed in $CATALINA_HOME/lib and not included in each war.
1956 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1957 More information about this issue can be found in the Tomcat 6 release
1958 notes in the "JNI Based Applications" section:
1960 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1962 * README: Remove note about this issue. Deployment info should really
1963 be on the wiki anyway so I'll add it right now.
1964 * pom.xml: Change java-libglom dependency from compile to provided so
1965 that it's copied in to the packaged war.
1967 2011-03-09 Ben Konrath <ben@bagu.org>
1969 Change to using a neutral locale for currency, date and time formatting.
1971 This solves the problem of currency values being represented without a
1972 space between the currency code and the number (e.g. "EUR5.89" is now
1973 represented as "EUR 5.89"). More work is required when we implement
1974 a locale preference setting.
1976 * TODO: Add note about currency formatting issues with different
1978 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1979 to using the neutral ROOT locale.
1981 2011-03-09 Ben Konrath <ben@bagu.org>
1983 Add support for currency codes that are not ISO 4217 codes.
1985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1986 the currency code defined in the glom file when it's not 3 characters
1987 long or when Java doesn't recognize the string as an ISO 4217 code.
1989 2011-03-08 Ben Konrath <ben@bagu.org>
1991 Remove test classes, launch configurations and configuration.
1993 The test stuff was getting in the way when creating the war. To make
1994 the war file you can now do 'mvn clean package'. The packaged war file
1995 will be in the target directory.
1997 * .classpath: Remove unused classpathentry for tests and i18n.
1998 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1999 property. Don't run test or i18n goals when packaging the war.
2000 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2005 * OnlineGlomTest-dev.launch:
2006 * OnlineGlomTest-prod.launch:
2007 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2008 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2010 2011-03-07 Ben Konrath <ben@bagu.org>
2012 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2014 These fixes allow me to use 'mvn deploy' to create the war file.
2016 * .classpath: This generated config has been updated by Eclipse. This
2017 change was probably triggered by me updating from Eclipse 3.6.1 to
2019 * .gitignore: Add entry to ignore the directory
2020 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2021 * .project: The generated config has been updated by Eclipse. This
2022 change was probably triggered by me updating from Eclipse 3.6.1 to
2024 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2025 so that Eclipse doesn't complain
2026 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2027 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2028 'tests' directory to 'client' directory. This is the new
2029 gwt-maven-plugin convension.
2030 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2031 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2033 2011-03-07 Ben Konrath <ben@bagu.org>
2035 Add support for horizontal alignment in the LayoutList columns.
2037 * TODO: Remove item about horizontal alignment. Add item about
2038 improvements to ColumnInfo.
2039 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2040 alignment on the columns. Use ColumnInfo RPC object get the column
2041 title and horizontal alignment.
2042 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2043 LayoutListView creation with ColumnInfo RPC object.
2044 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2045 a ColumnInfo object for every LayoutList columnn. Convert the
2046 FieldFormatting.HorizontalAlignment to the correct
2047 ColumnnInfo.HorizontatlAlignment with the new
2048 getColumnInfoHorizontalAlignment helper method.
2049 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2050 to encapsulate column information like alignment and title. This
2051 could be used to set the colour instead of on a per cell field basis.
2052 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2053 column title storage and retrieval with ColumnInfo.
2055 2011-03-04 Ben Konrath <ben@bagu.org>
2057 Add support for column sorting.
2059 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2060 AsynDataProvider to be an anonymous inner class. Use new
2061 getSortedTableData RPC method when column sort is requested. Set all
2062 columns sortable and add an AsyncHandler to activate sorting in the
2064 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2065 method getSortedTableData(). Cleanup other method signatures.
2066 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2067 new method getSortedTableData(). Cleanup other method signatures.
2068 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2069 Implement getSortedTableData() and getTableData() methods by using a
2070 private helper method with the appropriate parameters filled in. Use
2071 user supplied sort clause when supplied, otherwise fall back to
2072 sorting by the primary key. Move destroy() method to be underneath
2073 constructor for readability. Cleanup comments.
2075 2011-03-03 Ben Konrath <ben@bagu.org>
2077 Add support for colour text and colour backgrounds to the layout list cells.
2079 Only the cell backgrounds are coloured which leaves a gap between the
2080 cells that isn't coloured. I need to figure out a way to set
2081 'style=background-colour:' on the whole column rather than just the
2084 * TODO: Add a note about colouring the background of the whole column.
2085 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2086 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2087 render the coloured text and backgrounds. Use GlomField[] for the row type.
2088 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2090 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2091 GlomField[] for the row type.
2092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2093 GlomField[] for the row type. Set the text, text colour and background
2094 colour in the GlomField objects as specified in the glom document. Add
2095 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2096 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2097 the glom field text, foreground colour and background colour.
2099 2011-03-02 Ben Konrath <ben@bagu.org>
2101 Don't display hidden tables in the combo box.
2103 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2106 code to ignore hidden tables using ArrayLists for the table names and
2108 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2109 tableNames to use ArrayLists instead of String[]. Update getter and setter
2112 2011-03-01 Ben Konrath <ben@bagu.org>
2114 Add support for Date and Time number types.
2116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2117 Implement formatting for Date and Time values. Change the default glom
2118 file to small business example.
2120 2011-03-01 Ben Konrath <ben@bagu.org>
2122 Add support for formatting glom types as specified in the glom file.
2124 Formatting isn't finished yet - I still need to add support for Date
2127 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2128 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2129 checks for null values in JDBC cleanup code and catch all exceptions
2130 instead of just SQLExceptions.
2131 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2134 2011-03-01 Ben Konrath <ben@bagu.org>
2136 Use GWT 2.2.0 instead of 2.1.1.
2138 * pom.xml: Change GWT version numbers.
2140 2011-03-01 Ben Konrath <ben@bagu.org>
2142 A few small code cleanups.
2144 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2146 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2147 unnecessary object creation in constructor.
2148 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2149 unnecessary object creation in constructor.
2151 2011-02-28 Ben Konrath <ben@bagu.org>
2153 Add file for TODO list.
2157 2011-02-18 Ben Konrath <ben@bagu.org>
2159 Enable the CellTable Pager when more than 20 rows need to be viewed.
2161 The Pager will automatically become active when the results are larger
2162 than the CellTable size which is currently set to 20 lines.
2164 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2165 name on debug statment in RPC call in LayoutListDataProvider, add
2166 numRows parameter to LayoutListView constructor, propperly set rowCount
2168 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2169 name on debug statment in RPC call, use LayoutListTable object in RPC
2170 calls, pass rowCount to LayoutListView.
2171 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2172 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2174 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2175 interface for changes in OnlineGlomService.
2176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2177 getLayoutListHeaders() to getLayoutListTable() and return
2178 LayoutListTable. Using this object allows me to pass other information
2179 about the LayoutList like the expected number of rows in the result set.
2180 The Connection object from the connection pool is now propperly closed.
2181 Only the requested number of lines are returned to the client in
2183 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2184 GlomTable and add columnTitles and numRows.
2186 2011-02-18 Ben Konrath <ben@bagu.org>
2188 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2190 This is a small performance boost. I'll use GlomTable to get the required
2191 layoutlist information.
2193 * src/main/java/org/glom/web/client/OnlineGlom.java:
2194 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2195 * src/main/java/org/glom/web/shared/GlomDocument.java:
2197 2011-02-18 Ben Konrath <ben@bagu.org>
2199 Add option to turn off formatting in JDT formatter preferences.
2201 * .settings/org.eclipse.jdt.core.prefs:
2203 2011-02-18 Ben Konrath <ben@bagu.org>
2205 Rename LayoutList to LayoutListView.
2207 I'm working towards setting things up to easily use MVP when the time
2210 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2212 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2215 2011-02-17 Ben Konrath <ben@bagu.org>
2217 Move LayoutListDataProvider class into LayoutList.java.
2219 * src/main/java/org/glom/web/client/LayoutList.java:
2221 2011-02-17 Ben Konrath <ben@bagu.org>
2223 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2225 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2227 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2228 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2229 from LibGlomServer.java.
2230 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2231 Rename from LibGlomServiceAsync.java.
2232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2233 Rename from LibGlomServiceImpl.java.
2234 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2236 2011-02-17 Ben Konrath <ben@bagu.org>
2238 Update JDT settings.
2240 * .settings/org.eclipse.jdt.core.prefs:
2242 2011-02-17 Ben Konrath <ben@bagu.org>
2244 Move GWT-RPC objects to shared package (where they should be).
2246 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2247 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2248 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2249 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2250 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2251 org.glom.web.shared package.
2252 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2253 org.glom.web.shared package.
2254 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2255 directory in compilation to javascript.
2257 2011-02-16 Ben Konrath <ben@bagu.org>
2259 Add sort clause to the sql query that grabs table information.
2261 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2262 if one of the columns is a primary key.
2264 2011-02-16 Ben Konrath <ben@bagu.org>
2266 Disable generateAsync feature of gwt-maven.
2268 The generated interface does not correctly match the methods in LibGlomService
2269 and the generated singleton Util inner-class doesn't respect the servlet
2272 * pom.xml: Turn off generateAsync feature.
2273 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2274 with singleton Util inner-class.
2276 2011-02-14 Ben Konrath <ben@bagu.org>
2278 Add LGPL v3 licence notices.
2280 Followed directions listed here:
2281 http://www.gnu.org/licenses/gpl-howto.html
2283 * COPYING: This file is a copy of the GPL v3.
2284 * COPYING.LESSER: This file is a copy of the LGPL v3.
2285 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2287 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2289 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2291 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2293 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2295 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2297 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2300 2011-02-14 Ben Konrath <ben@bagu.org>
2302 Use ArrayList instead of Array in GWT-RPC calls.
2304 Apparently this gives a slight performance boost to the compiled
2307 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2309 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2312 2011-02-14 Ben Konrath <ben@bagu.org>
2314 Access data from a postgres db rather than the example glom file.
2316 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2317 compile down to obfuscated javascript.
2318 * pom.xml: Add c3p0 and postgres JDBC libraries.
2319 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2320 using a postgres db accessed through the c3p0 connection pooling library.
2322 2011-02-14 Ben Konrath <ben@bagu.org>
2324 Update Java formatter settings.
2326 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2328 2011-02-02 Ben Konrath <ben@bagu.org>
2330 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2332 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2334 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2335 the compiled webapp directory that Eclipse uses as we're using Maven now.
2336 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2337 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2339 * pom.xml: Format file, change target Java version to 1.6.
2341 2011-02-02 Ben Konrath <ben@bagu.org>
2343 Add information about a deployment related issue.
2345 * README: Add Notes section with the problem outlined.
2347 2011-02-02 Ben Konrath <ben@bagu.org>
2349 Call Glom.libglom_deinit() when the servlet is shutdown.
2351 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2352 Glom.libglom_deinit() to destroy() method.
2354 2011-01-28 Ben Konrath <ben@bagu.org>
2356 Use generated Util class to get the RPC Async interface.
2358 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2360 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2361 getInstance() method to get a reference to the RPC Async interface.
2362 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2363 getInstance() method to get a reference to the RPC Async interface, remove
2364 the now unused getLibGlomServiceProxy() method.
2366 2011-01-27 Ben Konrath <ben@bagu.org>
2368 Cleanup ChangeLog entry from previous commit.
2370 * ChangeLog: Group logical changes together and add comments.
2372 2011-01-25 Ben Konrath <ben@bagu.org>
2374 Convert to gwt-maven project.
2376 * .gitignore: Update for new project structure.
2377 * README: New file with a link to the online documentation.
2378 * pom.xml: The generated maven configuration file with some tweaks.
2380 Add / update Eclipse settings. These files are a merge of the files that
2381 were generated with the gwt-maven plugin and the files we were previously
2385 * .settings/.jsdtscope:
2386 * .settings/com.google.gdt.eclipse.core.prefs:
2387 * .settings/com.google.gwt.eclipse.core.prefs:
2388 * .settings/org.eclipse.jdt.core.prefs:
2389 * .settings/org.eclipse.wst.common.component:
2390 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2391 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2392 * .settings/org.maven.ide.eclipse.prefs:
2393 * OnlineGlomTest-dev.launch:
2394 * OnlineGlomTest-prod.launch:
2396 Java source files moved from the 'src' directory to the directory structure
2398 * src/main/java/org/glom/web/client/GlomDocument.java:
2399 * src/main/java/org/glom/web/client/GlomTable.java:
2400 * src/main/java/org/glom/web/client/LayoutList.java:
2401 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2402 * src/main/java/org/glom/web/client/LibGlomService.java:
2403 * src/main/java/org/glom/web/client/OnlineGlom.java:
2404 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2406 Non-functional property file used for translations. I included this as
2407 reminder that it's something I need to sort out.
2408 * src/main/resources/org/glom/web/client/Messages.properties:
2410 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2411 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2413 The servlet configuration files moved from the 'war' directory.
2414 * src/main/webapp/OnlineGlom.css:
2415 * src/main/webapp/OnlineGlom.html:
2416 * src/main/webapp/WEB-INF/web.xml:
2418 Generated test files with most of the code commented out. I included these
2419 so that it's easy to add tests when we're ready for them.
2420 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2421 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2423 2011-01-25 Ben Konrath <ben@bagu.org>
2425 Remove unused println.
2427 * src/org/glom/web/server/LibGlomServiceImpl.java:
2429 2011-01-25 Ben Konrath <ben@bagu.org>
2431 Add project specific JDT settings.
2433 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2434 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2436 2011-01-25 Ben Konrath <ben@bagu.org>
2438 Populate celltable with example data.
2440 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2441 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2442 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2443 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2444 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2445 asynchronously gets the example data.
2446 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2447 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2448 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2449 curently selected table to be retrieved by other widgets.
2450 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2451 implement getTableData() in a hacky way. This method needs to be updated
2452 to grab information from the database when database creating is
2455 2011-01-20 Ben Konrath <ben@bagu.org>
2457 Set table headers when table dropBox changes.
2459 * src/org/glom/web/client/GlomDocument.java: Correct some method
2461 * src/org/glom/web/client/LibGlomService.java: Add method
2462 to get list layout field names.
2463 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2464 to get list layout field names.
2465 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2466 widget for list layout table.
2467 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2468 the table drop box and add new updateTable() method to asynchronously
2469 get the layout list field names for the currently selected table.
2470 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2471 implementation of getLayoutListHeaders() method.
2472 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2474 2011-01-18 Ben Konrath <ben@bagu.org>
2476 Make a listBox with table titles instead of the flexTable demo.
2478 This is the start of something more useful.
2480 * .classpath: Exclude a bunch of packages from the JVM that are
2481 getting in the way of the Eclipse content assist.
2482 * src/org/glom/web/client/GlomDocument.java:
2483 * src/org/glom/web/client/GlomTable.java:
2484 * src/org/glom/web/client/LibGlomService.java:
2485 * src/org/glom/web/client/LibGlomServiceAsync.java:
2486 * src/org/glom/web/client/OnlineGlom.java:
2487 * src/org/glom/web/server/LibGlomServiceImpl.java:
2488 * war/OnlineGlom.html:
2489 * war/WEB-INF/web.xml:
2491 211-01-13 Ben Konrath <ben@bagu.org>
2493 Update to new java-libglom API.
2495 * .gitignore: Ignore OnlineGlom.war.
2496 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2498 2010-12-20 Ben Konrath <ben@bagu.org>
2500 Add some basic style to the table listing.
2502 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2503 header, print useful error message on async callback failure.
2504 * war/OnlineGlom.css: Add style for table header, remove defaults
2505 provided by the Eclipse project wizard.
2507 2010-12-20 Ben Konrath <ben@bagu.org>
2509 Load example file from installed glom dir.
2511 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2512 provided by java-libglom to find the example file.
2514 2010-12-20 Ben Konrath <ben@bagu.org>
2516 Update Eclipse settings.
2519 * .settings/com.google.gdt.eclipse.core.prefs:
2520 * .settings/com.google.gwt.eclipse.core.prefs:
2522 2010-12-17 Ben Konrath <ben@bagu.org>
2526 * .classpath: New file.
2527 * .gitignore: New file.
2528 * .project: New file.
2529 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2530 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2531 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2532 * src/org/glom/web/client/GlomTable.java: New file.
2533 * src/org/glom/web/client/OnlineGlom.java: New file.
2534 * src/org/glom/web/client/TableNameService.java: New file.
2535 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2536 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2537 * war/OnlineGlom.css: New file.
2538 * war/OnlineGlom.html: New file.
2539 * war/WEB-INF/web.xml: New file.
2540 * war/images/glom.png: New file.