Murray Cumming [Tue, 17 Apr 2012 12:28:06 +0000 (14:28 +0200)]
Style: Remove overflow:hidden from searchbox
* src/main/webapp/style.css: Because this pushes the Back To Link
label/link on to the next row, which is then hidden due to the
hard-coded (in ems) height.
Conflicts:
ChangeLog
Murray Cumming [Fri, 20 Apr 2012 08:52:43 +0000 (10:52 +0200)]
Remove some duplicate code.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
getDocumentInfo(): This must have been duplicated during the merge from the
reports branch.
Murray Cumming [Thu, 19 Apr 2012 19:57:54 +0000 (21:57 +0200)]
1.21.8.1
Murray Cumming [Thu, 19 Apr 2012 12:08:14 +0000 (14:08 +0200)]
Merge branch 'reports'
Conflicts:
ChangeLog
pom.xml
src/main/java/org/glom/web/OnlineGlom.gwt.xml
src/main/java/org/glom/web/client/activity/DetailsActivity.java
src/main/java/org/glom/web/client/activity/ListActivity.java
src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
src/main/java/org/glom/web/client/place/HasTablePlace.java
src/main/java/org/glom/web/client/place/ListPlace.java
src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties
src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties
src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties
src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties
src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties
src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties
Murray Cumming [Thu, 19 Apr 2012 11:47:41 +0000 (13:47 +0200)]
Reports: Try to avoid page breaks
Murray Cumming [Thu, 19 Apr 2012 11:25:48 +0000 (13:25 +0200)]
Add some comments.
Murray Cumming [Thu, 19 Apr 2012 10:50:31 +0000 (12:50 +0200)]
Reports: Localize the waiting for report message.
* src/main/java/org/glom/web/client/activity/ReportActivity.java
start(): Get the message from the contants.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
Add the string here.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
Update these files with the English text for newer strings for now.
Murray Cumming [Thu, 19 Apr 2012 10:31:57 +0000 (12:31 +0200)]
Reports: Show a message while waiting for the report.
* src/main/java/org/glom/web/client/ui/ReportView.java
* src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
Add setWaitingText(), to show a message saying that we are
waiting for the report to be ready.
* src/main/java/org/glom/web/client/activity/ReportActivity.java
start(): Call setWaitingText() before calling the async
report generation.
Murray Cumming [Thu, 19 Apr 2012 09:46:02 +0000 (11:46 +0200)]
ReportGenerator: Specify date and time formats.
* src/main/java/org/glom/web/server/ReportGenerator.java:
createFieldValueElement(): Use the default (and localized)
short formats, though we still need a way to show 4-digit
years without providing the format for every locale.
* src/main/java/org/glom/web/server/database/DBAccess.java:
convertResultSetToDTO(): Use the short formats here too.
Murray Cumming [Wed, 18 Apr 2012 19:32:21 +0000 (21:32 +0200)]
ReportGenerator: Use the correct numeric formatting.
* src/main/java/org/glom/web/server/ReportGenerator.java
createFieldExpression(), createFieldValueElement(): Take the
whole LayoutItem_Field instead of just the field name, so
we have access to the formatting.
createFieldValueElement(): Use JRTextField.setPattern() to
specify the numeric formatting, with the help of a
regular DecimalFormat.
Murray Cumming [Wed, 18 Apr 2012 19:01:09 +0000 (21:01 +0200)]
Code formatting changes by Eclipse.
Murray Cumming [Wed, 18 Apr 2012 19:00:16 +0000 (21:00 +0200)]
ReportGenerator: Avoid showing null for group by titles.
* src/main/java/org/glom/web/server/ReportGenerator.java
generateReport(): Use setBlankWhenNull() on the field title
style too, because this is used for values in group by
sections.
Murray Cumming [Wed, 18 Apr 2012 18:42:32 +0000 (20:42 +0200)]
Rename a member variable
Murray Cumming [Wed, 18 Apr 2012 08:42:36 +0000 (10:42 +0200)]
ReportGenerator: Add a colon to titles in vertical groups.
* src/main/java/org/glom/web/server/ReportGenerator.java
addFieldToDetailBandVertical(): Pass true for the withColon
parameter.
Murray Cumming [Wed, 18 Apr 2012 08:37:07 +0000 (10:37 +0200)]
ReportGenerator: Simplify the code by using Position more.
Murray Cumming [Wed, 18 Apr 2012 08:10:07 +0000 (10:10 +0200)]
Reports: Support vertical groups, roughly.
* src/main/java/org/glom/web/server/ReportGenerator.java:
addToReport(): Rename to addGroupToReport() and, if necessary,
call the new addVerticalGroupToReport() method.
createFieldValueElement(): Let the caller specify the Y position
too.
Murray Cumming [Tue, 17 Apr 2012 14:35:05 +0000 (16:35 +0200)]
Reports: Allow a second report to be shown.
* src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
clear(): Do not remove the HTML widget, which broke the whole layout.
Murray Cumming [Tue, 17 Apr 2012 13:53:27 +0000 (15:53 +0200)]
Locales drop-down: Show that we use English by default.
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
fillView(): When we use English, just because that is the default, when
no locale is specified, show that in the Locales drop-down instead of
just showing the first item.
Murray Cumming [Tue, 17 Apr 2012 13:27:38 +0000 (15:27 +0200)]
Unselect the Report/Locale/Table combo item when appropriate.
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
setPlace(): clear reportName if this is not a ReportPlace.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
setSelectedTableName(), setSelectedLocale(), setSelectedReport():
When the provided name is empty, unselect all items, so that none are
indicated. This uses a for loop because I cannot find a single method
to do this.
Murray Cumming [Tue, 17 Apr 2012 12:54:22 +0000 (14:54 +0200)]
Report: Give the user a way to get back to the list.
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
start(), setPlace(): Show the Back To List link on reports, and also
interpret selecting the empty report item as back to list.
Murray Cumming [Tue, 17 Apr 2012 12:28:06 +0000 (14:28 +0200)]
Style: Remove overflow:hidden from searchbox
* src/main/webapp/style.css: Because this pushes the Back To Link
label/link on to the next row, which is then hidden due to the
hard-coded (in ems) height.
Murray Cumming [Fri, 13 Apr 2012 13:17:12 +0000 (15:17 +0200)]
Really show the selected Report name.
* src/main/java/org/glom/web/client/activity/TableSelectionActivity:
setPlace(): Store the reportName here, if it is that kind of Place.
fillView(): Set the selected Report after filling the list of reports.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
setSelectedLocale(), setSelectedReport(): Avoid possible uses of
null Strings, though we need some way to unselect all ListBox items
in that case.
Murray Cumming [Fri, 13 Apr 2012 11:27:19 +0000 (13:27 +0200)]
ReportGenerator: Try to avoid some problems.
* src/main/java/org/glom/web/server/ReportGenerator.java
addField(): Try to avoid duplicates, and avoid using a null
class type.
Murray Cumming [Fri, 13 Apr 2012 11:03:57 +0000 (13:03 +0200)]
Reports: Use quickFind.
* src/main/java/org/glom/web/client/OnlineGlomService.java;
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
getReportHTML(): Add a quickFind parameter.
* src/main/java/org/glom/web/client/activity/ReportActivity.java
start(): Pass the quickFind parameter.
* src/main/java/org/glom/web/server/ReportGenerator.java
generateReport(): Take a quickFind parameter.
Murray Cumming [Fri, 13 Apr 2012 10:57:17 +0000 (12:57 +0200)]
ReportPlace: Actually use the report name.
* src/main/java/org/glom/web/client/place/ReportPlace.java
getPlace(): Do not assign the report name to the quickfind.
Murray Cumming [Fri, 13 Apr 2012 10:43:15 +0000 (12:43 +0200)]
Show java.library.path when complaining.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
init(): When telling us to check java.library.path, show the
current value.
Murray Cumming [Thu, 12 Apr 2012 07:55:13 +0000 (09:55 +0200)]
Adapt to the java-libglom 1.21.8 API.
* src/main/java/org/glom/web/server/ConfiguredDocument.java:
java-libglom's FieldFormatting is now Formatting.
Murray Cumming [Thu, 12 Apr 2012 07:40:05 +0000 (09:40 +0200)]
Use the latest java-libglom version.
* pom.xml: Use java-libglom 1.21.8.
Conflicts:
ChangeLog
Murray Cumming [Thu, 12 Apr 2012 07:58:16 +0000 (09:58 +0200)]
1.21.8
Murray Cumming [Thu, 12 Apr 2012 07:55:13 +0000 (09:55 +0200)]
Adapt to the java-libglom 1.21.8 API.
* src/main/java/org/glom/web/server/ConfiguredDocument.java:
java-libglom's FieldFormatting is now Formatting.
Murray Cumming [Thu, 12 Apr 2012 07:40:05 +0000 (09:40 +0200)]
Use the latest java-libglom version.
* pom.xml: Use java-libglom 1.21.8.
Murray Cumming [Thu, 12 Apr 2012 07:39:03 +0000 (09:39 +0200)]
Translations: Add Esperanto.
* src/main/java/org/glom/web/OnlineGlom.gwt.xml
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
properties: Add this translation because someone took the time to make it.
Murray Cumming [Thu, 15 Mar 2012 12:19:57 +0000 (13:19 +0100)]
Adapt to the java-libglom 1.21.7 API.
* src/main/java/org/glom/web/server/ReportGenerator.java:
addToReport(): get_group_secondary_fields() is now
get_secondary_fields().
Murray Cumming [Thu, 15 Mar 2012 12:12:48 +0000 (13:12 +0100)]
Use the latest java-libglom version.
* pom.xml: Use java-libglom 1.21.7.
Conflicts:
ChangeLog
pom.xml
Murray Cumming [Thu, 15 Mar 2012 12:12:48 +0000 (13:12 +0100)]
Use the latest java-libglom version.
* pom.xml: Use java-libglom 1.21.7.
Murray Cumming [Tue, 6 Mar 2012 22:24:57 +0000 (23:24 +0100)]
ReportGenerator: Do not show nulls.
Murray Cumming [Tue, 6 Mar 2012 22:18:31 +0000 (23:18 +0100)]
ReportGenerator: Make the title font larger.
Murray Cumming [Tue, 6 Mar 2012 22:16:46 +0000 (23:16 +0100)]
ReportGenerator: Put field titles inside groups, if there are groups.
Murray Cumming [Tue, 6 Mar 2012 21:53:32 +0000 (22:53 +0100)]
ReportGenerator: Take the Report itself instead of the name and group.
* src/main/java/org/glom/web/server/ConfiguredDocument.java
Remove getReportLayoutGroup().
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
getReportHTML(): Pass the report instead
of its name and layout group.
* src/main/java/org/glom/web/server/ReportGenerator.java
generateReport(): Use the report object to use the title
instead of the name.
Murray Cumming [Tue, 6 Mar 2012 21:39:56 +0000 (22:39 +0100)]
ReportGenerator: Remove designBand parameters.
* src/main/java/org/glom/web/server/ReportGenerator.java:
Make designBand a class member instead of passing it to all
methods.
Murray Cumming [Tue, 6 Mar 2012 21:28:25 +0000 (22:28 +0100)]
ReportGenerator: Add lines, a bit like in the desktop version.
* src/main/java/org/glom/web/server/ReportGenerator.java
addToReport(): Use JRDesignLine.
Murray Cumming [Tue, 6 Mar 2012 21:19:08 +0000 (22:19 +0100)]
ReportGenerator: Correct the title positions and use some bold style.
* src/main/java/org/glom/web/server/ReportGenerator.java:
Break the code up into reusable functions, correct the placement of
titles, and use normal/bold styles as in the reports in the desktop
version.
Murray Cumming [Tue, 6 Mar 2012 20:38:37 +0000 (21:38 +0100)]
ReportGenerator: Add a header band to show the field titles.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
getReportHTML(): Pass the localeId to the ReportGenerator
constructor.
* src/main/java/org/glom/web/server/ReportGenerator.java
constructor: Take the localeID so we can get translated field
titles.
generateReport(), addToReport(), addFieldToBand(): Add field
titles in a column header band.
Murray Cumming [Mon, 5 Mar 2012 19:35:22 +0000 (20:35 +0100)]
Reports drop-down list: Some improvement.
* src/main/java/org/glom/web/client/ui/TableSelectionView.java
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Adedd setSelectedReport(),
setReportList(): Add a blank line so that the user can select the
first one.
* src/main/java/org/glom/web/client/activity/ReportActivity.java
start(): Show the current report by calling setSelectedReport().
This does not seem to work yet.
Murray Cumming [Mon, 5 Mar 2012 19:33:33 +0000 (20:33 +0100)]
DetailsActivity, ListActivity: Move some variables into a base class.
* src/main/java/org/glom/web/client/activity/DetailsActivity.java:
* src/main/java/org/glom/web/client/activity/HasTableActivity.java:
* src/main/java/org/glom/web/client/activity/ListActivity.java: Move
the clientFactory, documentID, tableName and authenticationPopup into
a base class, to avoid duplication.
Murray Cumming [Mon, 5 Mar 2012 16:38:21 +0000 (17:38 +0100)]
Translate the Reports label.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
Get the "Reports" label string from the constants.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
perties: Add Reports to the constants.
Ben Konrath [Sat, 3 Mar 2012 21:55:55 +0000 (22:55 +0100)]
Display date and time in details view.
https://bugzilla.gnome.org/show_bug.cgi?id=671257
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
Conflicts:
ChangeLog
Ben Konrath [Sat, 3 Mar 2012 16:04:07 +0000 (17:04 +0100)]
Remove gradient from selected tab.
Ben Konrath [Sat, 3 Mar 2012 21:55:55 +0000 (22:55 +0100)]
Display date and time in details view.
https://bugzilla.gnome.org/show_bug.cgi?id=671257
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
Murray Cumming [Sun, 4 Mar 2012 23:15:12 +0000 (00:15 +0100)]
Require the latest java-libglom.
* pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
Murray Cumming [Sun, 4 Mar 2012 23:14:11 +0000 (00:14 +0100)]
Reports: Implement grouping.
* src/main/java/org/glom/web/server/ReportGenerator.java:
Handle LayoutItem_GroupBy items and try to do the right thing
with JRDesignGroup. It seems to work.
Murray Cumming [Sun, 4 Mar 2012 16:27:50 +0000 (17:27 +0100)]
Actually show some data with JasperReports.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
getReportHTML(): Move most code into a ReportGenerator class.
* src/main/java/org/glom/web/server/ReportGenerator.java:
Recurse into sub-groups, adding fields to the JasperDesign's details
band. Note that we must set an arbitrary width and height, or it just
will not show any data.
Murray Cumming [Sun, 4 Mar 2012 10:27:09 +0000 (11:27 +0100)]
More use of JasperReports, but it doesn't show data yet.
Murray Cumming [Sun, 4 Mar 2012 09:55:27 +0000 (10:55 +0100)]
Reports Chooser: Show the titles, not the names.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
(TableSelectionViewImpl.setReportList): Show the titles in the UI,
and the names as the values.
* src/main/java/org/glom/web/server/ConfiguredDocument.java
(ConfiguredDocument.getReportLayoutGroup): Do not return a default
group now that we provide the report name, so it should always
succeed.
Murray Cumming [Sun, 4 Mar 2012 09:41:21 +0000 (10:41 +0100)]
ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java
ListViewDBAccess.getSelectQuery(): Do not create a where clause for
an empty quickfind string. I also corrected libglom to create only
empty where clauses for empty quickfind strings, but this avoids the
need for that fix.
Ben Konrath [Sat, 3 Mar 2012 16:04:07 +0000 (17:04 +0100)]
Remove gradient from selected tab.
Ben Konrath [Fri, 24 Feb 2012 11:42:23 +0000 (12:42 +0100)]
Improve the tabs in the Notebook widget.
Bug #670728
Ben Konrath [Fri, 24 Feb 2012 11:42:23 +0000 (12:42 +0100)]
Improve the tabs in the Notebook widget.
Bug #670728
Murray Cumming [Fri, 17 Feb 2012 11:17:11 +0000 (12:17 +0100)]
Some simple use of JasperReports.
This does not generate actual HTML yet.
Murray Cumming [Wed, 15 Feb 2012 20:37:01 +0000 (21:37 +0100)]
Depend on jasperreports.
* pom.xml: Add the dependency. My plan is to use this on the
server side.
Murray Cumming [Wed, 15 Feb 2012 20:28:54 +0000 (21:28 +0100)]
Fix the build.
Murray Cumming [Tue, 7 Feb 2012 09:03:43 +0000 (10:03 +0100)]
1.21.4.1
Murray Cumming [Tue, 7 Feb 2012 08:36:05 +0000 (09:36 +0100)]
Use translations from Glom's .po files.
Murray Cumming [Tue, 7 Feb 2012 09:03:43 +0000 (10:03 +0100)]
1.21.4.1
Murray Cumming [Tue, 7 Feb 2012 08:36:05 +0000 (09:36 +0100)]
Use translations from Glom's .po files.
Murray Cumming [Tue, 31 Jan 2012 22:03:03 +0000 (23:03 +0100)]
Implement navigation to report places.
* src/main/java/org/glom/web/client/activity/ReportActivity.java
start(): Do not bother to handle all events here.
* src/main/java/org/glom/web/client/ui/TableSelectionView.java
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Added getSelectedReport().
* src/main/java/org/glom/web/client/activity/TableSelectionActivity
.java: start(): When handling a change to the reports chooser,
call getSelectedReport() and goTo() its ReportPlace.
* src/main/java/org/glom/web/client/ui/ReportView.java
* src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
Added setReportHTML() which puts the html in a gwt HTML widget.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
getReportHTML(): Return TODO just to show that this works.
Murray Cumming [Tue, 31 Jan 2012 21:58:31 +0000 (22:58 +0100)]
Make ReportPlace usable.
* src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
Mention ReportPlace.
* src/main/java/org/glom/web/client/place/ReportPlace.java:
Correct the @prefix annotation.
Murray Cumming [Tue, 31 Jan 2012 20:44:50 +0000 (21:44 +0100)]
OnlineGlomService: Return report HTML rather than the LayoutGroup.
* src/main/java/org/glom/web/client/OnlineGlomService.java:
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Change getReportLayout() to getReportHMTL() because we will not need to
parse or render the report layout on the client side.
* src/main/java/org/glom/web/server/ConfiguredDocument.java:
getReportLayout(): Return the libglom LayoutGroup type because we will
not need to convert to a shared type, because this will not be used on
the client side.
* src/main/java/org/glom/web/client/activity/ReportActivity.java:
Adapted.
Note that there is still no implementation for this.
Murray Cumming [Tue, 31 Jan 2012 08:08:10 +0000 (09:08 +0100)]
More Spanish translated strings.
Murray Cumming [Mon, 30 Jan 2012 09:30:28 +0000 (10:30 +0100)]
1.21.4
Murray Cumming [Mon, 30 Jan 2012 09:04:52 +0000 (10:04 +0100)]
Translations: Try to translate the strings.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
Take the Open translation from GTK+'s .po files.
Take the Details translation from Glom's po files.
I have added the other strings to Glom so we can get translations that way:
http://git.gnome.org/browse/glom/commit/?id=
c3cefe607428a84bdf8de1b04e8bef6f70b04564
Murray Cumming [Tue, 31 Jan 2012 08:08:10 +0000 (09:08 +0100)]
More Spanish translated strings.
Murray Cumming [Mon, 30 Jan 2012 09:30:28 +0000 (10:30 +0100)]
1.21.4
Murray Cumming [Mon, 30 Jan 2012 09:04:52 +0000 (10:04 +0100)]
Translations: Try to translate the strings.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
Take the Open translation from GTK+'s .po files.
Take the Details translation from Glom's po files.
I have added the other strings to Glom so we can get translations that way:
http://git.gnome.org/browse/glom/commit/?id=
c3cefe607428a84bdf8de1b04e8bef6f70b04564
Murray Cumming [Fri, 27 Jan 2012 21:15:43 +0000 (22:15 +0100)]
Let Eclipse format all source code.
Murray Cumming [Fri, 27 Jan 2012 21:15:43 +0000 (22:15 +0100)]
Let Eclipse format all source code.
Murray Cumming [Fri, 27 Jan 2012 12:45:00 +0000 (13:45 +0100)]
Add a (empty) Report Place, View, and Activity.
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
Rename to:
* src/main/java/org/glom/web/client/place/HasTablePlace.java
* src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
this into a superclass:
* src/main/java/org/glom/web/client/place/HasRecordsPlace.java
and also use it as the base of this new ReportPlace:
* src/main/java/org/glom/web/client/place/ReportPlace.java
* src/main/java/org/glom/web/client/ui/ReportView.java
* src/main/java/org/glom/web/client/ui/ReportViewImpl.java
* src/main/java/org/glom/web/client/activity/ReportActivity.java:
Add these, containing mostly boiler-plate for now.
* src/main/java/org/glom/web/client/OnlineGlomService.java
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
* src/main/java/org/glom/web/server/ConfiguredDocument.java
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Add API to get the LayoutGroup for the report.
Murray Cumming [Fri, 27 Jan 2012 11:39:36 +0000 (12:39 +0100)]
TableSelectionViewImpl: Put the search label and entry in a div.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Put the search widgets in a FlowTable so that the CSS can be used to
style them while keeping them together.
* src/main/webapp/style.css: Mention the new div.
Murray Cumming [Fri, 27 Jan 2012 11:07:41 +0000 (12:07 +0100)]
Translate more strings in more locales.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
Translate the "Details" and "Open" string too.
* src/main/java/org/glom/web/OnlineGlom.gwt.xml:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
Add these new locales as placeholders though they currently contain English.
Murray Cumming [Fri, 27 Jan 2012 08:41:56 +0000 (09:41 +0100)]
OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
Check the ConfiguredDocument* for null before using it.
Murray Cumming [Thu, 26 Jan 2012 22:28:17 +0000 (23:28 +0100)]
Remove unnecessary SuppressWarnings
Murray Cumming [Thu, 26 Jan 2012 20:00:02 +0000 (21:00 +0100)]
Minor formatting fixes.
Murray Cumming [Thu, 26 Jan 2012 19:59:46 +0000 (20:59 +0100)]
Tell Eclipse about the generated java files.
* .classpath: This lets it find OnlineGlomConstants.java.
It would be nice if Eclipse just used the maven build files.
Murray Cumming [Thu, 26 Jan 2012 19:58:09 +0000 (20:58 +0100)]
Prevent a crash when no locale is specified in the URL.
* src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
Avoid returning a null string, obtained from
Window.Location.getParameter(). This caused a crash when it was
later passed to libglom's API.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
getDetailsLayoutAndData(): Use StringUtils.defaultString() to
guard against future null strings.
Murray Cumming [Fri, 27 Jan 2012 11:39:36 +0000 (12:39 +0100)]
TableSelectionViewImpl: Put the search label and entry in a div.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Put the search widgets in a FlowTable so that the CSS can be used to
style them while keeping them together.
* src/main/webapp/style.css: Mention the new div.
Murray Cumming [Fri, 27 Jan 2012 11:07:41 +0000 (12:07 +0100)]
Translate more strings in more locales.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
Translate the "Details" and "Open" string too.
* src/main/java/org/glom/web/OnlineGlom.gwt.xml:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
Add these new locales as placeholders though they currently contain English.
Murray Cumming [Fri, 27 Jan 2012 08:41:56 +0000 (09:41 +0100)]
OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
Check the ConfiguredDocument* for null before using it.
Murray Cumming [Thu, 26 Jan 2012 22:28:17 +0000 (23:28 +0100)]
Remove unnecessary SuppressWarnings
Murray Cumming [Thu, 26 Jan 2012 20:00:02 +0000 (21:00 +0100)]
Minor formatting fixes.
Murray Cumming [Thu, 26 Jan 2012 19:59:46 +0000 (20:59 +0100)]
Tell Eclipse about the generated java files.
* .classpath: This lets it find OnlineGlomConstants.java.
It would be nice if Eclipse just used the maven build files.
Murray Cumming [Thu, 26 Jan 2012 19:58:09 +0000 (20:58 +0100)]
Prevent a crash when no locale is specified in the URL.
* src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
Avoid returning a null string, obtained from
Window.Location.getParameter(). This caused a crash when it was
later passed to libglom's API.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
getDetailsLayoutAndData(): Use StringUtils.defaultString() to
guard against future null strings.
Murray Cumming [Thu, 26 Jan 2012 12:30:26 +0000 (13:30 +0100)]
Fix previous commit.
Murray Cumming [Thu, 26 Jan 2012 12:22:26 +0000 (13:22 +0100)]
Use the ?locale= query param instead of the &lang= token param.
* src/main/java/org/glom/web/client/place/ListPlace.java
* src/main/java/org/glom/web/client/place/DetailsPlace.java
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
Remove the lang token key and value.
* src/main/java/org/glom/web/client/ui/TableSelectionView.java
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
When the user selects a different locale from the chooser, use
Window.Location.assign() to change the URL, which then causes a reload.
* src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
* src/main/java/org/glom/web/client/activity/DetailsActivity.java
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
* src/main/java/org/glom/web/client/activity/ListActivity.java
* src/main/java/org/glom/web/client/activity/TableSelectionActivity
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/ListViewImpl.java:
Remove localeID member variables and method/constructor parameters, instead
using Utils.getCurrentLocaleID() when we need a localID to pass to
OnlineGlomService.
Murray Cumming [Thu, 26 Jan 2012 10:17:29 +0000 (11:17 +0100)]
Internationalize the UI strings.
* pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
<i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
* src/main/resources/org/glom/web/client/Messages.properties: Remove this
because it is unused. Messages are apparently strings that can have
parameters, but we do not need that yet, so Contants will be enough for now.
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
to say that we support the en and de locales.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
The original English strings.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
Some German translations of the English strings.
The i18n goal then uses the .properties file to generate an
OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
returns an implementation that returns the translated strings.
The documentation suggests putting these in src/java/*/client/, but it seems
best to put it in src/resources/*/client/.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
instead of hard-coding them.
Note that we cannot import OnlineGlomConstants because it does not exist yet,
but that does not seem to stop the build, though it confuses Eclipse.
You can see the translated string by adding ?locale=de to the URL, like so:
http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
Murray Cumming [Tue, 24 Jan 2012 13:11:36 +0000 (14:11 +0100)]
Improve null/empty String checks.
* pom.xml: Add a dependency on commons-lang, to use
org.apache.commons.lang.StringUtils.
* src/main/java/org/glom/web/server/ConfiguredDocument.java
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
Use StringUtils.isEmpty().
* src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
StringUtils class with a static isEmpty() function because we
cannot use org.apache.commons.lang.StringUtils in client-side
GWT code because it (apparently) cannot be compiled to javascript.
* src/main/java/org/glom/web/client/activity/DetailsActivity.java
* src/main/java/org/glom/web/client/activity/ListActivity.java
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
* src/main/java/org/glom/web/client/place/DetailsPlace.java
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
* src/main/java/org/glom/web/client/place/ListPlace.java
* src/main/java/org/glom/web/client/ui/cell/NumericCell.java
* src/main/java/org/glom/web/client/ui/cell/TextCell.java
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java
* src/main/java/org/glom/web/client/ui/details/Group.java
* src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
our StringUtils.isEmpty() function.
Murray Cumming [Thu, 26 Jan 2012 12:30:26 +0000 (13:30 +0100)]
Fix previous commit.
Murray Cumming [Thu, 26 Jan 2012 12:22:26 +0000 (13:22 +0100)]
Use the ?locale= query param instead of the &lang= token param.
* src/main/java/org/glom/web/client/place/ListPlace.java
* src/main/java/org/glom/web/client/place/DetailsPlace.java
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
Remove the lang token key and value.
* src/main/java/org/glom/web/client/ui/TableSelectionView.java
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
When the user selects a different locale from the chooser, use
Window.Location.assign() to change the URL, which then causes a reload.
* src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
* src/main/java/org/glom/web/client/activity/DetailsActivity.java
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
* src/main/java/org/glom/web/client/activity/ListActivity.java
* src/main/java/org/glom/web/client/activity/TableSelectionActivity
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
* src/main/java/org/glom/web/client/ui/ListView.java:
* src/main/java/org/glom/web/client/ui/ListViewImpl.java:
Remove localeID member variables and method/constructor parameters, instead
using Utils.getCurrentLocaleID() when we need a localID to pass to
OnlineGlomService.
Murray Cumming [Thu, 26 Jan 2012 10:17:29 +0000 (11:17 +0100)]
Internationalize the UI strings.
* pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
<i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
* src/main/resources/org/glom/web/client/Messages.properties: Remove this
because it is unused. Messages are apparently strings that can have
parameters, but we do not need that yet, so Contants will be enough for now.
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
to say that we support the en and de locales.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
The original English strings.
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
Some German translations of the English strings.
The i18n goal then uses the .properties file to generate an
OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
returns an implementation that returns the translated strings.
The documentation suggests putting these in src/java/*/client/, but it seems
best to put it in src/resources/*/client/.
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
instead of hard-coding them.
Note that we cannot import OnlineGlomConstants because it does not exist yet,
but that does not seem to stop the build, though it confuses Eclipse.
You can see the translated string by adding ?locale=de to the URL, like so:
http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
Murray Cumming [Tue, 24 Jan 2012 20:40:46 +0000 (21:40 +0100)]
Minor formatting change
Murray Cumming [Tue, 24 Jan 2012 20:23:10 +0000 (21:23 +0100)]
Reports drop-down: Layout corrections.