1 2011-10-26 Ben Konrath <ben@bagu.org>
3 Correct error in previous commit.
5 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
6 eventBus parameter from listView.setCellTable().
8 2011-10-26 Ben Konrath <ben@bagu.org>
10 Fix error in TODO comment.
12 * src/main/java/org/glom/web/client/activity/ListActivity.java:
14 2011-10-24 Ben Konrath <ben@bagu.org>
16 Create Notebook widgets to the details view.
18 This isn't finished just yet - I still need to create a reasonable
19 style to match the current theme.
21 * src/main/java/org/glom/web/client/Utils.java: Add method for
22 calculating the height of a widget. This is used in the Notebook class.
23 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
24 new constructor method in Group.
25 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
26 method for creating child widget that can be used by subclasses
27 like Notebook. New constructor that allows disabling the group
28 titles - Notebooks don't set a group title for their child groups.
29 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
30 to make Notebooks using GWT's TabLayoutPanel.
31 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
32 constructor that allows disabling the group titles.
33 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
34 LayoutItemNotebook DTO.
35 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
36 DTO for Notebooks. It's just an empty class for now but we might need
37 it to transfer some specific information in the future.
39 2011-10-21 Ben Konrath <ben@bagu.org>
41 Add navigation buttons to related list tables.
43 * src/main/java/org/glom/web/client/OnlineGlomService.java:
44 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
45 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
46 method getSuitableRecordToViewDetails() for getting the table name
47 and primary key value for related list navigation buttons.
48 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
49 private cell renderer class to get the navigation information for
50 related list tables from the server. Extract the navigation
51 processing code from the details cell navigation and use it for the
52 related list navigation as well.
53 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
54 cell renderer class for the details open buttons. This was needed
55 because the related list navigation buttons and the list view
56 navigation buttons need to react differently when clicked.
57 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
58 the onEnterKeyDown() method because it's now overriden in the
59 subclasses that are specific to the related list tables and the list
61 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
62 the vertical size a little because the buttons add a bit of vertical
63 space to table. This is not a perfect solution because the vertical
64 size of with table fewer than 5 rows will be a little smaller.
65 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
66 changes in how navigation buttons are handled.
67 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
68 getSuitableRecordToViewDetails() using the new RelatedListNavigation
69 database access object.
70 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
71 to find the portal for a given relationship name from
72 RelatedListDBAccess. Add method to find a primary key field for a
74 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
75 Move code to find the portal for a given relationship name to
77 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
78 New file: database access object for getting the related list
79 navigation information (the table name and the primary key value).
80 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
81 DTO for transferring a table name to navigate to and a primary key
83 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
84 boolean and getter/setter to specifies if the related list should add
87 2011-10-11 Ben Konrath <ben@bagu.org>
89 Enable the open navigation button when the data has been set.
91 This avoids having active buttons that don't do anything when the data
94 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
96 2011-10-11 Ben Konrath <ben@bagu.org>
98 Use IsWidget interface for FlowTableItem.
100 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
101 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
103 2011-10-11 Ben Konrath <ben@bagu.org>
105 Remove GWT styling from open button in details view.
107 There are still some issues with how the details cell is arranged but
108 this should be made to match Glom 1.20. I'm going to leave fixing this
109 until I have Glom 1.20 up and running.
111 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
112 style name on open button.
113 * src/main/webapp/style.css: Move and edit details-navigation class.
114 Re-arrange some classes to make them appear in the same order as the
117 2011-10-07 Ben Konrath <ben@bagu.org>
121 * .gitignore: Ignore new cache directory.
122 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
123 * pom.xml: Change GWT and maven plugin to 2.4.0.
124 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
126 * src/main/java/org/glom/web/client/ClientFactory.java:
127 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
128 * src/main/java/org/glom/web/client/OnlineGlom.java:
129 Update source for API changes.
130 * utils/build-onlineglom-war.sh: Remove cache directory before the
133 2011-10-07 Ben Konrath <ben@bagu.org>
135 Add navigation buttons in the details view.
137 This isn't finished but I thought I'd commit what I have as it's a
138 pretty good start. I still need to:
140 1. Change the style so that it fits better into the current theme
141 2. Adjust the details cell to expand as much as possible.
143 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
144 click handlers to navigation buttons in the DetailsCells. Create a
145 refreshData() method to get just the data from the server without the
147 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
148 Update the tableSelector and browser title when the table name
149 changes without using the tableSelector.
150 * src/main/java/org/glom/web/client/ui/DetailsView.java:
151 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
152 getDetailsCells() to getCells(). Update variable names.
153 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
154 method to set click handler on navigation button. Rename a few
155 variables. Add navigation buttons where needed.
156 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
157 variables and methods.
158 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
159 navigation boolean and navigation table as required in the
161 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
162 variables for navigation along with getter/setter methods.
164 2011-10-07 Ben Konrath <ben@bagu.org>
166 Rename Field to DetailsCell.
168 This is a refactor-only commit. No functionality has been added or
171 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
172 Update variable and method names.
173 * src/main/java/org/glom/web/client/ui/DetailsView.java:
174 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
175 variable and method names.
176 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
178 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
179 variable and method names.
181 2011-10-07 Ben Konrath <ben@bagu.org>
183 Create separate methods for layout and data the details view.
185 This is a refactor-only commit. No functionality has been added or
188 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
189 private methods: setData(), createLayout().
191 2011-10-07 Ben Konrath <ben@bagu.org>
193 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
195 This is part of a change to get navigation buttons in the details view
196 but it should have been done this way from the start.
198 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
199 for method name change in TableSelectionView.
200 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
201 Create TableChangeEvent and set the browser title using the
202 TableSelectionView API.
203 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
204 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
205 Change getSelectedTable() to getSelectedTableName(). Add
206 getSelectedTableTitle().
208 2011-10-07 Ben Konrath <ben@bagu.org>
210 Use primaryKeyValue naming convention in constructor of DetailsPlace.
212 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
214 2011-10-07 Ben Konrath <ben@bagu.org>
216 Update TableChangeEvent to use newTableName naming convention.
218 This makes the class more consistent with GWT naming conventions.
220 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
221 Update for method name change in TableChangeEvent.
222 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
223 for method name change in TableChangeEvent.
224 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
225 newTableName variable and getter method. Make toDebugString()
228 2011-09-30 Ben Konrath <ben@bagu.org>
230 Disable the pager in the list tables when the data row count is less than the minimum.
232 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
233 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
235 2011-09-30 Ben Konrath <ben@bagu.org>
237 Add empty rows to the end of related list and list view tables.
239 I also extracted the cell rendering classes from the ListTable because
240 the code was becoming a little crazy with all the anonymous inner
241 classes. My plan is to use these cell rendering classes in the details
242 view as well so this refactor will be needed for that change.
244 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
245 set the row count in related list tables if the data has more rows
246 than the minimum number of rows visible.
247 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
248 row count in list view tables if the data has more rows than the
249 minimum number of rows visible.
250 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
251 for rendering TYPE_BOOLEAN cells. The code was extracted from the
253 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
254 for rendering TYPE_NUMERIC cells. The code was extracted from the
256 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
257 class for rendering cells with buttons in list views. The code was
258 extracted from the ListTable class.
259 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
260 for rendering TYPE_TEXT cells. The code was extracted from the
262 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
263 Add empty rows to the end of the data if required. Implement
264 ListTable.getMinNumVisibleRows().
265 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
266 cell renderer code to public classes. Return null in
267 Column.getValue() for empty rows. Add new abstract method:
268 getMinNumVisibleRows(). Move code to set the row count of the list view
269 table to ListViewImpl.
270 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
271 empty rows to the end of the data if required. Implement
272 ListTable.getMinNumVisibleRows().
275 2011-09-27 Ben Konrath <ben@bagu.org>
277 Use GWT.log for client-side debugging statements.
279 These are optimized out when deployed so I should have used this method
280 in the first place. These statements will eventually be replaced with some sort
281 of notification in the browser.
283 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
284 * src/main/java/org/glom/web/client/activity/ListActivity.java:
285 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
286 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
287 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
289 2011-09-27 Ben Konrath <ben@bagu.org>
291 Put tableselector on the right, back to list link on right.
293 The idea is that the table selector is acting like a label for the
294 currently displayed table so it should be placed below the document title. This
295 puts the table title in a similar position to where it is in Glom.
297 * mockups/details-contacts.html:
298 * mockups/details-projects.html:
299 * mockups/listview-contacts.html:
300 * mockups/listview-projects.html:
302 Update mockups to match how the interfaces currently look.
303 * src/main/webapp/style.css: Swap positions of backlink with the table
304 selector. Add some space on the left side of the table selector to
305 line things up with the document title.
307 2011-09-27 Ben Konrath <ben@bagu.org>
309 Add field colouring to details view.
311 This change re-works how field colouring works. The colour formatting
312 information is now set to the client with the layout information instead of
313 with the data. This eliminates the need to send the same colour strings for
314 data in list view column when colour information is set.
316 In order to set an alternate colour for negative numeric values, the
317 number is now sent to client and formatted with the GWT NumberFormat class.
319 This change also fixes:
321 https://bugzilla.gnome.org/show_bug.cgi?id=659752
323 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
324 internationalization framework which is needed for client side numeric
326 * src/main/java/org/glom/web/client/Utils.java: New file for some
327 client static utility methods.
328 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
329 the DataItem object to the Field class. Use a utility method to
330 create the foreignKeyValue string.
331 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
332 alignment and text colours in the constructor. Add setData(DataItem)
333 method. Remove setText(String) method.
334 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
335 colour information to GlomTextCell. Create and use GlomNumberCell for
336 rendering numbers. Use utility method to get the string for the
337 primary key of the key provider. Re-work how the horizontal alignment
339 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
340 formatting to layout information. Methods for converting the libglom
341 formatting information were moved from DBAccess.
342 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
343 numeric formatting (it's now done on the client side). Don't set text
344 colours in DataItem. Move libglom formatting conversion methods to
346 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
347 getters/setters for text colour information.
348 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
349 for transferring the libglom NumericFormat information to the client.
350 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
351 and getters/setters for: GlomNumericFormat, background colour and
352 foreground colour strings.
354 2011-09-26 Ben Konrath <ben@bagu.org>
356 Simplify code that iterates through the LayoutGroup.
358 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
360 2011-09-26 Ben Konrath <ben@bagu.org>
362 Accept Eclipse formatting for OnlineGlomServiceAsync.
364 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
366 2011-09-26 Ben Konrath <ben@bagu.org>
368 Don't use the ListDBAccess classes to get the primary key layout information.
370 This was causing a bug where the wrong index for the hidden primary key
371 was being sent to the client.
373 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
374 primary key while creating the LayoutGroup DTO. Create a
375 LayoutItemField DTO for hidden primary keys. Don't use the
376 RelatedListDBAccess because it was only used for getting the primary
378 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
379 access modifier from public to protected for getPrimaryKeyField() and
380 getPrimaryKeyLayoutItemField().
381 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
382 abstract method getExpectedResultSize() because RelatedListDBAccess
383 doesn't have enough info to implement it.
384 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
385 Remove @Override for getExpectedResultSize().
386 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
387 Remove method getExpectedResultSize().
389 2011-09-23 Ben Konrath <ben@bagu.org>
391 Log which layout (list or details) the ignored item is from.
393 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
395 2011-09-23 Ben Konrath <ben@bagu.org>
397 Remove annotations that turn off code formatting in DataItem.
399 * src/main/java/org/glom/web/shared/DataItem.java:
401 2011-09-23 Ben Konrath <ben@bagu.org>
403 Rename GlomField to DataItem and update associated methods.
405 This is a rename-only refactor. No functionality has been added or
408 * src/main/java/org/glom/web/client/OnlineGlomService.java:
409 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
410 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
411 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
412 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
413 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
414 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
415 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
416 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
417 * src/main/java/org/glom/web/server/database/DBAccess.java:
418 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
419 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
420 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
421 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
422 * src/main/java/org/glom/web/shared/DataItem.java:
423 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
424 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
426 2011-09-23 Ben Konrath <ben@bagu.org>
428 Rename GlomDocument to DocumentInfo and update associated methods.
430 This is a rename-only refactor. No functionality has been added or
433 * src/main/java/org/glom/web/client/OnlineGlomService.java:
434 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
435 * src/main/java/org/glom/web/client/activity/ListActivity.java:
436 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
437 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
438 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
439 * src/main/java/org/glom/web/shared/DocumentInfo.java:
441 2011-09-20 Ben Konrath <ben@bagu.org>
443 Require java-libglom 1.17.3.
445 This picks up the fix for the seg fault problem with the Scenes table
446 in the Openismus Film Manager example.
450 2011-09-20 Ben Konrath <ben@bagu.org>
452 Change the way sort clause is added for primary key when no sort clause is requested.
454 The primary key is now added to the LayoutFieldVector (fieldsToGet)
455 before the sort clause is created. When a sort clause is not requested, the
456 sort clause is created by finding the primary key in the LayoutFieldVector
459 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
461 2011-09-20 Ben Konrath <ben@bagu.org>
463 Log error message if no documents are found in the configured directory.
465 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
466 Extract the glom file extension string to a private static final class
467 variable (mostly as syntactic sugar). Accept a minor formatting change.
468 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
469 the example glom.document.directory configuration property to make it
470 more clear that it can any directory, not just the home directory.
472 2011-09-18 Ben Konrath <ben@bagu.org>
474 Add related lists to details view.
476 The related list table has support for paging and sorting just like the
477 table in the list view.
479 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
480 SQL queries for the related list tables.
481 * src/main/java/org/glom/web/client/OnlineGlomService.java:
482 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
483 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
484 Rename getList methods to getListView and add comments. Remove
485 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
486 it being unused. Add methods: getDetailsLayoutAndData(),
487 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
488 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
489 Create the layout and set the data for the fields in one async call
490 instead of two. Create related lists where appropriate.
491 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
492 for method name changes in OnlineGlomService.
493 * src/main/java/org/glom/web/client/ui/DetailsView.java:
494 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
495 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
497 * src/main/java/org/glom/web/client/ui/ListView.java:
498 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
499 tableName from setCellTable(). Create a ListViewTable instead of
501 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
502 represent a data field in the details view.
503 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
504 from addDetailsCell() to Field class. Keep track of the Fields and
505 Portals in the details view.
506 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
507 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
508 and add a method to get it. Add method to set the contents of the
510 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
511 New class for related list tables. This class has the data provider
512 for the related list table.
513 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
514 abstract class which is the base class for the ListViewTable and the
516 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
517 New class for list view tables. This class has the data provider for
519 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
520 methods for related list tables. Add more information to the
521 LayoutItemField and LayoutItemPortal DTOs.
522 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
523 Remove debugging print statement.
524 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
525 Remove debugging print statements. Add primary key field to SQL count
527 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
528 Remove unnecessary LayoutFieldVector parameter from
529 getResultSizeOfSQLQuery() method.
530 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
531 New class for related list table database access.
532 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
533 class that is a wrapper DTO for details view layout and data.
534 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
535 new 'fromField' string to this DTO.
536 * src/main/webapp/style.css: Remove bottom margin and override top
539 2011-09-15 Ben Konrath <ben@bagu.org>
541 Breakup the OnlineGlomServiceImpl class to make it more manageable.
543 This sets things up to make it easier to add the data retrieval for
544 related lists (portals). No user noticeable changes were made with
547 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
548 class has the code to retrieve the layouts and access the
549 database using the new database helper classes.
550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
551 Most of the functionality has been removed from this class. This
552 class now represents the public interface for the client side
553 code. It also deals with configuring the servlet and cleaning
554 things up when the servlet is stopped.
555 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
556 of static methods into this utility class.
557 * src/main/java/org/glom/web/server/database/DBAccess.java:
558 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
559 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
560 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
561 These classes have the database retrieval code. The class hierarchy
562 has been setup to make it easy to reuse code for similar
565 2011-09-06 Ben Konrath <ben@bagu.org>
567 Create separate classes for list table code and the data provider.
569 As part of this refactor, I also split up the code a bit to make it
572 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
573 table code to two new classes (below).
574 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
575 with code from ListViewImpl.
576 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
577 New file with code from ListViewImpl.
579 2011-09-06 Ben Konrath <ben@bagu.org>
581 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
583 This fixes the LayoutItemPortal DTO to match the libglom layout object
586 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
588 2011-09-01 Ben Konrath <ben@bagu.org>
590 Set title of Portals in the Details View.
592 * pom.xml: Bump required version of java-libglom to 1.17.1.
593 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
594 widget creation to its own class. Add comments to constructor.
595 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
596 The code is mostly from the Group class with the title now set.
597 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
598 title of Portal. Update some comments. Fix some code formatting.
600 2011-09-01 Ben Konrath <ben@bagu.org>
602 Remove TODO comment for the flow table column width.
604 The flow table column width is working correctly and doesn't need to be
605 changed. See this mailing list post for more info:
607 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
609 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
611 2011-08-27 Ben Konrath <ben@bagu.org>
613 Add document title (database name) to top of the browser page.
615 I added the document title to the TableSelecitonView but that will
616 change if / when we add a view that doesn't require table selection.
618 * mockups/details-contacts.html:
619 * mockups/details-projects.html:
620 * mockups/listview-contacts.html:
621 * mockups/listview-projects.html:
622 * mockups/style.css: Add document title to mockups to keep things
624 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
625 sizes to account for the document title.
626 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
627 Set the document title when it has been retrieved from the server.
628 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
629 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
630 and implement setDocumentTitle(String) method.
631 * src/main/webapp/style.css: Add ID for document title style.
633 2011-08-25 Ben Konrath <ben@bagu.org>
635 Add NavigationType enum to LayoutItemPortal DTO.
637 This is the start of adding support for Portals to the Details View.
639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
640 LayoutItem_Portal.navigation_type enum from libglom to
641 LayoutItemPortal.NavigationType enum.
642 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
643 NavigationType enum, field for storing the NavigationType and getter
646 2011-08-25 Ben Konrath <ben@bagu.org>
648 Implement the flow table layout in the Details View.
650 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
651 FlowTable to Group to account for the renamed class.
652 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
653 File. This is a container widget that implements the Glom details view
654 flow table behaviour.
655 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
656 org/glom/web/client/ui/FlowTable.java.
657 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
658 so that the size of the subgroups are a closer match to the size of
659 the Glom subgroups. This makes the flowtable layout match the layout
660 in Glom for the Music Collection example file.
662 2011-08-16 Ben Konrath <ben@bagu.org>
664 Create container element for LayoutItemPortal in Details View.
666 This will help me develop the layout for the FlowTable.
668 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
669 fieldPanel variable to detailsCell.
671 2011-08-15 Ben Konrath <ben@bagu.org>
673 Set the height of the data element in the Details View.
675 I changed the InlineLabels (text in a span element) to Labels (text in
676 a div element) so that I could set the height of the details-data
677 elements instead of the details-cell parent elements. This allows the
678 the details-data element to display the correct height if style is
679 applied that shows the height.
681 This change has the added benefit of allowing the order of the labels
682 and data elements to be changed for right-to-left languages.
684 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
685 InlineLabels to Labels.
686 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
687 InlineLabels to Labels. Set the height of the data element.
688 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
689 multiline text height in the Formatting DTO.
690 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
691 for multiline height along with getter and setter methods.
692 * src/main/webapp/style.css: Adjust style to account for the change
693 from span elements to div elements in the details cell.
695 2011-08-15 Ben Konrath <ben@bagu.org>
697 Make the List View appearance match the mockups.
699 It doesn't match exactly but it's much better than it was.
701 * mockups/listview-contacts.html: Remove unused css classes.
702 * mockups/listview-projects.html: Remove unused css classes.
703 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
704 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
705 for mainPanel instead of VerticalPanel (table). Set style name on
706 CellTable. Set style name on Details column. Right-align Details
708 * src/main/webapp/style.css: Adjust properties to match the mockups.
710 2011-08-12 Ben Konrath <ben@bagu.org>
712 Add better support for subgroups in the details view.
714 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
715 changed FlowTable constructor.
716 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
717 support for subgroups and subgroup-titles.
718 * src/main/webapp/style.css: Add CSS class for subgroups and
721 2011-08-12 Ben Konrath <ben@bagu.org>
723 Return the top level LayoutGroup title.
725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
727 2011-08-11 Ben Konrath <ben@bagu.org>
729 Make the TableSelector header match the mockup.
731 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
732 the layout panel. Properly lineup the table selection header with
733 the list and details view.
734 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
735 margin around the details view.
736 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
737 Rename listBox variable to tableSelector. Set id for the style sheet.
738 Use a FlowPanel instead of a HorizontalPanel.
739 * src/main/webapp/style.css: Add properties to make the TableSelector
740 box match the mockups.
742 2011-07-13 Ben Konrath <ben@bagu.org>
744 Update install script for java-libglom version change.
746 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
749 2011-07-13 Ben Konrath <ben@bagu.org>
751 Add support sub-group in the details view.
753 I also removed the code that special-cased the default details view
756 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
758 I still have to make a proper flowtable.
760 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
761 Don't special-case default details view layout.
762 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
763 addLayoutField() as I'm going to use it.
764 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
765 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
767 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
768 extracted from DetailsViewImpl.GroupPanel. Add support for
770 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
771 column count when getting the details layout.
773 2011-07-12 Ben Konrath <ben@bagu.org>
775 Set browser title with database and table titles.
777 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
778 Set the browser title when the table changes and when the activity
780 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
781 title when retrieving document info (the GlomDocument object).
782 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
783 with getter and setter methods. Remove unused convenience constructor.
784 Use default code formatting.
786 2011-07-12 Ben Konrath <ben@bagu.org>
788 Ignore LayoutItemPortals in the details view.
790 I added a new DTO for the LayoutItemPortal so that I can ignore it in
793 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
794 LayoutItemPortal layout objects.
795 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
796 LayoutItemPortal objects when retrieving the details layout.
797 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
798 file. This is an empty class and just used to get type information for
801 2011-07-12 Ben Konrath <ben@bagu.org>
803 Use java-libglom 1.17.0.
807 2011-07-11 Ben Konrath <ben@bagu.org>
809 Remove "Table:" label from table selector.
811 This matches a recent change in the Glom UI.
813 * mockups/details-contacts.html:
814 * mockups/details-projects.html:
815 * mockups/listview-contacts.html:
816 * mockups/listview-projects.html: Remove the "Table:" label from the
818 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
820 2011-07-11 Ben Konrath <ben@bagu.org>
822 Add main groups to the details view.
824 This makes things look a little nicer in the details view. The next step
825 is to implement the flowtable.
827 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
828 resources from the standard gwt css theme. Standard.css is now
829 included in OnlineGlom.html so that the online glom css rules have
830 precedence over the gwt theme.
831 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
832 the whole LayoutGroup to the DetailsView instead of just the titles.
833 * src/main/java/org/glom/web/client/ui/DetailsView.java:
834 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
835 details layout with a helper class (GroupPanel). I might extract this
836 class when I make the full flowtable.
837 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
838 string as default so I don't have to worry about NPEs when processing
840 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
841 note beside OnlineGlom.gwt.xml above).
842 * src/main/webapp/style.css: Add default font-size to body to override
843 the font-size set by the standard theme. Don't use h2 tags for
844 group-title. Create new details-cell class.
846 2011-07-08 Murray Cumming <murrayc@murrayc.com>
848 ConfiguredDocument: Set the port number too.
850 * src/main/java/org/glom/web/server/ConfiguredDocument.java
851 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
852 Glom document. Presumably this worked sometimes so far because there is a
855 2011-07-08 Murray Cumming <murrayc@murrayc.com>
857 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
859 * src/main/java/org/glom/web/server/ConfiguredDocument.java
860 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
861 correct, though we should throw an exception too.
863 2011-07-08 Murray Cumming <murrayc@murrayc.com>
865 Fix a addDocuemnt typo.
867 * src/main/java/org/glom/web/shared/Documents.java
868 (Documents.addDocuemnt): Rename to addDocument().
869 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
870 (OnlineGlomServiceImpl.getDocuments): Adapt.
872 2011-07-08 Murray Cumming <murrayc@murrayc.com>
874 Slightly improved log output when connection fails.
876 * src/main/java/org/glom/web/server/ConfiguredDocument.java
877 (ConfiguredDocument.setUsernameAndPassword):
878 We don't know for sure if it' the username/password that's wrong, so
879 rephrase the message.
880 Also ouput the exception message, though it's generic in this case.
882 2011-07-08 Ben Konrath <ben@bagu.org>
886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
887 added braces to a one line if statement because the Eclipse formatter
888 was getting confused.
890 2011-07-07 Ben Konrath <ben@bagu.org>
892 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
894 These should really be two separate tasks but I counldn't get things to
895 work with GWT 2.2.0 and Eclipse 3.7.
899 * .settings/org.eclipse.jdt.core.prefs:
900 * .settings/org.eclipse.jdt.ui.prefs:
901 * .settings/org.eclipse.ltk.core.refactoring.prefs:
902 * .settings/org.eclipse.m2e.core.prefs:
903 Add new config files. Update current files. Remove references to the
904 webtools plugins as we're not using any of the webtools features.
905 * .gitignore: Add logs directory which is created when running with
907 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
908 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
909 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
911 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
913 2011-07-07 Murray Cumming <murrayc@murrayc.com>
915 onlineglom.properties: Add explanatory comments.
917 * src/main/resources/onlineglom.properties: Also change the default user
918 from ben to someuser, to avoid the risk of people thinking we just
919 stupidly hard-coded a locale path, when they see that on stderr or in a log.
921 2011-06-28 Ben Konrath <ben@bagu.org>
923 Use filename in Log for incorrect passwords.
925 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
926 getFileName(String) method to get the filename from the URI.
928 2011-06-28 Ben Konrath <ben@bagu.org>
930 Add the table name to the URL token for the ListPlace.
932 This makes things consistent between the DetailsPlace and the
933 ListPlace. It also allows the the ListPlace to be bookmarked.
935 * src/main/java/org/glom/web/client/OnlineGlomService.java:
936 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
937 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
938 Remove getDefaultListLayout(). The default layout is now returned
939 by the getListLayout() method when the table name is an empty string.
940 * src/main/java/org/glom/web/client/activity/ListActivity.java:
941 Add table name field. Change to a new ListPlace when the table
942 has been changed. Use getListLayout() for getting the default
944 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
945 Add table name field. Set the correct table name in the list box
946 when loading from bookmark. This corrects a problem for the
948 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
949 Move table name to super-class (HasSelectableTable). Move document
950 and table URL keys to super-class in HasSelectableTable.
951 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
952 Add table name field. Add Tokenizer class with URL key common to
953 the subclasses (DetailsPlace and ListPlace).
954 * src/main/java/org/glom/web/client/place/ListPlace.java:
955 Add table name. Add code to parse the URL token.
956 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
957 Update ListPlace construction with empty table name string.
958 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
959 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
960 Change setTableSelectedIndex(int) to setSelectedTableName(String).
961 Update ListPlace construction with table name string.
962 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
963 Change defaultTableName field to tableName to reflect how it's now
964 used. Update the getter and setter methods.
966 2011-06-28 Ben Konrath <ben@bagu.org>
968 Enable the table selector in the DetailsView.
970 * src/main/java/org/glom/web/client/OnlineGlomService.java:
971 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
972 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
973 Remove getDefaultDetailsLayout(). The default layout is now returned
974 by the getDetailsLayout() method when the table name is an empty
976 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
977 event handler for table change event. Change to using
978 getDetailsLayout() for the default details layout.
979 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
981 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
982 when navigating to the details place.
984 2011-06-27 Ben Konrath <ben@bagu.org>
986 Use filename based unique document ID in URL and for RPC.
988 The document ID is the glom document name with spaces (' ') replaced
989 with pluses ('+') and without the .glom extension.
991 This change is mostly a string substitution of 'documentTitle' for
992 'documentID'. The only code change is the addition of a Documents DTO to get the
993 filename to document title mappings as indicated below.
995 * src/main/java/org/glom/web/client/OnlineGlomService.java:
996 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
997 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
998 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
999 Use Documents DTO to create the document links in the document
1001 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1002 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1003 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1004 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1005 * src/main/java/org/glom/web/client/place/ListPlace.java:
1006 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1007 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1008 * src/main/java/org/glom/web/client/ui/ListView.java:
1009 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1010 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1011 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1012 * src/main/java/org/glom/web/server/Log.java:
1013 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1014 getDocumentTitles() to getDocuments() and return the Documents DTO.
1015 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1016 transferring the filename to document title mappings.
1018 2011-06-25 Ben Konrath <ben@bagu.org>
1020 Make the authentication popup work again.
1022 This bug was introduced when I extracted ConfiguredDocument to its own class.
1024 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1025 correct success / fail status in setUsernameAndPassword().
1027 2011-06-25 Ben Konrath <ben@bagu.org>
1029 Use filename as unique key for configuring database usernames and passwords.
1031 This replaces the use of the Glom document title which could change
1032 depending on the locale. Thanks to Murray Cumming for pointing out this
1035 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1036 * src/main/resources/onlineglom.properties:
1038 2011-06-24 Ben Konrath <ben@bagu.org>
1040 Pass primary key value to DetailsView.
1042 This enables the DetailsView to load the correct data.
1044 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1045 primary key value field and set in constructor. Pass primary key
1046 value to getDetailsData().
1047 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1048 variables for document title and primary key value.
1049 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1050 key value to the DetailsPlace.
1052 2011-06-24 Ben Konrath <ben@bagu.org>
1054 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1056 This allows the primary key to be retrieved by the Details button. This
1057 functionality has not been implemented yet but it's in the works.
1059 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1060 the LayoutGroup result to ListView.setCellTable instead of all of its
1061 fields individually.
1062 * src/main/java/org/glom/web/client/ui/ListView.java:
1063 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1064 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1065 get the primary key for the table.
1066 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1067 index of the primary key in the LayoutGroup accounting for hidden
1068 primary keys. Rename getJavaNumberFormat() to
1069 convertToJavaNumberFormat() for consistency. Cleanup / add some
1071 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1072 field for primary key index and a field to indicate whether the
1073 primary key is hidden or not.
1075 2011-06-23 Ben Konrath <ben@bagu.org>
1077 Rename getTableData methods to getListData.
1079 This is a rename refactor for consistency with other methods.
1081 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1082 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1083 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1086 2011-06-23 Ben Konrath <ben@bagu.org>
1088 Extract the ConfiguredDocument innerclass into its own class.
1090 This makes the servlet code more object oriented.
1092 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1093 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1094 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1095 new ConfiguredDocument class.
1097 2011-06-21 Ben Konrath <ben@bagu.org>
1099 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1101 This makes things more inline with how libglom works and reduces code
1102 duplication. This refactor lays the groundwork for adding the primary key to
1103 the LayoutGroup object.
1105 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1106 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1108 Change method names to getListLayout and getDefaultListLayout for
1109 consistency. Use LayoutGroup as the DTO for the list layout instead of
1110 ColumnInfo and LayoutListTable.
1111 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1112 new method names along with the LayoutGroup object for transferring the
1114 * src/main/java/org/glom/web/client/ui/ListView.java:
1115 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1116 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1117 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1119 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1120 Replaced with LayoutGroup.
1121 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1122 expectedResultSize and defaultTableName fields which are needed for
1124 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1125 type field which is needed for the list layout but will also be
1126 useful for the details layout as things progress.
1127 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1128 Make class abstract. Remove the unnecessary
1129 getFormattingHorizontalAlignment method. Add setFormatting method.
1131 2011-06-16 Ben Konrath <ben@bagu.org>
1133 Add scripts for building and installing war.
1135 These will help when updating OnlineGlom but they're also good
1136 supplemental documentation of the build and deployment proceeding.
1138 * utils/build-onlineglom-war.sh: New file.
1139 * utils/install-onlineglom-war.sh: New file.
1141 2011-06-16 Ben Konrath <ben@bagu.org>
1143 Create wrapper class to create consistent log messages.
1145 I wrapped methods in the Log class of gwt-log to add the method names
1146 from the servlet and create consistent formatting of the document title
1147 and table names in the log messages.
1149 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1151 log methods to use methods from wrapped Log class.
1153 2011-06-16 Ben Konrath <ben@bagu.org>
1155 Remove superfluous conditional return.
1157 Thanks to Murray Cumming for pointing this out!
1159 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1161 2011-06-15 Ben Konrath <ben@bagu.org>
1163 Return an ArrayList of LayoutGroups for the Details layout.
1165 This corrects a problem with the details layout as it can have more
1166 than one top level LayoutGroup.
1168 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1169 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1170 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1171 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1172 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1173 with ArrayList of LayoutGroups for the details view layout.
1174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1175 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1176 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1177 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1178 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1179 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1181 2011-06-14 Ben Konrath <ben@bagu.org>
1183 Use cast_dynamic method to determine the libglom LayoutItem type.
1185 This is better than finding the LayoutItem type by using the string
1186 returned from the get_part_type_name() method.
1188 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1190 2011-06-14 Ben Konrath <ben@bagu.org>
1192 Add method names to log entries in the servlet.
1194 This helps when tracking down deployment problems.
1196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1198 2011-06-14 Ben Konrath <ben@bagu.org>
1200 Add data to the DetailsView using a hard-coded primary key value.
1202 The layout and functionality of the DetailsView is not complete. This
1203 is just a checkpoint so the patch doesn't get too big.
1205 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1206 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1207 Add getDetailsData() servlet method.
1208 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1209 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1210 LayoutFields are added to the DetailsView.
1211 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1212 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1213 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1214 take the string for the title instead of the object.
1215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1216 Add implementation getDetailsData() along with some private helper
1218 * src/main/webapp/style.css: Add padding to details-data class. Add a
1219 details-label class with the same padding as the details-data class.
1221 2011-06-03 Ben Konrath <ben@bagu.org>
1223 Use presenter.goTo() to change to the DetailsPlace.
1225 This will make things easier when we need to open the DetailsView with
1226 data specific to the row that was clicked.
1228 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1230 2011-06-02 Ben Konrath <ben@bagu.org>
1232 Add CSS file from mockups.
1234 I'm adding this now because it's going to be useful to have when
1235 developing the DetailsView. The TableSelectionView and ListView aren't
1238 * src/main/webapp/OnlineGlom.html:
1239 * src/main/webapp/style.css:
1241 2011-06-02 Ben Konrath <ben@bagu.org>
1243 Use String.isEmpty() to check for empty string.
1245 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1247 2011-06-02 Ben Konrath <ben@bagu.org>
1249 Display main layout group titles in the DetailsView.
1251 This is the start of the DetailsActivity/DetailsView implementation.
1253 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1254 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1255 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1256 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1257 Get the layout information for the details view from the server and set
1258 the main layout group titles.
1259 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1260 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1261 Add addLayoutGroup() and addLayoutField() methods. This are just
1262 temporary methods for creating the the details view that will change
1264 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1265 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1267 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1268 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1269 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1270 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1271 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1272 Data Transfer Objects that mimic the libglom object structure. These are
1273 used for transferring the details layout but could also be used for
1274 transferring the list layout.
1276 2011-05-27 Ben Konrath <ben@bagu.org>
1278 Reset the AuthenticationPopup when clearing the ListView.
1280 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1282 2011-05-27 Ben Konrath <ben@bagu.org>
1284 Fix problem with onlineglom.properties file loading.
1286 The old way worked in Eclipse but not on the server. Loading the
1287 onlineglom.properties file now works in Eclipse and on the server.
1289 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1291 2011-05-24 Ben Konrath <ben@bagu.org>
1293 Update gwt-log from 3.1.0 to 3.1.2.
1295 Gwt-log 3.1.0 has been marked as depreciated.
1299 2011-05-24 Ben Konrath <ben@bagu.org>
1301 Add comment to ListActivity.goTo() method.
1303 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1305 2011-05-24 Ben Konrath <ben@bagu.org>
1307 Remove FIXME in convertGdkColorToHtmlColour()
1309 The Gdk::Color value returned by libglom is 16-bits per channel on both
1310 64 and 32-bit platforms.
1312 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1314 2011-05-19 Ben Konrath <ben@bagu.org>
1316 Improve performance of initial ListView load.
1318 I removed a round trip to the server for getting the default table name
1319 and then requesting information about that table. This also removes a potential
1320 problem with the table change handler not being setup in time to receive the
1321 table change event from the ListActivity.
1323 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1324 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1325 getDefaultLayoutListTable() method. Improve comments.
1326 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1327 getDefaultLayoutListTable() method instead of firing a table change
1328 event to get the table to load.
1329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1330 implementation of getDefaultLayoutListTable() method.
1331 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1334 2011-05-19 Ben Konrath <ben@bagu.org>
1336 Override toDebugString() in TableChangeEvent.
1338 This is useful to have for debugging.
1340 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1342 2011-05-19 Ben Konrath <ben@bagu.org>
1344 Add a "Back to List" link when at the DetailsPlace.
1346 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1347 Populate the CellTable based on the selected table of the ListBox if
1348 it's set otherwise use the default table. This allows the "Back to
1350 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1351 Remove Place from constructors. Add a setPlace() method. Add
1352 goToPlace() method. Set class as presenter for TableSelectionView.
1353 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1354 Use the same TableSelectionActivity when switching between the List and
1356 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1357 Subclass the new HasSelectableTablePlace. This removes some duplicate
1359 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1360 New class to represent Places that display the TableSelectionView.
1361 * src/main/java/org/glom/web/client/place/ListPlace.java:
1362 Subclass the new HasSelectableTablePlace. This removes some duplicate
1364 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1365 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1366 Add Presenter interface. Add setBackLinkVisible() method. Add
1367 setBackLink() method.
1369 2011-05-18 Ben Konrath <ben@bagu.org>
1371 Enable the "Details" buttons.
1373 Right now only an empty details view is displayed.
1375 * src/main/java/org/glom/web/client/ClientFactory.java:
1376 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1377 Add DetailsView to ClientFactory.
1378 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1379 A basic activity for the details view.
1380 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1381 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1383 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1384 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1386 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1387 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1388 unnecessary super() in constructor.
1389 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1390 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1391 really shouldn't create a new TableSelectionActivity for both the ListPlace
1392 and the DetailsPlace so this should be considered a temporary solution.
1393 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1394 New file. Represents a URL for the details view.
1395 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1396 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1397 A basic details view interface and implementation.
1398 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1399 Enable the "Details" buttons.
1401 2011-05-12 Ben Konrath <ben@bagu.org>
1403 Use a LayoutPanel with multiple display areas for main layout.
1405 This is mostly a refactor in that there are no changes from the user
1406 point of view. These changes are required so that we can swap out the list view
1407 with the details view when the user clicks the "Details" button.
1409 * src/main/java/org/glom/web/client/ClientFactory.java:
1410 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1411 OnlineGlomView. Add TableSelectionView, ListView and
1412 AuthenticationPopup.
1413 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1414 for main layout. Add display regions for main activities. Add
1415 activity manager for for main activities.
1416 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1417 file from parts of the deleted OnlineGlomActivity.
1418 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1419 New file from parts of the deleted OnlineGlomActivity.
1420 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1421 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1422 New files for app wide table change event.
1423 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1424 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1425 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1426 Activity mappers for the main activities replace the deleted app-wide
1428 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1429 Fix a spelling error in he comment.
1430 * src/main/java/org/glom/web/client/ui/ListView.java:
1431 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1432 Renamed from LayoutListView and modified for MVP. This still not a
1433 proper dumb view as prescribed by the MVP pattern but it works for now.
1434 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1435 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1436 New widget stripped out of the deleted OnlineGlomView.
1437 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1438 Remove hack that is fixed by this patch.
1440 2011-05-06 Ben Konrath <ben@bagu.org>
1442 Rename OnlineGlomPlace to ListPlace.
1444 The only change besides the rename is that url will now display #list
1445 instead of #Document.
1447 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1448 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1449 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1450 * src/main/java/org/glom/web/client/place/ListPlace.java:
1451 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1453 2011-05-06 Ben Konrath <ben@bagu.org>
1455 Use Presenter for app navigation.
1457 This is the proper way to deal with Place (URL) changes with the MVP
1460 * src/main/java/org/glom/web/client/ClientFactory.java:
1461 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1462 PlaceHistoryMapper and PlaceHistoryHandler.
1463 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1464 PlaceHistoryMapper and PlaceHistoryHandler.
1465 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1466 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1467 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1468 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1469 Add Presenter interface and setPresenter methods. Rename addHyperLink
1470 to addDocumentLink taking only the document title as a parameter.
1472 2011-04-14 Ben Konrath <ben@bagu.org>
1474 Prompt for db username/password if they haven't been set.
1476 This is implemented with a popup widget that is contained within the
1477 OnlineGlomView and managed by the OnlineGlomActivity.
1479 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1480 methods for checking and setting the database username and password.
1481 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1482 new methods for checking and setting the database username and
1484 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1485 Display authentication popup if the JDBC connection to the database
1486 has not been authenticated.
1487 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1489 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1490 for dealing with the authentication popup.
1491 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1492 Implement the methods for dealing with the authentication popup.
1493 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1494 try to executed queries if the database connection hasn't been
1495 authenticated. Implement methods for checking and setting the
1496 database username and password.
1498 2011-04-12 Ben Konrath <ben@bagu.org>
1500 Make log messages a little clearer.
1502 Add a dash betweeen the document title and the table name.
1504 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1506 2011-04-12 Ben Konrath <ben@bagu.org>
1508 Protect against NPEs when cleaning up database resources.
1510 While this isn't strictly necessary because the exception is caught,
1511 not protecting against the NPEs makes it harder to find the real error
1514 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1516 2011-04-12 Ben Konrath <ben@bagu.org>
1518 Move configuration of the servlet to the constructor.
1520 The servlet will be initialized even if the database authentication
1521 information is not set or correct. I still need to add the UI for prompting
1522 the user for the authentication information when it's required.
1524 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1525 javadocs for getDocumentTitles() method.
1526 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1527 Set error message when RPC fails.
1528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1529 glom files directory from the configuration file. Try to set the
1530 database authentication information for the specific document if it's
1531 set and works otherwise try to use the global authentication
1532 information set for the directory.
1533 * src/main/resources/onlineglom.properties: Moved from
1534 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1535 Added detailed comments for the new keys.
1537 2011-04-11 Ben Konrath <ben@bagu.org>
1539 Remove unnecessary @Override in DocumentSelectionViewImpl.
1541 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1543 2011-04-11 Ben Konrath <ben@bagu.org>
1545 Remove center alignment in DocumentSelectionView.
1547 The title element is still centred but the document titles and bottom
1548 sentence are both left-aligned.
1550 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1552 2011-04-11 Ben Konrath <ben@bagu.org>
1554 Change 'Demo' naming convention to 'Document'.
1556 This is just a rename refactor with no functional changes to the code.
1558 * src/main/java/org/glom/web/client/ClientFactory.java:
1559 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1560 * src/main/java/org/glom/web/client/OnlineGlom.java:
1561 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1562 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1563 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1564 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1565 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1566 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1567 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1568 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1569 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1572 2011-04-08 Ben Konrath <ben@bagu.org>
1574 Remove FIXME from safeLongToInt() method.
1576 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1579 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1581 2011-04-08 Ben Konrath <ben@bagu.org>
1583 Display an error if no glom documents are found in the specified directory.
1585 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1586 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1587 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1590 2011-04-08 Ben Konrath <ben@bagu.org>
1592 Add copyright header to one more file ... oops.
1594 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1596 2011-04-08 Ben Konrath <ben@bagu.org>
1598 Add copyright header to files without it.
1600 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1601 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1602 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1603 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1604 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1605 * src/main/java/org/glom/web/shared/GlomField.java:
1607 2011-04-08 Ben Konrath <ben@bagu.org>
1609 Add support for accessing multiple glom documents in the servlet.
1611 This completes the demo selection functionality.
1613 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1614 document title to methods.
1615 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1616 document title to methods.
1617 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1618 Set browser window title when the activity starts. Correct name of
1619 document title variable.
1620 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1621 Set browser window title when the activity starts. Set the table
1622 selector change handler after table selector has been set. Clear the
1623 OnlineGlomView when the activity has been stopped.
1624 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1625 document title as the place token. Use "#Document:" instead of
1626 "#OnlineGlomPlace:" in the URL.
1627 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1628 Change heading to "Online Glom"
1629 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1630 document title in RPC methods.
1631 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1632 setDocumentTitle() method. Add clear() method.
1633 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1634 setDocumentTitle() method. Implement clear() method which removes the
1635 change handler on the ListBox, clears the ListBox and clears the
1637 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1638 Implement methods with document title. Keep track for the configured
1639 glom documents and their corresponding JDBC configurations in a hash
1640 table. This information is retrieved using the document title as the
1641 key in the hash table.
1642 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1643 document title field as it's no longer needed.
1645 2011-04-08 Ben Konrath <ben@bagu.org>
1647 Update the Eclipse JDT configuration.
1649 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1650 methods. Automatically add the copyright header to new files.
1652 2011-04-05 Ben Konrath <ben@bagu.org>
1654 Add new page for demo selection.
1656 This patch adds all the components required to view and start an
1657 OnlineGlom demo by clicking on the desired hyperlink. The user is
1658 able to return to the demo selection page with the browser's back
1659 button. I still need to modify the servlet to work with multiple
1660 documents so all demo links will load the file defined in the
1661 OnlineGlom.properties.
1663 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1664 This is only useful during development so we don't need to save it.
1665 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1666 get a reference to the DemoSelectionView.
1667 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1668 method to get a reference to the DemoSelectionView.
1669 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1670 default view to DemoSelectionView.
1671 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1672 to get glom document titles for glom files in a hard-coded directory.
1673 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1674 method to get glom document titles for glom files in a hard-coded
1676 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1677 Presenter for DemoSelectionView.
1678 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1679 for DemoSelectionView.
1680 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1681 Update for DemoSelectionView.
1682 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1683 Basic 'Place' implementation for the DemoSelectionView.
1684 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1685 The interface for the DemoSelectionView.
1686 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1687 The implementation of the DemoSelectionView.
1688 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1689 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1690 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1691 implementation of method to get glom document titles for glom files
1692 in a hard-coded directory.
1693 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1694 on longer being used.
1695 * src/main/webapp/glom.png: Glom logo.
1697 2011-04-05 Ben Konrath <ben@bagu.org>
1699 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1701 This is the forth and final commit of a refactor that will allow
1702 OnlineGlom to be used with multiple documents.
1704 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1705 Move RPC code from OnlineGlomViewImpl to this class.
1706 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1708 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1709 RPC code to the presenter class (the P in MVP).
1711 2011-04-04 Ben Konrath <ben@bagu.org>
1713 Start moving the existing OnlineGlom code to MVP.
1715 This work is based on the GWT MVP framework that is documented here:
1717 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1719 This is the third commit of a refactor that will allow OnlineGlom to
1720 be used with multiple documents.
1722 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1723 Interface for client factory which is used to get instances of various
1724 classes throughout the app.
1725 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1726 Implementation of client factory.
1727 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1728 initialize the MVP framework.
1729 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1730 New file. Activity manager for the main container widget. This is the
1732 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1733 Maps place (URL) to its corresponding activity.
1734 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1735 New file. This is just a place holder for a generated file.
1736 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1737 New file. Represents the URL for the main Online Glom app.
1738 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1739 for changes in LayoutListViewImpl.
1740 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1741 interface for View. Move code to OnlineGlomViewImpl class.
1742 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1743 file. Implementation of OnlineGlomView.
1744 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1745 Place resources. Use ClientFactoryImpl by default.
1747 2011-04-04 Ben Konrath <ben@bagu.org>
1749 Move View classes to their own package.
1751 This is the second commit of a refactor that will allow OnlineGlom to
1752 be used with multiple documents.
1754 * src/main/java/org/glom/web/client/OnlineGlom.java:
1755 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1756 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1758 2011-04-02 Ben Konrath <ben@bagu.org>
1760 Move UI code from the main module to its own class.
1762 This is the first commit of a refactor that will allow OnlineGlom to be
1763 used with multiple documents.
1765 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1766 references to OnlineGlom to OnlineGlomView.
1767 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1768 OnlineGlomView and instantiate it here.
1769 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1770 represents the main OnlineGlomView with one document.
1772 2011-04-01 Ben Konrath <ben@bagu.org>
1774 Fix formatting of gwt.xml and add DTD.
1776 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1778 2011-03-30 Ben Konrath <ben@bagu.org>
1780 Propperly convert gdkColor string to html colour string.
1782 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1784 2011-03-28 Ben Konrath <ben@bagu.org>
1786 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1788 This implementation matches
1789 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1790 readable and is not tied to Swig.
1792 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1794 2011-03-28 Ben Konrath <ben@bagu.org>
1796 Use read-only checkboxes for boolean field types.
1798 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1799 in the CellTable based on the field type. It currently only
1800 distinguishes between boolean and text columns but I'll need to add
1801 support for more types.
1802 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1803 column type in the ColumnInfo object. Add method to convert between the
1804 glom field type enum in ColumnInfo and the glom field type in libglom.
1805 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1807 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1808 getting and setting booleans.
1810 2011-03-25 Ben Konrath <ben@bagu.org>
1812 Don't get the Date twice from the ResultSet.
1814 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1816 2011-03-25 Ben Konrath <ben@bagu.org>
1818 Cleanup code in the servlet.
1820 * TODO: Remove item about row count. Add item about testing row count
1821 query with large number of rows.
1822 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1823 spelling mistakes, change method parameter to be consistent with
1826 2011-03-25 Ben Konrath <ben@bagu.org>
1828 Add server side logging with the gwt-log library.
1830 * .gitignore: Ignore the log file we're now producing.
1831 * TODO: Add a couple TODO item for logging.
1832 * pom.xml: Add gwt-log and log4j as a dependency.
1833 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1834 logging of errors, warnings and some important info.
1835 * src/main/resources/log4j.properties: New file to configure log4j.
1837 2011-03-24 Ben Konrath <ben@bagu.org>
1839 Add a disable button for the Details view.
1841 * src/main/java/org/glom/web/client/LayoutListView.java:
1843 2011-03-22 Ben Konrath <ben@bagu.org>
1845 Use a count query to get the number of rows for the list view pager.
1847 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1849 2011-03-22 Ben Konrath <ben@bagu.org>
1851 Add more TODO information about CellTable pager positioning.
1855 2011-03-19 Ben Konrath <ben@bagu.org>
1857 Add TODO item about CellTable pager positioning.
1861 2011-03-18 Ben Konrath <ben@bagu.org>
1863 Remove unneeded GlomFieldColumn class.
1865 This is just a small code cleanup.
1867 * src/main/java/org/glom/web/client/LayoutListView.java:
1869 2011-03-18 Ben Konrath <ben@bagu.org>
1871 Use cursor mode in the query that gets data for the list view.
1873 I still need to fix the potential memory problem when getting the row
1874 count for the list view.
1876 * TODO: Add note about testing memory usage with large data sets. Add
1877 item about fixing row counting with large data sets.
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1879 PostgreSQL JDBC driver into cursor mode when getting data for the
1882 2011-03-15 Ben Konrath <ben@bagu.org>
1884 Remove the GWT Container from the Eclipse build classpath.
1886 The GWT dependencies are set by Maven so this isn't needed.
1890 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1892 Added some earlier mockups to git, but not to the tarball dist.
1894 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1895 Openismus. These hopefully show how we might structure the HTML so that
1896 it can be styled easily with CSS. However, we probably need to adapt them
1897 for the CSS structure that GWT dictates for common widgets.
1899 2011-03-14 Ben Konrath <ben@bagu.org>
1901 Locate OnlineGlom.properties using the ServletContext.
1903 This is required to be able to locate the file in the deployed servlet.
1905 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1906 Configure the database and glom document in in a helper method so
1907 that the ServletContext can be used to locate OnlineGlom.properties.
1908 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1909 src/main/webapp. This is the proper location for .properites files.
1911 2011-03-12 Ben Konrath <ben@bagu.org>
1913 Add note to README about why we're compiling down to obfuscated JavaScript.
1917 2011-03-11 Ben Konrath <ben@bagu.org>
1919 Use properties file to configure servlet.
1921 This allows people to change the glom file path, db username and db
1922 password without recompiling the code.
1924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1925 * src/main/webapp/OnlineGlom.properties:
1927 2011-03-11 Ben Konrath <ben@bagu.org>
1929 Use table fields in layout list view if the layout list is not defined.
1931 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1932 Manually create a LayoutFieldVector for the query builder using the
1933 table fields when a layout list is not defined in the glom file.
1935 2011-03-11 Ben Konrath <ben@bagu.org>
1937 Only show FIXME string for images when there's an image.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1940 in this change are some small code cleanups.
1942 2011-03-11 Ben Konrath <ben@bagu.org>
1944 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1946 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1948 2011-03-11 Ben Konrath <ben@bagu.org>
1950 Correctly set the index of the default table.
1952 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1953 Correctly set the index of the default table. Add commented out example
1956 2011-03-10 Ben Konrath <ben@bagu.org>
1958 Add comment to pom.xml about the previous change.
1960 * pom.xml: Add comment about the deployment issue so that it's obvious
1961 why java-libglom is set to the provided scope.
1963 2011-03-10 Ben Konrath <ben@bagu.org>
1965 Change java-libglom dependency from compile to provided in pom.xml.
1967 Since java-libglom uses jni it can only be loaded once and therefore
1968 must be placed in $CATALINA_HOME/lib and not included in each war.
1969 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1970 More information about this issue can be found in the Tomcat 6 release
1971 notes in the "JNI Based Applications" section:
1973 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1975 * README: Remove note about this issue. Deployment info should really
1976 be on the wiki anyway so I'll add it right now.
1977 * pom.xml: Change java-libglom dependency from compile to provided so
1978 that it's copied in to the packaged war.
1980 2011-03-09 Ben Konrath <ben@bagu.org>
1982 Change to using a neutral locale for currency, date and time formatting.
1984 This solves the problem of currency values being represented without a
1985 space between the currency code and the number (e.g. "EUR5.89" is now
1986 represented as "EUR 5.89"). More work is required when we implement
1987 a locale preference setting.
1989 * TODO: Add note about currency formatting issues with different
1991 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1992 to using the neutral ROOT locale.
1994 2011-03-09 Ben Konrath <ben@bagu.org>
1996 Add support for currency codes that are not ISO 4217 codes.
1998 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1999 the currency code defined in the glom file when it's not 3 characters
2000 long or when Java doesn't recognize the string as an ISO 4217 code.
2002 2011-03-08 Ben Konrath <ben@bagu.org>
2004 Remove test classes, launch configurations and configuration.
2006 The test stuff was getting in the way when creating the war. To make
2007 the war file you can now do 'mvn clean package'. The packaged war file
2008 will be in the target directory.
2010 * .classpath: Remove unused classpathentry for tests and i18n.
2011 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2012 property. Don't run test or i18n goals when packaging the war.
2013 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2018 * OnlineGlomTest-dev.launch:
2019 * OnlineGlomTest-prod.launch:
2020 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2021 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2023 2011-03-07 Ben Konrath <ben@bagu.org>
2025 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2027 These fixes allow me to use 'mvn deploy' to create the war file.
2029 * .classpath: This generated config has been updated by Eclipse. This
2030 change was probably triggered by me updating from Eclipse 3.6.1 to
2032 * .gitignore: Add entry to ignore the directory
2033 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2034 * .project: The generated config has been updated by Eclipse. This
2035 change was probably triggered by me updating from Eclipse 3.6.1 to
2037 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2038 so that Eclipse doesn't complain
2039 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2040 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2041 'tests' directory to 'client' directory. This is the new
2042 gwt-maven-plugin convension.
2043 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2044 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2046 2011-03-07 Ben Konrath <ben@bagu.org>
2048 Add support for horizontal alignment in the LayoutList columns.
2050 * TODO: Remove item about horizontal alignment. Add item about
2051 improvements to ColumnInfo.
2052 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2053 alignment on the columns. Use ColumnInfo RPC object get the column
2054 title and horizontal alignment.
2055 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2056 LayoutListView creation with ColumnInfo RPC object.
2057 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2058 a ColumnInfo object for every LayoutList columnn. Convert the
2059 FieldFormatting.HorizontalAlignment to the correct
2060 ColumnnInfo.HorizontatlAlignment with the new
2061 getColumnInfoHorizontalAlignment helper method.
2062 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2063 to encapsulate column information like alignment and title. This
2064 could be used to set the colour instead of on a per cell field basis.
2065 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2066 column title storage and retrieval with ColumnInfo.
2068 2011-03-04 Ben Konrath <ben@bagu.org>
2070 Add support for column sorting.
2072 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2073 AsynDataProvider to be an anonymous inner class. Use new
2074 getSortedTableData RPC method when column sort is requested. Set all
2075 columns sortable and add an AsyncHandler to activate sorting in the
2077 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2078 method getSortedTableData(). Cleanup other method signatures.
2079 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2080 new method getSortedTableData(). Cleanup other method signatures.
2081 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2082 Implement getSortedTableData() and getTableData() methods by using a
2083 private helper method with the appropriate parameters filled in. Use
2084 user supplied sort clause when supplied, otherwise fall back to
2085 sorting by the primary key. Move destroy() method to be underneath
2086 constructor for readability. Cleanup comments.
2088 2011-03-03 Ben Konrath <ben@bagu.org>
2090 Add support for colour text and colour backgrounds to the layout list cells.
2092 Only the cell backgrounds are coloured which leaves a gap between the
2093 cells that isn't coloured. I need to figure out a way to set
2094 'style=background-colour:' on the whole column rather than just the
2097 * TODO: Add a note about colouring the background of the whole column.
2098 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2099 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2100 render the coloured text and backgrounds. Use GlomField[] for the row type.
2101 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2103 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2104 GlomField[] for the row type.
2105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2106 GlomField[] for the row type. Set the text, text colour and background
2107 colour in the GlomField objects as specified in the glom document. Add
2108 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2109 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2110 the glom field text, foreground colour and background colour.
2112 2011-03-02 Ben Konrath <ben@bagu.org>
2114 Don't display hidden tables in the combo box.
2116 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2119 code to ignore hidden tables using ArrayLists for the table names and
2121 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2122 tableNames to use ArrayLists instead of String[]. Update getter and setter
2125 2011-03-01 Ben Konrath <ben@bagu.org>
2127 Add support for Date and Time number types.
2129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2130 Implement formatting for Date and Time values. Change the default glom
2131 file to small business example.
2133 2011-03-01 Ben Konrath <ben@bagu.org>
2135 Add support for formatting glom types as specified in the glom file.
2137 Formatting isn't finished yet - I still need to add support for Date
2140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2141 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2142 checks for null values in JDBC cleanup code and catch all exceptions
2143 instead of just SQLExceptions.
2144 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2147 2011-03-01 Ben Konrath <ben@bagu.org>
2149 Use GWT 2.2.0 instead of 2.1.1.
2151 * pom.xml: Change GWT version numbers.
2153 2011-03-01 Ben Konrath <ben@bagu.org>
2155 A few small code cleanups.
2157 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2159 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2160 unnecessary object creation in constructor.
2161 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2162 unnecessary object creation in constructor.
2164 2011-02-28 Ben Konrath <ben@bagu.org>
2166 Add file for TODO list.
2170 2011-02-18 Ben Konrath <ben@bagu.org>
2172 Enable the CellTable Pager when more than 20 rows need to be viewed.
2174 The Pager will automatically become active when the results are larger
2175 than the CellTable size which is currently set to 20 lines.
2177 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2178 name on debug statment in RPC call in LayoutListDataProvider, add
2179 numRows parameter to LayoutListView constructor, propperly set rowCount
2181 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2182 name on debug statment in RPC call, use LayoutListTable object in RPC
2183 calls, pass rowCount to LayoutListView.
2184 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2185 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2187 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2188 interface for changes in OnlineGlomService.
2189 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2190 getLayoutListHeaders() to getLayoutListTable() and return
2191 LayoutListTable. Using this object allows me to pass other information
2192 about the LayoutList like the expected number of rows in the result set.
2193 The Connection object from the connection pool is now propperly closed.
2194 Only the requested number of lines are returned to the client in
2196 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2197 GlomTable and add columnTitles and numRows.
2199 2011-02-18 Ben Konrath <ben@bagu.org>
2201 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2203 This is a small performance boost. I'll use GlomTable to get the required
2204 layoutlist information.
2206 * src/main/java/org/glom/web/client/OnlineGlom.java:
2207 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2208 * src/main/java/org/glom/web/shared/GlomDocument.java:
2210 2011-02-18 Ben Konrath <ben@bagu.org>
2212 Add option to turn off formatting in JDT formatter preferences.
2214 * .settings/org.eclipse.jdt.core.prefs:
2216 2011-02-18 Ben Konrath <ben@bagu.org>
2218 Rename LayoutList to LayoutListView.
2220 I'm working towards setting things up to easily use MVP when the time
2223 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2225 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2228 2011-02-17 Ben Konrath <ben@bagu.org>
2230 Move LayoutListDataProvider class into LayoutList.java.
2232 * src/main/java/org/glom/web/client/LayoutList.java:
2234 2011-02-17 Ben Konrath <ben@bagu.org>
2236 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2238 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2240 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2241 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2242 from LibGlomServer.java.
2243 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2244 Rename from LibGlomServiceAsync.java.
2245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2246 Rename from LibGlomServiceImpl.java.
2247 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2249 2011-02-17 Ben Konrath <ben@bagu.org>
2251 Update JDT settings.
2253 * .settings/org.eclipse.jdt.core.prefs:
2255 2011-02-17 Ben Konrath <ben@bagu.org>
2257 Move GWT-RPC objects to shared package (where they should be).
2259 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2260 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2261 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2262 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2263 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2264 org.glom.web.shared package.
2265 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2266 org.glom.web.shared package.
2267 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2268 directory in compilation to javascript.
2270 2011-02-16 Ben Konrath <ben@bagu.org>
2272 Add sort clause to the sql query that grabs table information.
2274 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2275 if one of the columns is a primary key.
2277 2011-02-16 Ben Konrath <ben@bagu.org>
2279 Disable generateAsync feature of gwt-maven.
2281 The generated interface does not correctly match the methods in LibGlomService
2282 and the generated singleton Util inner-class doesn't respect the servlet
2285 * pom.xml: Turn off generateAsync feature.
2286 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2287 with singleton Util inner-class.
2289 2011-02-14 Ben Konrath <ben@bagu.org>
2291 Add LGPL v3 licence notices.
2293 Followed directions listed here:
2294 http://www.gnu.org/licenses/gpl-howto.html
2296 * COPYING: This file is a copy of the GPL v3.
2297 * COPYING.LESSER: This file is a copy of the LGPL v3.
2298 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2300 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2302 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2304 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2306 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2308 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2310 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2313 2011-02-14 Ben Konrath <ben@bagu.org>
2315 Use ArrayList instead of Array in GWT-RPC calls.
2317 Apparently this gives a slight performance boost to the compiled
2320 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2322 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2325 2011-02-14 Ben Konrath <ben@bagu.org>
2327 Access data from a postgres db rather than the example glom file.
2329 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2330 compile down to obfuscated javascript.
2331 * pom.xml: Add c3p0 and postgres JDBC libraries.
2332 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2333 using a postgres db accessed through the c3p0 connection pooling library.
2335 2011-02-14 Ben Konrath <ben@bagu.org>
2337 Update Java formatter settings.
2339 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2341 2011-02-02 Ben Konrath <ben@bagu.org>
2343 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2345 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2347 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2348 the compiled webapp directory that Eclipse uses as we're using Maven now.
2349 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2350 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2352 * pom.xml: Format file, change target Java version to 1.6.
2354 2011-02-02 Ben Konrath <ben@bagu.org>
2356 Add information about a deployment related issue.
2358 * README: Add Notes section with the problem outlined.
2360 2011-02-02 Ben Konrath <ben@bagu.org>
2362 Call Glom.libglom_deinit() when the servlet is shutdown.
2364 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2365 Glom.libglom_deinit() to destroy() method.
2367 2011-01-28 Ben Konrath <ben@bagu.org>
2369 Use generated Util class to get the RPC Async interface.
2371 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2373 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2374 getInstance() method to get a reference to the RPC Async interface.
2375 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2376 getInstance() method to get a reference to the RPC Async interface, remove
2377 the now unused getLibGlomServiceProxy() method.
2379 2011-01-27 Ben Konrath <ben@bagu.org>
2381 Cleanup ChangeLog entry from previous commit.
2383 * ChangeLog: Group logical changes together and add comments.
2385 2011-01-25 Ben Konrath <ben@bagu.org>
2387 Convert to gwt-maven project.
2389 * .gitignore: Update for new project structure.
2390 * README: New file with a link to the online documentation.
2391 * pom.xml: The generated maven configuration file with some tweaks.
2393 Add / update Eclipse settings. These files are a merge of the files that
2394 were generated with the gwt-maven plugin and the files we were previously
2398 * .settings/.jsdtscope:
2399 * .settings/com.google.gdt.eclipse.core.prefs:
2400 * .settings/com.google.gwt.eclipse.core.prefs:
2401 * .settings/org.eclipse.jdt.core.prefs:
2402 * .settings/org.eclipse.wst.common.component:
2403 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2404 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2405 * .settings/org.maven.ide.eclipse.prefs:
2406 * OnlineGlomTest-dev.launch:
2407 * OnlineGlomTest-prod.launch:
2409 Java source files moved from the 'src' directory to the directory structure
2411 * src/main/java/org/glom/web/client/GlomDocument.java:
2412 * src/main/java/org/glom/web/client/GlomTable.java:
2413 * src/main/java/org/glom/web/client/LayoutList.java:
2414 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2415 * src/main/java/org/glom/web/client/LibGlomService.java:
2416 * src/main/java/org/glom/web/client/OnlineGlom.java:
2417 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2419 Non-functional property file used for translations. I included this as
2420 reminder that it's something I need to sort out.
2421 * src/main/resources/org/glom/web/client/Messages.properties:
2423 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2424 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2426 The servlet configuration files moved from the 'war' directory.
2427 * src/main/webapp/OnlineGlom.css:
2428 * src/main/webapp/OnlineGlom.html:
2429 * src/main/webapp/WEB-INF/web.xml:
2431 Generated test files with most of the code commented out. I included these
2432 so that it's easy to add tests when we're ready for them.
2433 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2434 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2436 2011-01-25 Ben Konrath <ben@bagu.org>
2438 Remove unused println.
2440 * src/org/glom/web/server/LibGlomServiceImpl.java:
2442 2011-01-25 Ben Konrath <ben@bagu.org>
2444 Add project specific JDT settings.
2446 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2447 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2449 2011-01-25 Ben Konrath <ben@bagu.org>
2451 Populate celltable with example data.
2453 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2454 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2455 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2456 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2457 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2458 asynchronously gets the example data.
2459 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2460 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2461 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2462 curently selected table to be retrieved by other widgets.
2463 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2464 implement getTableData() in a hacky way. This method needs to be updated
2465 to grab information from the database when database creating is
2468 2011-01-20 Ben Konrath <ben@bagu.org>
2470 Set table headers when table dropBox changes.
2472 * src/org/glom/web/client/GlomDocument.java: Correct some method
2474 * src/org/glom/web/client/LibGlomService.java: Add method
2475 to get list layout field names.
2476 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2477 to get list layout field names.
2478 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2479 widget for list layout table.
2480 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2481 the table drop box and add new updateTable() method to asynchronously
2482 get the layout list field names for the currently selected table.
2483 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2484 implementation of getLayoutListHeaders() method.
2485 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2487 2011-01-18 Ben Konrath <ben@bagu.org>
2489 Make a listBox with table titles instead of the flexTable demo.
2491 This is the start of something more useful.
2493 * .classpath: Exclude a bunch of packages from the JVM that are
2494 getting in the way of the Eclipse content assist.
2495 * src/org/glom/web/client/GlomDocument.java:
2496 * src/org/glom/web/client/GlomTable.java:
2497 * src/org/glom/web/client/LibGlomService.java:
2498 * src/org/glom/web/client/LibGlomServiceAsync.java:
2499 * src/org/glom/web/client/OnlineGlom.java:
2500 * src/org/glom/web/server/LibGlomServiceImpl.java:
2501 * war/OnlineGlom.html:
2502 * war/WEB-INF/web.xml:
2504 211-01-13 Ben Konrath <ben@bagu.org>
2506 Update to new java-libglom API.
2508 * .gitignore: Ignore OnlineGlom.war.
2509 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2511 2010-12-20 Ben Konrath <ben@bagu.org>
2513 Add some basic style to the table listing.
2515 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2516 header, print useful error message on async callback failure.
2517 * war/OnlineGlom.css: Add style for table header, remove defaults
2518 provided by the Eclipse project wizard.
2520 2010-12-20 Ben Konrath <ben@bagu.org>
2522 Load example file from installed glom dir.
2524 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2525 provided by java-libglom to find the example file.
2527 2010-12-20 Ben Konrath <ben@bagu.org>
2529 Update Eclipse settings.
2532 * .settings/com.google.gdt.eclipse.core.prefs:
2533 * .settings/com.google.gwt.eclipse.core.prefs:
2535 2010-12-17 Ben Konrath <ben@bagu.org>
2539 * .classpath: New file.
2540 * .gitignore: New file.
2541 * .project: New file.
2542 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2543 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2544 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2545 * src/org/glom/web/client/GlomTable.java: New file.
2546 * src/org/glom/web/client/OnlineGlom.java: New file.
2547 * src/org/glom/web/client/TableNameService.java: New file.
2548 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2549 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2550 * war/OnlineGlom.css: New file.
2551 * war/OnlineGlom.html: New file.
2552 * war/WEB-INF/web.xml: New file.
2553 * war/images/glom.png: New file.