1 2011-09-26 Ben Konrath <ben@bagu.org>
3 Simplify code that iterates through the LayoutGroup.
5 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
7 2011-09-26 Ben Konrath <ben@bagu.org>
9 Accept Eclipse formatting for OnlineGlomServiceAsync.
11 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
13 2011-09-26 Ben Konrath <ben@bagu.org>
15 Don't use the ListDBAccess classes to get the primary key layout information.
17 This was causing a bug where the wrong index for the hidden primary key
18 was being sent to the client.
20 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
21 primary key while creating the LayoutGroup DTO. Create a
22 LayoutItemField DTO for hidden primary keys. Don't use the
23 RelatedListDBAccess because it was only used for getting the primary
25 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
26 access modifier from public to protected for getPrimaryKeyField() and
27 getPrimaryKeyLayoutItemField().
28 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
29 abstract method getExpectedResultSize() because RelatedListDBAccess
30 doesn't have enough info to implement it.
31 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
32 Remove @Override for getExpectedResultSize().
33 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
34 Remove method getExpectedResultSize().
36 2011-09-23 Ben Konrath <ben@bagu.org>
38 Log which layout (list or details) the ignored item is from.
40 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
42 2011-09-23 Ben Konrath <ben@bagu.org>
44 Remove annotations that turn off code formatting in DataItem.
46 * src/main/java/org/glom/web/shared/DataItem.java:
48 2011-09-23 Ben Konrath <ben@bagu.org>
50 Rename GlomField to DataItem and update associated methods.
52 This is a rename-only refactor. No functionality has been added or
55 * src/main/java/org/glom/web/client/OnlineGlomService.java:
56 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
57 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
58 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
59 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
60 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
61 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
62 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
63 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
64 * src/main/java/org/glom/web/server/database/DBAccess.java:
65 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
66 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
67 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
68 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
69 * src/main/java/org/glom/web/shared/DataItem.java:
70 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
71 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
73 2011-09-23 Ben Konrath <ben@bagu.org>
75 Rename GlomDocument to DocumentInfo and update associated methods.
77 This is a rename-only refactor. No functionality has been added or
80 * src/main/java/org/glom/web/client/OnlineGlomService.java:
81 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
82 * src/main/java/org/glom/web/client/activity/ListActivity.java:
83 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
84 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
85 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
86 * src/main/java/org/glom/web/shared/DocumentInfo.java:
88 2011-09-20 Ben Konrath <ben@bagu.org>
90 Require java-libglom 1.17.3.
92 This picks up the fix for the seg fault problem with the Scenes table
93 in the Openismus Film Manager example.
97 2011-09-20 Ben Konrath <ben@bagu.org>
99 Change the way sort clause is added for primary key when no sort clause is requested.
101 The primary key is now added to the LayoutFieldVector (fieldsToGet)
102 before the sort clause is created. When a sort clause is not requested, the
103 sort clause is created by finding the primary key in the LayoutFieldVector
106 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
108 2011-09-20 Ben Konrath <ben@bagu.org>
110 Log error message if no documents are found in the configured directory.
112 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
113 Extract the glom file extension string to a private static final class
114 variable (mostly as syntactic sugar). Accept a minor formatting change.
115 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
116 the example glom.document.directory configuration property to make it
117 more clear that it can any directory, not just the home directory.
119 2011-09-18 Ben Konrath <ben@bagu.org>
121 Add related lists to details view.
123 The related list table has support for paging and sorting just like the
124 table in the list view.
126 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
127 SQL queries for the related list tables.
128 * src/main/java/org/glom/web/client/OnlineGlomService.java:
129 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
131 Rename getList methods to getListView and add comments. Remove
132 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
133 it being unused. Add methods: getDetailsLayoutAndData(),
134 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
135 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
136 Create the layout and set the data for the fields in one async call
137 instead of two. Create related lists where appropriate.
138 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
139 for method name changes in OnlineGlomService.
140 * src/main/java/org/glom/web/client/ui/DetailsView.java:
141 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
142 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
144 * src/main/java/org/glom/web/client/ui/ListView.java:
145 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
146 tableName from setCellTable(). Create a ListViewTable instead of
148 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
149 represent a data field in the details view.
150 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
151 from addDetailsCell() to Field class. Keep track of the Fields and
152 Portals in the details view.
153 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
154 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
155 and add a method to get it. Add method to set the contents of the
157 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
158 New class for related list tables. This class has the data provider
159 for the related list table.
160 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
161 abstract class which is the base class for the ListViewTable and the
163 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
164 New class for list view tables. This class has the data provider for
166 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
167 methods for related list tables. Add more information to the
168 LayoutItemField and LayoutItemPortal DTOs.
169 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
170 Remove debugging print statement.
171 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
172 Remove debugging print statements. Add primary key field to SQL count
174 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
175 Remove unnecessary LayoutFieldVector parameter from
176 getResultSizeOfSQLQuery() method.
177 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
178 New class for related list table database access.
179 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
180 class that is a wrapper DTO for details view layout and data.
181 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
182 new 'fromField' string to this DTO.
183 * src/main/webapp/style.css: Remove bottom margin and override top
186 2011-09-15 Ben Konrath <ben@bagu.org>
188 Breakup the OnlineGlomServiceImpl class to make it more manageable.
190 This sets things up to make it easier to add the data retrieval for
191 related lists (portals). No user noticeable changes were made with
194 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
195 class has the code to retrieve the layouts and access the
196 database using the new database helper classes.
197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
198 Most of the functionality has been removed from this class. This
199 class now represents the public interface for the client side
200 code. It also deals with configuring the servlet and cleaning
201 things up when the servlet is stopped.
202 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
203 of static methods into this utility class.
204 * src/main/java/org/glom/web/server/database/DBAccess.java:
205 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
206 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
207 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
208 These classes have the database retrieval code. The class hierarchy
209 has been setup to make it easy to reuse code for similar
212 2011-09-06 Ben Konrath <ben@bagu.org>
214 Create separate classes for list table code and the data provider.
216 As part of this refactor, I also split up the code a bit to make it
219 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
220 table code to two new classes (below).
221 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
222 with code from ListViewImpl.
223 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
224 New file with code from ListViewImpl.
226 2011-09-06 Ben Konrath <ben@bagu.org>
228 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
230 This fixes the LayoutItemPortal DTO to match the libglom layout object
233 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
235 2011-09-01 Ben Konrath <ben@bagu.org>
237 Set title of Portals in the Details View.
239 * pom.xml: Bump required version of java-libglom to 1.17.1.
240 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
241 widget creation to its own class. Add comments to constructor.
242 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
243 The code is mostly from the Group class with the title now set.
244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
245 title of Portal. Update some comments. Fix some code formatting.
247 2011-09-01 Ben Konrath <ben@bagu.org>
249 Remove TODO comment for the flow table column width.
251 The flow table column width is working correctly and doesn't need to be
252 changed. See this mailing list post for more info:
254 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
256 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
258 2011-08-27 Ben Konrath <ben@bagu.org>
260 Add document title (database name) to top of the browser page.
262 I added the document title to the TableSelecitonView but that will
263 change if / when we add a view that doesn't require table selection.
265 * mockups/details-contacts.html:
266 * mockups/details-projects.html:
267 * mockups/listview-contacts.html:
268 * mockups/listview-projects.html:
269 * mockups/style.css: Add document title to mockups to keep things
271 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
272 sizes to account for the document title.
273 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
274 Set the document title when it has been retrieved from the server.
275 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
276 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
277 and implement setDocumentTitle(String) method.
278 * src/main/webapp/style.css: Add ID for document title style.
280 2011-08-25 Ben Konrath <ben@bagu.org>
282 Add NavigationType enum to LayoutItemPortal DTO.
284 This is the start of adding support for Portals to the Details View.
286 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
287 LayoutItem_Portal.navigation_type enum from libglom to
288 LayoutItemPortal.NavigationType enum.
289 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
290 NavigationType enum, field for storing the NavigationType and getter
293 2011-08-25 Ben Konrath <ben@bagu.org>
295 Implement the flow table layout in the Details View.
297 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
298 FlowTable to Group to account for the renamed class.
299 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
300 File. This is a container widget that implements the Glom details view
301 flow table behaviour.
302 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
303 org/glom/web/client/ui/FlowTable.java.
304 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
305 so that the size of the subgroups are a closer match to the size of
306 the Glom subgroups. This makes the flowtable layout match the layout
307 in Glom for the Music Collection example file.
309 2011-08-16 Ben Konrath <ben@bagu.org>
311 Create container element for LayoutItemPortal in Details View.
313 This will help me develop the layout for the FlowTable.
315 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
316 fieldPanel variable to detailsCell.
318 2011-08-15 Ben Konrath <ben@bagu.org>
320 Set the height of the data element in the Details View.
322 I changed the InlineLabels (text in a span element) to Labels (text in
323 a div element) so that I could set the height of the details-data
324 elements instead of the details-cell parent elements. This allows the
325 the details-data element to display the correct height if style is
326 applied that shows the height.
328 This change has the added benefit of allowing the order of the labels
329 and data elements to be changed for right-to-left languages.
331 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
332 InlineLabels to Labels.
333 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
334 InlineLabels to Labels. Set the height of the data element.
335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
336 multiline text height in the Formatting DTO.
337 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
338 for multiline height along with getter and setter methods.
339 * src/main/webapp/style.css: Adjust style to account for the change
340 from span elements to div elements in the details cell.
342 2011-08-15 Ben Konrath <ben@bagu.org>
344 Make the List View appearance match the mockups.
346 It doesn't match exactly but it's much better than it was.
348 * mockups/listview-contacts.html: Remove unused css classes.
349 * mockups/listview-projects.html: Remove unused css classes.
350 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
351 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
352 for mainPanel instead of VerticalPanel (table). Set style name on
353 CellTable. Set style name on Details column. Right-align Details
355 * src/main/webapp/style.css: Adjust properties to match the mockups.
357 2011-08-12 Ben Konrath <ben@bagu.org>
359 Add better support for subgroups in the details view.
361 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
362 changed FlowTable constructor.
363 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
364 support for subgroups and subgroup-titles.
365 * src/main/webapp/style.css: Add CSS class for subgroups and
368 2011-08-12 Ben Konrath <ben@bagu.org>
370 Return the top level LayoutGroup title.
372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
374 2011-08-11 Ben Konrath <ben@bagu.org>
376 Make the TableSelector header match the mockup.
378 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
379 the layout panel. Properly lineup the table selection header with
380 the list and details view.
381 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
382 margin around the details view.
383 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
384 Rename listBox variable to tableSelector. Set id for the style sheet.
385 Use a FlowPanel instead of a HorizontalPanel.
386 * src/main/webapp/style.css: Add properties to make the TableSelector
387 box match the mockups.
389 2011-07-13 Ben Konrath <ben@bagu.org>
391 Update install script for java-libglom version change.
393 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
396 2011-07-13 Ben Konrath <ben@bagu.org>
398 Add support sub-group in the details view.
400 I also removed the code that special-cased the default details view
403 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
405 I still have to make a proper flowtable.
407 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
408 Don't special-case default details view layout.
409 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
410 addLayoutField() as I'm going to use it.
411 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
412 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
414 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
415 extracted from DetailsViewImpl.GroupPanel. Add support for
417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
418 column count when getting the details layout.
420 2011-07-12 Ben Konrath <ben@bagu.org>
422 Set browser title with database and table titles.
424 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
425 Set the browser title when the table changes and when the activity
427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
428 title when retrieving document info (the GlomDocument object).
429 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
430 with getter and setter methods. Remove unused convenience constructor.
431 Use default code formatting.
433 2011-07-12 Ben Konrath <ben@bagu.org>
435 Ignore LayoutItemPortals in the details view.
437 I added a new DTO for the LayoutItemPortal so that I can ignore it in
440 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
441 LayoutItemPortal layout objects.
442 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
443 LayoutItemPortal objects when retrieving the details layout.
444 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
445 file. This is an empty class and just used to get type information for
448 2011-07-12 Ben Konrath <ben@bagu.org>
450 Use java-libglom 1.17.0.
454 2011-07-11 Ben Konrath <ben@bagu.org>
456 Remove "Table:" label from table selector.
458 This matches a recent change in the Glom UI.
460 * mockups/details-contacts.html:
461 * mockups/details-projects.html:
462 * mockups/listview-contacts.html:
463 * mockups/listview-projects.html: Remove the "Table:" label from the
465 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
467 2011-07-11 Ben Konrath <ben@bagu.org>
469 Add main groups to the details view.
471 This makes things look a little nicer in the details view. The next step
472 is to implement the flowtable.
474 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
475 resources from the standard gwt css theme. Standard.css is now
476 included in OnlineGlom.html so that the online glom css rules have
477 precedence over the gwt theme.
478 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
479 the whole LayoutGroup to the DetailsView instead of just the titles.
480 * src/main/java/org/glom/web/client/ui/DetailsView.java:
481 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
482 details layout with a helper class (GroupPanel). I might extract this
483 class when I make the full flowtable.
484 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
485 string as default so I don't have to worry about NPEs when processing
487 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
488 note beside OnlineGlom.gwt.xml above).
489 * src/main/webapp/style.css: Add default font-size to body to override
490 the font-size set by the standard theme. Don't use h2 tags for
491 group-title. Create new details-cell class.
493 2011-07-08 Murray Cumming <murrayc@murrayc.com>
495 ConfiguredDocument: Set the port number too.
497 * src/main/java/org/glom/web/server/ConfiguredDocument.java
498 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
499 Glom document. Presumably this worked sometimes so far because there is a
502 2011-07-08 Murray Cumming <murrayc@murrayc.com>
504 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
506 * src/main/java/org/glom/web/server/ConfiguredDocument.java
507 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
508 correct, though we should throw an exception too.
510 2011-07-08 Murray Cumming <murrayc@murrayc.com>
512 Fix a addDocuemnt typo.
514 * src/main/java/org/glom/web/shared/Documents.java
515 (Documents.addDocuemnt): Rename to addDocument().
516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
517 (OnlineGlomServiceImpl.getDocuments): Adapt.
519 2011-07-08 Murray Cumming <murrayc@murrayc.com>
521 Slightly improved log output when connection fails.
523 * src/main/java/org/glom/web/server/ConfiguredDocument.java
524 (ConfiguredDocument.setUsernameAndPassword):
525 We don't know for sure if it' the username/password that's wrong, so
526 rephrase the message.
527 Also ouput the exception message, though it's generic in this case.
529 2011-07-08 Ben Konrath <ben@bagu.org>
533 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
534 added braces to a one line if statement because the Eclipse formatter
535 was getting confused.
537 2011-07-07 Ben Konrath <ben@bagu.org>
539 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
541 These should really be two separate tasks but I counldn't get things to
542 work with GWT 2.2.0 and Eclipse 3.7.
546 * .settings/org.eclipse.jdt.core.prefs:
547 * .settings/org.eclipse.jdt.ui.prefs:
548 * .settings/org.eclipse.ltk.core.refactoring.prefs:
549 * .settings/org.eclipse.m2e.core.prefs:
550 Add new config files. Update current files. Remove references to the
551 webtools plugins as we're not using any of the webtools features.
552 * .gitignore: Add logs directory which is created when running with
554 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
555 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
556 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
558 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
560 2011-07-07 Murray Cumming <murrayc@murrayc.com>
562 onlineglom.properties: Add explanatory comments.
564 * src/main/resources/onlineglom.properties: Also change the default user
565 from ben to someuser, to avoid the risk of people thinking we just
566 stupidly hard-coded a locale path, when they see that on stderr or in a log.
568 2011-06-28 Ben Konrath <ben@bagu.org>
570 Use filename in Log for incorrect passwords.
572 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
573 getFileName(String) method to get the filename from the URI.
575 2011-06-28 Ben Konrath <ben@bagu.org>
577 Add the table name to the URL token for the ListPlace.
579 This makes things consistent between the DetailsPlace and the
580 ListPlace. It also allows the the ListPlace to be bookmarked.
582 * src/main/java/org/glom/web/client/OnlineGlomService.java:
583 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
585 Remove getDefaultListLayout(). The default layout is now returned
586 by the getListLayout() method when the table name is an empty string.
587 * src/main/java/org/glom/web/client/activity/ListActivity.java:
588 Add table name field. Change to a new ListPlace when the table
589 has been changed. Use getListLayout() for getting the default
591 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
592 Add table name field. Set the correct table name in the list box
593 when loading from bookmark. This corrects a problem for the
595 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
596 Move table name to super-class (HasSelectableTable). Move document
597 and table URL keys to super-class in HasSelectableTable.
598 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
599 Add table name field. Add Tokenizer class with URL key common to
600 the subclasses (DetailsPlace and ListPlace).
601 * src/main/java/org/glom/web/client/place/ListPlace.java:
602 Add table name. Add code to parse the URL token.
603 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
604 Update ListPlace construction with empty table name string.
605 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
606 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
607 Change setTableSelectedIndex(int) to setSelectedTableName(String).
608 Update ListPlace construction with table name string.
609 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
610 Change defaultTableName field to tableName to reflect how it's now
611 used. Update the getter and setter methods.
613 2011-06-28 Ben Konrath <ben@bagu.org>
615 Enable the table selector in the DetailsView.
617 * src/main/java/org/glom/web/client/OnlineGlomService.java:
618 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
620 Remove getDefaultDetailsLayout(). The default layout is now returned
621 by the getDetailsLayout() method when the table name is an empty
623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
624 event handler for table change event. Change to using
625 getDetailsLayout() for the default details layout.
626 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
628 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
629 when navigating to the details place.
631 2011-06-27 Ben Konrath <ben@bagu.org>
633 Use filename based unique document ID in URL and for RPC.
635 The document ID is the glom document name with spaces (' ') replaced
636 with pluses ('+') and without the .glom extension.
638 This change is mostly a string substitution of 'documentTitle' for
639 'documentID'. The only code change is the addition of a Documents DTO to get the
640 filename to document title mappings as indicated below.
642 * src/main/java/org/glom/web/client/OnlineGlomService.java:
643 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
644 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
645 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
646 Use Documents DTO to create the document links in the document
648 * src/main/java/org/glom/web/client/activity/ListActivity.java:
649 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
650 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
651 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
652 * src/main/java/org/glom/web/client/place/ListPlace.java:
653 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
654 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
655 * src/main/java/org/glom/web/client/ui/ListView.java:
656 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
657 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
658 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
659 * src/main/java/org/glom/web/server/Log.java:
660 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
661 getDocumentTitles() to getDocuments() and return the Documents DTO.
662 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
663 transferring the filename to document title mappings.
665 2011-06-25 Ben Konrath <ben@bagu.org>
667 Make the authentication popup work again.
669 This bug was introduced when I extracted ConfiguredDocument to its own class.
671 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
672 correct success / fail status in setUsernameAndPassword().
674 2011-06-25 Ben Konrath <ben@bagu.org>
676 Use filename as unique key for configuring database usernames and passwords.
678 This replaces the use of the Glom document title which could change
679 depending on the locale. Thanks to Murray Cumming for pointing out this
682 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
683 * src/main/resources/onlineglom.properties:
685 2011-06-24 Ben Konrath <ben@bagu.org>
687 Pass primary key value to DetailsView.
689 This enables the DetailsView to load the correct data.
691 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
692 primary key value field and set in constructor. Pass primary key
693 value to getDetailsData().
694 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
695 variables for document title and primary key value.
696 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
697 key value to the DetailsPlace.
699 2011-06-24 Ben Konrath <ben@bagu.org>
701 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
703 This allows the primary key to be retrieved by the Details button. This
704 functionality has not been implemented yet but it's in the works.
706 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
707 the LayoutGroup result to ListView.setCellTable instead of all of its
709 * src/main/java/org/glom/web/client/ui/ListView.java:
710 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
711 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
712 get the primary key for the table.
713 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
714 index of the primary key in the LayoutGroup accounting for hidden
715 primary keys. Rename getJavaNumberFormat() to
716 convertToJavaNumberFormat() for consistency. Cleanup / add some
718 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
719 field for primary key index and a field to indicate whether the
720 primary key is hidden or not.
722 2011-06-23 Ben Konrath <ben@bagu.org>
724 Rename getTableData methods to getListData.
726 This is a rename refactor for consistency with other methods.
728 * src/main/java/org/glom/web/client/OnlineGlomService.java:
729 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
730 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
731 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
733 2011-06-23 Ben Konrath <ben@bagu.org>
735 Extract the ConfiguredDocument innerclass into its own class.
737 This makes the servlet code more object oriented.
739 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
740 from private ConfiguredDocument class in OnlineGlomServiceImpl.
741 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
742 new ConfiguredDocument class.
744 2011-06-21 Ben Konrath <ben@bagu.org>
746 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
748 This makes things more inline with how libglom works and reduces code
749 duplication. This refactor lays the groundwork for adding the primary key to
750 the LayoutGroup object.
752 * src/main/java/org/glom/web/client/OnlineGlomService.java:
753 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
754 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
755 Change method names to getListLayout and getDefaultListLayout for
756 consistency. Use LayoutGroup as the DTO for the list layout instead of
757 ColumnInfo and LayoutListTable.
758 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
759 new method names along with the LayoutGroup object for transferring the
761 * src/main/java/org/glom/web/client/ui/ListView.java:
762 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
763 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
764 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
766 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
767 Replaced with LayoutGroup.
768 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
769 expectedResultSize and defaultTableName fields which are needed for
771 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
772 type field which is needed for the list layout but will also be
773 useful for the details layout as things progress.
774 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
775 Make class abstract. Remove the unnecessary
776 getFormattingHorizontalAlignment method. Add setFormatting method.
778 2011-06-16 Ben Konrath <ben@bagu.org>
780 Add scripts for building and installing war.
782 These will help when updating OnlineGlom but they're also good
783 supplemental documentation of the build and deployment proceeding.
785 * utils/build-onlineglom-war.sh: New file.
786 * utils/install-onlineglom-war.sh: New file.
788 2011-06-16 Ben Konrath <ben@bagu.org>
790 Create wrapper class to create consistent log messages.
792 I wrapped methods in the Log class of gwt-log to add the method names
793 from the servlet and create consistent formatting of the document title
794 and table names in the log messages.
796 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
797 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
798 log methods to use methods from wrapped Log class.
800 2011-06-16 Ben Konrath <ben@bagu.org>
802 Remove superfluous conditional return.
804 Thanks to Murray Cumming for pointing this out!
806 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
808 2011-06-15 Ben Konrath <ben@bagu.org>
810 Return an ArrayList of LayoutGroups for the Details layout.
812 This corrects a problem with the details layout as it can have more
813 than one top level LayoutGroup.
815 * src/main/java/org/glom/web/client/OnlineGlomService.java:
816 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
817 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
818 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
819 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
820 with ArrayList of LayoutGroups for the details view layout.
821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
822 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
823 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
824 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
825 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
826 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
828 2011-06-14 Ben Konrath <ben@bagu.org>
830 Use cast_dynamic method to determine the libglom LayoutItem type.
832 This is better than finding the LayoutItem type by using the string
833 returned from the get_part_type_name() method.
835 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
837 2011-06-14 Ben Konrath <ben@bagu.org>
839 Add method names to log entries in the servlet.
841 This helps when tracking down deployment problems.
843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
845 2011-06-14 Ben Konrath <ben@bagu.org>
847 Add data to the DetailsView using a hard-coded primary key value.
849 The layout and functionality of the DetailsView is not complete. This
850 is just a checkpoint so the patch doesn't get too big.
852 * src/main/java/org/glom/web/client/OnlineGlomService.java:
853 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
854 Add getDetailsData() servlet method.
855 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
856 Add RPC to getDetailsData(). Change the way the LayoutGroups and
857 LayoutFields are added to the DetailsView.
858 * src/main/java/org/glom/web/client/ui/DetailsView.java:
859 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
860 Add setData() method. Change addLayoutGroup() and addLayoutField() to
861 take the string for the title instead of the object.
862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
863 Add implementation getDetailsData() along with some private helper
865 * src/main/webapp/style.css: Add padding to details-data class. Add a
866 details-label class with the same padding as the details-data class.
868 2011-06-03 Ben Konrath <ben@bagu.org>
870 Use presenter.goTo() to change to the DetailsPlace.
872 This will make things easier when we need to open the DetailsView with
873 data specific to the row that was clicked.
875 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
877 2011-06-02 Ben Konrath <ben@bagu.org>
879 Add CSS file from mockups.
881 I'm adding this now because it's going to be useful to have when
882 developing the DetailsView. The TableSelectionView and ListView aren't
885 * src/main/webapp/OnlineGlom.html:
886 * src/main/webapp/style.css:
888 2011-06-02 Ben Konrath <ben@bagu.org>
890 Use String.isEmpty() to check for empty string.
892 * src/main/java/org/glom/web/client/activity/ListActivity.java:
894 2011-06-02 Ben Konrath <ben@bagu.org>
896 Display main layout group titles in the DetailsView.
898 This is the start of the DetailsActivity/DetailsView implementation.
900 * src/main/java/org/glom/web/client/OnlineGlomService.java:
901 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
902 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
903 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
904 Get the layout information for the details view from the server and set
905 the main layout group titles.
906 * src/main/java/org/glom/web/client/ui/DetailsView.java:
907 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
908 Add addLayoutGroup() and addLayoutField() methods. This are just
909 temporary methods for creating the the details view that will change
911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
912 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
914 * src/main/java/org/glom/web/shared/layout/Formatting.java:
915 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
916 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
917 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
918 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
919 Data Transfer Objects that mimic the libglom object structure. These are
920 used for transferring the details layout but could also be used for
921 transferring the list layout.
923 2011-05-27 Ben Konrath <ben@bagu.org>
925 Reset the AuthenticationPopup when clearing the ListView.
927 * src/main/java/org/glom/web/client/activity/ListActivity.java:
929 2011-05-27 Ben Konrath <ben@bagu.org>
931 Fix problem with onlineglom.properties file loading.
933 The old way worked in Eclipse but not on the server. Loading the
934 onlineglom.properties file now works in Eclipse and on the server.
936 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
938 2011-05-24 Ben Konrath <ben@bagu.org>
940 Update gwt-log from 3.1.0 to 3.1.2.
942 Gwt-log 3.1.0 has been marked as depreciated.
946 2011-05-24 Ben Konrath <ben@bagu.org>
948 Add comment to ListActivity.goTo() method.
950 * src/main/java/org/glom/web/client/activity/ListActivity.java:
952 2011-05-24 Ben Konrath <ben@bagu.org>
954 Remove FIXME in convertGdkColorToHtmlColour()
956 The Gdk::Color value returned by libglom is 16-bits per channel on both
957 64 and 32-bit platforms.
959 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
961 2011-05-19 Ben Konrath <ben@bagu.org>
963 Improve performance of initial ListView load.
965 I removed a round trip to the server for getting the default table name
966 and then requesting information about that table. This also removes a potential
967 problem with the table change handler not being setup in time to receive the
968 table change event from the ListActivity.
970 * src/main/java/org/glom/web/client/OnlineGlomService.java:
971 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
972 getDefaultLayoutListTable() method. Improve comments.
973 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
974 getDefaultLayoutListTable() method instead of firing a table change
975 event to get the table to load.
976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
977 implementation of getDefaultLayoutListTable() method.
978 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
981 2011-05-19 Ben Konrath <ben@bagu.org>
983 Override toDebugString() in TableChangeEvent.
985 This is useful to have for debugging.
987 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
989 2011-05-19 Ben Konrath <ben@bagu.org>
991 Add a "Back to List" link when at the DetailsPlace.
993 * src/main/java/org/glom/web/client/activity/ListActivity.java:
994 Populate the CellTable based on the selected table of the ListBox if
995 it's set otherwise use the default table. This allows the "Back to
997 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
998 Remove Place from constructors. Add a setPlace() method. Add
999 goToPlace() method. Set class as presenter for TableSelectionView.
1000 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1001 Use the same TableSelectionActivity when switching between the List and
1003 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1004 Subclass the new HasSelectableTablePlace. This removes some duplicate
1006 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1007 New class to represent Places that display the TableSelectionView.
1008 * src/main/java/org/glom/web/client/place/ListPlace.java:
1009 Subclass the new HasSelectableTablePlace. This removes some duplicate
1011 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1012 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1013 Add Presenter interface. Add setBackLinkVisible() method. Add
1014 setBackLink() method.
1016 2011-05-18 Ben Konrath <ben@bagu.org>
1018 Enable the "Details" buttons.
1020 Right now only an empty details view is displayed.
1022 * src/main/java/org/glom/web/client/ClientFactory.java:
1023 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1024 Add DetailsView to ClientFactory.
1025 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1026 A basic activity for the details view.
1027 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1028 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1030 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1031 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1033 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1034 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1035 unnecessary super() in constructor.
1036 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1037 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1038 really shouldn't create a new TableSelectionActivity for both the ListPlace
1039 and the DetailsPlace so this should be considered a temporary solution.
1040 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1041 New file. Represents a URL for the details view.
1042 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1043 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1044 A basic details view interface and implementation.
1045 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1046 Enable the "Details" buttons.
1048 2011-05-12 Ben Konrath <ben@bagu.org>
1050 Use a LayoutPanel with multiple display areas for main layout.
1052 This is mostly a refactor in that there are no changes from the user
1053 point of view. These changes are required so that we can swap out the list view
1054 with the details view when the user clicks the "Details" button.
1056 * src/main/java/org/glom/web/client/ClientFactory.java:
1057 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1058 OnlineGlomView. Add TableSelectionView, ListView and
1059 AuthenticationPopup.
1060 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1061 for main layout. Add display regions for main activities. Add
1062 activity manager for for main activities.
1063 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1064 file from parts of the deleted OnlineGlomActivity.
1065 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1066 New file from parts of the deleted OnlineGlomActivity.
1067 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1068 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1069 New files for app wide table change event.
1070 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1071 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1072 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1073 Activity mappers for the main activities replace the deleted app-wide
1075 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1076 Fix a spelling error in he comment.
1077 * src/main/java/org/glom/web/client/ui/ListView.java:
1078 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1079 Renamed from LayoutListView and modified for MVP. This still not a
1080 proper dumb view as prescribed by the MVP pattern but it works for now.
1081 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1082 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1083 New widget stripped out of the deleted OnlineGlomView.
1084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1085 Remove hack that is fixed by this patch.
1087 2011-05-06 Ben Konrath <ben@bagu.org>
1089 Rename OnlineGlomPlace to ListPlace.
1091 The only change besides the rename is that url will now display #list
1092 instead of #Document.
1094 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1095 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1096 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1097 * src/main/java/org/glom/web/client/place/ListPlace.java:
1098 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1100 2011-05-06 Ben Konrath <ben@bagu.org>
1102 Use Presenter for app navigation.
1104 This is the proper way to deal with Place (URL) changes with the MVP
1107 * src/main/java/org/glom/web/client/ClientFactory.java:
1108 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1109 PlaceHistoryMapper and PlaceHistoryHandler.
1110 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1111 PlaceHistoryMapper and PlaceHistoryHandler.
1112 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1113 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1114 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1115 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1116 Add Presenter interface and setPresenter methods. Rename addHyperLink
1117 to addDocumentLink taking only the document title as a parameter.
1119 2011-04-14 Ben Konrath <ben@bagu.org>
1121 Prompt for db username/password if they haven't been set.
1123 This is implemented with a popup widget that is contained within the
1124 OnlineGlomView and managed by the OnlineGlomActivity.
1126 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1127 methods for checking and setting the database username and password.
1128 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1129 new methods for checking and setting the database username and
1131 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1132 Display authentication popup if the JDBC connection to the database
1133 has not been authenticated.
1134 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1136 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1137 for dealing with the authentication popup.
1138 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1139 Implement the methods for dealing with the authentication popup.
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1141 try to executed queries if the database connection hasn't been
1142 authenticated. Implement methods for checking and setting the
1143 database username and password.
1145 2011-04-12 Ben Konrath <ben@bagu.org>
1147 Make log messages a little clearer.
1149 Add a dash betweeen the document title and the table name.
1151 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1153 2011-04-12 Ben Konrath <ben@bagu.org>
1155 Protect against NPEs when cleaning up database resources.
1157 While this isn't strictly necessary because the exception is caught,
1158 not protecting against the NPEs makes it harder to find the real error
1161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1163 2011-04-12 Ben Konrath <ben@bagu.org>
1165 Move configuration of the servlet to the constructor.
1167 The servlet will be initialized even if the database authentication
1168 information is not set or correct. I still need to add the UI for prompting
1169 the user for the authentication information when it's required.
1171 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1172 javadocs for getDocumentTitles() method.
1173 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1174 Set error message when RPC fails.
1175 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1176 glom files directory from the configuration file. Try to set the
1177 database authentication information for the specific document if it's
1178 set and works otherwise try to use the global authentication
1179 information set for the directory.
1180 * src/main/resources/onlineglom.properties: Moved from
1181 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1182 Added detailed comments for the new keys.
1184 2011-04-11 Ben Konrath <ben@bagu.org>
1186 Remove unnecessary @Override in DocumentSelectionViewImpl.
1188 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1190 2011-04-11 Ben Konrath <ben@bagu.org>
1192 Remove center alignment in DocumentSelectionView.
1194 The title element is still centred but the document titles and bottom
1195 sentence are both left-aligned.
1197 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1199 2011-04-11 Ben Konrath <ben@bagu.org>
1201 Change 'Demo' naming convention to 'Document'.
1203 This is just a rename refactor with no functional changes to the code.
1205 * src/main/java/org/glom/web/client/ClientFactory.java:
1206 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1207 * src/main/java/org/glom/web/client/OnlineGlom.java:
1208 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1209 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1210 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1211 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1212 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1213 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1214 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1215 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1216 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1219 2011-04-08 Ben Konrath <ben@bagu.org>
1221 Remove FIXME from safeLongToInt() method.
1223 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1226 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1228 2011-04-08 Ben Konrath <ben@bagu.org>
1230 Display an error if no glom documents are found in the specified directory.
1232 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1233 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1234 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1235 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1237 2011-04-08 Ben Konrath <ben@bagu.org>
1239 Add copyright header to one more file ... oops.
1241 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1243 2011-04-08 Ben Konrath <ben@bagu.org>
1245 Add copyright header to files without it.
1247 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1248 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1249 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1250 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1251 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1252 * src/main/java/org/glom/web/shared/GlomField.java:
1254 2011-04-08 Ben Konrath <ben@bagu.org>
1256 Add support for accessing multiple glom documents in the servlet.
1258 This completes the demo selection functionality.
1260 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1261 document title to methods.
1262 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1263 document title to methods.
1264 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1265 Set browser window title when the activity starts. Correct name of
1266 document title variable.
1267 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1268 Set browser window title when the activity starts. Set the table
1269 selector change handler after table selector has been set. Clear the
1270 OnlineGlomView when the activity has been stopped.
1271 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1272 document title as the place token. Use "#Document:" instead of
1273 "#OnlineGlomPlace:" in the URL.
1274 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1275 Change heading to "Online Glom"
1276 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1277 document title in RPC methods.
1278 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1279 setDocumentTitle() method. Add clear() method.
1280 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1281 setDocumentTitle() method. Implement clear() method which removes the
1282 change handler on the ListBox, clears the ListBox and clears the
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1285 Implement methods with document title. Keep track for the configured
1286 glom documents and their corresponding JDBC configurations in a hash
1287 table. This information is retrieved using the document title as the
1288 key in the hash table.
1289 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1290 document title field as it's no longer needed.
1292 2011-04-08 Ben Konrath <ben@bagu.org>
1294 Update the Eclipse JDT configuration.
1296 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1297 methods. Automatically add the copyright header to new files.
1299 2011-04-05 Ben Konrath <ben@bagu.org>
1301 Add new page for demo selection.
1303 This patch adds all the components required to view and start an
1304 OnlineGlom demo by clicking on the desired hyperlink. The user is
1305 able to return to the demo selection page with the browser's back
1306 button. I still need to modify the servlet to work with multiple
1307 documents so all demo links will load the file defined in the
1308 OnlineGlom.properties.
1310 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1311 This is only useful during development so we don't need to save it.
1312 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1313 get a reference to the DemoSelectionView.
1314 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1315 method to get a reference to the DemoSelectionView.
1316 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1317 default view to DemoSelectionView.
1318 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1319 to get glom document titles for glom files in a hard-coded directory.
1320 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1321 method to get glom document titles for glom files in a hard-coded
1323 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1324 Presenter for DemoSelectionView.
1325 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1326 for DemoSelectionView.
1327 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1328 Update for DemoSelectionView.
1329 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1330 Basic 'Place' implementation for the DemoSelectionView.
1331 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1332 The interface for the DemoSelectionView.
1333 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1334 The implementation of the DemoSelectionView.
1335 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1336 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1338 implementation of method to get glom document titles for glom files
1339 in a hard-coded directory.
1340 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1341 on longer being used.
1342 * src/main/webapp/glom.png: Glom logo.
1344 2011-04-05 Ben Konrath <ben@bagu.org>
1346 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1348 This is the forth and final commit of a refactor that will allow
1349 OnlineGlom to be used with multiple documents.
1351 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1352 Move RPC code from OnlineGlomViewImpl to this class.
1353 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1355 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1356 RPC code to the presenter class (the P in MVP).
1358 2011-04-04 Ben Konrath <ben@bagu.org>
1360 Start moving the existing OnlineGlom code to MVP.
1362 This work is based on the GWT MVP framework that is documented here:
1364 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1366 This is the third commit of a refactor that will allow OnlineGlom to
1367 be used with multiple documents.
1369 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1370 Interface for client factory which is used to get instances of various
1371 classes throughout the app.
1372 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1373 Implementation of client factory.
1374 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1375 initialize the MVP framework.
1376 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1377 New file. Activity manager for the main container widget. This is the
1379 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1380 Maps place (URL) to its corresponding activity.
1381 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1382 New file. This is just a place holder for a generated file.
1383 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1384 New file. Represents the URL for the main Online Glom app.
1385 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1386 for changes in LayoutListViewImpl.
1387 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1388 interface for View. Move code to OnlineGlomViewImpl class.
1389 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1390 file. Implementation of OnlineGlomView.
1391 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1392 Place resources. Use ClientFactoryImpl by default.
1394 2011-04-04 Ben Konrath <ben@bagu.org>
1396 Move View classes to their own package.
1398 This is the second commit of a refactor that will allow OnlineGlom to
1399 be used with multiple documents.
1401 * src/main/java/org/glom/web/client/OnlineGlom.java:
1402 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1403 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1405 2011-04-02 Ben Konrath <ben@bagu.org>
1407 Move UI code from the main module to its own class.
1409 This is the first commit of a refactor that will allow OnlineGlom to be
1410 used with multiple documents.
1412 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1413 references to OnlineGlom to OnlineGlomView.
1414 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1415 OnlineGlomView and instantiate it here.
1416 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1417 represents the main OnlineGlomView with one document.
1419 2011-04-01 Ben Konrath <ben@bagu.org>
1421 Fix formatting of gwt.xml and add DTD.
1423 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1425 2011-03-30 Ben Konrath <ben@bagu.org>
1427 Propperly convert gdkColor string to html colour string.
1429 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1431 2011-03-28 Ben Konrath <ben@bagu.org>
1433 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1435 This implementation matches
1436 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1437 readable and is not tied to Swig.
1439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1441 2011-03-28 Ben Konrath <ben@bagu.org>
1443 Use read-only checkboxes for boolean field types.
1445 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1446 in the CellTable based on the field type. It currently only
1447 distinguishes between boolean and text columns but I'll need to add
1448 support for more types.
1449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1450 column type in the ColumnInfo object. Add method to convert between the
1451 glom field type enum in ColumnInfo and the glom field type in libglom.
1452 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1454 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1455 getting and setting booleans.
1457 2011-03-25 Ben Konrath <ben@bagu.org>
1459 Don't get the Date twice from the ResultSet.
1461 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1463 2011-03-25 Ben Konrath <ben@bagu.org>
1465 Cleanup code in the servlet.
1467 * TODO: Remove item about row count. Add item about testing row count
1468 query with large number of rows.
1469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1470 spelling mistakes, change method parameter to be consistent with
1473 2011-03-25 Ben Konrath <ben@bagu.org>
1475 Add server side logging with the gwt-log library.
1477 * .gitignore: Ignore the log file we're now producing.
1478 * TODO: Add a couple TODO item for logging.
1479 * pom.xml: Add gwt-log and log4j as a dependency.
1480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1481 logging of errors, warnings and some important info.
1482 * src/main/resources/log4j.properties: New file to configure log4j.
1484 2011-03-24 Ben Konrath <ben@bagu.org>
1486 Add a disable button for the Details view.
1488 * src/main/java/org/glom/web/client/LayoutListView.java:
1490 2011-03-22 Ben Konrath <ben@bagu.org>
1492 Use a count query to get the number of rows for the list view pager.
1494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1496 2011-03-22 Ben Konrath <ben@bagu.org>
1498 Add more TODO information about CellTable pager positioning.
1502 2011-03-19 Ben Konrath <ben@bagu.org>
1504 Add TODO item about CellTable pager positioning.
1508 2011-03-18 Ben Konrath <ben@bagu.org>
1510 Remove unneeded GlomFieldColumn class.
1512 This is just a small code cleanup.
1514 * src/main/java/org/glom/web/client/LayoutListView.java:
1516 2011-03-18 Ben Konrath <ben@bagu.org>
1518 Use cursor mode in the query that gets data for the list view.
1520 I still need to fix the potential memory problem when getting the row
1521 count for the list view.
1523 * TODO: Add note about testing memory usage with large data sets. Add
1524 item about fixing row counting with large data sets.
1525 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1526 PostgreSQL JDBC driver into cursor mode when getting data for the
1529 2011-03-15 Ben Konrath <ben@bagu.org>
1531 Remove the GWT Container from the Eclipse build classpath.
1533 The GWT dependencies are set by Maven so this isn't needed.
1537 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1539 Added some earlier mockups to git, but not to the tarball dist.
1541 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1542 Openismus. These hopefully show how we might structure the HTML so that
1543 it can be styled easily with CSS. However, we probably need to adapt them
1544 for the CSS structure that GWT dictates for common widgets.
1546 2011-03-14 Ben Konrath <ben@bagu.org>
1548 Locate OnlineGlom.properties using the ServletContext.
1550 This is required to be able to locate the file in the deployed servlet.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1553 Configure the database and glom document in in a helper method so
1554 that the ServletContext can be used to locate OnlineGlom.properties.
1555 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1556 src/main/webapp. This is the proper location for .properites files.
1558 2011-03-12 Ben Konrath <ben@bagu.org>
1560 Add note to README about why we're compiling down to obfuscated JavaScript.
1564 2011-03-11 Ben Konrath <ben@bagu.org>
1566 Use properties file to configure servlet.
1568 This allows people to change the glom file path, db username and db
1569 password without recompiling the code.
1571 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1572 * src/main/webapp/OnlineGlom.properties:
1574 2011-03-11 Ben Konrath <ben@bagu.org>
1576 Use table fields in layout list view if the layout list is not defined.
1578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1579 Manually create a LayoutFieldVector for the query builder using the
1580 table fields when a layout list is not defined in the glom file.
1582 2011-03-11 Ben Konrath <ben@bagu.org>
1584 Only show FIXME string for images when there's an image.
1586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1587 in this change are some small code cleanups.
1589 2011-03-11 Ben Konrath <ben@bagu.org>
1591 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1595 2011-03-11 Ben Konrath <ben@bagu.org>
1597 Correctly set the index of the default table.
1599 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1600 Correctly set the index of the default table. Add commented out example
1603 2011-03-10 Ben Konrath <ben@bagu.org>
1605 Add comment to pom.xml about the previous change.
1607 * pom.xml: Add comment about the deployment issue so that it's obvious
1608 why java-libglom is set to the provided scope.
1610 2011-03-10 Ben Konrath <ben@bagu.org>
1612 Change java-libglom dependency from compile to provided in pom.xml.
1614 Since java-libglom uses jni it can only be loaded once and therefore
1615 must be placed in $CATALINA_HOME/lib and not included in each war.
1616 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1617 More information about this issue can be found in the Tomcat 6 release
1618 notes in the "JNI Based Applications" section:
1620 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1622 * README: Remove note about this issue. Deployment info should really
1623 be on the wiki anyway so I'll add it right now.
1624 * pom.xml: Change java-libglom dependency from compile to provided so
1625 that it's copied in to the packaged war.
1627 2011-03-09 Ben Konrath <ben@bagu.org>
1629 Change to using a neutral locale for currency, date and time formatting.
1631 This solves the problem of currency values being represented without a
1632 space between the currency code and the number (e.g. "EUR5.89" is now
1633 represented as "EUR 5.89"). More work is required when we implement
1634 a locale preference setting.
1636 * TODO: Add note about currency formatting issues with different
1638 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1639 to using the neutral ROOT locale.
1641 2011-03-09 Ben Konrath <ben@bagu.org>
1643 Add support for currency codes that are not ISO 4217 codes.
1645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1646 the currency code defined in the glom file when it's not 3 characters
1647 long or when Java doesn't recognize the string as an ISO 4217 code.
1649 2011-03-08 Ben Konrath <ben@bagu.org>
1651 Remove test classes, launch configurations and configuration.
1653 The test stuff was getting in the way when creating the war. To make
1654 the war file you can now do 'mvn clean package'. The packaged war file
1655 will be in the target directory.
1657 * .classpath: Remove unused classpathentry for tests and i18n.
1658 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1659 property. Don't run test or i18n goals when packaging the war.
1660 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1665 * OnlineGlomTest-dev.launch:
1666 * OnlineGlomTest-prod.launch:
1667 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1668 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1670 2011-03-07 Ben Konrath <ben@bagu.org>
1672 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1674 These fixes allow me to use 'mvn deploy' to create the war file.
1676 * .classpath: This generated config has been updated by Eclipse. This
1677 change was probably triggered by me updating from Eclipse 3.6.1 to
1679 * .gitignore: Add entry to ignore the directory
1680 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1681 * .project: The generated config has been updated by Eclipse. This
1682 change was probably triggered by me updating from Eclipse 3.6.1 to
1684 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1685 so that Eclipse doesn't complain
1686 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1687 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1688 'tests' directory to 'client' directory. This is the new
1689 gwt-maven-plugin convension.
1690 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1691 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1693 2011-03-07 Ben Konrath <ben@bagu.org>
1695 Add support for horizontal alignment in the LayoutList columns.
1697 * TODO: Remove item about horizontal alignment. Add item about
1698 improvements to ColumnInfo.
1699 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1700 alignment on the columns. Use ColumnInfo RPC object get the column
1701 title and horizontal alignment.
1702 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1703 LayoutListView creation with ColumnInfo RPC object.
1704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1705 a ColumnInfo object for every LayoutList columnn. Convert the
1706 FieldFormatting.HorizontalAlignment to the correct
1707 ColumnnInfo.HorizontatlAlignment with the new
1708 getColumnInfoHorizontalAlignment helper method.
1709 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1710 to encapsulate column information like alignment and title. This
1711 could be used to set the colour instead of on a per cell field basis.
1712 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1713 column title storage and retrieval with ColumnInfo.
1715 2011-03-04 Ben Konrath <ben@bagu.org>
1717 Add support for column sorting.
1719 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1720 AsynDataProvider to be an anonymous inner class. Use new
1721 getSortedTableData RPC method when column sort is requested. Set all
1722 columns sortable and add an AsyncHandler to activate sorting in the
1724 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1725 method getSortedTableData(). Cleanup other method signatures.
1726 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1727 new method getSortedTableData(). Cleanup other method signatures.
1728 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1729 Implement getSortedTableData() and getTableData() methods by using a
1730 private helper method with the appropriate parameters filled in. Use
1731 user supplied sort clause when supplied, otherwise fall back to
1732 sorting by the primary key. Move destroy() method to be underneath
1733 constructor for readability. Cleanup comments.
1735 2011-03-03 Ben Konrath <ben@bagu.org>
1737 Add support for colour text and colour backgrounds to the layout list cells.
1739 Only the cell backgrounds are coloured which leaves a gap between the
1740 cells that isn't coloured. I need to figure out a way to set
1741 'style=background-colour:' on the whole column rather than just the
1744 * TODO: Add a note about colouring the background of the whole column.
1745 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1746 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1747 render the coloured text and backgrounds. Use GlomField[] for the row type.
1748 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1750 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1751 GlomField[] for the row type.
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1753 GlomField[] for the row type. Set the text, text colour and background
1754 colour in the GlomField objects as specified in the glom document. Add
1755 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1756 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1757 the glom field text, foreground colour and background colour.
1759 2011-03-02 Ben Konrath <ben@bagu.org>
1761 Don't display hidden tables in the combo box.
1763 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1765 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1766 code to ignore hidden tables using ArrayLists for the table names and
1768 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1769 tableNames to use ArrayLists instead of String[]. Update getter and setter
1772 2011-03-01 Ben Konrath <ben@bagu.org>
1774 Add support for Date and Time number types.
1776 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1777 Implement formatting for Date and Time values. Change the default glom
1778 file to small business example.
1780 2011-03-01 Ben Konrath <ben@bagu.org>
1782 Add support for formatting glom types as specified in the glom file.
1784 Formatting isn't finished yet - I still need to add support for Date
1787 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1788 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1789 checks for null values in JDBC cleanup code and catch all exceptions
1790 instead of just SQLExceptions.
1791 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1794 2011-03-01 Ben Konrath <ben@bagu.org>
1796 Use GWT 2.2.0 instead of 2.1.1.
1798 * pom.xml: Change GWT version numbers.
1800 2011-03-01 Ben Konrath <ben@bagu.org>
1802 A few small code cleanups.
1804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1806 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1807 unnecessary object creation in constructor.
1808 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1809 unnecessary object creation in constructor.
1811 2011-02-28 Ben Konrath <ben@bagu.org>
1813 Add file for TODO list.
1817 2011-02-18 Ben Konrath <ben@bagu.org>
1819 Enable the CellTable Pager when more than 20 rows need to be viewed.
1821 The Pager will automatically become active when the results are larger
1822 than the CellTable size which is currently set to 20 lines.
1824 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1825 name on debug statment in RPC call in LayoutListDataProvider, add
1826 numRows parameter to LayoutListView constructor, propperly set rowCount
1828 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1829 name on debug statment in RPC call, use LayoutListTable object in RPC
1830 calls, pass rowCount to LayoutListView.
1831 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1832 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1834 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1835 interface for changes in OnlineGlomService.
1836 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1837 getLayoutListHeaders() to getLayoutListTable() and return
1838 LayoutListTable. Using this object allows me to pass other information
1839 about the LayoutList like the expected number of rows in the result set.
1840 The Connection object from the connection pool is now propperly closed.
1841 Only the requested number of lines are returned to the client in
1843 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1844 GlomTable and add columnTitles and numRows.
1846 2011-02-18 Ben Konrath <ben@bagu.org>
1848 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1850 This is a small performance boost. I'll use GlomTable to get the required
1851 layoutlist information.
1853 * src/main/java/org/glom/web/client/OnlineGlom.java:
1854 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1855 * src/main/java/org/glom/web/shared/GlomDocument.java:
1857 2011-02-18 Ben Konrath <ben@bagu.org>
1859 Add option to turn off formatting in JDT formatter preferences.
1861 * .settings/org.eclipse.jdt.core.prefs:
1863 2011-02-18 Ben Konrath <ben@bagu.org>
1865 Rename LayoutList to LayoutListView.
1867 I'm working towards setting things up to easily use MVP when the time
1870 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1872 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1875 2011-02-17 Ben Konrath <ben@bagu.org>
1877 Move LayoutListDataProvider class into LayoutList.java.
1879 * src/main/java/org/glom/web/client/LayoutList.java:
1881 2011-02-17 Ben Konrath <ben@bagu.org>
1883 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1885 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1887 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1888 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1889 from LibGlomServer.java.
1890 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1891 Rename from LibGlomServiceAsync.java.
1892 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1893 Rename from LibGlomServiceImpl.java.
1894 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1896 2011-02-17 Ben Konrath <ben@bagu.org>
1898 Update JDT settings.
1900 * .settings/org.eclipse.jdt.core.prefs:
1902 2011-02-17 Ben Konrath <ben@bagu.org>
1904 Move GWT-RPC objects to shared package (where they should be).
1906 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1907 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1908 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1909 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1910 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1911 org.glom.web.shared package.
1912 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1913 org.glom.web.shared package.
1914 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1915 directory in compilation to javascript.
1917 2011-02-16 Ben Konrath <ben@bagu.org>
1919 Add sort clause to the sql query that grabs table information.
1921 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1922 if one of the columns is a primary key.
1924 2011-02-16 Ben Konrath <ben@bagu.org>
1926 Disable generateAsync feature of gwt-maven.
1928 The generated interface does not correctly match the methods in LibGlomService
1929 and the generated singleton Util inner-class doesn't respect the servlet
1932 * pom.xml: Turn off generateAsync feature.
1933 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1934 with singleton Util inner-class.
1936 2011-02-14 Ben Konrath <ben@bagu.org>
1938 Add LGPL v3 licence notices.
1940 Followed directions listed here:
1941 http://www.gnu.org/licenses/gpl-howto.html
1943 * COPYING: This file is a copy of the GPL v3.
1944 * COPYING.LESSER: This file is a copy of the LGPL v3.
1945 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1947 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1949 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1951 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1953 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1955 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1957 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1960 2011-02-14 Ben Konrath <ben@bagu.org>
1962 Use ArrayList instead of Array in GWT-RPC calls.
1964 Apparently this gives a slight performance boost to the compiled
1967 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1969 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1972 2011-02-14 Ben Konrath <ben@bagu.org>
1974 Access data from a postgres db rather than the example glom file.
1976 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1977 compile down to obfuscated javascript.
1978 * pom.xml: Add c3p0 and postgres JDBC libraries.
1979 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1980 using a postgres db accessed through the c3p0 connection pooling library.
1982 2011-02-14 Ben Konrath <ben@bagu.org>
1984 Update Java formatter settings.
1986 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1988 2011-02-02 Ben Konrath <ben@bagu.org>
1990 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1992 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1994 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1995 the compiled webapp directory that Eclipse uses as we're using Maven now.
1996 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1997 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1999 * pom.xml: Format file, change target Java version to 1.6.
2001 2011-02-02 Ben Konrath <ben@bagu.org>
2003 Add information about a deployment related issue.
2005 * README: Add Notes section with the problem outlined.
2007 2011-02-02 Ben Konrath <ben@bagu.org>
2009 Call Glom.libglom_deinit() when the servlet is shutdown.
2011 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2012 Glom.libglom_deinit() to destroy() method.
2014 2011-01-28 Ben Konrath <ben@bagu.org>
2016 Use generated Util class to get the RPC Async interface.
2018 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2020 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2021 getInstance() method to get a reference to the RPC Async interface.
2022 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2023 getInstance() method to get a reference to the RPC Async interface, remove
2024 the now unused getLibGlomServiceProxy() method.
2026 2011-01-27 Ben Konrath <ben@bagu.org>
2028 Cleanup ChangeLog entry from previous commit.
2030 * ChangeLog: Group logical changes together and add comments.
2032 2011-01-25 Ben Konrath <ben@bagu.org>
2034 Convert to gwt-maven project.
2036 * .gitignore: Update for new project structure.
2037 * README: New file with a link to the online documentation.
2038 * pom.xml: The generated maven configuration file with some tweaks.
2040 Add / update Eclipse settings. These files are a merge of the files that
2041 were generated with the gwt-maven plugin and the files we were previously
2045 * .settings/.jsdtscope:
2046 * .settings/com.google.gdt.eclipse.core.prefs:
2047 * .settings/com.google.gwt.eclipse.core.prefs:
2048 * .settings/org.eclipse.jdt.core.prefs:
2049 * .settings/org.eclipse.wst.common.component:
2050 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2051 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2052 * .settings/org.maven.ide.eclipse.prefs:
2053 * OnlineGlomTest-dev.launch:
2054 * OnlineGlomTest-prod.launch:
2056 Java source files moved from the 'src' directory to the directory structure
2058 * src/main/java/org/glom/web/client/GlomDocument.java:
2059 * src/main/java/org/glom/web/client/GlomTable.java:
2060 * src/main/java/org/glom/web/client/LayoutList.java:
2061 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2062 * src/main/java/org/glom/web/client/LibGlomService.java:
2063 * src/main/java/org/glom/web/client/OnlineGlom.java:
2064 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2066 Non-functional property file used for translations. I included this as
2067 reminder that it's something I need to sort out.
2068 * src/main/resources/org/glom/web/client/Messages.properties:
2070 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2071 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2073 The servlet configuration files moved from the 'war' directory.
2074 * src/main/webapp/OnlineGlom.css:
2075 * src/main/webapp/OnlineGlom.html:
2076 * src/main/webapp/WEB-INF/web.xml:
2078 Generated test files with most of the code commented out. I included these
2079 so that it's easy to add tests when we're ready for them.
2080 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2081 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2083 2011-01-25 Ben Konrath <ben@bagu.org>
2085 Remove unused println.
2087 * src/org/glom/web/server/LibGlomServiceImpl.java:
2089 2011-01-25 Ben Konrath <ben@bagu.org>
2091 Add project specific JDT settings.
2093 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2094 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2096 2011-01-25 Ben Konrath <ben@bagu.org>
2098 Populate celltable with example data.
2100 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2101 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2102 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2103 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2104 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2105 asynchronously gets the example data.
2106 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2107 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2108 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2109 curently selected table to be retrieved by other widgets.
2110 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2111 implement getTableData() in a hacky way. This method needs to be updated
2112 to grab information from the database when database creating is
2115 2011-01-20 Ben Konrath <ben@bagu.org>
2117 Set table headers when table dropBox changes.
2119 * src/org/glom/web/client/GlomDocument.java: Correct some method
2121 * src/org/glom/web/client/LibGlomService.java: Add method
2122 to get list layout field names.
2123 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2124 to get list layout field names.
2125 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2126 widget for list layout table.
2127 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2128 the table drop box and add new updateTable() method to asynchronously
2129 get the layout list field names for the currently selected table.
2130 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2131 implementation of getLayoutListHeaders() method.
2132 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2134 2011-01-18 Ben Konrath <ben@bagu.org>
2136 Make a listBox with table titles instead of the flexTable demo.
2138 This is the start of something more useful.
2140 * .classpath: Exclude a bunch of packages from the JVM that are
2141 getting in the way of the Eclipse content assist.
2142 * src/org/glom/web/client/GlomDocument.java:
2143 * src/org/glom/web/client/GlomTable.java:
2144 * src/org/glom/web/client/LibGlomService.java:
2145 * src/org/glom/web/client/LibGlomServiceAsync.java:
2146 * src/org/glom/web/client/OnlineGlom.java:
2147 * src/org/glom/web/server/LibGlomServiceImpl.java:
2148 * war/OnlineGlom.html:
2149 * war/WEB-INF/web.xml:
2151 211-01-13 Ben Konrath <ben@bagu.org>
2153 Update to new java-libglom API.
2155 * .gitignore: Ignore OnlineGlom.war.
2156 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2158 2010-12-20 Ben Konrath <ben@bagu.org>
2160 Add some basic style to the table listing.
2162 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2163 header, print useful error message on async callback failure.
2164 * war/OnlineGlom.css: Add style for table header, remove defaults
2165 provided by the Eclipse project wizard.
2167 2010-12-20 Ben Konrath <ben@bagu.org>
2169 Load example file from installed glom dir.
2171 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2172 provided by java-libglom to find the example file.
2174 2010-12-20 Ben Konrath <ben@bagu.org>
2176 Update Eclipse settings.
2179 * .settings/com.google.gdt.eclipse.core.prefs:
2180 * .settings/com.google.gwt.eclipse.core.prefs:
2182 2010-12-17 Ben Konrath <ben@bagu.org>
2186 * .classpath: New file.
2187 * .gitignore: New file.
2188 * .project: New file.
2189 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2190 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2191 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2192 * src/org/glom/web/client/GlomTable.java: New file.
2193 * src/org/glom/web/client/OnlineGlom.java: New file.
2194 * src/org/glom/web/client/TableNameService.java: New file.
2195 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2196 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2197 * war/OnlineGlom.css: New file.
2198 * war/OnlineGlom.html: New file.
2199 * war/WEB-INF/web.xml: New file.
2200 * war/images/glom.png: New file.