1 2011-10-26 Ben Konrath <ben@bagu.org>
3 Fix error in TODO comment.
5 * src/main/java/org/glom/web/client/activity/ListActivity.java:
7 2011-10-24 Ben Konrath <ben@bagu.org>
9 Create Notebook widgets to the details view.
11 This isn't finished just yet - I still need to create a reasonable
12 style to match the current theme.
14 * src/main/java/org/glom/web/client/Utils.java: Add method for
15 calculating the height of a widget. This is used in the Notebook class.
16 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
17 new constructor method in Group.
18 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
19 method for creating child widget that can be used by subclasses
20 like Notebook. New constructor that allows disabling the group
21 titles - Notebooks don't set a group title for their child groups.
22 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
23 to make Notebooks using GWT's TabLayoutPanel.
24 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
25 constructor that allows disabling the group titles.
26 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
27 LayoutItemNotebook DTO.
28 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
29 DTO for Notebooks. It's just an empty class for now but we might need
30 it to transfer some specific information in the future.
32 2011-10-21 Ben Konrath <ben@bagu.org>
34 Add navigation buttons to related list tables.
36 * src/main/java/org/glom/web/client/OnlineGlomService.java:
37 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
38 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
39 method getSuitableRecordToViewDetails() for getting the table name
40 and primary key value for related list navigation buttons.
41 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
42 private cell renderer class to get the navigation information for
43 related list tables from the server. Extract the navigation
44 processing code from the details cell navigation and use it for the
45 related list navigation as well.
46 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
47 cell renderer class for the details open buttons. This was needed
48 because the related list navigation buttons and the list view
49 navigation buttons need to react differently when clicked.
50 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
51 the onEnterKeyDown() method because it's now overriden in the
52 subclasses that are specific to the related list tables and the list
54 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
55 the vertical size a little because the buttons add a bit of vertical
56 space to table. This is not a perfect solution because the vertical
57 size of with table fewer than 5 rows will be a little smaller.
58 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
59 changes in how navigation buttons are handled.
60 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
61 getSuitableRecordToViewDetails() using the new RelatedListNavigation
62 database access object.
63 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
64 to find the portal for a given relationship name from
65 RelatedListDBAccess. Add method to find a primary key field for a
67 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
68 Move code to find the portal for a given relationship name to
70 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
71 New file: database access object for getting the related list
72 navigation information (the table name and the primary key value).
73 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
74 DTO for transferring a table name to navigate to and a primary key
76 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
77 boolean and getter/setter to specifies if the related list should add
80 2011-10-11 Ben Konrath <ben@bagu.org>
82 Enable the open navigation button when the data has been set.
84 This avoids having active buttons that don't do anything when the data
87 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
89 2011-10-11 Ben Konrath <ben@bagu.org>
91 Use IsWidget interface for FlowTableItem.
93 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
94 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
96 2011-10-11 Ben Konrath <ben@bagu.org>
98 Remove GWT styling from open button in details view.
100 There are still some issues with how the details cell is arranged but
101 this should be made to match Glom 1.20. I'm going to leave fixing this
102 until I have Glom 1.20 up and running.
104 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
105 style name on open button.
106 * src/main/webapp/style.css: Move and edit details-navigation class.
107 Re-arrange some classes to make them appear in the same order as the
110 2011-10-07 Ben Konrath <ben@bagu.org>
114 * .gitignore: Ignore new cache directory.
115 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
116 * pom.xml: Change GWT and maven plugin to 2.4.0.
117 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
119 * src/main/java/org/glom/web/client/ClientFactory.java:
120 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
121 * src/main/java/org/glom/web/client/OnlineGlom.java:
122 Update source for API changes.
123 * utils/build-onlineglom-war.sh: Remove cache directory before the
126 2011-10-07 Ben Konrath <ben@bagu.org>
128 Add navigation buttons in the details view.
130 This isn't finished but I thought I'd commit what I have as it's a
131 pretty good start. I still need to:
133 1. Change the style so that it fits better into the current theme
134 2. Adjust the details cell to expand as much as possible.
136 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
137 click handlers to navigation buttons in the DetailsCells. Create a
138 refreshData() method to get just the data from the server without the
140 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
141 Update the tableSelector and browser title when the table name
142 changes without using the tableSelector.
143 * src/main/java/org/glom/web/client/ui/DetailsView.java:
144 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
145 getDetailsCells() to getCells(). Update variable names.
146 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
147 method to set click handler on navigation button. Rename a few
148 variables. Add navigation buttons where needed.
149 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
150 variables and methods.
151 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
152 navigation boolean and navigation table as required in the
154 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
155 variables for navigation along with getter/setter methods.
157 2011-10-07 Ben Konrath <ben@bagu.org>
159 Rename Field to DetailsCell.
161 This is a refactor-only commit. No functionality has been added or
164 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
165 Update variable and method names.
166 * src/main/java/org/glom/web/client/ui/DetailsView.java:
167 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
168 variable and method names.
169 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
171 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
172 variable and method names.
174 2011-10-07 Ben Konrath <ben@bagu.org>
176 Create separate methods for layout and data the details view.
178 This is a refactor-only commit. No functionality has been added or
181 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
182 private methods: setData(), createLayout().
184 2011-10-07 Ben Konrath <ben@bagu.org>
186 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
188 This is part of a change to get navigation buttons in the details view
189 but it should have been done this way from the start.
191 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
192 for method name change in TableSelectionView.
193 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
194 Create TableChangeEvent and set the browser title using the
195 TableSelectionView API.
196 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
197 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
198 Change getSelectedTable() to getSelectedTableName(). Add
199 getSelectedTableTitle().
201 2011-10-07 Ben Konrath <ben@bagu.org>
203 Use primaryKeyValue naming convention in constructor of DetailsPlace.
205 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
207 2011-10-07 Ben Konrath <ben@bagu.org>
209 Update TableChangeEvent to use newTableName naming convention.
211 This makes the class more consistent with GWT naming conventions.
213 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
214 Update for method name change in TableChangeEvent.
215 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
216 for method name change in TableChangeEvent.
217 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
218 newTableName variable and getter method. Make toDebugString()
221 2011-09-30 Ben Konrath <ben@bagu.org>
223 Disable the pager in the list tables when the data row count is less than the minimum.
225 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
226 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
228 2011-09-30 Ben Konrath <ben@bagu.org>
230 Add empty rows to the end of related list and list view tables.
232 I also extracted the cell rendering classes from the ListTable because
233 the code was becoming a little crazy with all the anonymous inner
234 classes. My plan is to use these cell rendering classes in the details
235 view as well so this refactor will be needed for that change.
237 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
238 set the row count in related list tables if the data has more rows
239 than the minimum number of rows visible.
240 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
241 row count in list view tables if the data has more rows than the
242 minimum number of rows visible.
243 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
244 for rendering TYPE_BOOLEAN cells. The code was extracted from the
246 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
247 for rendering TYPE_NUMERIC cells. The code was extracted from the
249 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
250 class for rendering cells with buttons in list views. The code was
251 extracted from the ListTable class.
252 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
253 for rendering TYPE_TEXT cells. The code was extracted from the
255 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
256 Add empty rows to the end of the data if required. Implement
257 ListTable.getMinNumVisibleRows().
258 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
259 cell renderer code to public classes. Return null in
260 Column.getValue() for empty rows. Add new abstract method:
261 getMinNumVisibleRows(). Move code to set the row count of the list view
262 table to ListViewImpl.
263 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
264 empty rows to the end of the data if required. Implement
265 ListTable.getMinNumVisibleRows().
268 2011-09-27 Ben Konrath <ben@bagu.org>
270 Use GWT.log for client-side debugging statements.
272 These are optimized out when deployed so I should have used this method
273 in the first place. These statements will eventually be replaced with some sort
274 of notification in the browser.
276 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
277 * src/main/java/org/glom/web/client/activity/ListActivity.java:
278 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
279 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
280 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
282 2011-09-27 Ben Konrath <ben@bagu.org>
284 Put tableselector on the right, back to list link on right.
286 The idea is that the table selector is acting like a label for the
287 currently displayed table so it should be placed below the document title. This
288 puts the table title in a similar position to where it is in Glom.
290 * mockups/details-contacts.html:
291 * mockups/details-projects.html:
292 * mockups/listview-contacts.html:
293 * mockups/listview-projects.html:
295 Update mockups to match how the interfaces currently look.
296 * src/main/webapp/style.css: Swap positions of backlink with the table
297 selector. Add some space on the left side of the table selector to
298 line things up with the document title.
300 2011-09-27 Ben Konrath <ben@bagu.org>
302 Add field colouring to details view.
304 This change re-works how field colouring works. The colour formatting
305 information is now set to the client with the layout information instead of
306 with the data. This eliminates the need to send the same colour strings for
307 data in list view column when colour information is set.
309 In order to set an alternate colour for negative numeric values, the
310 number is now sent to client and formatted with the GWT NumberFormat class.
312 This change also fixes:
314 https://bugzilla.gnome.org/show_bug.cgi?id=659752
316 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
317 internationalization framework which is needed for client side numeric
319 * src/main/java/org/glom/web/client/Utils.java: New file for some
320 client static utility methods.
321 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
322 the DataItem object to the Field class. Use a utility method to
323 create the foreignKeyValue string.
324 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
325 alignment and text colours in the constructor. Add setData(DataItem)
326 method. Remove setText(String) method.
327 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
328 colour information to GlomTextCell. Create and use GlomNumberCell for
329 rendering numbers. Use utility method to get the string for the
330 primary key of the key provider. Re-work how the horizontal alignment
332 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
333 formatting to layout information. Methods for converting the libglom
334 formatting information were moved from DBAccess.
335 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
336 numeric formatting (it's now done on the client side). Don't set text
337 colours in DataItem. Move libglom formatting conversion methods to
339 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
340 getters/setters for text colour information.
341 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
342 for transferring the libglom NumericFormat information to the client.
343 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
344 and getters/setters for: GlomNumericFormat, background colour and
345 foreground colour strings.
347 2011-09-26 Ben Konrath <ben@bagu.org>
349 Simplify code that iterates through the LayoutGroup.
351 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
353 2011-09-26 Ben Konrath <ben@bagu.org>
355 Accept Eclipse formatting for OnlineGlomServiceAsync.
357 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
359 2011-09-26 Ben Konrath <ben@bagu.org>
361 Don't use the ListDBAccess classes to get the primary key layout information.
363 This was causing a bug where the wrong index for the hidden primary key
364 was being sent to the client.
366 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
367 primary key while creating the LayoutGroup DTO. Create a
368 LayoutItemField DTO for hidden primary keys. Don't use the
369 RelatedListDBAccess because it was only used for getting the primary
371 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
372 access modifier from public to protected for getPrimaryKeyField() and
373 getPrimaryKeyLayoutItemField().
374 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
375 abstract method getExpectedResultSize() because RelatedListDBAccess
376 doesn't have enough info to implement it.
377 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
378 Remove @Override for getExpectedResultSize().
379 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
380 Remove method getExpectedResultSize().
382 2011-09-23 Ben Konrath <ben@bagu.org>
384 Log which layout (list or details) the ignored item is from.
386 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
388 2011-09-23 Ben Konrath <ben@bagu.org>
390 Remove annotations that turn off code formatting in DataItem.
392 * src/main/java/org/glom/web/shared/DataItem.java:
394 2011-09-23 Ben Konrath <ben@bagu.org>
396 Rename GlomField to DataItem and update associated methods.
398 This is a rename-only refactor. No functionality has been added or
401 * src/main/java/org/glom/web/client/OnlineGlomService.java:
402 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
403 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
404 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
405 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
406 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
407 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
408 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
410 * src/main/java/org/glom/web/server/database/DBAccess.java:
411 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
412 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
413 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
414 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
415 * src/main/java/org/glom/web/shared/DataItem.java:
416 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
417 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
419 2011-09-23 Ben Konrath <ben@bagu.org>
421 Rename GlomDocument to DocumentInfo and update associated methods.
423 This is a rename-only refactor. No functionality has been added or
426 * src/main/java/org/glom/web/client/OnlineGlomService.java:
427 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
428 * src/main/java/org/glom/web/client/activity/ListActivity.java:
429 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
430 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
431 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
432 * src/main/java/org/glom/web/shared/DocumentInfo.java:
434 2011-09-20 Ben Konrath <ben@bagu.org>
436 Require java-libglom 1.17.3.
438 This picks up the fix for the seg fault problem with the Scenes table
439 in the Openismus Film Manager example.
443 2011-09-20 Ben Konrath <ben@bagu.org>
445 Change the way sort clause is added for primary key when no sort clause is requested.
447 The primary key is now added to the LayoutFieldVector (fieldsToGet)
448 before the sort clause is created. When a sort clause is not requested, the
449 sort clause is created by finding the primary key in the LayoutFieldVector
452 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
454 2011-09-20 Ben Konrath <ben@bagu.org>
456 Log error message if no documents are found in the configured directory.
458 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
459 Extract the glom file extension string to a private static final class
460 variable (mostly as syntactic sugar). Accept a minor formatting change.
461 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
462 the example glom.document.directory configuration property to make it
463 more clear that it can any directory, not just the home directory.
465 2011-09-18 Ben Konrath <ben@bagu.org>
467 Add related lists to details view.
469 The related list table has support for paging and sorting just like the
470 table in the list view.
472 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
473 SQL queries for the related list tables.
474 * src/main/java/org/glom/web/client/OnlineGlomService.java:
475 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
476 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
477 Rename getList methods to getListView and add comments. Remove
478 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
479 it being unused. Add methods: getDetailsLayoutAndData(),
480 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
481 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
482 Create the layout and set the data for the fields in one async call
483 instead of two. Create related lists where appropriate.
484 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
485 for method name changes in OnlineGlomService.
486 * src/main/java/org/glom/web/client/ui/DetailsView.java:
487 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
488 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
490 * src/main/java/org/glom/web/client/ui/ListView.java:
491 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
492 tableName from setCellTable(). Create a ListViewTable instead of
494 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
495 represent a data field in the details view.
496 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
497 from addDetailsCell() to Field class. Keep track of the Fields and
498 Portals in the details view.
499 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
500 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
501 and add a method to get it. Add method to set the contents of the
503 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
504 New class for related list tables. This class has the data provider
505 for the related list table.
506 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
507 abstract class which is the base class for the ListViewTable and the
509 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
510 New class for list view tables. This class has the data provider for
512 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
513 methods for related list tables. Add more information to the
514 LayoutItemField and LayoutItemPortal DTOs.
515 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
516 Remove debugging print statement.
517 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
518 Remove debugging print statements. Add primary key field to SQL count
520 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
521 Remove unnecessary LayoutFieldVector parameter from
522 getResultSizeOfSQLQuery() method.
523 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
524 New class for related list table database access.
525 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
526 class that is a wrapper DTO for details view layout and data.
527 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
528 new 'fromField' string to this DTO.
529 * src/main/webapp/style.css: Remove bottom margin and override top
532 2011-09-15 Ben Konrath <ben@bagu.org>
534 Breakup the OnlineGlomServiceImpl class to make it more manageable.
536 This sets things up to make it easier to add the data retrieval for
537 related lists (portals). No user noticeable changes were made with
540 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
541 class has the code to retrieve the layouts and access the
542 database using the new database helper classes.
543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
544 Most of the functionality has been removed from this class. This
545 class now represents the public interface for the client side
546 code. It also deals with configuring the servlet and cleaning
547 things up when the servlet is stopped.
548 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
549 of static methods into this utility class.
550 * src/main/java/org/glom/web/server/database/DBAccess.java:
551 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
552 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
553 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
554 These classes have the database retrieval code. The class hierarchy
555 has been setup to make it easy to reuse code for similar
558 2011-09-06 Ben Konrath <ben@bagu.org>
560 Create separate classes for list table code and the data provider.
562 As part of this refactor, I also split up the code a bit to make it
565 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
566 table code to two new classes (below).
567 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
568 with code from ListViewImpl.
569 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
570 New file with code from ListViewImpl.
572 2011-09-06 Ben Konrath <ben@bagu.org>
574 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
576 This fixes the LayoutItemPortal DTO to match the libglom layout object
579 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
581 2011-09-01 Ben Konrath <ben@bagu.org>
583 Set title of Portals in the Details View.
585 * pom.xml: Bump required version of java-libglom to 1.17.1.
586 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
587 widget creation to its own class. Add comments to constructor.
588 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
589 The code is mostly from the Group class with the title now set.
590 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
591 title of Portal. Update some comments. Fix some code formatting.
593 2011-09-01 Ben Konrath <ben@bagu.org>
595 Remove TODO comment for the flow table column width.
597 The flow table column width is working correctly and doesn't need to be
598 changed. See this mailing list post for more info:
600 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
602 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
604 2011-08-27 Ben Konrath <ben@bagu.org>
606 Add document title (database name) to top of the browser page.
608 I added the document title to the TableSelecitonView but that will
609 change if / when we add a view that doesn't require table selection.
611 * mockups/details-contacts.html:
612 * mockups/details-projects.html:
613 * mockups/listview-contacts.html:
614 * mockups/listview-projects.html:
615 * mockups/style.css: Add document title to mockups to keep things
617 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
618 sizes to account for the document title.
619 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
620 Set the document title when it has been retrieved from the server.
621 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
622 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
623 and implement setDocumentTitle(String) method.
624 * src/main/webapp/style.css: Add ID for document title style.
626 2011-08-25 Ben Konrath <ben@bagu.org>
628 Add NavigationType enum to LayoutItemPortal DTO.
630 This is the start of adding support for Portals to the Details View.
632 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
633 LayoutItem_Portal.navigation_type enum from libglom to
634 LayoutItemPortal.NavigationType enum.
635 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
636 NavigationType enum, field for storing the NavigationType and getter
639 2011-08-25 Ben Konrath <ben@bagu.org>
641 Implement the flow table layout in the Details View.
643 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
644 FlowTable to Group to account for the renamed class.
645 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
646 File. This is a container widget that implements the Glom details view
647 flow table behaviour.
648 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
649 org/glom/web/client/ui/FlowTable.java.
650 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
651 so that the size of the subgroups are a closer match to the size of
652 the Glom subgroups. This makes the flowtable layout match the layout
653 in Glom for the Music Collection example file.
655 2011-08-16 Ben Konrath <ben@bagu.org>
657 Create container element for LayoutItemPortal in Details View.
659 This will help me develop the layout for the FlowTable.
661 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
662 fieldPanel variable to detailsCell.
664 2011-08-15 Ben Konrath <ben@bagu.org>
666 Set the height of the data element in the Details View.
668 I changed the InlineLabels (text in a span element) to Labels (text in
669 a div element) so that I could set the height of the details-data
670 elements instead of the details-cell parent elements. This allows the
671 the details-data element to display the correct height if style is
672 applied that shows the height.
674 This change has the added benefit of allowing the order of the labels
675 and data elements to be changed for right-to-left languages.
677 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
678 InlineLabels to Labels.
679 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
680 InlineLabels to Labels. Set the height of the data element.
681 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
682 multiline text height in the Formatting DTO.
683 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
684 for multiline height along with getter and setter methods.
685 * src/main/webapp/style.css: Adjust style to account for the change
686 from span elements to div elements in the details cell.
688 2011-08-15 Ben Konrath <ben@bagu.org>
690 Make the List View appearance match the mockups.
692 It doesn't match exactly but it's much better than it was.
694 * mockups/listview-contacts.html: Remove unused css classes.
695 * mockups/listview-projects.html: Remove unused css classes.
696 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
697 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
698 for mainPanel instead of VerticalPanel (table). Set style name on
699 CellTable. Set style name on Details column. Right-align Details
701 * src/main/webapp/style.css: Adjust properties to match the mockups.
703 2011-08-12 Ben Konrath <ben@bagu.org>
705 Add better support for subgroups in the details view.
707 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
708 changed FlowTable constructor.
709 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
710 support for subgroups and subgroup-titles.
711 * src/main/webapp/style.css: Add CSS class for subgroups and
714 2011-08-12 Ben Konrath <ben@bagu.org>
716 Return the top level LayoutGroup title.
718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
720 2011-08-11 Ben Konrath <ben@bagu.org>
722 Make the TableSelector header match the mockup.
724 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
725 the layout panel. Properly lineup the table selection header with
726 the list and details view.
727 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
728 margin around the details view.
729 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
730 Rename listBox variable to tableSelector. Set id for the style sheet.
731 Use a FlowPanel instead of a HorizontalPanel.
732 * src/main/webapp/style.css: Add properties to make the TableSelector
733 box match the mockups.
735 2011-07-13 Ben Konrath <ben@bagu.org>
737 Update install script for java-libglom version change.
739 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
742 2011-07-13 Ben Konrath <ben@bagu.org>
744 Add support sub-group in the details view.
746 I also removed the code that special-cased the default details view
749 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
751 I still have to make a proper flowtable.
753 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
754 Don't special-case default details view layout.
755 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
756 addLayoutField() as I'm going to use it.
757 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
758 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
760 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
761 extracted from DetailsViewImpl.GroupPanel. Add support for
763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
764 column count when getting the details layout.
766 2011-07-12 Ben Konrath <ben@bagu.org>
768 Set browser title with database and table titles.
770 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
771 Set the browser title when the table changes and when the activity
773 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
774 title when retrieving document info (the GlomDocument object).
775 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
776 with getter and setter methods. Remove unused convenience constructor.
777 Use default code formatting.
779 2011-07-12 Ben Konrath <ben@bagu.org>
781 Ignore LayoutItemPortals in the details view.
783 I added a new DTO for the LayoutItemPortal so that I can ignore it in
786 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
787 LayoutItemPortal layout objects.
788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
789 LayoutItemPortal objects when retrieving the details layout.
790 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
791 file. This is an empty class and just used to get type information for
794 2011-07-12 Ben Konrath <ben@bagu.org>
796 Use java-libglom 1.17.0.
800 2011-07-11 Ben Konrath <ben@bagu.org>
802 Remove "Table:" label from table selector.
804 This matches a recent change in the Glom UI.
806 * mockups/details-contacts.html:
807 * mockups/details-projects.html:
808 * mockups/listview-contacts.html:
809 * mockups/listview-projects.html: Remove the "Table:" label from the
811 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
813 2011-07-11 Ben Konrath <ben@bagu.org>
815 Add main groups to the details view.
817 This makes things look a little nicer in the details view. The next step
818 is to implement the flowtable.
820 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
821 resources from the standard gwt css theme. Standard.css is now
822 included in OnlineGlom.html so that the online glom css rules have
823 precedence over the gwt theme.
824 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
825 the whole LayoutGroup to the DetailsView instead of just the titles.
826 * src/main/java/org/glom/web/client/ui/DetailsView.java:
827 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
828 details layout with a helper class (GroupPanel). I might extract this
829 class when I make the full flowtable.
830 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
831 string as default so I don't have to worry about NPEs when processing
833 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
834 note beside OnlineGlom.gwt.xml above).
835 * src/main/webapp/style.css: Add default font-size to body to override
836 the font-size set by the standard theme. Don't use h2 tags for
837 group-title. Create new details-cell class.
839 2011-07-08 Murray Cumming <murrayc@murrayc.com>
841 ConfiguredDocument: Set the port number too.
843 * src/main/java/org/glom/web/server/ConfiguredDocument.java
844 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
845 Glom document. Presumably this worked sometimes so far because there is a
848 2011-07-08 Murray Cumming <murrayc@murrayc.com>
850 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
852 * src/main/java/org/glom/web/server/ConfiguredDocument.java
853 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
854 correct, though we should throw an exception too.
856 2011-07-08 Murray Cumming <murrayc@murrayc.com>
858 Fix a addDocuemnt typo.
860 * src/main/java/org/glom/web/shared/Documents.java
861 (Documents.addDocuemnt): Rename to addDocument().
862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
863 (OnlineGlomServiceImpl.getDocuments): Adapt.
865 2011-07-08 Murray Cumming <murrayc@murrayc.com>
867 Slightly improved log output when connection fails.
869 * src/main/java/org/glom/web/server/ConfiguredDocument.java
870 (ConfiguredDocument.setUsernameAndPassword):
871 We don't know for sure if it' the username/password that's wrong, so
872 rephrase the message.
873 Also ouput the exception message, though it's generic in this case.
875 2011-07-08 Ben Konrath <ben@bagu.org>
879 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
880 added braces to a one line if statement because the Eclipse formatter
881 was getting confused.
883 2011-07-07 Ben Konrath <ben@bagu.org>
885 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
887 These should really be two separate tasks but I counldn't get things to
888 work with GWT 2.2.0 and Eclipse 3.7.
892 * .settings/org.eclipse.jdt.core.prefs:
893 * .settings/org.eclipse.jdt.ui.prefs:
894 * .settings/org.eclipse.ltk.core.refactoring.prefs:
895 * .settings/org.eclipse.m2e.core.prefs:
896 Add new config files. Update current files. Remove references to the
897 webtools plugins as we're not using any of the webtools features.
898 * .gitignore: Add logs directory which is created when running with
900 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
901 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
902 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
904 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
906 2011-07-07 Murray Cumming <murrayc@murrayc.com>
908 onlineglom.properties: Add explanatory comments.
910 * src/main/resources/onlineglom.properties: Also change the default user
911 from ben to someuser, to avoid the risk of people thinking we just
912 stupidly hard-coded a locale path, when they see that on stderr or in a log.
914 2011-06-28 Ben Konrath <ben@bagu.org>
916 Use filename in Log for incorrect passwords.
918 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
919 getFileName(String) method to get the filename from the URI.
921 2011-06-28 Ben Konrath <ben@bagu.org>
923 Add the table name to the URL token for the ListPlace.
925 This makes things consistent between the DetailsPlace and the
926 ListPlace. It also allows the the ListPlace to be bookmarked.
928 * src/main/java/org/glom/web/client/OnlineGlomService.java:
929 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
930 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
931 Remove getDefaultListLayout(). The default layout is now returned
932 by the getListLayout() method when the table name is an empty string.
933 * src/main/java/org/glom/web/client/activity/ListActivity.java:
934 Add table name field. Change to a new ListPlace when the table
935 has been changed. Use getListLayout() for getting the default
937 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
938 Add table name field. Set the correct table name in the list box
939 when loading from bookmark. This corrects a problem for the
941 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
942 Move table name to super-class (HasSelectableTable). Move document
943 and table URL keys to super-class in HasSelectableTable.
944 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
945 Add table name field. Add Tokenizer class with URL key common to
946 the subclasses (DetailsPlace and ListPlace).
947 * src/main/java/org/glom/web/client/place/ListPlace.java:
948 Add table name. Add code to parse the URL token.
949 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
950 Update ListPlace construction with empty table name string.
951 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
952 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
953 Change setTableSelectedIndex(int) to setSelectedTableName(String).
954 Update ListPlace construction with table name string.
955 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
956 Change defaultTableName field to tableName to reflect how it's now
957 used. Update the getter and setter methods.
959 2011-06-28 Ben Konrath <ben@bagu.org>
961 Enable the table selector in the DetailsView.
963 * src/main/java/org/glom/web/client/OnlineGlomService.java:
964 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
966 Remove getDefaultDetailsLayout(). The default layout is now returned
967 by the getDetailsLayout() method when the table name is an empty
969 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
970 event handler for table change event. Change to using
971 getDetailsLayout() for the default details layout.
972 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
974 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
975 when navigating to the details place.
977 2011-06-27 Ben Konrath <ben@bagu.org>
979 Use filename based unique document ID in URL and for RPC.
981 The document ID is the glom document name with spaces (' ') replaced
982 with pluses ('+') and without the .glom extension.
984 This change is mostly a string substitution of 'documentTitle' for
985 'documentID'. The only code change is the addition of a Documents DTO to get the
986 filename to document title mappings as indicated below.
988 * src/main/java/org/glom/web/client/OnlineGlomService.java:
989 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
990 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
991 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
992 Use Documents DTO to create the document links in the document
994 * src/main/java/org/glom/web/client/activity/ListActivity.java:
995 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
996 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
997 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
998 * src/main/java/org/glom/web/client/place/ListPlace.java:
999 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1000 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1001 * src/main/java/org/glom/web/client/ui/ListView.java:
1002 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1003 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1004 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1005 * src/main/java/org/glom/web/server/Log.java:
1006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1007 getDocumentTitles() to getDocuments() and return the Documents DTO.
1008 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1009 transferring the filename to document title mappings.
1011 2011-06-25 Ben Konrath <ben@bagu.org>
1013 Make the authentication popup work again.
1015 This bug was introduced when I extracted ConfiguredDocument to its own class.
1017 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1018 correct success / fail status in setUsernameAndPassword().
1020 2011-06-25 Ben Konrath <ben@bagu.org>
1022 Use filename as unique key for configuring database usernames and passwords.
1024 This replaces the use of the Glom document title which could change
1025 depending on the locale. Thanks to Murray Cumming for pointing out this
1028 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1029 * src/main/resources/onlineglom.properties:
1031 2011-06-24 Ben Konrath <ben@bagu.org>
1033 Pass primary key value to DetailsView.
1035 This enables the DetailsView to load the correct data.
1037 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1038 primary key value field and set in constructor. Pass primary key
1039 value to getDetailsData().
1040 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1041 variables for document title and primary key value.
1042 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1043 key value to the DetailsPlace.
1045 2011-06-24 Ben Konrath <ben@bagu.org>
1047 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1049 This allows the primary key to be retrieved by the Details button. This
1050 functionality has not been implemented yet but it's in the works.
1052 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1053 the LayoutGroup result to ListView.setCellTable instead of all of its
1054 fields individually.
1055 * src/main/java/org/glom/web/client/ui/ListView.java:
1056 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1057 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1058 get the primary key for the table.
1059 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1060 index of the primary key in the LayoutGroup accounting for hidden
1061 primary keys. Rename getJavaNumberFormat() to
1062 convertToJavaNumberFormat() for consistency. Cleanup / add some
1064 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1065 field for primary key index and a field to indicate whether the
1066 primary key is hidden or not.
1068 2011-06-23 Ben Konrath <ben@bagu.org>
1070 Rename getTableData methods to getListData.
1072 This is a rename refactor for consistency with other methods.
1074 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1075 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1076 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1077 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1079 2011-06-23 Ben Konrath <ben@bagu.org>
1081 Extract the ConfiguredDocument innerclass into its own class.
1083 This makes the servlet code more object oriented.
1085 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1086 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1087 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1088 new ConfiguredDocument class.
1090 2011-06-21 Ben Konrath <ben@bagu.org>
1092 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1094 This makes things more inline with how libglom works and reduces code
1095 duplication. This refactor lays the groundwork for adding the primary key to
1096 the LayoutGroup object.
1098 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1099 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1101 Change method names to getListLayout and getDefaultListLayout for
1102 consistency. Use LayoutGroup as the DTO for the list layout instead of
1103 ColumnInfo and LayoutListTable.
1104 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1105 new method names along with the LayoutGroup object for transferring the
1107 * src/main/java/org/glom/web/client/ui/ListView.java:
1108 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1109 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1110 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1112 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1113 Replaced with LayoutGroup.
1114 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1115 expectedResultSize and defaultTableName fields which are needed for
1117 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1118 type field which is needed for the list layout but will also be
1119 useful for the details layout as things progress.
1120 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1121 Make class abstract. Remove the unnecessary
1122 getFormattingHorizontalAlignment method. Add setFormatting method.
1124 2011-06-16 Ben Konrath <ben@bagu.org>
1126 Add scripts for building and installing war.
1128 These will help when updating OnlineGlom but they're also good
1129 supplemental documentation of the build and deployment proceeding.
1131 * utils/build-onlineglom-war.sh: New file.
1132 * utils/install-onlineglom-war.sh: New file.
1134 2011-06-16 Ben Konrath <ben@bagu.org>
1136 Create wrapper class to create consistent log messages.
1138 I wrapped methods in the Log class of gwt-log to add the method names
1139 from the servlet and create consistent formatting of the document title
1140 and table names in the log messages.
1142 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1143 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1144 log methods to use methods from wrapped Log class.
1146 2011-06-16 Ben Konrath <ben@bagu.org>
1148 Remove superfluous conditional return.
1150 Thanks to Murray Cumming for pointing this out!
1152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1154 2011-06-15 Ben Konrath <ben@bagu.org>
1156 Return an ArrayList of LayoutGroups for the Details layout.
1158 This corrects a problem with the details layout as it can have more
1159 than one top level LayoutGroup.
1161 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1162 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1163 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1164 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1165 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1166 with ArrayList of LayoutGroups for the details view layout.
1167 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1168 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1169 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1170 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1171 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1172 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1174 2011-06-14 Ben Konrath <ben@bagu.org>
1176 Use cast_dynamic method to determine the libglom LayoutItem type.
1178 This is better than finding the LayoutItem type by using the string
1179 returned from the get_part_type_name() method.
1181 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1183 2011-06-14 Ben Konrath <ben@bagu.org>
1185 Add method names to log entries in the servlet.
1187 This helps when tracking down deployment problems.
1189 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1191 2011-06-14 Ben Konrath <ben@bagu.org>
1193 Add data to the DetailsView using a hard-coded primary key value.
1195 The layout and functionality of the DetailsView is not complete. This
1196 is just a checkpoint so the patch doesn't get too big.
1198 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1199 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1200 Add getDetailsData() servlet method.
1201 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1202 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1203 LayoutFields are added to the DetailsView.
1204 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1205 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1206 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1207 take the string for the title instead of the object.
1208 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1209 Add implementation getDetailsData() along with some private helper
1211 * src/main/webapp/style.css: Add padding to details-data class. Add a
1212 details-label class with the same padding as the details-data class.
1214 2011-06-03 Ben Konrath <ben@bagu.org>
1216 Use presenter.goTo() to change to the DetailsPlace.
1218 This will make things easier when we need to open the DetailsView with
1219 data specific to the row that was clicked.
1221 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1223 2011-06-02 Ben Konrath <ben@bagu.org>
1225 Add CSS file from mockups.
1227 I'm adding this now because it's going to be useful to have when
1228 developing the DetailsView. The TableSelectionView and ListView aren't
1231 * src/main/webapp/OnlineGlom.html:
1232 * src/main/webapp/style.css:
1234 2011-06-02 Ben Konrath <ben@bagu.org>
1236 Use String.isEmpty() to check for empty string.
1238 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1240 2011-06-02 Ben Konrath <ben@bagu.org>
1242 Display main layout group titles in the DetailsView.
1244 This is the start of the DetailsActivity/DetailsView implementation.
1246 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1247 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1248 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1249 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1250 Get the layout information for the details view from the server and set
1251 the main layout group titles.
1252 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1253 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1254 Add addLayoutGroup() and addLayoutField() methods. This are just
1255 temporary methods for creating the the details view that will change
1257 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1258 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1260 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1261 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1262 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1263 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1264 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1265 Data Transfer Objects that mimic the libglom object structure. These are
1266 used for transferring the details layout but could also be used for
1267 transferring the list layout.
1269 2011-05-27 Ben Konrath <ben@bagu.org>
1271 Reset the AuthenticationPopup when clearing the ListView.
1273 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1275 2011-05-27 Ben Konrath <ben@bagu.org>
1277 Fix problem with onlineglom.properties file loading.
1279 The old way worked in Eclipse but not on the server. Loading the
1280 onlineglom.properties file now works in Eclipse and on the server.
1282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1284 2011-05-24 Ben Konrath <ben@bagu.org>
1286 Update gwt-log from 3.1.0 to 3.1.2.
1288 Gwt-log 3.1.0 has been marked as depreciated.
1292 2011-05-24 Ben Konrath <ben@bagu.org>
1294 Add comment to ListActivity.goTo() method.
1296 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1298 2011-05-24 Ben Konrath <ben@bagu.org>
1300 Remove FIXME in convertGdkColorToHtmlColour()
1302 The Gdk::Color value returned by libglom is 16-bits per channel on both
1303 64 and 32-bit platforms.
1305 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1307 2011-05-19 Ben Konrath <ben@bagu.org>
1309 Improve performance of initial ListView load.
1311 I removed a round trip to the server for getting the default table name
1312 and then requesting information about that table. This also removes a potential
1313 problem with the table change handler not being setup in time to receive the
1314 table change event from the ListActivity.
1316 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1317 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1318 getDefaultLayoutListTable() method. Improve comments.
1319 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1320 getDefaultLayoutListTable() method instead of firing a table change
1321 event to get the table to load.
1322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1323 implementation of getDefaultLayoutListTable() method.
1324 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1327 2011-05-19 Ben Konrath <ben@bagu.org>
1329 Override toDebugString() in TableChangeEvent.
1331 This is useful to have for debugging.
1333 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1335 2011-05-19 Ben Konrath <ben@bagu.org>
1337 Add a "Back to List" link when at the DetailsPlace.
1339 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1340 Populate the CellTable based on the selected table of the ListBox if
1341 it's set otherwise use the default table. This allows the "Back to
1343 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1344 Remove Place from constructors. Add a setPlace() method. Add
1345 goToPlace() method. Set class as presenter for TableSelectionView.
1346 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1347 Use the same TableSelectionActivity when switching between the List and
1349 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1350 Subclass the new HasSelectableTablePlace. This removes some duplicate
1352 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1353 New class to represent Places that display the TableSelectionView.
1354 * src/main/java/org/glom/web/client/place/ListPlace.java:
1355 Subclass the new HasSelectableTablePlace. This removes some duplicate
1357 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1358 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1359 Add Presenter interface. Add setBackLinkVisible() method. Add
1360 setBackLink() method.
1362 2011-05-18 Ben Konrath <ben@bagu.org>
1364 Enable the "Details" buttons.
1366 Right now only an empty details view is displayed.
1368 * src/main/java/org/glom/web/client/ClientFactory.java:
1369 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1370 Add DetailsView to ClientFactory.
1371 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1372 A basic activity for the details view.
1373 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1374 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1376 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1377 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1379 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1380 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1381 unnecessary super() in constructor.
1382 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1383 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1384 really shouldn't create a new TableSelectionActivity for both the ListPlace
1385 and the DetailsPlace so this should be considered a temporary solution.
1386 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1387 New file. Represents a URL for the details view.
1388 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1389 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1390 A basic details view interface and implementation.
1391 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1392 Enable the "Details" buttons.
1394 2011-05-12 Ben Konrath <ben@bagu.org>
1396 Use a LayoutPanel with multiple display areas for main layout.
1398 This is mostly a refactor in that there are no changes from the user
1399 point of view. These changes are required so that we can swap out the list view
1400 with the details view when the user clicks the "Details" button.
1402 * src/main/java/org/glom/web/client/ClientFactory.java:
1403 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1404 OnlineGlomView. Add TableSelectionView, ListView and
1405 AuthenticationPopup.
1406 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1407 for main layout. Add display regions for main activities. Add
1408 activity manager for for main activities.
1409 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1410 file from parts of the deleted OnlineGlomActivity.
1411 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1412 New file from parts of the deleted OnlineGlomActivity.
1413 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1414 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1415 New files for app wide table change event.
1416 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1417 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1418 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1419 Activity mappers for the main activities replace the deleted app-wide
1421 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1422 Fix a spelling error in he comment.
1423 * src/main/java/org/glom/web/client/ui/ListView.java:
1424 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1425 Renamed from LayoutListView and modified for MVP. This still not a
1426 proper dumb view as prescribed by the MVP pattern but it works for now.
1427 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1428 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1429 New widget stripped out of the deleted OnlineGlomView.
1430 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1431 Remove hack that is fixed by this patch.
1433 2011-05-06 Ben Konrath <ben@bagu.org>
1435 Rename OnlineGlomPlace to ListPlace.
1437 The only change besides the rename is that url will now display #list
1438 instead of #Document.
1440 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1441 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1442 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1443 * src/main/java/org/glom/web/client/place/ListPlace.java:
1444 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1446 2011-05-06 Ben Konrath <ben@bagu.org>
1448 Use Presenter for app navigation.
1450 This is the proper way to deal with Place (URL) changes with the MVP
1453 * src/main/java/org/glom/web/client/ClientFactory.java:
1454 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1455 PlaceHistoryMapper and PlaceHistoryHandler.
1456 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1457 PlaceHistoryMapper and PlaceHistoryHandler.
1458 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1459 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1460 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1461 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1462 Add Presenter interface and setPresenter methods. Rename addHyperLink
1463 to addDocumentLink taking only the document title as a parameter.
1465 2011-04-14 Ben Konrath <ben@bagu.org>
1467 Prompt for db username/password if they haven't been set.
1469 This is implemented with a popup widget that is contained within the
1470 OnlineGlomView and managed by the OnlineGlomActivity.
1472 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1473 methods for checking and setting the database username and password.
1474 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1475 new methods for checking and setting the database username and
1477 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1478 Display authentication popup if the JDBC connection to the database
1479 has not been authenticated.
1480 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1482 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1483 for dealing with the authentication popup.
1484 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1485 Implement the methods for dealing with the authentication popup.
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1487 try to executed queries if the database connection hasn't been
1488 authenticated. Implement methods for checking and setting the
1489 database username and password.
1491 2011-04-12 Ben Konrath <ben@bagu.org>
1493 Make log messages a little clearer.
1495 Add a dash betweeen the document title and the table name.
1497 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1499 2011-04-12 Ben Konrath <ben@bagu.org>
1501 Protect against NPEs when cleaning up database resources.
1503 While this isn't strictly necessary because the exception is caught,
1504 not protecting against the NPEs makes it harder to find the real error
1507 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1509 2011-04-12 Ben Konrath <ben@bagu.org>
1511 Move configuration of the servlet to the constructor.
1513 The servlet will be initialized even if the database authentication
1514 information is not set or correct. I still need to add the UI for prompting
1515 the user for the authentication information when it's required.
1517 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1518 javadocs for getDocumentTitles() method.
1519 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1520 Set error message when RPC fails.
1521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1522 glom files directory from the configuration file. Try to set the
1523 database authentication information for the specific document if it's
1524 set and works otherwise try to use the global authentication
1525 information set for the directory.
1526 * src/main/resources/onlineglom.properties: Moved from
1527 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1528 Added detailed comments for the new keys.
1530 2011-04-11 Ben Konrath <ben@bagu.org>
1532 Remove unnecessary @Override in DocumentSelectionViewImpl.
1534 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1536 2011-04-11 Ben Konrath <ben@bagu.org>
1538 Remove center alignment in DocumentSelectionView.
1540 The title element is still centred but the document titles and bottom
1541 sentence are both left-aligned.
1543 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1545 2011-04-11 Ben Konrath <ben@bagu.org>
1547 Change 'Demo' naming convention to 'Document'.
1549 This is just a rename refactor with no functional changes to the code.
1551 * src/main/java/org/glom/web/client/ClientFactory.java:
1552 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1553 * src/main/java/org/glom/web/client/OnlineGlom.java:
1554 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1555 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1556 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1557 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1558 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1559 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1560 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1561 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1562 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1565 2011-04-08 Ben Konrath <ben@bagu.org>
1567 Remove FIXME from safeLongToInt() method.
1569 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1574 2011-04-08 Ben Konrath <ben@bagu.org>
1576 Display an error if no glom documents are found in the specified directory.
1578 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1579 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1580 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1583 2011-04-08 Ben Konrath <ben@bagu.org>
1585 Add copyright header to one more file ... oops.
1587 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1589 2011-04-08 Ben Konrath <ben@bagu.org>
1591 Add copyright header to files without it.
1593 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1594 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1595 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1596 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1597 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1598 * src/main/java/org/glom/web/shared/GlomField.java:
1600 2011-04-08 Ben Konrath <ben@bagu.org>
1602 Add support for accessing multiple glom documents in the servlet.
1604 This completes the demo selection functionality.
1606 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1607 document title to methods.
1608 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1609 document title to methods.
1610 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1611 Set browser window title when the activity starts. Correct name of
1612 document title variable.
1613 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1614 Set browser window title when the activity starts. Set the table
1615 selector change handler after table selector has been set. Clear the
1616 OnlineGlomView when the activity has been stopped.
1617 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1618 document title as the place token. Use "#Document:" instead of
1619 "#OnlineGlomPlace:" in the URL.
1620 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1621 Change heading to "Online Glom"
1622 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1623 document title in RPC methods.
1624 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1625 setDocumentTitle() method. Add clear() method.
1626 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1627 setDocumentTitle() method. Implement clear() method which removes the
1628 change handler on the ListBox, clears the ListBox and clears the
1630 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 Implement methods with document title. Keep track for the configured
1632 glom documents and their corresponding JDBC configurations in a hash
1633 table. This information is retrieved using the document title as the
1634 key in the hash table.
1635 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1636 document title field as it's no longer needed.
1638 2011-04-08 Ben Konrath <ben@bagu.org>
1640 Update the Eclipse JDT configuration.
1642 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1643 methods. Automatically add the copyright header to new files.
1645 2011-04-05 Ben Konrath <ben@bagu.org>
1647 Add new page for demo selection.
1649 This patch adds all the components required to view and start an
1650 OnlineGlom demo by clicking on the desired hyperlink. The user is
1651 able to return to the demo selection page with the browser's back
1652 button. I still need to modify the servlet to work with multiple
1653 documents so all demo links will load the file defined in the
1654 OnlineGlom.properties.
1656 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1657 This is only useful during development so we don't need to save it.
1658 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1659 get a reference to the DemoSelectionView.
1660 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1661 method to get a reference to the DemoSelectionView.
1662 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1663 default view to DemoSelectionView.
1664 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1665 to get glom document titles for glom files in a hard-coded directory.
1666 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1667 method to get glom document titles for glom files in a hard-coded
1669 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1670 Presenter for DemoSelectionView.
1671 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1672 for DemoSelectionView.
1673 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1674 Update for DemoSelectionView.
1675 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1676 Basic 'Place' implementation for the DemoSelectionView.
1677 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1678 The interface for the DemoSelectionView.
1679 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1680 The implementation of the DemoSelectionView.
1681 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1682 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1683 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1684 implementation of method to get glom document titles for glom files
1685 in a hard-coded directory.
1686 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1687 on longer being used.
1688 * src/main/webapp/glom.png: Glom logo.
1690 2011-04-05 Ben Konrath <ben@bagu.org>
1692 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1694 This is the forth and final commit of a refactor that will allow
1695 OnlineGlom to be used with multiple documents.
1697 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1698 Move RPC code from OnlineGlomViewImpl to this class.
1699 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1701 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1702 RPC code to the presenter class (the P in MVP).
1704 2011-04-04 Ben Konrath <ben@bagu.org>
1706 Start moving the existing OnlineGlom code to MVP.
1708 This work is based on the GWT MVP framework that is documented here:
1710 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1712 This is the third commit of a refactor that will allow OnlineGlom to
1713 be used with multiple documents.
1715 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1716 Interface for client factory which is used to get instances of various
1717 classes throughout the app.
1718 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1719 Implementation of client factory.
1720 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1721 initialize the MVP framework.
1722 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1723 New file. Activity manager for the main container widget. This is the
1725 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1726 Maps place (URL) to its corresponding activity.
1727 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1728 New file. This is just a place holder for a generated file.
1729 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1730 New file. Represents the URL for the main Online Glom app.
1731 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1732 for changes in LayoutListViewImpl.
1733 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1734 interface for View. Move code to OnlineGlomViewImpl class.
1735 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1736 file. Implementation of OnlineGlomView.
1737 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1738 Place resources. Use ClientFactoryImpl by default.
1740 2011-04-04 Ben Konrath <ben@bagu.org>
1742 Move View classes to their own package.
1744 This is the second commit of a refactor that will allow OnlineGlom to
1745 be used with multiple documents.
1747 * src/main/java/org/glom/web/client/OnlineGlom.java:
1748 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1749 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1751 2011-04-02 Ben Konrath <ben@bagu.org>
1753 Move UI code from the main module to its own class.
1755 This is the first commit of a refactor that will allow OnlineGlom to be
1756 used with multiple documents.
1758 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1759 references to OnlineGlom to OnlineGlomView.
1760 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1761 OnlineGlomView and instantiate it here.
1762 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1763 represents the main OnlineGlomView with one document.
1765 2011-04-01 Ben Konrath <ben@bagu.org>
1767 Fix formatting of gwt.xml and add DTD.
1769 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1771 2011-03-30 Ben Konrath <ben@bagu.org>
1773 Propperly convert gdkColor string to html colour string.
1775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1777 2011-03-28 Ben Konrath <ben@bagu.org>
1779 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1781 This implementation matches
1782 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1783 readable and is not tied to Swig.
1785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1787 2011-03-28 Ben Konrath <ben@bagu.org>
1789 Use read-only checkboxes for boolean field types.
1791 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1792 in the CellTable based on the field type. It currently only
1793 distinguishes between boolean and text columns but I'll need to add
1794 support for more types.
1795 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1796 column type in the ColumnInfo object. Add method to convert between the
1797 glom field type enum in ColumnInfo and the glom field type in libglom.
1798 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1800 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1801 getting and setting booleans.
1803 2011-03-25 Ben Konrath <ben@bagu.org>
1805 Don't get the Date twice from the ResultSet.
1807 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1809 2011-03-25 Ben Konrath <ben@bagu.org>
1811 Cleanup code in the servlet.
1813 * TODO: Remove item about row count. Add item about testing row count
1814 query with large number of rows.
1815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1816 spelling mistakes, change method parameter to be consistent with
1819 2011-03-25 Ben Konrath <ben@bagu.org>
1821 Add server side logging with the gwt-log library.
1823 * .gitignore: Ignore the log file we're now producing.
1824 * TODO: Add a couple TODO item for logging.
1825 * pom.xml: Add gwt-log and log4j as a dependency.
1826 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1827 logging of errors, warnings and some important info.
1828 * src/main/resources/log4j.properties: New file to configure log4j.
1830 2011-03-24 Ben Konrath <ben@bagu.org>
1832 Add a disable button for the Details view.
1834 * src/main/java/org/glom/web/client/LayoutListView.java:
1836 2011-03-22 Ben Konrath <ben@bagu.org>
1838 Use a count query to get the number of rows for the list view pager.
1840 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1842 2011-03-22 Ben Konrath <ben@bagu.org>
1844 Add more TODO information about CellTable pager positioning.
1848 2011-03-19 Ben Konrath <ben@bagu.org>
1850 Add TODO item about CellTable pager positioning.
1854 2011-03-18 Ben Konrath <ben@bagu.org>
1856 Remove unneeded GlomFieldColumn class.
1858 This is just a small code cleanup.
1860 * src/main/java/org/glom/web/client/LayoutListView.java:
1862 2011-03-18 Ben Konrath <ben@bagu.org>
1864 Use cursor mode in the query that gets data for the list view.
1866 I still need to fix the potential memory problem when getting the row
1867 count for the list view.
1869 * TODO: Add note about testing memory usage with large data sets. Add
1870 item about fixing row counting with large data sets.
1871 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1872 PostgreSQL JDBC driver into cursor mode when getting data for the
1875 2011-03-15 Ben Konrath <ben@bagu.org>
1877 Remove the GWT Container from the Eclipse build classpath.
1879 The GWT dependencies are set by Maven so this isn't needed.
1883 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1885 Added some earlier mockups to git, but not to the tarball dist.
1887 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1888 Openismus. These hopefully show how we might structure the HTML so that
1889 it can be styled easily with CSS. However, we probably need to adapt them
1890 for the CSS structure that GWT dictates for common widgets.
1892 2011-03-14 Ben Konrath <ben@bagu.org>
1894 Locate OnlineGlom.properties using the ServletContext.
1896 This is required to be able to locate the file in the deployed servlet.
1898 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1899 Configure the database and glom document in in a helper method so
1900 that the ServletContext can be used to locate OnlineGlom.properties.
1901 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1902 src/main/webapp. This is the proper location for .properites files.
1904 2011-03-12 Ben Konrath <ben@bagu.org>
1906 Add note to README about why we're compiling down to obfuscated JavaScript.
1910 2011-03-11 Ben Konrath <ben@bagu.org>
1912 Use properties file to configure servlet.
1914 This allows people to change the glom file path, db username and db
1915 password without recompiling the code.
1917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1918 * src/main/webapp/OnlineGlom.properties:
1920 2011-03-11 Ben Konrath <ben@bagu.org>
1922 Use table fields in layout list view if the layout list is not defined.
1924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1925 Manually create a LayoutFieldVector for the query builder using the
1926 table fields when a layout list is not defined in the glom file.
1928 2011-03-11 Ben Konrath <ben@bagu.org>
1930 Only show FIXME string for images when there's an image.
1932 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1933 in this change are some small code cleanups.
1935 2011-03-11 Ben Konrath <ben@bagu.org>
1937 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1941 2011-03-11 Ben Konrath <ben@bagu.org>
1943 Correctly set the index of the default table.
1945 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1946 Correctly set the index of the default table. Add commented out example
1949 2011-03-10 Ben Konrath <ben@bagu.org>
1951 Add comment to pom.xml about the previous change.
1953 * pom.xml: Add comment about the deployment issue so that it's obvious
1954 why java-libglom is set to the provided scope.
1956 2011-03-10 Ben Konrath <ben@bagu.org>
1958 Change java-libglom dependency from compile to provided in pom.xml.
1960 Since java-libglom uses jni it can only be loaded once and therefore
1961 must be placed in $CATALINA_HOME/lib and not included in each war.
1962 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1963 More information about this issue can be found in the Tomcat 6 release
1964 notes in the "JNI Based Applications" section:
1966 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1968 * README: Remove note about this issue. Deployment info should really
1969 be on the wiki anyway so I'll add it right now.
1970 * pom.xml: Change java-libglom dependency from compile to provided so
1971 that it's copied in to the packaged war.
1973 2011-03-09 Ben Konrath <ben@bagu.org>
1975 Change to using a neutral locale for currency, date and time formatting.
1977 This solves the problem of currency values being represented without a
1978 space between the currency code and the number (e.g. "EUR5.89" is now
1979 represented as "EUR 5.89"). More work is required when we implement
1980 a locale preference setting.
1982 * TODO: Add note about currency formatting issues with different
1984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1985 to using the neutral ROOT locale.
1987 2011-03-09 Ben Konrath <ben@bagu.org>
1989 Add support for currency codes that are not ISO 4217 codes.
1991 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1992 the currency code defined in the glom file when it's not 3 characters
1993 long or when Java doesn't recognize the string as an ISO 4217 code.
1995 2011-03-08 Ben Konrath <ben@bagu.org>
1997 Remove test classes, launch configurations and configuration.
1999 The test stuff was getting in the way when creating the war. To make
2000 the war file you can now do 'mvn clean package'. The packaged war file
2001 will be in the target directory.
2003 * .classpath: Remove unused classpathentry for tests and i18n.
2004 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2005 property. Don't run test or i18n goals when packaging the war.
2006 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2011 * OnlineGlomTest-dev.launch:
2012 * OnlineGlomTest-prod.launch:
2013 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2014 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2016 2011-03-07 Ben Konrath <ben@bagu.org>
2018 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2020 These fixes allow me to use 'mvn deploy' to create the war file.
2022 * .classpath: This generated config has been updated by Eclipse. This
2023 change was probably triggered by me updating from Eclipse 3.6.1 to
2025 * .gitignore: Add entry to ignore the directory
2026 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2027 * .project: The generated config has been updated by Eclipse. This
2028 change was probably triggered by me updating from Eclipse 3.6.1 to
2030 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2031 so that Eclipse doesn't complain
2032 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2033 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2034 'tests' directory to 'client' directory. This is the new
2035 gwt-maven-plugin convension.
2036 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2037 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2039 2011-03-07 Ben Konrath <ben@bagu.org>
2041 Add support for horizontal alignment in the LayoutList columns.
2043 * TODO: Remove item about horizontal alignment. Add item about
2044 improvements to ColumnInfo.
2045 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2046 alignment on the columns. Use ColumnInfo RPC object get the column
2047 title and horizontal alignment.
2048 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2049 LayoutListView creation with ColumnInfo RPC object.
2050 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2051 a ColumnInfo object for every LayoutList columnn. Convert the
2052 FieldFormatting.HorizontalAlignment to the correct
2053 ColumnnInfo.HorizontatlAlignment with the new
2054 getColumnInfoHorizontalAlignment helper method.
2055 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2056 to encapsulate column information like alignment and title. This
2057 could be used to set the colour instead of on a per cell field basis.
2058 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2059 column title storage and retrieval with ColumnInfo.
2061 2011-03-04 Ben Konrath <ben@bagu.org>
2063 Add support for column sorting.
2065 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2066 AsynDataProvider to be an anonymous inner class. Use new
2067 getSortedTableData RPC method when column sort is requested. Set all
2068 columns sortable and add an AsyncHandler to activate sorting in the
2070 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2071 method getSortedTableData(). Cleanup other method signatures.
2072 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2073 new method getSortedTableData(). Cleanup other method signatures.
2074 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2075 Implement getSortedTableData() and getTableData() methods by using a
2076 private helper method with the appropriate parameters filled in. Use
2077 user supplied sort clause when supplied, otherwise fall back to
2078 sorting by the primary key. Move destroy() method to be underneath
2079 constructor for readability. Cleanup comments.
2081 2011-03-03 Ben Konrath <ben@bagu.org>
2083 Add support for colour text and colour backgrounds to the layout list cells.
2085 Only the cell backgrounds are coloured which leaves a gap between the
2086 cells that isn't coloured. I need to figure out a way to set
2087 'style=background-colour:' on the whole column rather than just the
2090 * TODO: Add a note about colouring the background of the whole column.
2091 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2092 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2093 render the coloured text and backgrounds. Use GlomField[] for the row type.
2094 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2096 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2097 GlomField[] for the row type.
2098 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2099 GlomField[] for the row type. Set the text, text colour and background
2100 colour in the GlomField objects as specified in the glom document. Add
2101 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2102 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2103 the glom field text, foreground colour and background colour.
2105 2011-03-02 Ben Konrath <ben@bagu.org>
2107 Don't display hidden tables in the combo box.
2109 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2112 code to ignore hidden tables using ArrayLists for the table names and
2114 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2115 tableNames to use ArrayLists instead of String[]. Update getter and setter
2118 2011-03-01 Ben Konrath <ben@bagu.org>
2120 Add support for Date and Time number types.
2122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2123 Implement formatting for Date and Time values. Change the default glom
2124 file to small business example.
2126 2011-03-01 Ben Konrath <ben@bagu.org>
2128 Add support for formatting glom types as specified in the glom file.
2130 Formatting isn't finished yet - I still need to add support for Date
2133 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2134 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2135 checks for null values in JDBC cleanup code and catch all exceptions
2136 instead of just SQLExceptions.
2137 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2140 2011-03-01 Ben Konrath <ben@bagu.org>
2142 Use GWT 2.2.0 instead of 2.1.1.
2144 * pom.xml: Change GWT version numbers.
2146 2011-03-01 Ben Konrath <ben@bagu.org>
2148 A few small code cleanups.
2150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2152 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2153 unnecessary object creation in constructor.
2154 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2155 unnecessary object creation in constructor.
2157 2011-02-28 Ben Konrath <ben@bagu.org>
2159 Add file for TODO list.
2163 2011-02-18 Ben Konrath <ben@bagu.org>
2165 Enable the CellTable Pager when more than 20 rows need to be viewed.
2167 The Pager will automatically become active when the results are larger
2168 than the CellTable size which is currently set to 20 lines.
2170 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2171 name on debug statment in RPC call in LayoutListDataProvider, add
2172 numRows parameter to LayoutListView constructor, propperly set rowCount
2174 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2175 name on debug statment in RPC call, use LayoutListTable object in RPC
2176 calls, pass rowCount to LayoutListView.
2177 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2178 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2180 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2181 interface for changes in OnlineGlomService.
2182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2183 getLayoutListHeaders() to getLayoutListTable() and return
2184 LayoutListTable. Using this object allows me to pass other information
2185 about the LayoutList like the expected number of rows in the result set.
2186 The Connection object from the connection pool is now propperly closed.
2187 Only the requested number of lines are returned to the client in
2189 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2190 GlomTable and add columnTitles and numRows.
2192 2011-02-18 Ben Konrath <ben@bagu.org>
2194 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2196 This is a small performance boost. I'll use GlomTable to get the required
2197 layoutlist information.
2199 * src/main/java/org/glom/web/client/OnlineGlom.java:
2200 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2201 * src/main/java/org/glom/web/shared/GlomDocument.java:
2203 2011-02-18 Ben Konrath <ben@bagu.org>
2205 Add option to turn off formatting in JDT formatter preferences.
2207 * .settings/org.eclipse.jdt.core.prefs:
2209 2011-02-18 Ben Konrath <ben@bagu.org>
2211 Rename LayoutList to LayoutListView.
2213 I'm working towards setting things up to easily use MVP when the time
2216 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2218 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2221 2011-02-17 Ben Konrath <ben@bagu.org>
2223 Move LayoutListDataProvider class into LayoutList.java.
2225 * src/main/java/org/glom/web/client/LayoutList.java:
2227 2011-02-17 Ben Konrath <ben@bagu.org>
2229 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2231 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2233 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2234 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2235 from LibGlomServer.java.
2236 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2237 Rename from LibGlomServiceAsync.java.
2238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2239 Rename from LibGlomServiceImpl.java.
2240 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2242 2011-02-17 Ben Konrath <ben@bagu.org>
2244 Update JDT settings.
2246 * .settings/org.eclipse.jdt.core.prefs:
2248 2011-02-17 Ben Konrath <ben@bagu.org>
2250 Move GWT-RPC objects to shared package (where they should be).
2252 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2253 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2254 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2255 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2256 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2257 org.glom.web.shared package.
2258 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2259 org.glom.web.shared package.
2260 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2261 directory in compilation to javascript.
2263 2011-02-16 Ben Konrath <ben@bagu.org>
2265 Add sort clause to the sql query that grabs table information.
2267 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2268 if one of the columns is a primary key.
2270 2011-02-16 Ben Konrath <ben@bagu.org>
2272 Disable generateAsync feature of gwt-maven.
2274 The generated interface does not correctly match the methods in LibGlomService
2275 and the generated singleton Util inner-class doesn't respect the servlet
2278 * pom.xml: Turn off generateAsync feature.
2279 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2280 with singleton Util inner-class.
2282 2011-02-14 Ben Konrath <ben@bagu.org>
2284 Add LGPL v3 licence notices.
2286 Followed directions listed here:
2287 http://www.gnu.org/licenses/gpl-howto.html
2289 * COPYING: This file is a copy of the GPL v3.
2290 * COPYING.LESSER: This file is a copy of the LGPL v3.
2291 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2293 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2295 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2297 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2299 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2301 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2303 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2306 2011-02-14 Ben Konrath <ben@bagu.org>
2308 Use ArrayList instead of Array in GWT-RPC calls.
2310 Apparently this gives a slight performance boost to the compiled
2313 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2315 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2318 2011-02-14 Ben Konrath <ben@bagu.org>
2320 Access data from a postgres db rather than the example glom file.
2322 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2323 compile down to obfuscated javascript.
2324 * pom.xml: Add c3p0 and postgres JDBC libraries.
2325 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2326 using a postgres db accessed through the c3p0 connection pooling library.
2328 2011-02-14 Ben Konrath <ben@bagu.org>
2330 Update Java formatter settings.
2332 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2334 2011-02-02 Ben Konrath <ben@bagu.org>
2336 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2338 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2340 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2341 the compiled webapp directory that Eclipse uses as we're using Maven now.
2342 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2343 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2345 * pom.xml: Format file, change target Java version to 1.6.
2347 2011-02-02 Ben Konrath <ben@bagu.org>
2349 Add information about a deployment related issue.
2351 * README: Add Notes section with the problem outlined.
2353 2011-02-02 Ben Konrath <ben@bagu.org>
2355 Call Glom.libglom_deinit() when the servlet is shutdown.
2357 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2358 Glom.libglom_deinit() to destroy() method.
2360 2011-01-28 Ben Konrath <ben@bagu.org>
2362 Use generated Util class to get the RPC Async interface.
2364 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2366 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2367 getInstance() method to get a reference to the RPC Async interface.
2368 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2369 getInstance() method to get a reference to the RPC Async interface, remove
2370 the now unused getLibGlomServiceProxy() method.
2372 2011-01-27 Ben Konrath <ben@bagu.org>
2374 Cleanup ChangeLog entry from previous commit.
2376 * ChangeLog: Group logical changes together and add comments.
2378 2011-01-25 Ben Konrath <ben@bagu.org>
2380 Convert to gwt-maven project.
2382 * .gitignore: Update for new project structure.
2383 * README: New file with a link to the online documentation.
2384 * pom.xml: The generated maven configuration file with some tweaks.
2386 Add / update Eclipse settings. These files are a merge of the files that
2387 were generated with the gwt-maven plugin and the files we were previously
2391 * .settings/.jsdtscope:
2392 * .settings/com.google.gdt.eclipse.core.prefs:
2393 * .settings/com.google.gwt.eclipse.core.prefs:
2394 * .settings/org.eclipse.jdt.core.prefs:
2395 * .settings/org.eclipse.wst.common.component:
2396 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2397 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2398 * .settings/org.maven.ide.eclipse.prefs:
2399 * OnlineGlomTest-dev.launch:
2400 * OnlineGlomTest-prod.launch:
2402 Java source files moved from the 'src' directory to the directory structure
2404 * src/main/java/org/glom/web/client/GlomDocument.java:
2405 * src/main/java/org/glom/web/client/GlomTable.java:
2406 * src/main/java/org/glom/web/client/LayoutList.java:
2407 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2408 * src/main/java/org/glom/web/client/LibGlomService.java:
2409 * src/main/java/org/glom/web/client/OnlineGlom.java:
2410 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2412 Non-functional property file used for translations. I included this as
2413 reminder that it's something I need to sort out.
2414 * src/main/resources/org/glom/web/client/Messages.properties:
2416 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2417 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2419 The servlet configuration files moved from the 'war' directory.
2420 * src/main/webapp/OnlineGlom.css:
2421 * src/main/webapp/OnlineGlom.html:
2422 * src/main/webapp/WEB-INF/web.xml:
2424 Generated test files with most of the code commented out. I included these
2425 so that it's easy to add tests when we're ready for them.
2426 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2427 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2429 2011-01-25 Ben Konrath <ben@bagu.org>
2431 Remove unused println.
2433 * src/org/glom/web/server/LibGlomServiceImpl.java:
2435 2011-01-25 Ben Konrath <ben@bagu.org>
2437 Add project specific JDT settings.
2439 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2440 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2442 2011-01-25 Ben Konrath <ben@bagu.org>
2444 Populate celltable with example data.
2446 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2447 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2448 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2449 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2450 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2451 asynchronously gets the example data.
2452 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2453 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2454 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2455 curently selected table to be retrieved by other widgets.
2456 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2457 implement getTableData() in a hacky way. This method needs to be updated
2458 to grab information from the database when database creating is
2461 2011-01-20 Ben Konrath <ben@bagu.org>
2463 Set table headers when table dropBox changes.
2465 * src/org/glom/web/client/GlomDocument.java: Correct some method
2467 * src/org/glom/web/client/LibGlomService.java: Add method
2468 to get list layout field names.
2469 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2470 to get list layout field names.
2471 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2472 widget for list layout table.
2473 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2474 the table drop box and add new updateTable() method to asynchronously
2475 get the layout list field names for the currently selected table.
2476 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2477 implementation of getLayoutListHeaders() method.
2478 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2480 2011-01-18 Ben Konrath <ben@bagu.org>
2482 Make a listBox with table titles instead of the flexTable demo.
2484 This is the start of something more useful.
2486 * .classpath: Exclude a bunch of packages from the JVM that are
2487 getting in the way of the Eclipse content assist.
2488 * src/org/glom/web/client/GlomDocument.java:
2489 * src/org/glom/web/client/GlomTable.java:
2490 * src/org/glom/web/client/LibGlomService.java:
2491 * src/org/glom/web/client/LibGlomServiceAsync.java:
2492 * src/org/glom/web/client/OnlineGlom.java:
2493 * src/org/glom/web/server/LibGlomServiceImpl.java:
2494 * war/OnlineGlom.html:
2495 * war/WEB-INF/web.xml:
2497 211-01-13 Ben Konrath <ben@bagu.org>
2499 Update to new java-libglom API.
2501 * .gitignore: Ignore OnlineGlom.war.
2502 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2504 2010-12-20 Ben Konrath <ben@bagu.org>
2506 Add some basic style to the table listing.
2508 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2509 header, print useful error message on async callback failure.
2510 * war/OnlineGlom.css: Add style for table header, remove defaults
2511 provided by the Eclipse project wizard.
2513 2010-12-20 Ben Konrath <ben@bagu.org>
2515 Load example file from installed glom dir.
2517 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2518 provided by java-libglom to find the example file.
2520 2010-12-20 Ben Konrath <ben@bagu.org>
2522 Update Eclipse settings.
2525 * .settings/com.google.gdt.eclipse.core.prefs:
2526 * .settings/com.google.gwt.eclipse.core.prefs:
2528 2010-12-17 Ben Konrath <ben@bagu.org>
2532 * .classpath: New file.
2533 * .gitignore: New file.
2534 * .project: New file.
2535 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2536 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2537 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2538 * src/org/glom/web/client/GlomTable.java: New file.
2539 * src/org/glom/web/client/OnlineGlom.java: New file.
2540 * src/org/glom/web/client/TableNameService.java: New file.
2541 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2542 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2543 * war/OnlineGlom.css: New file.
2544 * war/OnlineGlom.html: New file.
2545 * war/WEB-INF/web.xml: New file.
2546 * war/images/glom.png: New file.