1 2012-01-13 Murray Cumming <murrayc@murrayc.com>
3 Documents: Add some final keywords.
5 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
8 2012-01-13 Murray Cumming <murrayc@murrayc.com>
10 OnlineGlomServiceImpl: Add to overview comments.
12 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
13 Note that this is where all the document are loaded. They are not
14 loaded freshly for each page.
16 2012-01-12 Murray Cumming <murrayc@murrayc.com>
20 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
21 Add a TextBox for the text of a quick find.
22 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
24 setBackLink(): Add a String quickFind parameter.
25 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
26 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
27 to the base interface, because that is how TableSelectionViewImpl is used.
28 * src/main/webapp/style.css: Add style for the search box and its label.
30 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
31 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
32 Add these files, based on the existing TableChangeEvent and
33 TableChangeEventHandlers.
34 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
35 start(): Handle QuickFindChangeEvent, passing its quickFind text to
36 a ListPlace() that the user should be taken to.
37 * src/main/java/org/glom/web/client/activity/ListActivity.java
38 start(): Handle it here too and adapt the TableChangeEvent handler to
39 pass the extra "" quickFind parameter to ListPlace.
40 * src/main/java/org/glom/web/client/place/ListPlace.java:
41 Constructor: Take an extra String quickFind parameter and store it,
42 returning it from a new getQuickFind() method.
43 getToken(): Put the quickFind text in the URL token.
44 getPlace(): Parse the quickFind text from the URL token.
45 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
46 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
47 ListPlace constructor.
48 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
49 .java: start(): Add a Change handler for the TableSelectionView's
50 TextBox (via its base HasChangeHandlers interface), firing the new
52 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
53 pass the extra "" quickFind parameter.
55 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
56 setCellTable(): Add a String quickFind parameter and pass it to
57 the ListViewTable() constructor.
58 * src/main/java/org/glom/web/client/ui/ListView.java: Change
59 setCellTable() in the base interface, because that is how ListViewImpl
62 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
63 Add a String quickFind member variable.
64 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
65 Constructor: Add a String quickFind parameter, storing it in the
66 base ListTable's member variable.
67 onRangeChanged(): Pass quickFind to the
68 OnlineGlomServiceAsync.getSortedListViewData() and
69 OnlineGlomServiceAsync.getListViewData() methods.
71 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
72 getListViewData(), getSortedListViewData(): Add a String quickFind
73 parameter, passing it to ConfiguredDocument.getListViewData().
74 * src/main/java/org/glom/web/client/OnlineGlomService.java:
75 Change getListViewData(), getSortedListViewData() in the base interface,
76 because that is how OnlineGlomServiceImpl is used, via this:
77 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
78 Change getListViewData(), getSortedListViewData() here too.
79 This class can apparently be used to asynchronously call methods on
80 OnlineGlomService, and GWT seems to implement that after recognizing
81 just the *Async name convention and the extra AsyncCallback parameters.
83 * src/main/java/org/glom/web/server/ConfiguredDocument.java
84 getListViewData(): Add a String quickFind parameter, and pass it to
85 ListViewDBAccess.getData().
86 * src/main/java/org/glom/web/server/database/ListDBAccess.java
87 getListData(): Add a String quickFind parameter and pass it to
89 getSelectQuery(): Add a String quickFind parameter.
90 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
91 getSelectQuery(): Add a String quickFind parameter and use it with
92 Glom.get_find_where_clause_quick() to pass a where_clause to
93 Glom.build_sql_select_with_where_clause(), to actually filter the
95 getData(): Add a String quickFind parameter, passing it to getListData().
96 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
97 va: getData(): Pass an empty string to getListData() for the
100 2012-01-12 Murray Cumming <murrayc@murrayc.com>
102 ListTable: Minor change.
104 * src/main/java/org/glom/web/client/ui/list/ListTable.java
105 createCellTable(): Make this protected instead of public.
107 2012-01-12 Murray Cumming <murrayc@murrayc.com>
109 Many files: Use final for the parameters and use the @override attribute.
111 2012-01-22 Ben Konrath <ben@bagu.org>
113 Add anchor links for single line text that starts with http, ftp and www.
117 2012-01-22 Ben Konrath <ben@bagu.org>
119 Add ellipsis to single line text in details view.
123 2012-01-04 Murray Cumming <murrayc@murrayc.com>
125 Remove all javadoc author tags.
127 Because they are awkward and meaningless when many people touch
129 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
131 2012-01-04 Murray Cumming <murrayc@murrayc.com>
133 Revert the COPYING.LESSER to COPYING rename.
135 Apparently both should be there if it is LGPL.
137 2012-01-03 Murray Cumming <murrayc@murrayc.com>
139 *View: Remove unused imports.
141 * src/main/java/org/glom/web/client/ui/DetailsView.java:
142 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
143 * src/main/java/org/glom/web/client/ui/ListView.java:
144 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
145 Remove unused imports, as suggested by Eclipse.
147 2012-01-02 Murray Cumming <murrayc@murrayc.com>
149 Move the *View::Presenter types, and some API into one base View.
151 * src/main/java/org/glom/web/client/ui/DetailsView.java:
152 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
153 * src/main/java/org/glom/web/client/ui/ListView.java:
154 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
155 Presenter, setPresenter() and clear() into a shared base interface,
156 to avoid the unnecessary duplicate Presenter types and to more clearly
157 show how the *Views share the same structure, even if they are not
158 used polymorphically.
160 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
161 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
163 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
164 * src/main/java/org/glom/web/client/activity/ListActivity.java:
165 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
167 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
170 Feel free to revert this if there is a good reason for the duplicate
173 2012-01-02 Murray Cumming <murrayc@murrayc.com>
175 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
177 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
178 a class member instead of a local variable in the method.
179 This lets us use it to get the view instances, for use in tests.
180 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
181 beforeOnlineGlom(): Test some more details of the initial view.
182 Again, this is not very useful.
184 To really test gwt-glom we will need to start a local postgresql
185 instance with local data, like the Glom tests in C++.
187 2012-01-02 Murray Cumming <murrayc@murrayc.com>
189 pom.xml: Mention the LGPL license.
191 * pom.xml: Add a licenses section.
192 * COPYING.LESSER: Move this to COPYING, which
193 previously contained the GPL. But gwt-glom is all LGPL.
195 2012-01-02 Murray Cumming <murrayc@murrayc.com>
197 Add project information to README and pom.xml.
199 * README: Add a brief description and mention some mvn
201 * pom.xml: This extra information shows up in mvn site
204 2011-01-02 Murray Cumming <murrayc@murrayc.com>
206 Use the latest java-libglom version.
208 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
210 2012-01-01 Murray Cumming <murrayc@murrayc.com>
212 GwtTestOnlineGlom: Test a little more.
214 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
215 protected rather than private, as suggested by the gwt-test-utils
217 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
218 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
219 Test the initial visibility of the panels.
221 However, this is not a very useful test.
222 And I wonder how we should generally test using this idea for an
223 activity/places app like ours where the real changes happen implicitly
224 based on the history token/URL.
226 2012-01-01 Murray Cumming <murrayc@murrayc.com>
228 Slight modification to *Mapper comments.
230 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
232 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
234 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
236 Remove comments mentioning GIN because they are just copied from
237 the example code and are apparently not helpful:
238 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
239 Also change the mention of a class that is only in the example code.
241 2012-01-01 Murray Cumming <murrayc@murrayc.com>
243 GwtTestOnlineGlom test: Minor changes.
245 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
246 Avoid the long qualified class name and modify the comment
247 because it is now obvious to me that the mocked class is the only
248 custom one created via GWT.create().
250 2012-01-01 Murray Cumming <murrayc@murrayc.com>
252 Tests: Added the beginnings of a test using gwt-test-utils.
254 * pom.xml: Add dependencies on gwt-test-utils and easymock.
255 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
256 which tells gwt-test-utils what class will be tested.
257 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
258 Add a simple (but empty) test case. One class, used by the OnlineGlom
259 class, is mocked so that it can be created. However, I am not sure
260 why only this class needs to be mocked.
262 Note that mockito seems more popular, and clearer, than easymock,
263 but I have not got that working yet. It might be a matter of the
266 This test is run during mvn integration-test.
268 2011-12-31 Murray Cumming <murrayc@murrayc.com>
270 Tests: Use junit4-style syntax instead of junit3-style.
272 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
273 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
274 * src/test/java/org/glom/web/shared/DataItemTest.java:
275 Use the @Test annotation rather than relying on the test*() prefix.
276 Also no longer implement TestCase, to avoid triggering support for
277 the junit3-way, which stops the annotations from working.
278 Change the imports from import junit.framework.* to
279 import org.junit.*, which is apparently the new way.
281 2011-12-31 Murray Cumming <murrayc@murrayc.com>
283 Added a test for ListPlace token parsing and creation.
285 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
286 This is much the same as DetailsPlaceTest.
288 I wonder how we could test the other parts of the *Place API.
290 2011-12-30 Murray Cumming <murrayc@murrayc.com>
292 DetailsPlace test: Also test getToken() and recreation via getPlace().
294 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
295 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
296 recreate it, testing the recreated DetailsPlace for the same parameter
299 2011-12-30 Murray Cumming <murrayc@murrayc.com>
301 Use the surefire-report plugin.
303 * pom.xml: This generates a HTML report about the tests in
304 target/site/surefire-report.html
305 when you do mvn surefire-report:report. It seems to be popular/normal.
307 2011-12-30 Murray Cumming <murrayc@murrayc.com>
309 Added a test for DetailsPlace.
311 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
312 Test the getPlace() token parsing.
314 2011-12-30 Murray Cumming <murrayc@murrayc.com>
316 Added a first unit test.
318 * pom.xml: Add a test goal, and a dependency on junit in that scope.
319 * src/test/java/org/glom/web/shared/DataItemTest.java:
320 This is a silly test but it is just to get things started. Note that
321 maven/junit finds the test because it looks in src/test by default.
323 2011-12-22 Ben Konrath <ben@bagu.org>
325 Change charsetName to "UTF-8" when replacing line breaks.
327 JavaScript requires the charsetName to be "UTF-8". CharsetName values
328 that work in Java (such as "UTF8") will not work when compiled to
331 This fixes a problem with multi-line details view fields that have hard
332 line breaks. The "License Text" field on this page demonstrates the
335 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
337 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
339 2011-12-22 Ben Konrath <ben@bagu.org>
341 Fix another bug with related list navigation.
343 I've tested all the navigation buttons in all of the related lists
344 so things should be good now.
346 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
348 2011-12-22 Ben Konrath <ben@bagu.org>
350 Fix a crasher when refreshing the list view with the default table.
352 This crash will also happen when loading the list view with the default
353 table from a link or bookmark.
355 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
356 to the main document selection page when the document id hasn't been
358 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
359 the main document selection page when the document id hasn't been
361 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
362 values for the details place when the document id hasn't been set.
363 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
364 values for the list place when the document id hasn't been set.
366 2011-12-21 Ben Konrath <ben@bagu.org>
368 Protect against NPE when glom.document.locale is not in config.
370 This patch protects against an NPE when glom.document.locale is not in
371 the config file. This NPE will also happen if glom.document.locale is
374 The patch also updates the error message to display the class name when
375 the getMessage() returns null. This was happening when the NPE was
376 thrown and I had "Configuration Error: null". If an NPE is encountered
377 with this patch, "Configuration Error: NullPointerException " will be
380 This commit closes this bug:
382 https://bugzilla.gnome.org/show_bug.cgi?id=666669
384 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
386 2011-12-20 Murray Cumming <murrayc@murrayc.com>
388 Rename onlineglom.properties to onlineglom.properties.sample.
390 * src/main/resources/onlineglom.properties: Rename to:
391 * src/main/resources/onlineglom.properties.sample:
392 * src/main/resources/README: And add this file explaining that people
393 should rename it back when deploying.
395 2011-12-20 Murray Cumming <murrayc@murrayc.com>
397 Allow choosing the translation in the .properties file.
399 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
400 init(): Read a glom.document.locale value from the configuration file
401 and call Glom's TransatableItem::set_current_locale() method.
402 * src/main/resources/onlineglom.properties: Add a commented-out
403 example of this new setting.
405 It would be better to add &lang=de_DE to the URL, but the current
406 libglom API does not allow us to do this easily. I am working on that.
408 2011-12-19 Murray Cumming <murrayc@murrayc.com>
410 Avoid a crash in parsing of token parameters.
412 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
413 ava: getTokenParams(): Do not crash if a parameter has a key but no
414 value, and ignore parameters with neither.
416 2011-12-17 Murray Cumming <murrayc@murayc.com>
418 History token building/handling: Improve use of token parameters.
420 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
421 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
422 and buildParamsToken(HashMap), for use by derived classes.
423 Make the separator private because it is no longer be needed.
424 * src/main/java/org/glom/web/client/place/DetailsPlace.java
425 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
426 instead of manual string concatenation.
427 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
428 of hardcoded indices and awkward splitting code.
429 * src/main/java/org/glom/web/client/place/ListPlace.java
430 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
431 instead of manual string concatenation.
432 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
433 of hardcoded indices and awkward splitting code.
434 This should fix bug #666420
436 2011-12-16 Murray Cumming <murrayc@murrayc.com>
438 Fix a Navgiation->Navigation typo in the code.
440 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
441 Rename processNavgiation() to processNavigation().
443 2011-12-16 Murray Cumming <murrayc@murrayc.com>
445 Fix a seperator->separator typo in the code.
447 * src/main/java/org/glom/web/client/place/DetailsPlace.java
448 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
449 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
452 2011-12-15 Ben Konrath <ben@bagu.org>
454 Cleanup some comments.
456 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
458 2011-12-14 Ben Konrath <ben@bagu.org>
460 Replace \n with <br/> for multiline text in the details view.
462 Vertical scrollbars are added when needed as well.
464 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
466 2011-12-14 Ben Konrath <ben@bagu.org>
468 Specify the font for document selection links.
470 * src/main/webapp/style.css:
472 2011-12-14 Ben Konrath <ben@bagu.org>
474 Fix bouncy CellTable while paging.
476 This doesn't currently work with related list tables in unselected
479 * src/main/java/org/glom/web/client/ui/list/ListTable.java
481 2011-12-14 Ben Konrath <ben@bagu.org>
483 Revamp the appearance of the document selection page.
485 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
486 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
487 * src/main/webapp/style.css:
489 2011-12-13 Ben Konrath <ben@bagu.org>
491 Set navigation button column to the smallest size possible.
493 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
495 2011-12-13 Ben Konrath <ben@bagu.org>
497 Change OpenButton nomenclature to NavigationButton.
499 Using NavigtionButton makes things more generic. Classes, methods and
500 variables have been changed.
502 This is a rename-only refactor.
504 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
505 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
506 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
507 Renamed from OpenButtonCell.
508 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
509 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
510 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
512 2011-12-12 Ben Konrath <ben@bagu.org>
514 Remove unnecessary String argument in RelatedListTable and ListViewTable.
516 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
517 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
518 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
519 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
521 2011-12-12 Ben Konrath <ben@bagu.org>
523 Update variable names and comments.
525 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
526 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
528 2011-12-12 Ben Konrath <ben@bagu.org>
530 Properly initialize numNonEmptyRows variable to zero.
532 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
533 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
535 2011-12-05 Ben Konrath <ben@bagu.org>
537 Add latest mockup with HTML tables.
539 Features of this mockup:
541 -> HTML table for flowtable
542 -> HTML table for flowtable column
543 -> Example of how related lists would look
544 -> Not using text entries for data items
546 The current version of Online Glom doesn't use HTML tables for the
549 This mockup has been sent to the glom-devel mailing list but it's good
550 to have it here as well.
552 * mockups/details-view-html-tables.html:
554 2011-12-05 Ben Konrath <ben@bagu.org>
556 Remove unnecessary getPrimaryKeyField() method.
558 getPrimaryKeyFieldForTable(String) has been renamed to
559 getPrimaryKeyField(String).
561 * src/main/java/org/glom/web/server/database/DBAccess.java:
562 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
563 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
565 2011-12-05 Ben Konrath <ben@bagu.org>
567 Add string representation of TypedDataItem value to conversion error message.
569 * src/main/java/org/glom/web/server/Utils.java: Logging the error
570 message was extracted into its own method to avoid duplication.
572 2011-12-05 Ben Konrath <ben@bagu.org>
574 Add type checking to navigation primary key value creation.
576 Create navigation primary key only if the expected type from the Glom
577 document matches the type returned by the SQL query.
579 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
581 2011-12-05 Ben Konrath <ben@bagu.org>
583 Rename a couple of variables in RelatedListNavigation.
585 This is a rename-only refactor.
587 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
589 2011-12-05 Ben Konrath <ben@bagu.org>
591 Move getListLayoutGroup() into getListViewLayoutGroup().
593 This removes getListLayoutGroup(). It was only being called by
594 getListViewLayoutGroup().
596 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
598 2011-12-05 Ben Konrath <ben@bagu.org>
600 Remove check for LayoutItem_Portal in list table method.
602 This check is no longer necessary because the method isn't being used
603 to create the LayoutItemPortal DTO.
605 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
607 2011-12-05 Ben Konrath <ben@bagu.org>
609 Properly support related list navigation.
611 Navigation from the "Repository Analyzer -> Package Scans ->
612 Dependencies" related table wasn't working because the primary key for
613 related tables wasn't being set properly. This commit fixes the
616 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
617 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
618 doesn't set the primary key properly for related list tables.
619 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
620 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
621 useful for getting the primary key for list view tables and for related
623 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
624 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
625 Move code to set the primary key for the table from the abstract
626 ListDBAccess class to ListViewDBAccess as it's only correct for list
628 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
629 Properly add primary key to related list tables.
631 2011-12-02 Ben Konrath <ben@bagu.org>
633 Properly set the horizontal alignment of fields.
635 This fix is for both the list tables and the details view.
637 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
638 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
639 to set the horizontal alignment of fields.
641 2011-12-02 Ben Konrath <ben@bagu.org>
643 Display currency codes in the details view.
645 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
647 2011-12-02 Ben Konrath <ben@bagu.org>
649 Avoid duplicate JNI call.
651 JNI is not as efficient as pure Java and this is an easy (and small)
654 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
655 Use previously retrieved value for whereClauseToTableName instead of
658 2011-12-02 Ben Konrath <ben@bagu.org>
660 Rename a couple of variables in RelatedListNavigation.
662 This is a rename-only refactor.
664 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
666 2011-12-02 Ben Konrath <ben@bagu.org>
668 Indicate clearly that a mismatched primary key type is a bug.
670 * src/main/java/org/glom/web/server/Utils.java: Change log level from
671 warning to error. Add 'This is a bug.' to message.
673 2011-12-02 Ben Konrath <ben@bagu.org>
675 Update / fix some comments.
677 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
679 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
681 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
682 Fix comments. Add some TODOs.
684 2011-12-02 Ben Konrath <ben@bagu.org>
686 Enable navigation to details view with string primary key from related list.
688 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
689 Create a text primary key value when return type of result is
690 java.sql.Types.VARCHAR.
692 2011-12-02 Ben Konrath <ben@bagu.org>
694 Use checkboxes for booleans in the details view.
696 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
698 2011-12-01 Ben Konrath <ben@bagu.org>
700 Improve performance of related list height calculation.
702 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
703 Put code to calculate the expected height in a static initializer so
704 that that it's only called once.
706 2011-12-01 Ben Konrath <ben@bagu.org>
708 Show related list tables in notebooks (again).
710 Calculate the height of the related list tables so the Notebook can be
711 set the correct height. The height of the related list table is also needed by
712 FlowTable to be able decide how to create the layout.
714 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
715 and set the Portal height based on the height of the related list
716 table and the Portal container.
717 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
718 Add method to calculate the height of the related list tables.
719 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
720 * src/main/webapp/style.css: Add css class for Pager. This is needed to
721 calculate the height of the Pager widget.
723 2011-12-01 Ben Konrath <ben@bagu.org>
725 Use CellTable API for table property instead of setting style on Element.
727 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
729 2011-12-01 Ben Konrath <ben@bagu.org>
731 Make ListViewTable and RelatedListTable a consistent height.
733 The tables are now a consistent height regardless of the contents of
734 the table. A hidden button is added to empty rows to ensure that the
735 height of these rows will match the height of rows with data.
737 A navigation button column is now added to every table. The width of
738 the navigation column is set to 0px when a RelatedListTable shouldn't
739 have navigation buttons. This maintains the a consistent row height in
740 tables that don't show the navigation buttons.
742 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
743 navigation column when not needed.
744 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
745 arguments for navigation button to constructor of ListViewTable.
746 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
747 hidden button for empty data rows.
748 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
749 arguments for navigation button to constructor.
750 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
751 create navigation buttons. Add hideNavigationButtons() method.
752 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
753 arguments for navigation button to constructor.
755 2011-12-01 Ben Konrath <ben@bagu.org>
757 Use 'visibility: hidden' in Utils.getWidgetHeight().
759 This is better choice because hidden elements are invisible, don't
760 respond to events and are not part of the tab order. They will,
761 however, take up space which is required to be able to calculate the
762 height of the widget.
764 * src/main/java/org/glom/web/client/Utils.java:
766 2011-12-01 Ben Konrath <ben@bagu.org>
768 Use Utils.getWidgetHeight() in FlowTable.
770 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
772 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
774 2011-12-01 Ben Konrath <ben@bagu.org>
776 Put the details css class name on the correct table column.
778 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
780 2011-11-30 Ben Konrath <ben@bagu.org>
782 Update for java-libglom API change.
784 The getters and setters on FieldFormatting and NumericFormat were
785 changed to remove the 'M'.
787 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
789 2011-11-29 Ben Konrath <ben@bagu.org>
791 Only allow RelatedListTables in Portals.
793 * src/main/java/org/glom/web/client/ui/details/Portal.java:
795 2011-11-29 Ben Konrath <ben@bagu.org>
797 Only create a contents panel for Portals when title is being set.
799 * src/main/java/org/glom/web/client/ui/details/Portal.java:
801 2011-11-29 Ben Konrath <ben@bagu.org>
803 Set TabLayoutPanel height based on calculated height its widgets.
805 This is a potential fix for this bug:
807 https://bugzilla.gnome.org/show_bug.cgi?id=665133
809 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
811 2011-11-29 Ben Konrath <ben@bagu.org>
813 Align details field labels and data with the Open buttons.
815 * src/main/webapp/style.css:
817 2011-11-29 Ben Konrath <ben@bagu.org>
819 Remove unnecessary <div> in the Notebook widget.
821 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
822 method to get container FlowPanel (<div>).
823 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
824 initWidget() method directly on the TabLayoutPanel widget instead of
825 Group's container widget.
827 2011-11-29 Ben Konrath <ben@bagu.org>
829 Don't add group titles for Portals in Notebooks.
831 This reverts the previous patch and fixes a bug I introduced with
832 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
834 * src/main/java/org/glom/web/client/ui/details/Group.java:
835 * src/main/java/org/glom/web/client/ui/details/Portal.java:
837 2011-11-28 Ben Konrath <ben@bagu.org>
839 Remove unused boolean argument in Portal constructor.
843 * src/main/java/org/glom/web/client/ui/details/Group.java:
844 * src/main/java/org/glom/web/client/ui/details/Portal.java:
846 2011-11-28 Ben Konrath <ben@bagu.org>
848 Remove hack for glom 1.18 style glom files.
850 * src/main/java/org/glom/web/client/ui/details/Group.java:
851 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
852 * src/main/java/org/glom/web/client/ui/details/Portal.java:
854 2011-11-28 Ben Konrath <ben@bagu.org>
856 Use Gda Value version of primary key to log result too large error.
858 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
860 2011-11-28 Ben Konrath <ben@bagu.org>
862 Don't use TypedDataItem.getText() for Unknown types from the URL.
864 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
865 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
866 instead of getText().
867 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
868 String field and getUnknown() method.
870 2011-11-28 Ben Konrath <ben@bagu.org>
872 Log an error message when the java-libglom .so is not present.
874 The error message was being set in the exception but not logged.
876 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
878 2011-11-28 Ben Konrath <ben@bagu.org>
880 Ignore LayoutItem_CalendarPortals.
882 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
883 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
885 2011-11-28 Ben Konrath <ben@bagu.org>
887 Extract method for creating the LayoutItemPortal DTO.
889 Just breaking the code up into smaller chunks.
891 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
893 2011-11-28 Ben Konrath <ben@bagu.org>
897 This should have been added with the refactor. Oops!
899 * src/main/java/org/glom/web/shared/TypedDataItem.java:
901 2011-11-28 Ben Konrath <ben@bagu.org>
903 Create primary key value from URL string using type from Glom document.
905 See this bug, comments 19 - 25:
907 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
909 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
910 create a TypeDataItem for the primary key here when loading from a
911 URL. Show the same string for the primary key value as was received
912 from the URL string (when loading from a URL).
913 * src/main/java/org/glom/web/server/Utils.java: Update method for
914 creating the Gda Value from the TypeDataItem to properly deal with
915 creating a Gda Value based on the Glom document type for the primary
916 key value string when loading from a URL.
917 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
918 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
919 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
920 Update for changed method name.
922 2011-11-27 Ben Konrath <ben@bagu.org>
924 Rename PrimaryKeyItem to TypedDataItem.
926 The name PrimaryKeyItem suggests what the class should be used for.
927 TypedDataItem is a neutral name that describes the class better.
929 This is a rename-only refactor.
931 * src/main/java/org/glom/web/client/OnlineGlomService.java:
932 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
933 * src/main/java/org/glom/web/client/Utils.java:
934 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
935 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
936 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
937 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
938 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
939 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
940 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
941 * src/main/java/org/glom/web/server/Utils.java:
942 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
943 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
944 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
945 * src/main/java/org/glom/web/shared/NavigationRecord.java:
947 2011-11-25 Ben Konrath <ben@bagu.org>
949 Improve Gda Value conversion from PrimaryKeyItem.
951 The value from the PrimaryKeyItem is only used if its type match the
952 type from the glom document.
954 * src/main/java/org/glom/web/server/Utils.java:
956 2011-11-25 Ben Konrath <ben@bagu.org>
958 Manually check if the java-liblgom .so is visible to the JVM.
960 It seems that Tomcat has problems when a static initializer throws an
961 exception. This check is done before the first method call into
962 java-libglom so that execution doesn't continue if the .so is not
965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
967 2011-11-25 Ben Konrath <ben@bagu.org>
969 Improve browser configuration error messages.
973 https://bugzilla.gnome.org/show_bug.cgi?id=662792
975 * src/main/java/org/glom/web/client/OnlineGlomService.java:
976 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
977 getConfigurationErrorMessage() method.
978 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
979 Get and display a specific configuration error message when no Glom
981 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
982 Implement getConfigurationErrorMessage() method. Surround configuration
983 code in the init() method with a try/catch block. This allows the
984 errors to be caught while keeping the servlet available to retrieve the
985 configuration error message.
987 2011-11-25 Ben Konrath <ben@bagu.org>
989 Don't use Strings to hold primary key values.
991 The primary key values are now held in a new data object
992 (PrimaryKeyItem) that holds type information and the primary key value
993 using the correct type.
995 * src/main/java/org/glom/web/client/OnlineGlomService.java:
996 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
997 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
998 PrimaryKeyItem instead of String to hold the primary key value.
999 * src/main/java/org/glom/web/client/Utils.java: Remove
1000 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
1001 PrimaryKeyItem based on the GlomFieldType and the DataItem.
1002 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
1003 PrimaryKeyItem instead of String to hold the primary key value. Load
1004 document selection page when the documentID has not been set correctly.
1005 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
1006 DetailsPlace -> URL and URL -> DetailsPlace conversion with
1008 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1009 Return empty string for URL instead of "null".
1010 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1011 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1012 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1013 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1014 PrimaryKeyItem instead of String to hold primary key values.
1015 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
1016 PrimaryKeyValue to a Gda Value.
1017 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1018 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1019 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1020 Replace temporary database access code that uses the PrimaryKeyValue to
1021 Gda Value conversion.
1022 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
1023 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
1024 PrimaryKeyItem instead of String.
1025 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
1026 hold primary key values.
1028 2011-11-24 Ben Konrath <ben@bagu.org>
1030 Use newly added java-libglom API to create queries.
1032 This isn't finished. I still need to stop using Strings for primary key
1033 values in the client code.
1035 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
1036 libglom to use fake connections so that retrieving the query string will
1038 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1039 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1040 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1041 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1042 Use the newly added libglom sql methods and classes to create the
1043 query. Add temporary hack to convert primary value strings to Gda
1046 2011-11-23 Ben Konrath <ben@bagu.org>
1048 Don't explicitly set the height of Portals.
1050 See comments 6 - 10 of this bug for details:
1052 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
1054 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1056 2011-11-23 Ben Konrath <ben@bagu.org>
1058 Use an HTML table instead of CSS for the FlowTable layout.
1060 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
1061 GWT's FlexTable to implement the FlowTable.
1062 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
1064 2011-11-18 Ben Konrath <ben@bagu.org>
1066 Add boolean example to HTML table mockup.
1068 * mockups/details-view-html-tables-text-entries.html:
1070 2011-11-17 Ben Konrath <ben@bagu.org>
1072 Ensure the pager buttons are always visible for related lists.
1074 To accomplish this, I've turned off text wrapping in the list view and
1075 related list tables for both the header and data text. The related list
1076 table now has a fixed layout so the it doesn't overflow its container.
1077 This is required to ensure that the cell text is clipped when it
1078 overflows the cell and an ellipsis is added to the right side of the
1079 cell when text is clipped.
1081 A fixed table layout for the related list table in the details view
1082 seems what we want for the details view anyway, so the side-effect is
1085 The ellipsis will only be displayed in Firefox >= 7.
1089 https://bugzilla.gnome.org/show_bug.cgi?id=662930
1091 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
1092 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
1093 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
1095 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1096 Set the 'table-layout: fixed' CSS property to the related list table.
1097 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
1098 'white-space: nowrap;' CSS property on both the list view and the
1099 related list tables.
1101 2011-11-16 Ben Konrath <ben@bagu.org>
1103 Rework the fix for empty notebook tab labels.
1105 Setting the empty group titles with its name caused problems for the
1106 details layout. Instead of using libglom's
1107 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
1108 to the client when the title is empty. This allows the Notebook to use
1109 the name when the title is empty without affecting anything else.
1111 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1112 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1114 2011-11-16 Ben Konrath <ben@bagu.org>
1116 Set group titles with name when title is empty.
1118 This fixes a problem with an empty notebook tab label in the Lesson
1119 Planner document. The forth tab in the notebook should be "Internet":
1121 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
1123 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1124 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
1127 2011-11-16 Ben Konrath <ben@bagu.org>
1129 Remove whitespace from the configured username properties.
1131 This assumes that usernames won't have whitespace at the beginning
1132 or end. But I think this is a reasonable assumption.
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1135 String.trim() to remove the whitespace from the username properties.
1137 2011-11-15 Ben Konrath <ben@bagu.org>
1139 Add details view mockup with HTML tables and text entries.
1141 This is from the attachment on this bug:
1143 https://bugzilla.gnome.org/show_bug.cgi?id=663109
1145 * mockups/details-view-html-tables-text-entries.html:
1147 2011-11-15 Ben Konrath <ben@bagu.org>
1149 Add space between the columns of the flow table.
1153 https://bugzilla.gnome.org/show_bug.cgi?id=662918
1155 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
1156 space between columns in the flow table.
1158 2011-11-15 Ben Konrath <ben@bagu.org>
1160 Add backup files to the .gitignore.
1162 * .gitignore: Ignore files that end with ~.
1164 2011-11-09 Ben Konrath <ben@bagu.org>
1166 Use latest release of gwt-log.
1168 Gwt-log releases are now being submitted to the maven central
1169 repository so manual installation of the jar is no longer required.
1171 * pom.xml: Update version and groupId of gwt-log dependency.
1173 2011-10-31 Ben Konrath <ben@bagu.org>
1175 Don't use GWT numeric formatting to override the glom currency formatting.
1177 Currencies are now displayed like they are in Glom. See this bug:
1179 https://bugzilla.gnome.org/show_bug.cgi?id=646216
1181 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
1183 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
1184 currency code to constructor and set it when the cell is rendered.
1185 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1186 currency code to the constructor of the NumericCell.
1188 2011-10-27 Ben Konrath <ben@bagu.org>
1190 Require the latest release of java-libglom (1.17.4).
1194 2011-10-26 Ben Konrath <ben@bagu.org>
1196 Add style to Notebook that matches current theme.
1198 It's not the best style in the world but it's better than the default.
1200 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
1201 padding at the bottom of the child widgets.
1202 * src/main/webapp/style.css: Add style for the Notebook.
1204 2011-10-26 Ben Konrath <ben@bagu.org>
1206 Move servlet initialization code to overridden init method.
1208 This is half of the solution to getting proper error messages
1209 displayed when configuration errors occur. Here's the relevant bug:
1211 https://bugzilla.gnome.org/show_bug.cgi?id=662792
1213 The rest of the solution involves surrounding the init method with a
1214 try/catch block and setting a global variable with the error /
1215 exception. A new async method should be created to retrieve and display
1216 the error message / exception.
1218 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
1219 code from constructor to init method adding exceptions as needed.
1221 2011-10-26 Ben Konrath <ben@bagu.org>
1223 Add script to monitor and restart tomcat if required.
1225 * utils/check-and-recover-tomcat.py: New file.
1227 2011-10-26 Ben Konrath <ben@bagu.org>
1229 Display the correct number of data items in the pager.
1233 https://bugzilla.gnome.org/show_bug.cgi?id=661441
1235 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1236 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1237 The implementation is the same for both tables: Keep track of the
1238 number of non-empty rows and fire and RowCountChangeEvent after the data has
1240 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
1241 custom Pager class that subclasses SimplePager to handle displaying
1242 the correct number when empty rows have been added.
1244 2011-10-26 Ben Konrath <ben@bagu.org>
1246 Correct error in previous commit.
1248 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
1249 eventBus parameter from listView.setCellTable().
1251 2011-10-26 Ben Konrath <ben@bagu.org>
1253 Fix error in TODO comment.
1255 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1257 2011-10-24 Ben Konrath <ben@bagu.org>
1259 Create Notebook widgets to the details view.
1261 This isn't finished just yet - I still need to create a reasonable
1262 style to match the current theme.
1264 * src/main/java/org/glom/web/client/Utils.java: Add method for
1265 calculating the height of a widget. This is used in the Notebook class.
1266 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1267 new constructor method in Group.
1268 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
1269 method for creating child widget that can be used by subclasses
1270 like Notebook. New constructor that allows disabling the group
1271 titles - Notebooks don't set a group title for their child groups.
1272 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
1273 to make Notebooks using GWT's TabLayoutPanel.
1274 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
1275 constructor that allows disabling the group titles.
1276 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
1277 LayoutItemNotebook DTO.
1278 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
1279 DTO for Notebooks. It's just an empty class for now but we might need
1280 it to transfer some specific information in the future.
1282 2011-10-21 Ben Konrath <ben@bagu.org>
1284 Add navigation buttons to related list tables.
1286 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1287 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1288 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
1289 method getSuitableRecordToViewDetails() for getting the table name
1290 and primary key value for related list navigation buttons.
1291 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1292 private cell renderer class to get the navigation information for
1293 related list tables from the server. Extract the navigation
1294 processing code from the details cell navigation and use it for the
1295 related list navigation as well.
1296 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
1297 cell renderer class for the details open buttons. This was needed
1298 because the related list navigation buttons and the list view
1299 navigation buttons need to react differently when clicked.
1300 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
1301 the onEnterKeyDown() method because it's now overriden in the
1302 subclasses that are specific to the related list tables and the list
1304 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
1305 the vertical size a little because the buttons add a bit of vertical
1306 space to table. This is not a perfect solution because the vertical
1307 size of with table fewer than 5 rows will be a little smaller.
1308 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
1309 changes in how navigation buttons are handled.
1310 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
1311 getSuitableRecordToViewDetails() using the new RelatedListNavigation
1312 database access object.
1313 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
1314 to find the portal for a given relationship name from
1315 RelatedListDBAccess. Add method to find a primary key field for a
1317 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1318 Move code to find the portal for a given relationship name to
1320 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1321 New file: database access object for getting the related list
1322 navigation information (the table name and the primary key value).
1323 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
1324 DTO for transferring a table name to navigate to and a primary key
1326 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1327 boolean and getter/setter to specifies if the related list should add
1330 2011-10-24 Murray Cumming <murrayc@murrayc.com>
1332 Use the master branch of java-libglom
1334 * pom.xml: Depend on java-libglom 1.19 instead.
1336 This is the master branch. See also the libglom-1-18 branch.
1338 2011-10-11 Ben Konrath <ben@bagu.org>
1340 Enable the open navigation button when the data has been set.
1342 This avoids having active buttons that don't do anything when the data
1345 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1347 2011-10-11 Ben Konrath <ben@bagu.org>
1349 Use IsWidget interface for FlowTableItem.
1351 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
1352 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
1354 2011-10-11 Ben Konrath <ben@bagu.org>
1356 Remove GWT styling from open button in details view.
1358 There are still some issues with how the details cell is arranged but
1359 this should be made to match Glom 1.20. I'm going to leave fixing this
1360 until I have Glom 1.20 up and running.
1362 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
1363 style name on open button.
1364 * src/main/webapp/style.css: Move and edit details-navigation class.
1365 Re-arrange some classes to make them appear in the same order as the
1368 2011-10-07 Ben Konrath <ben@bagu.org>
1370 Update to GWT 2.4.0.
1372 * .gitignore: Ignore new cache directory.
1373 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
1374 * pom.xml: Change GWT and maven plugin to 2.4.0.
1375 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
1377 * src/main/java/org/glom/web/client/ClientFactory.java:
1378 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1379 * src/main/java/org/glom/web/client/OnlineGlom.java:
1380 Update source for API changes.
1381 * utils/build-onlineglom-war.sh: Remove cache directory before the
1384 2011-10-07 Ben Konrath <ben@bagu.org>
1386 Add navigation buttons in the details view.
1388 This isn't finished but I thought I'd commit what I have as it's a
1389 pretty good start. I still need to:
1391 1. Change the style so that it fits better into the current theme
1392 2. Adjust the details cell to expand as much as possible.
1394 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1395 click handlers to navigation buttons in the DetailsCells. Create a
1396 refreshData() method to get just the data from the server without the
1398 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1399 Update the tableSelector and browser title when the table name
1400 changes without using the tableSelector.
1401 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1402 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1403 getDetailsCells() to getCells(). Update variable names.
1404 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1405 method to set click handler on navigation button. Rename a few
1406 variables. Add navigation buttons where needed.
1407 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1408 variables and methods.
1409 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1410 navigation boolean and navigation table as required in the
1411 LayoutItemField DTO.
1412 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1413 variables for navigation along with getter/setter methods.
1415 2011-10-07 Ben Konrath <ben@bagu.org>
1417 Rename Field to DetailsCell.
1419 This is a refactor-only commit. No functionality has been added or
1422 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1423 Update variable and method names.
1424 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1425 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1426 variable and method names.
1427 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1429 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1430 variable and method names.
1432 2011-10-07 Ben Konrath <ben@bagu.org>
1434 Create separate methods for layout and data the details view.
1436 This is a refactor-only commit. No functionality has been added or
1439 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1440 private methods: setData(), createLayout().
1442 2011-10-07 Ben Konrath <ben@bagu.org>
1444 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1446 This is part of a change to get navigation buttons in the details view
1447 but it should have been done this way from the start.
1449 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1450 for method name change in TableSelectionView.
1451 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1452 Create TableChangeEvent and set the browser title using the
1453 TableSelectionView API.
1454 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1455 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1456 Change getSelectedTable() to getSelectedTableName(). Add
1457 getSelectedTableTitle().
1459 2011-10-07 Ben Konrath <ben@bagu.org>
1461 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1463 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1465 2011-10-07 Ben Konrath <ben@bagu.org>
1467 Update TableChangeEvent to use newTableName naming convention.
1469 This makes the class more consistent with GWT naming conventions.
1471 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1472 Update for method name change in TableChangeEvent.
1473 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1474 for method name change in TableChangeEvent.
1475 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1476 newTableName variable and getter method. Make toDebugString()
1479 2011-09-30 Ben Konrath <ben@bagu.org>
1481 Disable the pager in the list tables when the data row count is less than the minimum.
1483 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1484 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1486 2011-09-30 Ben Konrath <ben@bagu.org>
1488 Add empty rows to the end of related list and list view tables.
1490 I also extracted the cell rendering classes from the ListTable because
1491 the code was becoming a little crazy with all the anonymous inner
1492 classes. My plan is to use these cell rendering classes in the details
1493 view as well so this refactor will be needed for that change.
1495 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1496 set the row count in related list tables if the data has more rows
1497 than the minimum number of rows visible.
1498 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1499 row count in list view tables if the data has more rows than the
1500 minimum number of rows visible.
1501 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1502 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1504 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1505 for rendering TYPE_NUMERIC cells. The code was extracted from the
1507 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1508 class for rendering cells with buttons in list views. The code was
1509 extracted from the ListTable class.
1510 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1511 for rendering TYPE_TEXT cells. The code was extracted from the
1513 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1514 Add empty rows to the end of the data if required. Implement
1515 ListTable.getMinNumVisibleRows().
1516 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1517 cell renderer code to public classes. Return null in
1518 Column.getValue() for empty rows. Add new abstract method:
1519 getMinNumVisibleRows(). Move code to set the row count of the list view
1520 table to ListViewImpl.
1521 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1522 empty rows to the end of the data if required. Implement
1523 ListTable.getMinNumVisibleRows().
1526 2011-09-27 Ben Konrath <ben@bagu.org>
1528 Use GWT.log for client-side debugging statements.
1530 These are optimized out when deployed so I should have used this method
1531 in the first place. These statements will eventually be replaced with some sort
1532 of notification in the browser.
1534 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1535 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1536 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1537 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1538 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1540 2011-09-27 Ben Konrath <ben@bagu.org>
1542 Put tableselector on the right, back to list link on right.
1544 The idea is that the table selector is acting like a label for the
1545 currently displayed table so it should be placed below the document title. This
1546 puts the table title in a similar position to where it is in Glom.
1548 * mockups/details-contacts.html:
1549 * mockups/details-projects.html:
1550 * mockups/listview-contacts.html:
1551 * mockups/listview-projects.html:
1552 * mockups/style.css:
1553 Update mockups to match how the interfaces currently look.
1554 * src/main/webapp/style.css: Swap positions of backlink with the table
1555 selector. Add some space on the left side of the table selector to
1556 line things up with the document title.
1558 2011-09-27 Ben Konrath <ben@bagu.org>
1560 Add field colouring to details view.
1562 This change re-works how field colouring works. The colour formatting
1563 information is now set to the client with the layout information instead of
1564 with the data. This eliminates the need to send the same colour strings for
1565 data in list view column when colour information is set.
1567 In order to set an alternate colour for negative numeric values, the
1568 number is now sent to client and formatted with the GWT NumberFormat class.
1570 This change also fixes:
1572 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1574 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1575 internationalization framework which is needed for client side numeric
1577 * src/main/java/org/glom/web/client/Utils.java: New file for some
1578 client static utility methods.
1579 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1580 the DataItem object to the Field class. Use a utility method to
1581 create the foreignKeyValue string.
1582 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1583 alignment and text colours in the constructor. Add setData(DataItem)
1584 method. Remove setText(String) method.
1585 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1586 colour information to GlomTextCell. Create and use GlomNumberCell for
1587 rendering numbers. Use utility method to get the string for the
1588 primary key of the key provider. Re-work how the horizontal alignment
1590 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1591 formatting to layout information. Methods for converting the libglom
1592 formatting information were moved from DBAccess.
1593 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1594 numeric formatting (it's now done on the client side). Don't set text
1595 colours in DataItem. Move libglom formatting conversion methods to
1597 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1598 getters/setters for text colour information.
1599 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1600 for transferring the libglom NumericFormat information to the client.
1601 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1602 and getters/setters for: GlomNumericFormat, background colour and
1603 foreground colour strings.
1605 2011-09-26 Ben Konrath <ben@bagu.org>
1607 Simplify code that iterates through the LayoutGroup.
1609 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1611 2011-09-26 Ben Konrath <ben@bagu.org>
1613 Accept Eclipse formatting for OnlineGlomServiceAsync.
1615 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1617 2011-09-26 Ben Konrath <ben@bagu.org>
1619 Don't use the ListDBAccess classes to get the primary key layout information.
1621 This was causing a bug where the wrong index for the hidden primary key
1622 was being sent to the client.
1624 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1625 primary key while creating the LayoutGroup DTO. Create a
1626 LayoutItemField DTO for hidden primary keys. Don't use the
1627 RelatedListDBAccess because it was only used for getting the primary
1629 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1630 access modifier from public to protected for getPrimaryKeyField() and
1631 getPrimaryKeyLayoutItemField().
1632 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1633 abstract method getExpectedResultSize() because RelatedListDBAccess
1634 doesn't have enough info to implement it.
1635 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1636 Remove @Override for getExpectedResultSize().
1637 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1638 Remove method getExpectedResultSize().
1640 2011-09-23 Ben Konrath <ben@bagu.org>
1642 Log which layout (list or details) the ignored item is from.
1644 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1646 2011-09-23 Ben Konrath <ben@bagu.org>
1648 Remove annotations that turn off code formatting in DataItem.
1650 * src/main/java/org/glom/web/shared/DataItem.java:
1652 2011-09-23 Ben Konrath <ben@bagu.org>
1654 Rename GlomField to DataItem and update associated methods.
1656 This is a rename-only refactor. No functionality has been added or
1659 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1660 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1661 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1662 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1663 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1664 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1665 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1666 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1667 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1668 * src/main/java/org/glom/web/server/database/DBAccess.java:
1669 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1670 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1671 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1672 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1673 * src/main/java/org/glom/web/shared/DataItem.java:
1674 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1675 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1677 2011-09-23 Ben Konrath <ben@bagu.org>
1679 Rename GlomDocument to DocumentInfo and update associated methods.
1681 This is a rename-only refactor. No functionality has been added or
1684 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1685 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1686 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1687 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1688 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1690 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1692 2011-09-20 Ben Konrath <ben@bagu.org>
1694 Require java-libglom 1.17.3.
1696 This picks up the fix for the seg fault problem with the Scenes table
1697 in the Openismus Film Manager example.
1701 2011-09-20 Ben Konrath <ben@bagu.org>
1703 Change the way sort clause is added for primary key when no sort clause is requested.
1705 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1706 before the sort clause is created. When a sort clause is not requested, the
1707 sort clause is created by finding the primary key in the LayoutFieldVector
1710 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1712 2011-09-20 Ben Konrath <ben@bagu.org>
1714 Log error message if no documents are found in the configured directory.
1716 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1717 Extract the glom file extension string to a private static final class
1718 variable (mostly as syntactic sugar). Accept a minor formatting change.
1719 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1720 the example glom.document.directory configuration property to make it
1721 more clear that it can any directory, not just the home directory.
1723 2011-09-18 Ben Konrath <ben@bagu.org>
1725 Add related lists to details view.
1727 The related list table has support for paging and sorting just like the
1728 table in the list view.
1730 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1731 SQL queries for the related list tables.
1732 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1733 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1734 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1735 Rename getList methods to getListView and add comments. Remove
1736 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1737 it being unused. Add methods: getDetailsLayoutAndData(),
1738 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1739 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1740 Create the layout and set the data for the fields in one async call
1741 instead of two. Create related lists where appropriate.
1742 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1743 for method name changes in OnlineGlomService.
1744 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1745 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1746 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1748 * src/main/java/org/glom/web/client/ui/ListView.java:
1749 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1750 tableName from setCellTable(). Create a ListViewTable instead of
1752 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1753 represent a data field in the details view.
1754 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1755 from addDetailsCell() to Field class. Keep track of the Fields and
1756 Portals in the details view.
1757 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1758 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1759 and add a method to get it. Add method to set the contents of the
1761 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1762 New class for related list tables. This class has the data provider
1763 for the related list table.
1764 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1765 abstract class which is the base class for the ListViewTable and the
1767 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1768 New class for list view tables. This class has the data provider for
1769 the list view table.
1770 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1771 methods for related list tables. Add more information to the
1772 LayoutItemField and LayoutItemPortal DTOs.
1773 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1774 Remove debugging print statement.
1775 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1776 Remove debugging print statements. Add primary key field to SQL count
1778 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1779 Remove unnecessary LayoutFieldVector parameter from
1780 getResultSizeOfSQLQuery() method.
1781 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1782 New class for related list table database access.
1783 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1784 class that is a wrapper DTO for details view layout and data.
1785 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1786 new 'fromField' string to this DTO.
1787 * src/main/webapp/style.css: Remove bottom margin and override top
1790 2011-09-15 Ben Konrath <ben@bagu.org>
1792 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1794 This sets things up to make it easier to add the data retrieval for
1795 related lists (portals). No user noticeable changes were made with
1798 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1799 class has the code to retrieve the layouts and access the
1800 database using the new database helper classes.
1801 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1802 Most of the functionality has been removed from this class. This
1803 class now represents the public interface for the client side
1804 code. It also deals with configuring the servlet and cleaning
1805 things up when the servlet is stopped.
1806 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1807 of static methods into this utility class.
1808 * src/main/java/org/glom/web/server/database/DBAccess.java:
1809 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1810 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1811 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1812 These classes have the database retrieval code. The class hierarchy
1813 has been setup to make it easy to reuse code for similar
1816 2011-09-06 Ben Konrath <ben@bagu.org>
1818 Create separate classes for list table code and the data provider.
1820 As part of this refactor, I also split up the code a bit to make it
1823 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1824 table code to two new classes (below).
1825 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1826 with code from ListViewImpl.
1827 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1828 New file with code from ListViewImpl.
1830 2011-09-06 Ben Konrath <ben@bagu.org>
1832 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1834 This fixes the LayoutItemPortal DTO to match the libglom layout object
1837 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1839 2011-09-01 Ben Konrath <ben@bagu.org>
1841 Set title of Portals in the Details View.
1843 * pom.xml: Bump required version of java-libglom to 1.17.1.
1844 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1845 widget creation to its own class. Add comments to constructor.
1846 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1847 The code is mostly from the Group class with the title now set.
1848 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1849 title of Portal. Update some comments. Fix some code formatting.
1851 2011-09-01 Ben Konrath <ben@bagu.org>
1853 Remove TODO comment for the flow table column width.
1855 The flow table column width is working correctly and doesn't need to be
1856 changed. See this mailing list post for more info:
1858 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1860 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1862 2011-08-27 Ben Konrath <ben@bagu.org>
1864 Add document title (database name) to top of the browser page.
1866 I added the document title to the TableSelecitonView but that will
1867 change if / when we add a view that doesn't require table selection.
1869 * mockups/details-contacts.html:
1870 * mockups/details-projects.html:
1871 * mockups/listview-contacts.html:
1872 * mockups/listview-projects.html:
1873 * mockups/style.css: Add document title to mockups to keep things
1875 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1876 sizes to account for the document title.
1877 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1878 Set the document title when it has been retrieved from the server.
1879 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1880 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1881 and implement setDocumentTitle(String) method.
1882 * src/main/webapp/style.css: Add ID for document title style.
1884 2011-08-25 Ben Konrath <ben@bagu.org>
1886 Add NavigationType enum to LayoutItemPortal DTO.
1888 This is the start of adding support for Portals to the Details View.
1890 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1891 LayoutItem_Portal.navigation_type enum from libglom to
1892 LayoutItemPortal.NavigationType enum.
1893 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1894 NavigationType enum, field for storing the NavigationType and getter
1897 2011-08-25 Ben Konrath <ben@bagu.org>
1899 Implement the flow table layout in the Details View.
1901 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1902 FlowTable to Group to account for the renamed class.
1903 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1904 File. This is a container widget that implements the Glom details view
1905 flow table behaviour.
1906 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1907 org/glom/web/client/ui/FlowTable.java.
1908 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1909 so that the size of the subgroups are a closer match to the size of
1910 the Glom subgroups. This makes the flowtable layout match the layout
1911 in Glom for the Music Collection example file.
1913 2011-08-16 Ben Konrath <ben@bagu.org>
1915 Create container element for LayoutItemPortal in Details View.
1917 This will help me develop the layout for the FlowTable.
1919 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1920 fieldPanel variable to detailsCell.
1922 2011-08-15 Ben Konrath <ben@bagu.org>
1924 Set the height of the data element in the Details View.
1926 I changed the InlineLabels (text in a span element) to Labels (text in
1927 a div element) so that I could set the height of the details-data
1928 elements instead of the details-cell parent elements. This allows the
1929 the details-data element to display the correct height if style is
1930 applied that shows the height.
1932 This change has the added benefit of allowing the order of the labels
1933 and data elements to be changed for right-to-left languages.
1935 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1936 InlineLabels to Labels.
1937 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1938 InlineLabels to Labels. Set the height of the data element.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1940 multiline text height in the Formatting DTO.
1941 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1942 for multiline height along with getter and setter methods.
1943 * src/main/webapp/style.css: Adjust style to account for the change
1944 from span elements to div elements in the details cell.
1946 2011-08-15 Ben Konrath <ben@bagu.org>
1948 Make the List View appearance match the mockups.
1950 It doesn't match exactly but it's much better than it was.
1952 * mockups/listview-contacts.html: Remove unused css classes.
1953 * mockups/listview-projects.html: Remove unused css classes.
1954 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1955 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1956 for mainPanel instead of VerticalPanel (table). Set style name on
1957 CellTable. Set style name on Details column. Right-align Details
1959 * src/main/webapp/style.css: Adjust properties to match the mockups.
1961 2011-08-12 Ben Konrath <ben@bagu.org>
1963 Add better support for subgroups in the details view.
1965 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1966 changed FlowTable constructor.
1967 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1968 support for subgroups and subgroup-titles.
1969 * src/main/webapp/style.css: Add CSS class for subgroups and
1972 2011-08-12 Ben Konrath <ben@bagu.org>
1974 Return the top level LayoutGroup title.
1976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1978 2011-08-11 Ben Konrath <ben@bagu.org>
1980 Make the TableSelector header match the mockup.
1982 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1983 the layout panel. Properly lineup the table selection header with
1984 the list and details view.
1985 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1986 margin around the details view.
1987 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1988 Rename listBox variable to tableSelector. Set id for the style sheet.
1989 Use a FlowPanel instead of a HorizontalPanel.
1990 * src/main/webapp/style.css: Add properties to make the TableSelector
1991 box match the mockups.
1993 2011-07-13 Ben Konrath <ben@bagu.org>
1995 Update install script for java-libglom version change.
1997 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
2000 2011-07-13 Ben Konrath <ben@bagu.org>
2002 Add support sub-group in the details view.
2004 I also removed the code that special-cased the default details view
2007 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
2009 I still have to make a proper flowtable.
2011 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2012 Don't special-case default details view layout.
2013 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
2014 addLayoutField() as I'm going to use it.
2015 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
2016 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
2018 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
2019 extracted from DetailsViewImpl.GroupPanel. Add support for
2021 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2022 column count when getting the details layout.
2024 2011-07-12 Ben Konrath <ben@bagu.org>
2026 Set browser title with database and table titles.
2028 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2029 Set the browser title when the table changes and when the activity
2031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2032 title when retrieving document info (the GlomDocument object).
2033 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
2034 with getter and setter methods. Remove unused convenience constructor.
2035 Use default code formatting.
2037 2011-07-12 Ben Konrath <ben@bagu.org>
2039 Ignore LayoutItemPortals in the details view.
2041 I added a new DTO for the LayoutItemPortal so that I can ignore it in
2044 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
2045 LayoutItemPortal layout objects.
2046 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2047 LayoutItemPortal objects when retrieving the details layout.
2048 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
2049 file. This is an empty class and just used to get type information for
2052 2011-07-12 Ben Konrath <ben@bagu.org>
2054 Use java-libglom 1.17.0.
2058 2011-07-11 Ben Konrath <ben@bagu.org>
2060 Remove "Table:" label from table selector.
2062 This matches a recent change in the Glom UI.
2064 * mockups/details-contacts.html:
2065 * mockups/details-projects.html:
2066 * mockups/listview-contacts.html:
2067 * mockups/listview-projects.html: Remove the "Table:" label from the
2069 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2071 2011-07-11 Ben Konrath <ben@bagu.org>
2073 Add main groups to the details view.
2075 This makes things look a little nicer in the details view. The next step
2076 is to implement the flowtable.
2078 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
2079 resources from the standard gwt css theme. Standard.css is now
2080 included in OnlineGlom.html so that the online glom css rules have
2081 precedence over the gwt theme.
2082 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2083 the whole LayoutGroup to the DetailsView instead of just the titles.
2084 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2085 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
2086 details layout with a helper class (GroupPanel). I might extract this
2087 class when I make the full flowtable.
2088 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
2089 string as default so I don't have to worry about NPEs when processing
2091 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
2092 note beside OnlineGlom.gwt.xml above).
2093 * src/main/webapp/style.css: Add default font-size to body to override
2094 the font-size set by the standard theme. Don't use h2 tags for
2095 group-title. Create new details-cell class.
2097 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2099 ConfiguredDocument: Set the port number too.
2101 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2102 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
2103 Glom document. Presumably this worked sometimes so far because there is a
2104 default port number.
2106 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2108 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
2110 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2111 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
2112 correct, though we should throw an exception too.
2114 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2116 Fix a addDocuemnt typo.
2118 * src/main/java/org/glom/web/shared/Documents.java
2119 (Documents.addDocuemnt): Rename to addDocument().
2120 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2121 (OnlineGlomServiceImpl.getDocuments): Adapt.
2123 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2125 Slightly improved log output when connection fails.
2127 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2128 (ConfiguredDocument.setUsernameAndPassword):
2129 We don't know for sure if it' the username/password that's wrong, so
2130 rephrase the message.
2131 Also ouput the exception message, though it's generic in this case.
2133 2011-07-08 Ben Konrath <ben@bagu.org>
2137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
2138 added braces to a one line if statement because the Eclipse formatter
2139 was getting confused.
2141 2011-07-07 Ben Konrath <ben@bagu.org>
2143 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
2145 These should really be two separate tasks but I counldn't get things to
2146 work with GWT 2.2.0 and Eclipse 3.7.
2150 * .settings/org.eclipse.jdt.core.prefs:
2151 * .settings/org.eclipse.jdt.ui.prefs:
2152 * .settings/org.eclipse.ltk.core.refactoring.prefs:
2153 * .settings/org.eclipse.m2e.core.prefs:
2154 Add new config files. Update current files. Remove references to the
2155 webtools plugins as we're not using any of the webtools features.
2156 * .gitignore: Add logs directory which is created when running with
2158 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
2159 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
2160 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
2162 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
2164 2011-07-07 Murray Cumming <murrayc@murrayc.com>
2166 onlineglom.properties: Add explanatory comments.
2168 * src/main/resources/onlineglom.properties: Also change the default user
2169 from ben to someuser, to avoid the risk of people thinking we just
2170 stupidly hard-coded a locale path, when they see that on stderr or in a log.
2172 2011-06-28 Ben Konrath <ben@bagu.org>
2174 Use filename in Log for incorrect passwords.
2176 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2177 getFileName(String) method to get the filename from the URI.
2179 2011-06-28 Ben Konrath <ben@bagu.org>
2181 Add the table name to the URL token for the ListPlace.
2183 This makes things consistent between the DetailsPlace and the
2184 ListPlace. It also allows the the ListPlace to be bookmarked.
2186 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2187 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2188 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2189 Remove getDefaultListLayout(). The default layout is now returned
2190 by the getListLayout() method when the table name is an empty string.
2191 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2192 Add table name field. Change to a new ListPlace when the table
2193 has been changed. Use getListLayout() for getting the default
2195 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2196 Add table name field. Set the correct table name in the list box
2197 when loading from bookmark. This corrects a problem for the
2199 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2200 Move table name to super-class (HasSelectableTable). Move document
2201 and table URL keys to super-class in HasSelectableTable.
2202 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2203 Add table name field. Add Tokenizer class with URL key common to
2204 the subclasses (DetailsPlace and ListPlace).
2205 * src/main/java/org/glom/web/client/place/ListPlace.java:
2206 Add table name. Add code to parse the URL token.
2207 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2208 Update ListPlace construction with empty table name string.
2209 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2210 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2211 Change setTableSelectedIndex(int) to setSelectedTableName(String).
2212 Update ListPlace construction with table name string.
2213 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2214 Change defaultTableName field to tableName to reflect how it's now
2215 used. Update the getter and setter methods.
2217 2011-06-28 Ben Konrath <ben@bagu.org>
2219 Enable the table selector in the DetailsView.
2221 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2222 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2224 Remove getDefaultDetailsLayout(). The default layout is now returned
2225 by the getDetailsLayout() method when the table name is an empty
2227 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2228 event handler for table change event. Change to using
2229 getDetailsLayout() for the default details layout.
2230 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
2232 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
2233 when navigating to the details place.
2235 2011-06-27 Ben Konrath <ben@bagu.org>
2237 Use filename based unique document ID in URL and for RPC.
2239 The document ID is the glom document name with spaces (' ') replaced
2240 with pluses ('+') and without the .glom extension.
2242 This change is mostly a string substitution of 'documentTitle' for
2243 'documentID'. The only code change is the addition of a Documents DTO to get the
2244 filename to document title mappings as indicated below.
2246 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2247 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2248 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2249 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2250 Use Documents DTO to create the document links in the document
2252 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2253 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2254 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2255 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2256 * src/main/java/org/glom/web/client/place/ListPlace.java:
2257 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2258 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2259 * src/main/java/org/glom/web/client/ui/ListView.java:
2260 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2261 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2262 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2263 * src/main/java/org/glom/web/server/Log.java:
2264 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2265 getDocumentTitles() to getDocuments() and return the Documents DTO.
2266 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
2267 transferring the filename to document title mappings.
2269 2011-06-25 Ben Konrath <ben@bagu.org>
2271 Make the authentication popup work again.
2273 This bug was introduced when I extracted ConfiguredDocument to its own class.
2275 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
2276 correct success / fail status in setUsernameAndPassword().
2278 2011-06-25 Ben Konrath <ben@bagu.org>
2280 Use filename as unique key for configuring database usernames and passwords.
2282 This replaces the use of the Glom document title which could change
2283 depending on the locale. Thanks to Murray Cumming for pointing out this
2286 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2287 * src/main/resources/onlineglom.properties:
2289 2011-06-24 Ben Konrath <ben@bagu.org>
2291 Pass primary key value to DetailsView.
2293 This enables the DetailsView to load the correct data.
2295 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2296 primary key value field and set in constructor. Pass primary key
2297 value to getDetailsData().
2298 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
2299 variables for document title and primary key value.
2300 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
2301 key value to the DetailsPlace.
2303 2011-06-24 Ben Konrath <ben@bagu.org>
2305 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
2307 This allows the primary key to be retrieved by the Details button. This
2308 functionality has not been implemented yet but it's in the works.
2310 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
2311 the LayoutGroup result to ListView.setCellTable instead of all of its
2312 fields individually.
2313 * src/main/java/org/glom/web/client/ui/ListView.java:
2314 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
2315 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
2316 get the primary key for the table.
2317 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2318 index of the primary key in the LayoutGroup accounting for hidden
2319 primary keys. Rename getJavaNumberFormat() to
2320 convertToJavaNumberFormat() for consistency. Cleanup / add some
2322 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
2323 field for primary key index and a field to indicate whether the
2324 primary key is hidden or not.
2326 2011-06-23 Ben Konrath <ben@bagu.org>
2328 Rename getTableData methods to getListData.
2330 This is a rename refactor for consistency with other methods.
2332 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2333 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2334 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2337 2011-06-23 Ben Konrath <ben@bagu.org>
2339 Extract the ConfiguredDocument innerclass into its own class.
2341 This makes the servlet code more object oriented.
2343 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
2344 from private ConfiguredDocument class in OnlineGlomServiceImpl.
2345 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
2346 new ConfiguredDocument class.
2348 2011-06-21 Ben Konrath <ben@bagu.org>
2350 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
2352 This makes things more inline with how libglom works and reduces code
2353 duplication. This refactor lays the groundwork for adding the primary key to
2354 the LayoutGroup object.
2356 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2357 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2358 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2359 Change method names to getListLayout and getDefaultListLayout for
2360 consistency. Use LayoutGroup as the DTO for the list layout instead of
2361 ColumnInfo and LayoutListTable.
2362 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
2363 new method names along with the LayoutGroup object for transferring the
2365 * src/main/java/org/glom/web/client/ui/ListView.java:
2366 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2367 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
2368 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
2370 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
2371 Replaced with LayoutGroup.
2372 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
2373 expectedResultSize and defaultTableName fields which are needed for
2375 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2376 type field which is needed for the list layout but will also be
2377 useful for the details layout as things progress.
2378 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2379 Make class abstract. Remove the unnecessary
2380 getFormattingHorizontalAlignment method. Add setFormatting method.
2382 2011-06-16 Ben Konrath <ben@bagu.org>
2384 Add scripts for building and installing war.
2386 These will help when updating OnlineGlom but they're also good
2387 supplemental documentation of the build and deployment proceeding.
2389 * utils/build-onlineglom-war.sh: New file.
2390 * utils/install-onlineglom-war.sh: New file.
2392 2011-06-16 Ben Konrath <ben@bagu.org>
2394 Create wrapper class to create consistent log messages.
2396 I wrapped methods in the Log class of gwt-log to add the method names
2397 from the servlet and create consistent formatting of the document title
2398 and table names in the log messages.
2400 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2402 log methods to use methods from wrapped Log class.
2404 2011-06-16 Ben Konrath <ben@bagu.org>
2406 Remove superfluous conditional return.
2408 Thanks to Murray Cumming for pointing this out!
2410 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2412 2011-06-15 Ben Konrath <ben@bagu.org>
2414 Return an ArrayList of LayoutGroups for the Details layout.
2416 This corrects a problem with the details layout as it can have more
2417 than one top level LayoutGroup.
2419 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2420 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2421 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2422 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2423 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2424 with ArrayList of LayoutGroups for the details view layout.
2425 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2426 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2427 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2428 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2429 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2430 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2432 2011-06-14 Ben Konrath <ben@bagu.org>
2434 Use cast_dynamic method to determine the libglom LayoutItem type.
2436 This is better than finding the LayoutItem type by using the string
2437 returned from the get_part_type_name() method.
2439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2441 2011-06-14 Ben Konrath <ben@bagu.org>
2443 Add method names to log entries in the servlet.
2445 This helps when tracking down deployment problems.
2447 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2449 2011-06-14 Ben Konrath <ben@bagu.org>
2451 Add data to the DetailsView using a hard-coded primary key value.
2453 The layout and functionality of the DetailsView is not complete. This
2454 is just a checkpoint so the patch doesn't get too big.
2456 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2457 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2458 Add getDetailsData() servlet method.
2459 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2460 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2461 LayoutFields are added to the DetailsView.
2462 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2463 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2464 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2465 take the string for the title instead of the object.
2466 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2467 Add implementation getDetailsData() along with some private helper
2469 * src/main/webapp/style.css: Add padding to details-data class. Add a
2470 details-label class with the same padding as the details-data class.
2472 2011-06-03 Ben Konrath <ben@bagu.org>
2474 Use presenter.goTo() to change to the DetailsPlace.
2476 This will make things easier when we need to open the DetailsView with
2477 data specific to the row that was clicked.
2479 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2481 2011-06-02 Ben Konrath <ben@bagu.org>
2483 Add CSS file from mockups.
2485 I'm adding this now because it's going to be useful to have when
2486 developing the DetailsView. The TableSelectionView and ListView aren't
2489 * src/main/webapp/OnlineGlom.html:
2490 * src/main/webapp/style.css:
2492 2011-06-02 Ben Konrath <ben@bagu.org>
2494 Use String.isEmpty() to check for empty string.
2496 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2498 2011-06-02 Ben Konrath <ben@bagu.org>
2500 Display main layout group titles in the DetailsView.
2502 This is the start of the DetailsActivity/DetailsView implementation.
2504 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2505 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2506 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2507 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2508 Get the layout information for the details view from the server and set
2509 the main layout group titles.
2510 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2511 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2512 Add addLayoutGroup() and addLayoutField() methods. This are just
2513 temporary methods for creating the the details view that will change
2515 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2516 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2518 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2519 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2520 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2521 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2522 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2523 Data Transfer Objects that mimic the libglom object structure. These are
2524 used for transferring the details layout but could also be used for
2525 transferring the list layout.
2527 2011-05-27 Ben Konrath <ben@bagu.org>
2529 Reset the AuthenticationPopup when clearing the ListView.
2531 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2533 2011-05-27 Ben Konrath <ben@bagu.org>
2535 Fix problem with onlineglom.properties file loading.
2537 The old way worked in Eclipse but not on the server. Loading the
2538 onlineglom.properties file now works in Eclipse and on the server.
2540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2542 2011-05-24 Ben Konrath <ben@bagu.org>
2544 Update gwt-log from 3.1.0 to 3.1.2.
2546 Gwt-log 3.1.0 has been marked as depreciated.
2550 2011-05-24 Ben Konrath <ben@bagu.org>
2552 Add comment to ListActivity.goTo() method.
2554 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2556 2011-05-24 Ben Konrath <ben@bagu.org>
2558 Remove FIXME in convertGdkColorToHtmlColour()
2560 The Gdk::Color value returned by libglom is 16-bits per channel on both
2561 64 and 32-bit platforms.
2563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2565 2011-05-19 Ben Konrath <ben@bagu.org>
2567 Improve performance of initial ListView load.
2569 I removed a round trip to the server for getting the default table name
2570 and then requesting information about that table. This also removes a potential
2571 problem with the table change handler not being setup in time to receive the
2572 table change event from the ListActivity.
2574 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2575 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2576 getDefaultLayoutListTable() method. Improve comments.
2577 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2578 getDefaultLayoutListTable() method instead of firing a table change
2579 event to get the table to load.
2580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2581 implementation of getDefaultLayoutListTable() method.
2582 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2585 2011-05-19 Ben Konrath <ben@bagu.org>
2587 Override toDebugString() in TableChangeEvent.
2589 This is useful to have for debugging.
2591 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2593 2011-05-19 Ben Konrath <ben@bagu.org>
2595 Add a "Back to List" link when at the DetailsPlace.
2597 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2598 Populate the CellTable based on the selected table of the ListBox if
2599 it's set otherwise use the default table. This allows the "Back to
2601 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2602 Remove Place from constructors. Add a setPlace() method. Add
2603 goToPlace() method. Set class as presenter for TableSelectionView.
2604 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2605 Use the same TableSelectionActivity when switching between the List and
2607 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2608 Subclass the new HasSelectableTablePlace. This removes some duplicate
2610 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2611 New class to represent Places that display the TableSelectionView.
2612 * src/main/java/org/glom/web/client/place/ListPlace.java:
2613 Subclass the new HasSelectableTablePlace. This removes some duplicate
2615 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2616 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2617 Add Presenter interface. Add setBackLinkVisible() method. Add
2618 setBackLink() method.
2620 2011-05-18 Ben Konrath <ben@bagu.org>
2622 Enable the "Details" buttons.
2624 Right now only an empty details view is displayed.
2626 * src/main/java/org/glom/web/client/ClientFactory.java:
2627 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2628 Add DetailsView to ClientFactory.
2629 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2630 A basic activity for the details view.
2631 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2632 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2634 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2635 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2637 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2638 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2639 unnecessary super() in constructor.
2640 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2641 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2642 really shouldn't create a new TableSelectionActivity for both the ListPlace
2643 and the DetailsPlace so this should be considered a temporary solution.
2644 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2645 New file. Represents a URL for the details view.
2646 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2647 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2648 A basic details view interface and implementation.
2649 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2650 Enable the "Details" buttons.
2652 2011-05-12 Ben Konrath <ben@bagu.org>
2654 Use a LayoutPanel with multiple display areas for main layout.
2656 This is mostly a refactor in that there are no changes from the user
2657 point of view. These changes are required so that we can swap out the list view
2658 with the details view when the user clicks the "Details" button.
2660 * src/main/java/org/glom/web/client/ClientFactory.java:
2661 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2662 OnlineGlomView. Add TableSelectionView, ListView and
2663 AuthenticationPopup.
2664 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2665 for main layout. Add display regions for main activities. Add
2666 activity manager for for main activities.
2667 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2668 file from parts of the deleted OnlineGlomActivity.
2669 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2670 New file from parts of the deleted OnlineGlomActivity.
2671 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2672 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2673 New files for app wide table change event.
2674 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2675 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2676 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2677 Activity mappers for the main activities replace the deleted app-wide
2679 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2680 Fix a spelling error in he comment.
2681 * src/main/java/org/glom/web/client/ui/ListView.java:
2682 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2683 Renamed from LayoutListView and modified for MVP. This still not a
2684 proper dumb view as prescribed by the MVP pattern but it works for now.
2685 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2686 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2687 New widget stripped out of the deleted OnlineGlomView.
2688 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2689 Remove hack that is fixed by this patch.
2691 2011-05-06 Ben Konrath <ben@bagu.org>
2693 Rename OnlineGlomPlace to ListPlace.
2695 The only change besides the rename is that url will now display #list
2696 instead of #Document.
2698 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2699 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2700 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2701 * src/main/java/org/glom/web/client/place/ListPlace.java:
2702 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2704 2011-05-06 Ben Konrath <ben@bagu.org>
2706 Use Presenter for app navigation.
2708 This is the proper way to deal with Place (URL) changes with the MVP
2711 * src/main/java/org/glom/web/client/ClientFactory.java:
2712 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2713 PlaceHistoryMapper and PlaceHistoryHandler.
2714 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2715 PlaceHistoryMapper and PlaceHistoryHandler.
2716 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2717 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2718 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2719 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2720 Add Presenter interface and setPresenter methods. Rename addHyperLink
2721 to addDocumentLink taking only the document title as a parameter.
2723 2011-04-14 Ben Konrath <ben@bagu.org>
2725 Prompt for db username/password if they haven't been set.
2727 This is implemented with a popup widget that is contained within the
2728 OnlineGlomView and managed by the OnlineGlomActivity.
2730 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2731 methods for checking and setting the database username and password.
2732 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2733 new methods for checking and setting the database username and
2735 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2736 Display authentication popup if the JDBC connection to the database
2737 has not been authenticated.
2738 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2740 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2741 for dealing with the authentication popup.
2742 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2743 Implement the methods for dealing with the authentication popup.
2744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2745 try to executed queries if the database connection hasn't been
2746 authenticated. Implement methods for checking and setting the
2747 database username and password.
2749 2011-04-12 Ben Konrath <ben@bagu.org>
2751 Make log messages a little clearer.
2753 Add a dash betweeen the document title and the table name.
2755 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2757 2011-04-12 Ben Konrath <ben@bagu.org>
2759 Protect against NPEs when cleaning up database resources.
2761 While this isn't strictly necessary because the exception is caught,
2762 not protecting against the NPEs makes it harder to find the real error
2765 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2767 2011-04-12 Ben Konrath <ben@bagu.org>
2769 Move configuration of the servlet to the constructor.
2771 The servlet will be initialized even if the database authentication
2772 information is not set or correct. I still need to add the UI for prompting
2773 the user for the authentication information when it's required.
2775 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2776 javadocs for getDocumentTitles() method.
2777 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2778 Set error message when RPC fails.
2779 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2780 glom files directory from the configuration file. Try to set the
2781 database authentication information for the specific document if it's
2782 set and works otherwise try to use the global authentication
2783 information set for the directory.
2784 * src/main/resources/onlineglom.properties: Moved from
2785 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2786 Added detailed comments for the new keys.
2788 2011-04-11 Ben Konrath <ben@bagu.org>
2790 Remove unnecessary @Override in DocumentSelectionViewImpl.
2792 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2794 2011-04-11 Ben Konrath <ben@bagu.org>
2796 Remove center alignment in DocumentSelectionView.
2798 The title element is still centred but the document titles and bottom
2799 sentence are both left-aligned.
2801 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2803 2011-04-11 Ben Konrath <ben@bagu.org>
2805 Change 'Demo' naming convention to 'Document'.
2807 This is just a rename refactor with no functional changes to the code.
2809 * src/main/java/org/glom/web/client/ClientFactory.java:
2810 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2811 * src/main/java/org/glom/web/client/OnlineGlom.java:
2812 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2813 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2814 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2815 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2816 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2817 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2818 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2819 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2820 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2823 2011-04-08 Ben Konrath <ben@bagu.org>
2825 Remove FIXME from safeLongToInt() method.
2827 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2830 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2832 2011-04-08 Ben Konrath <ben@bagu.org>
2834 Display an error if no glom documents are found in the specified directory.
2836 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2837 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2838 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2839 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2841 2011-04-08 Ben Konrath <ben@bagu.org>
2843 Add copyright header to one more file ... oops.
2845 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2847 2011-04-08 Ben Konrath <ben@bagu.org>
2849 Add copyright header to files without it.
2851 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2852 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2853 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2854 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2855 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2856 * src/main/java/org/glom/web/shared/GlomField.java:
2858 2011-04-08 Ben Konrath <ben@bagu.org>
2860 Add support for accessing multiple glom documents in the servlet.
2862 This completes the demo selection functionality.
2864 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2865 document title to methods.
2866 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2867 document title to methods.
2868 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2869 Set browser window title when the activity starts. Correct name of
2870 document title variable.
2871 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2872 Set browser window title when the activity starts. Set the table
2873 selector change handler after table selector has been set. Clear the
2874 OnlineGlomView when the activity has been stopped.
2875 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2876 document title as the place token. Use "#Document:" instead of
2877 "#OnlineGlomPlace:" in the URL.
2878 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2879 Change heading to "Online Glom"
2880 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2881 document title in RPC methods.
2882 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2883 setDocumentTitle() method. Add clear() method.
2884 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2885 setDocumentTitle() method. Implement clear() method which removes the
2886 change handler on the ListBox, clears the ListBox and clears the
2888 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2889 Implement methods with document title. Keep track for the configured
2890 glom documents and their corresponding JDBC configurations in a hash
2891 table. This information is retrieved using the document title as the
2892 key in the hash table.
2893 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2894 document title field as it's no longer needed.
2896 2011-04-08 Ben Konrath <ben@bagu.org>
2898 Update the Eclipse JDT configuration.
2900 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2901 methods. Automatically add the copyright header to new files.
2903 2011-04-05 Ben Konrath <ben@bagu.org>
2905 Add new page for demo selection.
2907 This patch adds all the components required to view and start an
2908 OnlineGlom demo by clicking on the desired hyperlink. The user is
2909 able to return to the demo selection page with the browser's back
2910 button. I still need to modify the servlet to work with multiple
2911 documents so all demo links will load the file defined in the
2912 OnlineGlom.properties.
2914 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2915 This is only useful during development so we don't need to save it.
2916 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2917 get a reference to the DemoSelectionView.
2918 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2919 method to get a reference to the DemoSelectionView.
2920 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2921 default view to DemoSelectionView.
2922 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2923 to get glom document titles for glom files in a hard-coded directory.
2924 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2925 method to get glom document titles for glom files in a hard-coded
2927 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2928 Presenter for DemoSelectionView.
2929 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2930 for DemoSelectionView.
2931 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2932 Update for DemoSelectionView.
2933 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2934 Basic 'Place' implementation for the DemoSelectionView.
2935 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2936 The interface for the DemoSelectionView.
2937 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2938 The implementation of the DemoSelectionView.
2939 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2940 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2941 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2942 implementation of method to get glom document titles for glom files
2943 in a hard-coded directory.
2944 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2945 on longer being used.
2946 * src/main/webapp/glom.png: Glom logo.
2948 2011-04-05 Ben Konrath <ben@bagu.org>
2950 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2952 This is the forth and final commit of a refactor that will allow
2953 OnlineGlom to be used with multiple documents.
2955 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2956 Move RPC code from OnlineGlomViewImpl to this class.
2957 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2959 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2960 RPC code to the presenter class (the P in MVP).
2962 2011-04-04 Ben Konrath <ben@bagu.org>
2964 Start moving the existing OnlineGlom code to MVP.
2966 This work is based on the GWT MVP framework that is documented here:
2968 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2970 This is the third commit of a refactor that will allow OnlineGlom to
2971 be used with multiple documents.
2973 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2974 Interface for client factory which is used to get instances of various
2975 classes throughout the app.
2976 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2977 Implementation of client factory.
2978 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2979 initialize the MVP framework.
2980 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2981 New file. Activity manager for the main container widget. This is the
2983 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2984 Maps place (URL) to its corresponding activity.
2985 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2986 New file. This is just a place holder for a generated file.
2987 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2988 New file. Represents the URL for the main Online Glom app.
2989 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2990 for changes in LayoutListViewImpl.
2991 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2992 interface for View. Move code to OnlineGlomViewImpl class.
2993 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2994 file. Implementation of OnlineGlomView.
2995 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2996 Place resources. Use ClientFactoryImpl by default.
2998 2011-04-04 Ben Konrath <ben@bagu.org>
3000 Move View classes to their own package.
3002 This is the second commit of a refactor that will allow OnlineGlom to
3003 be used with multiple documents.
3005 * src/main/java/org/glom/web/client/OnlineGlom.java:
3006 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
3007 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
3009 2011-04-02 Ben Konrath <ben@bagu.org>
3011 Move UI code from the main module to its own class.
3013 This is the first commit of a refactor that will allow OnlineGlom to be
3014 used with multiple documents.
3016 * src/main/java/org/glom/web/client/LayoutListView.java: Update
3017 references to OnlineGlom to OnlineGlomView.
3018 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
3019 OnlineGlomView and instantiate it here.
3020 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
3021 represents the main OnlineGlomView with one document.
3023 2011-04-01 Ben Konrath <ben@bagu.org>
3025 Fix formatting of gwt.xml and add DTD.
3027 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3029 2011-03-30 Ben Konrath <ben@bagu.org>
3031 Propperly convert gdkColor string to html colour string.
3033 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3035 2011-03-28 Ben Konrath <ben@bagu.org>
3037 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
3039 This implementation matches
3040 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
3041 readable and is not tied to Swig.
3043 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3045 2011-03-28 Ben Konrath <ben@bagu.org>
3047 Use read-only checkboxes for boolean field types.
3049 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
3050 in the CellTable based on the field type. It currently only
3051 distinguishes between boolean and text columns but I'll need to add
3052 support for more types.
3053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
3054 column type in the ColumnInfo object. Add method to convert between the
3055 glom field type enum in ColumnInfo and the glom field type in libglom.
3056 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
3058 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
3059 getting and setting booleans.
3061 2011-03-25 Ben Konrath <ben@bagu.org>
3063 Don't get the Date twice from the ResultSet.
3065 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3067 2011-03-25 Ben Konrath <ben@bagu.org>
3069 Cleanup code in the servlet.
3071 * TODO: Remove item about row count. Add item about testing row count
3072 query with large number of rows.
3073 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
3074 spelling mistakes, change method parameter to be consistent with
3077 2011-03-25 Ben Konrath <ben@bagu.org>
3079 Add server side logging with the gwt-log library.
3081 * .gitignore: Ignore the log file we're now producing.
3082 * TODO: Add a couple TODO item for logging.
3083 * pom.xml: Add gwt-log and log4j as a dependency.
3084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3085 logging of errors, warnings and some important info.
3086 * src/main/resources/log4j.properties: New file to configure log4j.
3088 2011-03-24 Ben Konrath <ben@bagu.org>
3090 Add a disable button for the Details view.
3092 * src/main/java/org/glom/web/client/LayoutListView.java:
3094 2011-03-22 Ben Konrath <ben@bagu.org>
3096 Use a count query to get the number of rows for the list view pager.
3098 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3100 2011-03-22 Ben Konrath <ben@bagu.org>
3102 Add more TODO information about CellTable pager positioning.
3106 2011-03-19 Ben Konrath <ben@bagu.org>
3108 Add TODO item about CellTable pager positioning.
3112 2011-03-18 Ben Konrath <ben@bagu.org>
3114 Remove unneeded GlomFieldColumn class.
3116 This is just a small code cleanup.
3118 * src/main/java/org/glom/web/client/LayoutListView.java:
3120 2011-03-18 Ben Konrath <ben@bagu.org>
3122 Use cursor mode in the query that gets data for the list view.
3124 I still need to fix the potential memory problem when getting the row
3125 count for the list view.
3127 * TODO: Add note about testing memory usage with large data sets. Add
3128 item about fixing row counting with large data sets.
3129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
3130 PostgreSQL JDBC driver into cursor mode when getting data for the
3133 2011-03-15 Ben Konrath <ben@bagu.org>
3135 Remove the GWT Container from the Eclipse build classpath.
3137 The GWT dependencies are set by Maven so this isn't needed.
3141 2011-03-15 Murray Cumming <murrayc@murrayc.com>
3143 Added some earlier mockups to git, but not to the tarball dist.
3145 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
3146 Openismus. These hopefully show how we might structure the HTML so that
3147 it can be styled easily with CSS. However, we probably need to adapt them
3148 for the CSS structure that GWT dictates for common widgets.
3150 2011-03-14 Ben Konrath <ben@bagu.org>
3152 Locate OnlineGlom.properties using the ServletContext.
3154 This is required to be able to locate the file in the deployed servlet.
3156 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3157 Configure the database and glom document in in a helper method so
3158 that the ServletContext can be used to locate OnlineGlom.properties.
3159 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
3160 src/main/webapp. This is the proper location for .properites files.
3162 2011-03-12 Ben Konrath <ben@bagu.org>
3164 Add note to README about why we're compiling down to obfuscated JavaScript.
3168 2011-03-11 Ben Konrath <ben@bagu.org>
3170 Use properties file to configure servlet.
3172 This allows people to change the glom file path, db username and db
3173 password without recompiling the code.
3175 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3176 * src/main/webapp/OnlineGlom.properties:
3178 2011-03-11 Ben Konrath <ben@bagu.org>
3180 Use table fields in layout list view if the layout list is not defined.
3182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3183 Manually create a LayoutFieldVector for the query builder using the
3184 table fields when a layout list is not defined in the glom file.
3186 2011-03-11 Ben Konrath <ben@bagu.org>
3188 Only show FIXME string for images when there's an image.
3190 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
3191 in this change are some small code cleanups.
3193 2011-03-11 Ben Konrath <ben@bagu.org>
3195 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
3197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3199 2011-03-11 Ben Konrath <ben@bagu.org>
3201 Correctly set the index of the default table.
3203 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3204 Correctly set the index of the default table. Add commented out example
3207 2011-03-10 Ben Konrath <ben@bagu.org>
3209 Add comment to pom.xml about the previous change.
3211 * pom.xml: Add comment about the deployment issue so that it's obvious
3212 why java-libglom is set to the provided scope.
3214 2011-03-10 Ben Konrath <ben@bagu.org>
3216 Change java-libglom dependency from compile to provided in pom.xml.
3218 Since java-libglom uses jni it can only be loaded once and therefore
3219 must be placed in $CATALINA_HOME/lib and not included in each war.
3220 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
3221 More information about this issue can be found in the Tomcat 6 release
3222 notes in the "JNI Based Applications" section:
3224 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
3226 * README: Remove note about this issue. Deployment info should really
3227 be on the wiki anyway so I'll add it right now.
3228 * pom.xml: Change java-libglom dependency from compile to provided so
3229 that it's copied in to the packaged war.
3231 2011-03-09 Ben Konrath <ben@bagu.org>
3233 Change to using a neutral locale for currency, date and time formatting.
3235 This solves the problem of currency values being represented without a
3236 space between the currency code and the number (e.g. "EUR5.89" is now
3237 represented as "EUR 5.89"). More work is required when we implement
3238 a locale preference setting.
<