| 1 |
2012-01-26 Murray Cumming <murrayc@murrayc.com> |
| 2 |
|
| 3 |
Use the ?locale= query param instead of the &lang= token param. |
| 4 |
|
| 5 |
* src/main/java/org/glom/web/client/place/ListPlace.java |
| 6 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java |
| 7 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java |
| 8 |
Remove the lang token key and value. |
| 9 |
|
| 10 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java |
| 11 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 12 |
When the user selects a different locale from the chooser, use |
| 13 |
Window.Location.assign() to change the URL, which then causes a reload. |
| 14 |
|
| 15 |
* src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID(). |
| 16 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java |
| 17 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java |
| 18 |
* src/main/java/org/glom/web/client/activity/ListActivity.java |
| 19 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 20 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java |
| 21 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 22 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 23 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 24 |
|
| 25 |
Remove localeID member variables and method/constructor parameters, instead |
| 26 |
using Utils.getCurrentLocaleID() when we need a localID to pass to |
| 27 |
OnlineGlomService. |
| 28 |
|
| 29 |
2012-01-26 Murray Cumming <murrayc@murrayc.com> |
| 30 |
|
| 31 |
Internationalize the UI strings. |
| 32 |
|
| 33 |
* pom.xml: gwt-maven-plugin: Add the i18n goal and specify a |
| 34 |
<i18nConstantsBundle>, removing the unused <i18nMessagesBundle>. |
| 35 |
* src/main/resources/org/glom/web/client/Messages.properties: Remove this |
| 36 |
because it is unused. Messages are apparently strings that can have |
| 37 |
parameters, but we do not need that yet, so Contants will be enough for now. |
| 38 |
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines |
| 39 |
to say that we support the en and de locales. |
| 40 |
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties: |
| 41 |
The original English strings. |
| 42 |
* src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties: |
| 43 |
Some German translations of the English strings. |
| 44 |
The i18n goal then uses the .properties file to generate an |
| 45 |
OnlineGlomConstants.java file in target/ and somehow GWT.create() magically |
| 46 |
returns an implementation that returns the translated strings. |
| 47 |
The documentation suggests putting these in src/java/*/client/, but it seems |
| 48 |
best to put it in src/resources/*/client/. |
| 49 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 50 |
Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings |
| 51 |
instead of hard-coding them. |
| 52 |
Note that we cannot import OnlineGlomConstants because it does not exist yet, |
| 53 |
but that does not seem to stop the build, though it confuses Eclipse. |
| 54 |
|
| 55 |
You can see the translated string by adding ?locale=de to the URL, like so: |
| 56 |
http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager |
| 57 |
|
| 58 |
2012-01-24 Murray Cumming <murrayc@murrayc.com> |
| 59 |
|
| 60 |
Improve null/empty String checks. |
| 61 |
|
| 62 |
* pom.xml: Add a dependency on commons-lang, to use |
| 63 |
org.apache.commons.lang.StringUtils. |
| 64 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 65 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java |
| 66 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java |
| 67 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 68 |
Use StringUtils.isEmpty(). |
| 69 |
|
| 70 |
* src/main/java/org/glom/web/client/StringUtils.java: Add a tiny |
| 71 |
StringUtils class with a static isEmpty() function because we |
| 72 |
cannot use org.apache.commons.lang.StringUtils in client-side |
| 73 |
GWT code because it (apparently) cannot be compiled to javascript. |
| 74 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java |
| 75 |
* src/main/java/org/glom/web/client/activity/ListActivity.java |
| 76 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java |
| 77 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java |
| 78 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java |
| 79 |
* src/main/java/org/glom/web/client/place/ListPlace.java |
| 80 |
* src/main/java/org/glom/web/client/ui/cell/NumericCell.java |
| 81 |
* src/main/java/org/glom/web/client/ui/cell/TextCell.java |
| 82 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java |
| 83 |
* src/main/java/org/glom/web/client/ui/details/Group.java |
| 84 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: Use |
| 85 |
our StringUtils.isEmpty() function. |
| 86 |
|
| 87 |
2012-01-24 Murray Cumming <murrayc@murrayc.com> |
| 88 |
|
| 89 |
Update to the latest java-libglom API. |
| 90 |
|
| 91 |
* pom.xml: Require java-libglom 1.21.4. |
| 92 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 93 |
getDocumentInfo(), getListViewLayoutGroup(): |
| 94 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java |
| 95 |
getDocuments(): |
| 96 |
* src/main/java/org/glom/web/server/database/DBAccess.java |
| 97 |
getFieldsToShowForSQLQueryAddGroup(), |
| 98 |
getPrimaryKeyLayoutItemField(): Replace get_database_title() |
| 99 |
with either get_database_title_original() or |
| 100 |
get_database_title(localeID). |
| 101 |
|
| 102 |
2012-01-24 Murray Cumming <murrayc@murrayc.com> |
| 103 |
|
| 104 |
ConfiguredDocument: Avoid a null pointer exception. |
| 105 |
|
| 106 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 107 |
Initialize localeID to "" to avoid returning a null String which |
| 108 |
causes a crash in java-libglom's swing-generated code. |
| 109 |
|
| 110 |
2012-01-23 Murray Cumming <murrayc@murrayc.com> |
| 111 |
|
| 112 |
Some simple renaming. |
| 113 |
|
| 114 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java |
| 115 |
* src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise |
| 116 |
for localeChooser. This seems more appropriate and is less ambiguous |
| 117 |
particularly in the .css file. |
| 118 |
|
| 119 |
2012-01-23 Murray Cumming <murrayc@murrayc.com> |
| 120 |
|
| 121 |
ConfiguredDocument: Rename the localedID private member variable. |
| 122 |
|
| 123 |
2012-01-23 Murray Cumming <murrayc@murrayc.com> |
| 124 |
|
| 125 |
Adapt to the latest java-libglom API from git master. |
| 126 |
|
| 127 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: |
| 128 |
libglom now uses only Vector instead of List, which uses add() instead of |
| 129 |
addLast(). |
| 130 |
|
| 131 |
2012-01-20 Murray Cumming <murrayc@murrayc.com> |
| 132 |
|
| 133 |
Build a source tarball with mvn assembly:single |
| 134 |
|
| 135 |
* assembly.xml: Add this file. |
| 136 |
* pom.xml: Use the maven-assembly-plugin and tell it to use |
| 137 |
our assembly.xml file. |
| 138 |
|
| 139 |
2012-01-19 Murray Cumming <murrayc@murrayc.com> |
| 140 |
|
| 141 |
OnlineGlomServiceImpl: Get .glom files recursively. |
| 142 |
|
| 143 |
* pom.xml: Depend on commons-io from org.apache.commons. |
| 144 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java |
| 145 |
init(): Use org.apache.commons.io.FileUtils.listFiles() to get the |
| 146 |
files recursively, and with the easier filter for the extension. |
| 147 |
Use org.apache.commons.io.FilenameUtils.removeExtension() to |
| 148 |
simplify that code too. |
| 149 |
|
| 150 |
2012-01-19 Murray Cumming <murrayc@murrayc.com> |
| 151 |
|
| 152 |
README: Mention that you must install java-libglom packages separately. |
| 153 |
|
| 154 |
But then it works, because java-libglom is now in the central maven |
| 155 |
repository. |
| 156 |
|
| 157 |
2012-01-18 Murray Cumming <murrayc@murrayc.com> |
| 158 |
|
| 159 |
locales drop-down: Show the correct selected locale when the URL changes. |
| 160 |
|
| 161 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 162 |
.java: setPlace(): Move some code into fillView(). |
| 163 |
|
| 164 |
2012-01-18 Murray Cumming <murrayc@murrayc.com> |
| 165 |
|
| 166 |
locales drop-down: Do not lose the primary key. |
| 167 |
|
| 168 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java |
| 169 |
start(): onLocaleChange(): Pass the current primary key value, |
| 170 |
instead of an empty value. |
| 171 |
|
| 172 |
2012-01-18 Murray Cumming <murrayc@murrayc.com> |
| 173 |
|
| 174 |
locales drop-down: Do not lose the drop-down selection. |
| 175 |
|
| 176 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 177 |
.java (TableSelectionActivity.fillView): Set the selected locale |
| 178 |
after changing the drop-down items (though we do not really need |
| 179 |
to change them just because the locale changes.) |
| 180 |
|
| 181 |
2012-01-18 Murray Cumming <murrayc@murrayc.com> |
| 182 |
|
| 183 |
locales drop-down: Change the tables list when this changes. |
| 184 |
|
| 185 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 186 |
.java: TableSelectionActivity.start(): Move the async table titles |
| 187 |
retrieval into a private fillView() method and also call this when |
| 188 |
the chosen locale changes. |
| 189 |
Note that the document title is not actually translatable yet, but |
| 190 |
that is a problem that I should fix soon in libglom. |
| 191 |
|
| 192 |
2012-01-18 Murray Cumming <murrayc@murrayc.com> |
| 193 |
|
| 194 |
Improve the placement of the locales drop-down. |
| 195 |
|
| 196 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java |
| 197 |
Put the title and locales drop-down in a div (gwt.FlowTable). |
| 198 |
* src/main/webapp/style.css: Add magic css properties to make this work. |
| 199 |
Also remove the left margin from the title so that it lines up with the |
| 200 |
headerbox below it. |
| 201 |
|
| 202 |
2012-01-18 Murray Cumming <murrayc@murrayc.com> |
| 203 |
|
| 204 |
locales selector: Show human-readable locale titles. |
| 205 |
|
| 206 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 207 |
getDocumentInfo(): Use java.util.Locale to show a real title of |
| 208 |
each locale, in the locale's own language. |
| 209 |
|
| 210 |
2012-01-17 Murray Cumming <murrayc@murrayc.com> |
| 211 |
|
| 212 |
Add a language/locale selector drop-down. |
| 213 |
|
| 214 |
* src/main/java/org/glom/web/shared/DocumentInfo.java: |
| 215 |
Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles(). |
| 216 |
* /src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 217 |
getDocumentInfo(): Store the available Locales in the DocumentInfo. |
| 218 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 219 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 220 |
Add a ListBox to show the available locales. Add getLocaleSelector(), |
| 221 |
setLocaleList(), getSelectedLocale(), setSelectedLocale(). |
| 222 |
* src/main/java/org/glom/web/client/event/LocaleChangeEvent.java |
| 223 |
* src/main/java/org/glom/web/client/event/LocaleChangeEventHandler. |
| 224 |
java: Add these classes. |
| 225 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 226 |
start(): Fill the locales ListBox. Handle its change event, firing a |
| 227 |
LocaleChangeEvent. |
| 228 |
setPlace(): Show the selected locale as specified by the URL token. |
| 229 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 230 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 231 |
Handle LocaleChangeEvent, going to a new *Place with that locale. |
| 232 |
|
| 233 |
The placement of the ListBox is not pretty, and it currently uses the ID |
| 234 |
as a title, instead of "English", "Deutsch", "Espanola", etc, but it |
| 235 |
is a start. |
| 236 |
|
| 237 |
|
| 238 |
2012-01-17 Murray Cumming <murrayc@murrayc.com> |
| 239 |
|
| 240 |
Search box: Show the search text from the URL token. |
| 241 |
|
| 242 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 243 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 244 |
Add setQuickFindText(). |
| 245 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 246 |
.java: setPlace(): Store the queryText if the place is a ListPlace, |
| 247 |
and call TableSelectionView.setQuickFindText(). |
| 248 |
|
| 249 |
2012-01-17 Murray Cumming <murrayc@murrayc.com> |
| 250 |
|
| 251 |
Allow use of translations via, for instance, &lang=de in the URL. |
| 252 |
|
| 253 |
* pom.xml: Use the unstable java-libglom 1.21 version. |
| 254 |
|
| 255 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 256 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java |
| 257 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 258 |
init(): Instead of calling TranslatableItem.set_current_locale() |
| 259 |
(now removed), call ConfiguredDocument.setDefaultLocaleID(). |
| 260 |
However, this is only for default locales, which are not needed to |
| 261 |
change the locale in the URL. |
| 262 |
getDocumentInfo(), getListViewLayout(), getSortedListViewData(), |
| 263 |
getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(), |
| 264 |
getSortedRelatedListData(): Add a localeID parameter, so we can get the |
| 265 |
layout for a particular locale. |
| 266 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 267 |
Add get/setDefaultLocaleID(). |
| 268 |
getDocumentInfo(), getListViewData(), getRelatedListData(), |
| 269 |
getDetailsLayoutGroup(), getListViewLayoutGroup(), |
| 270 |
createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a |
| 271 |
localeID parameter, so we can get the layout for a particular locale. |
| 272 |
|
| 273 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java: |
| 274 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 275 |
* src/main/java/org/glom/web/client/place/ListPlace.java: |
| 276 |
Parse and construct a lang parameter too. |
| 277 |
|
| 278 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: |
| 279 |
start(): Pass the defaultLocaleID to addDocumentLink(). It is then |
| 280 |
passed to subsequent methods and constructors. |
| 281 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 282 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 283 |
Store the localeID from the *Place and pass it to other constructors |
| 284 |
and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData(). |
| 285 |
|
| 286 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java: |
| 287 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 288 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java |
| 289 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java |
| 290 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 291 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 292 |
Take localeID parameters and pass them to subsequent constructors and |
| 293 |
methods, so that the layout is always retrieved for that locale. |
| 294 |
|
| 295 |
This is rather repetitive. |
| 296 |
|
| 297 |
Note that "" means the original (default) locale of the Glom document, |
| 298 |
which is usually English. |
| 299 |
|
| 300 |
2012-01-17 Murray Cumming <murrayc@murrayc.com> |
| 301 |
|
| 302 |
Documents: Remove final keyword to fix startup configuration. |
| 303 |
|
| 304 |
* src/main/java/org/glom/web/shared/Documents.java: Remove the |
| 305 |
final keywords on the private member variables because that breaks |
| 306 |
the startup, apparently (there are warnings) because it stops them |
| 307 |
from being serialized. I added these in the previous commit. |
| 308 |
|
| 309 |
2012-01-13 Murray Cumming <murrayc@murrayc.com> |
| 310 |
|
| 311 |
Documents: Add some final keywords. |
| 312 |
|
| 313 |
* src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested |
| 314 |
this. |
| 315 |
|
| 316 |
2012-01-13 Murray Cumming <murrayc@murrayc.com> |
| 317 |
|
| 318 |
OnlineGlomServiceImpl: Add to overview comments. |
| 319 |
|
| 320 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 321 |
Note that this is where all the document are loaded. They are not |
| 322 |
loaded freshly for each page. |
| 323 |
|
| 324 |
2012-01-12 Murray Cumming <murrayc@murrayc.com> |
| 325 |
|
| 326 |
Add a search box. |
| 327 |
|
| 328 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 329 |
Add a TextBox for the text of a quick find. |
| 330 |
Add getQuickFindBox(), to get the widget, and getQuickFindText() to |
| 331 |
get the text. |
| 332 |
setBackLink(): Add a String quickFind parameter. |
| 333 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java |
| 334 |
(TableSelectionView): Add getQuickFindBox() and getQuickFindText() |
| 335 |
to the base interface, because that is how TableSelectionViewImpl is used. |
| 336 |
* src/main/webapp/style.css: Add style for the search box and its label. |
| 337 |
|
| 338 |
* src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java: |
| 339 |
* src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java: |
| 340 |
Add these files, based on the existing TableChangeEvent and |
| 341 |
TableChangeEventHandlers. |
| 342 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java |
| 343 |
start(): Handle QuickFindChangeEvent, passing its quickFind text to |
| 344 |
a ListPlace() that the user should be taken to. |
| 345 |
* src/main/java/org/glom/web/client/activity/ListActivity.java |
| 346 |
start(): Handle it here too and adapt the TableChangeEvent handler to |
| 347 |
pass the extra "" quickFind parameter to ListPlace. |
| 348 |
* src/main/java/org/glom/web/client/place/ListPlace.java: |
| 349 |
Constructor: Take an extra String quickFind parameter and store it, |
| 350 |
returning it from a new getQuickFind() method. |
| 351 |
getToken(): Put the quickFind text in the URL token. |
| 352 |
getPlace(): Parse the quickFind text from the URL token. |
| 353 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja |
| 354 |
va: addDocumentLink(): Pass an extra "" quickFind parameter to the |
| 355 |
ListPlace constructor. |
| 356 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 357 |
.java: start(): Add a Change handler for the TableSelectionView's |
| 358 |
TextBox (via its base HasChangeHandlers interface), firing the new |
| 359 |
QuickFindChangeEvent. |
| 360 |
setPlace(): Adapt the call to TableSelectionView.setbackLink(), to |
| 361 |
pass the extra "" quickFind parameter. |
| 362 |
|
| 363 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 364 |
setCellTable(): Add a String quickFind parameter and pass it to |
| 365 |
the ListViewTable() constructor. |
| 366 |
* src/main/java/org/glom/web/client/ui/ListView.java: Change |
| 367 |
setCellTable() in the base interface, because that is how ListViewImpl |
| 368 |
is used. |
| 369 |
|
| 370 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 371 |
Add a String quickFind member variable. |
| 372 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 373 |
Constructor: Add a String quickFind parameter, storing it in the |
| 374 |
base ListTable's member variable. |
| 375 |
onRangeChanged(): Pass quickFind to the |
| 376 |
OnlineGlomServiceAsync.getSortedListViewData() and |
| 377 |
OnlineGlomServiceAsync.getListViewData() methods. |
| 378 |
|
| 379 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 380 |
getListViewData(), getSortedListViewData(): Add a String quickFind |
| 381 |
parameter, passing it to ConfiguredDocument.getListViewData(). |
| 382 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 383 |
Change getListViewData(), getSortedListViewData() in the base interface, |
| 384 |
because that is how OnlineGlomServiceImpl is used, via this: |
| 385 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 386 |
Change getListViewData(), getSortedListViewData() here too. |
| 387 |
This class can apparently be used to asynchronously call methods on |
| 388 |
OnlineGlomService, and GWT seems to implement that after recognizing |
| 389 |
just the *Async name convention and the extra AsyncCallback parameters. |
| 390 |
|
| 391 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 392 |
getListViewData(): Add a String quickFind parameter, and pass it to |
| 393 |
ListViewDBAccess.getData(). |
| 394 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java |
| 395 |
getListData(): Add a String quickFind parameter and pass it to |
| 396 |
getSelectQuery(). |
| 397 |
getSelectQuery(): Add a String quickFind parameter. |
| 398 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java |
| 399 |
getSelectQuery(): Add a String quickFind parameter and use it with |
| 400 |
Glom.get_find_where_clause_quick() to pass a where_clause to |
| 401 |
Glom.build_sql_select_with_where_clause(), to actually filter the |
| 402 |
list view results. |
| 403 |
getData(): Add a String quickFind parameter, passing it to getListData(). |
| 404 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja |
| 405 |
va: getData(): Pass an empty string to getListData() for the |
| 406 |
quickFind parameter. |
| 407 |
|
| 408 |
2012-01-12 Murray Cumming <murrayc@murrayc.com> |
| 409 |
|
| 410 |
ListTable: Minor change. |
| 411 |
|
| 412 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java |
| 413 |
createCellTable(): Make this protected instead of public. |
| 414 |
|
| 415 |
2012-01-12 Murray Cumming <murrayc@murrayc.com> |
| 416 |
|
| 417 |
Many files: Use final for the parameters and use the @override attribute. |
| 418 |
|
| 419 |
2012-01-22 Ben Konrath <ben@bagu.org> |
| 420 |
|
| 421 |
Add anchor links for single line text that starts with http, ftp and www. |
| 422 |
|
| 423 |
Bug #667269 |
| 424 |
|
| 425 |
2012-01-22 Ben Konrath <ben@bagu.org> |
| 426 |
|
| 427 |
Add ellipsis to single line text in details view. |
| 428 |
|
| 429 |
Bug #667269 |
| 430 |
|
| 431 |
2012-01-04 Murray Cumming <murrayc@murrayc.com> |
| 432 |
|
| 433 |
Remove all javadoc author tags. |
| 434 |
|
| 435 |
Because they are awkward and meaningless when many people touch |
| 436 |
many files. |
| 437 |
See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164 |
| 438 |
|
| 439 |
2012-01-04 Murray Cumming <murrayc@murrayc.com> |
| 440 |
|
| 441 |
Revert the COPYING.LESSER to COPYING rename. |
| 442 |
|
| 443 |
Apparently both should be there if it is LGPL. |
| 444 |
|
| 445 |
2012-01-03 Murray Cumming <murrayc@murrayc.com> |
| 446 |
|
| 447 |
*View: Remove unused imports. |
| 448 |
|
| 449 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 450 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java |
| 451 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 452 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 453 |
Remove unused imports, as suggested by Eclipse. |
| 454 |
|
| 455 |
2012-01-02 Murray Cumming <murrayc@murrayc.com> |
| 456 |
|
| 457 |
Move the *View::Presenter types, and some API into one base View. |
| 458 |
|
| 459 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 460 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java: |
| 461 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 462 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move |
| 463 |
Presenter, setPresenter() and clear() into a shared base interface, |
| 464 |
to avoid the unnecessary duplicate Presenter types and to more clearly |
| 465 |
show how the *Views share the same structure, even if they are not |
| 466 |
used polymorphically. |
| 467 |
|
| 468 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: |
| 469 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja |
| 470 |
va: |
| 471 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 472 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 473 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActiv |
| 474 |
ity.java: |
| 475 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity |
| 476 |
.java: Adapt. |
| 477 |
|
| 478 |
Feel free to revert this if there is a good reason for the duplicate |
| 479 |
types. |
| 480 |
|
| 481 |
2012-01-02 Murray Cumming <murrayc@murrayc.com> |
| 482 |
|
| 483 |
OnlineGlom: Make clientFactory a (protected) member, and test it a bit. |
| 484 |
|
| 485 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory |
| 486 |
a class member instead of a local variable in the method. |
| 487 |
This lets us use it to get the view instances, for use in tests. |
| 488 |
* src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: |
| 489 |
beforeOnlineGlom(): Test some more details of the initial view. |
| 490 |
Again, this is not very useful. |
| 491 |
|
| 492 |
To really test gwt-glom we will need to start a local postgresql |
| 493 |
instance with local data, like the Glom tests in C++. |
| 494 |
|
| 495 |
2012-01-02 Murray Cumming <murrayc@murrayc.com> |
| 496 |
|
| 497 |
pom.xml: Mention the LGPL license. |
| 498 |
|
| 499 |
* pom.xml: Add a licenses section. |
| 500 |
* COPYING.LESSER: Move this to COPYING, which |
| 501 |
previously contained the GPL. But gwt-glom is all LGPL. |
| 502 |
|
| 503 |
2012-01-02 Murray Cumming <murrayc@murrayc.com> |
| 504 |
|
| 505 |
Add project information to README and pom.xml. |
| 506 |
|
| 507 |
* README: Add a brief description and mention some mvn |
| 508 |
commands. |
| 509 |
* pom.xml: This extra information shows up in mvn site |
| 510 |
generated pages. |
| 511 |
|
| 512 |
2011-01-02 Murray Cumming <murrayc@murrayc.com> |
| 513 |
|
| 514 |
Use the latest java-libglom version. |
| 515 |
|
| 516 |
* pom.xml: Use java-libglom 1.19.2 instead of 1.19.1. |
| 517 |
|
| 518 |
2012-01-01 Murray Cumming <murrayc@murrayc.com> |
| 519 |
|
| 520 |
GwtTestOnlineGlom: Test a little more. |
| 521 |
|
| 522 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels |
| 523 |
protected rather than private, as suggested by the gwt-test-utils |
| 524 |
maintianer here: |
| 525 |
http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page |
| 526 |
* src/test/java/org/glom/web/client/GwtTestOnlineGlom.java |
| 527 |
Test the initial visibility of the panels. |
| 528 |
|
| 529 |
However, this is not a very useful test. |
| 530 |
And I wonder how we should generally test using this idea for an |
| 531 |
activity/places app like ours where the real changes happen implicitly |
| 532 |
based on the history token/URL. |
| 533 |
|
| 534 |
2012-01-01 Murray Cumming <murrayc@murrayc.com> |
| 535 |
|
| 536 |
Slight modification to *Mapper comments. |
| 537 |
|
| 538 |
* src/main/java/org/glom/web/client/mvp/DataActivityMapper.java |
| 539 |
(DataActivityMapper) |
| 540 |
* src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa |
| 541 |
pper.java |
| 542 |
* src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe |
| 543 |
r.java |
| 544 |
Remove comments mentioning GIN because they are just copied from |
| 545 |
the example code and are apparently not helpful: |
| 546 |
http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73 |
| 547 |
Also change the mention of a class that is only in the example code. |
| 548 |
|
| 549 |
2012-01-01 Murray Cumming <murrayc@murrayc.com> |
| 550 |
|
| 551 |
GwtTestOnlineGlom test: Minor changes. |
| 552 |
|
| 553 |
* src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: |
| 554 |
Avoid the long qualified class name and modify the comment |
| 555 |
because it is now obvious to me that the mocked class is the only |
| 556 |
custom one created via GWT.create(). |
| 557 |
|
| 558 |
2012-01-01 Murray Cumming <murrayc@murrayc.com> |
| 559 |
|
| 560 |
Tests: Added the beginnings of a test using gwt-test-utils. |
| 561 |
|
| 562 |
* pom.xml: Add dependencies on gwt-test-utils and easymock. |
| 563 |
* src/test/resources/META-INF/gwt-test-utils.properties: Add this file |
| 564 |
which tells gwt-test-utils what class will be tested. |
| 565 |
* src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: |
| 566 |
Add a simple (but empty) test case. One class, used by the OnlineGlom |
| 567 |
class, is mocked so that it can be created. However, I am not sure |
| 568 |
why only this class needs to be mocked. |
| 569 |
|
| 570 |
Note that mockito seems more popular, and clearer, than easymock, |
| 571 |
but I have not got that working yet. It might be a matter of the |
| 572 |
mockito version. |
| 573 |
|
| 574 |
This test is run during mvn integration-test. |
| 575 |
|
| 576 |
2011-12-31 Murray Cumming <murrayc@murrayc.com> |
| 577 |
|
| 578 |
Tests: Use junit4-style syntax instead of junit3-style. |
| 579 |
|
| 580 |
* src/test/java/org/glom/web/client/place/DetailsPlaceTest.java: |
| 581 |
* src/test/java/org/glom/web/client/place/ListPlaceTest.java: |
| 582 |
* src/test/java/org/glom/web/shared/DataItemTest.java: |
| 583 |
Use the @Test annotation rather than relying on the test*() prefix. |
| 584 |
Also no longer implement TestCase, to avoid triggering support for |
| 585 |
the junit3-way, which stops the annotations from working. |
| 586 |
Change the imports from import junit.framework.* to |
| 587 |
import org.junit.*, which is apparently the new way. |
| 588 |
|
| 589 |
2011-12-31 Murray Cumming <murrayc@murrayc.com> |
| 590 |
|
| 591 |
Added a test for ListPlace token parsing and creation. |
| 592 |
|
| 593 |
* src/test/java/org/glom/web/client/place/ListPlaceTest.java: |
| 594 |
This is much the same as DetailsPlaceTest. |
| 595 |
|
| 596 |
I wonder how we could test the other parts of the *Place API. |
| 597 |
|
| 598 |
2011-12-30 Murray Cumming <murrayc@murrayc.com> |
| 599 |
|
| 600 |
DetailsPlace test: Also test getToken() and recreation via getPlace(). |
| 601 |
|
| 602 |
* src/test/java/org/glom/web/client/place/DetailsPlaceTest.java: |
| 603 |
testGetPlaceParameters(): Get the tokens from the DetailsPlace and |
| 604 |
recreate it, testing the recreated DetailsPlace for the same parameter |
| 605 |
values. |
| 606 |
|
| 607 |
2011-12-30 Murray Cumming <murrayc@murrayc.com> |
| 608 |
|
| 609 |
Use the surefire-report plugin. |
| 610 |
|
| 611 |
* pom.xml: This generates a HTML report about the tests in |
| 612 |
target/site/surefire-report.html |
| 613 |
when you do mvn surefire-report:report. It seems to be popular/normal. |
| 614 |
|
| 615 |
2011-12-30 Murray Cumming <murrayc@murrayc.com> |
| 616 |
|
| 617 |
Added a test for DetailsPlace. |
| 618 |
|
| 619 |
* src/test/java/org/glom/web/client/place/DetailsPlaceTest.java: |
| 620 |
Test the getPlace() token parsing. |
| 621 |
|
| 622 |
2011-12-30 Murray Cumming <murrayc@murrayc.com> |
| 623 |
|
| 624 |
Added a first unit test. |
| 625 |
|
| 626 |
* pom.xml: Add a test goal, and a dependency on junit in that scope. |
| 627 |
* src/test/java/org/glom/web/shared/DataItemTest.java: |
| 628 |
This is a silly test but it is just to get things started. Note that |
| 629 |
maven/junit finds the test because it looks in src/test by default. |
| 630 |
|
| 631 |
2011-12-22 Ben Konrath <ben@bagu.org> |
| 632 |
|
| 633 |
Change charsetName to "UTF-8" when replacing line breaks. |
| 634 |
|
| 635 |
JavaScript requires the charsetName to be "UTF-8". CharsetName values |
| 636 |
that work in Java (such as "UTF8") will not work when compiled to |
| 637 |
JavaScript. |
| 638 |
|
| 639 |
This fixes a problem with multi-line details view fields that have hard |
| 640 |
line breaks. The "License Text" field on this page demonstrates the |
| 641 |
problem: |
| 642 |
|
| 643 |
http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197 |
| 644 |
|
| 645 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: |
| 646 |
|
| 647 |
2011-12-22 Ben Konrath <ben@bagu.org> |
| 648 |
|
| 649 |
Fix another bug with related list navigation. |
| 650 |
|
| 651 |
I've tested all the navigation buttons in all of the related lists |
| 652 |
so things should be good now. |
| 653 |
|
| 654 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 655 |
|
| 656 |
2011-12-22 Ben Konrath <ben@bagu.org> |
| 657 |
|
| 658 |
Fix a crasher when refreshing the list view with the default table. |
| 659 |
|
| 660 |
This crash will also happen when loading the list view with the default |
| 661 |
table from a link or bookmark. |
| 662 |
|
| 663 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go |
| 664 |
to the main document selection page when the document id hasn't been |
| 665 |
set. |
| 666 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Go to |
| 667 |
the main document selection page when the document id hasn't been |
| 668 |
set. |
| 669 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty |
| 670 |
values for the details place when the document id hasn't been set. |
| 671 |
* src/main/java/org/glom/web/client/place/ListPlace.java: Use empty |
| 672 |
values for the list place when the document id hasn't been set. |
| 673 |
|
| 674 |
2011-12-21 Ben Konrath <ben@bagu.org> |
| 675 |
|
| 676 |
Protect against NPE when glom.document.locale is not in config. |
| 677 |
|
| 678 |
This patch protects against an NPE when glom.document.locale is not in |
| 679 |
the config file. This NPE will also happen if glom.document.locale is |
| 680 |
commented out. |
| 681 |
|
| 682 |
The patch also updates the error message to display the class name when |
| 683 |
the getMessage() returns null. This was happening when the NPE was |
| 684 |
thrown and I had "Configuration Error: null". If an NPE is encountered |
| 685 |
with this patch, "Configuration Error: NullPointerException " will be |
| 686 |
displayed. |
| 687 |
|
| 688 |
This commit closes this bug: |
| 689 |
|
| 690 |
https://bugzilla.gnome.org/show_bug.cgi?id=666669 |
| 691 |
|
| 692 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 693 |
|
| 694 |
2011-12-20 Murray Cumming <murrayc@murrayc.com> |
| 695 |
|
| 696 |
Rename onlineglom.properties to onlineglom.properties.sample. |
| 697 |
|
| 698 |
* src/main/resources/onlineglom.properties: Rename to: |
| 699 |
* src/main/resources/onlineglom.properties.sample: |
| 700 |
* src/main/resources/README: And add this file explaining that people |
| 701 |
should rename it back when deploying. |
| 702 |
|
| 703 |
2011-12-20 Murray Cumming <murrayc@murrayc.com> |
| 704 |
|
| 705 |
Allow choosing the translation in the .properties file. |
| 706 |
|
| 707 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java |
| 708 |
init(): Read a glom.document.locale value from the configuration file |
| 709 |
and call Glom's TransatableItem::set_current_locale() method. |
| 710 |
* src/main/resources/onlineglom.properties: Add a commented-out |
| 711 |
example of this new setting. |
| 712 |
|
| 713 |
It would be better to add &lang=de_DE to the URL, but the current |
| 714 |
libglom API does not allow us to do this easily. I am working on that. |
| 715 |
|
| 716 |
2011-12-19 Murray Cumming <murrayc@murrayc.com> |
| 717 |
|
| 718 |
Avoid a crash in parsing of token parameters. |
| 719 |
|
| 720 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j |
| 721 |
ava: getTokenParams(): Do not crash if a parameter has a key but no |
| 722 |
value, and ignore parameters with neither. |
| 723 |
|
| 724 |
2011-12-17 Murray Cumming <murrayc@murayc.com> |
| 725 |
|
| 726 |
History token building/handling: Improve use of token parameters. |
| 727 |
|
| 728 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java |
| 729 |
(HasSelectableTablePlace.Tokenizer): Add getTokenParams(String) |
| 730 |
and buildParamsToken(HashMap), for use by derived classes. |
| 731 |
Make the separator private because it is no longer be needed. |
| 732 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java |
| 733 |
(DetailsPlace.Tokenizer.getToken): Use buildParamsToken() |
| 734 |
instead of manual string concatenation. |
| 735 |
(DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead |
| 736 |
of hardcoded indices and awkward splitting code. |
| 737 |
* src/main/java/org/glom/web/client/place/ListPlace.java |
| 738 |
(ListPlace.Tokenizer.getToken): Use buildParamsToken() |
| 739 |
instead of manual string concatenation. |
| 740 |
(ListPlace.Tokenizer.getPlace): Use getTokenParams() instead |
| 741 |
of hardcoded indices and awkward splitting code. |
| 742 |
This should fix bug #666420 |
| 743 |
|
| 744 |
2011-12-16 Murray Cumming <murrayc@murrayc.com> |
| 745 |
|
| 746 |
Fix a Navgiation->Navigation typo in the code. |
| 747 |
|
| 748 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java |
| 749 |
Rename processNavgiation() to processNavigation(). |
| 750 |
|
| 751 |
2011-12-16 Murray Cumming <murrayc@murrayc.com> |
| 752 |
|
| 753 |
Fix a seperator->separator typo in the code. |
| 754 |
|
| 755 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java |
| 756 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java |
| 757 |
* src/main/java/org/glom/web/client/place/ListPlace.java: Just a |
| 758 |
misspelling. |
| 759 |
|
| 760 |
2011-12-15 Ben Konrath <ben@bagu.org> |
| 761 |
|
| 762 |
Cleanup some comments. |
| 763 |
|
| 764 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 765 |
|
| 766 |
2011-12-14 Ben Konrath <ben@bagu.org> |
| 767 |
|
| 768 |
Replace \n with <br/> for multiline text in the details view. |
| 769 |
|
| 770 |
Vertical scrollbars are added when needed as well. |
| 771 |
|
| 772 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: |
| 773 |
|
| 774 |
2011-12-14 Ben Konrath <ben@bagu.org> |
| 775 |
|
| 776 |
Specify the font for document selection links. |
| 777 |
|
| 778 |
* src/main/webapp/style.css: |
| 779 |
|
| 780 |
2011-12-14 Ben Konrath <ben@bagu.org> |
| 781 |
|
| 782 |
Fix bouncy CellTable while paging. |
| 783 |
|
| 784 |
This doesn't currently work with related list tables in unselected |
| 785 |
Notebook tabs. |
| 786 |
|
| 787 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java |
| 788 |
|
| 789 |
2011-12-14 Ben Konrath <ben@bagu.org> |
| 790 |
|
| 791 |
Revamp the appearance of the document selection page. |
| 792 |
|
| 793 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 794 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml: |
| 795 |
* src/main/webapp/style.css: |
| 796 |
|
| 797 |
2011-12-13 Ben Konrath <ben@bagu.org> |
| 798 |
|
| 799 |
Set navigation button column to the smallest size possible. |
| 800 |
|
| 801 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 802 |
|
| 803 |
2011-12-13 Ben Konrath <ben@bagu.org> |
| 804 |
|
| 805 |
Change OpenButton nomenclature to NavigationButton. |
| 806 |
|
| 807 |
Using NavigtionButton makes things more generic. Classes, methods and |
| 808 |
variables have been changed. |
| 809 |
|
| 810 |
This is a rename-only refactor. |
| 811 |
|
| 812 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 813 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 814 |
* src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java: |
| 815 |
Renamed from OpenButtonCell. |
| 816 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 817 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 818 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 819 |
|
| 820 |
2011-12-12 Ben Konrath <ben@bagu.org> |
| 821 |
|
| 822 |
Remove unnecessary String argument in RelatedListTable and ListViewTable. |
| 823 |
|
| 824 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 825 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 826 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 827 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 828 |
|
| 829 |
2011-12-12 Ben Konrath <ben@bagu.org> |
| 830 |
|
| 831 |
Update variable names and comments. |
| 832 |
|
| 833 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 834 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 835 |
|
| 836 |
2011-12-12 Ben Konrath <ben@bagu.org> |
| 837 |
|
| 838 |
Properly initialize numNonEmptyRows variable to zero. |
| 839 |
|
| 840 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 841 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 842 |
|
| 843 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 844 |
|
| 845 |
Add latest mockup with HTML tables. |
| 846 |
|
| 847 |
Features of this mockup: |
| 848 |
|
| 849 |
-> HTML table for flowtable |
| 850 |
-> HTML table for flowtable column |
| 851 |
-> Example of how related lists would look |
| 852 |
-> Not using text entries for data items |
| 853 |
|
| 854 |
The current version of Online Glom doesn't use HTML tables for the |
| 855 |
flowtable columns. |
| 856 |
|
| 857 |
This mockup has been sent to the glom-devel mailing list but it's good |
| 858 |
to have it here as well. |
| 859 |
|
| 860 |
* mockups/details-view-html-tables.html: |
| 861 |
|
| 862 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 863 |
|
| 864 |
Remove unnecessary getPrimaryKeyField() method. |
| 865 |
|
| 866 |
getPrimaryKeyFieldForTable(String) has been renamed to |
| 867 |
getPrimaryKeyField(String). |
| 868 |
|
| 869 |
* src/main/java/org/glom/web/server/database/DBAccess.java: |
| 870 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 871 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 872 |
|
| 873 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 874 |
|
| 875 |
Add string representation of TypedDataItem value to conversion error message. |
| 876 |
|
| 877 |
* src/main/java/org/glom/web/server/Utils.java: Logging the error |
| 878 |
message was extracted into its own method to avoid duplication. |
| 879 |
|
| 880 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 881 |
|
| 882 |
Add type checking to navigation primary key value creation. |
| 883 |
|
| 884 |
Create navigation primary key only if the expected type from the Glom |
| 885 |
document matches the type returned by the SQL query. |
| 886 |
|
| 887 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 888 |
|
| 889 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 890 |
|
| 891 |
Rename a couple of variables in RelatedListNavigation. |
| 892 |
|
| 893 |
This is a rename-only refactor. |
| 894 |
|
| 895 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 896 |
|
| 897 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 898 |
|
| 899 |
Move getListLayoutGroup() into getListViewLayoutGroup(). |
| 900 |
|
| 901 |
This removes getListLayoutGroup(). It was only being called by |
| 902 |
getListViewLayoutGroup(). |
| 903 |
|
| 904 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 905 |
|
| 906 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 907 |
|
| 908 |
Remove check for LayoutItem_Portal in list table method. |
| 909 |
|
| 910 |
This check is no longer necessary because the method isn't being used |
| 911 |
to create the LayoutItemPortal DTO. |
| 912 |
|
| 913 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 914 |
|
| 915 |
2011-12-05 Ben Konrath <ben@bagu.org> |
| 916 |
|
| 917 |
Properly support related list navigation. |
| 918 |
|
| 919 |
Navigation from the "Repository Analyzer -> Package Scans -> |
| 920 |
Dependencies" related table wasn't working because the primary key for |
| 921 |
related tables wasn't being set properly. This commit fixes the |
| 922 |
problem. |
| 923 |
|
| 924 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use |
| 925 |
getListLayoutGroup() to create the LayoutItemPortal DTO. This method |
| 926 |
doesn't set the primary key properly for related list tables. |
| 927 |
* src/main/java/org/glom/web/server/database/DBAccess.java: Add table |
| 928 |
name parameter to getPrimaryKeyLayoutItemField(). This makes the method |
| 929 |
useful for getting the primary key for list view tables and for related |
| 930 |
list tables. |
| 931 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: |
| 932 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java: |
| 933 |
Move code to set the primary key for the table from the abstract |
| 934 |
ListDBAccess class to ListViewDBAccess as it's only correct for list |
| 935 |
view tables. |
| 936 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 937 |
Properly add primary key to related list tables. |
| 938 |
|
| 939 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 940 |
|
| 941 |
Properly set the horizontal alignment of fields. |
| 942 |
|
| 943 |
This fix is for both the list tables and the details view. |
| 944 |
|
| 945 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Use |
| 946 |
LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean) |
| 947 |
to set the horizontal alignment of fields. |
| 948 |
|
| 949 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 950 |
|
| 951 |
Display currency codes in the details view. |
| 952 |
|
| 953 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: |
| 954 |
|
| 955 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 956 |
|
| 957 |
Avoid duplicate JNI call. |
| 958 |
|
| 959 |
JNI is not as efficient as pure Java and this is an easy (and small) |
| 960 |
optimization. |
| 961 |
|
| 962 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 963 |
Use previously retrieved value for whereClauseToTableName instead of |
| 964 |
getting it again. |
| 965 |
|
| 966 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 967 |
|
| 968 |
Rename a couple of variables in RelatedListNavigation. |
| 969 |
|
| 970 |
This is a rename-only refactor. |
| 971 |
|
| 972 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 973 |
|
| 974 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 975 |
|
| 976 |
Indicate clearly that a mismatched primary key type is a bug. |
| 977 |
|
| 978 |
* src/main/java/org/glom/web/server/Utils.java: Change log level from |
| 979 |
warning to error. Add 'This is a bug.' to message. |
| 980 |
|
| 981 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 982 |
|
| 983 |
Update / fix some comments. |
| 984 |
|
| 985 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old |
| 986 |
comments. |
| 987 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix |
| 988 |
comment. |
| 989 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 990 |
Fix comments. Add some TODOs. |
| 991 |
|
| 992 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 993 |
|
| 994 |
Enable navigation to details view with string primary key from related list. |
| 995 |
|
| 996 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 997 |
Create a text primary key value when return type of result is |
| 998 |
java.sql.Types.VARCHAR. |
| 999 |
|
| 1000 |
2011-12-02 Ben Konrath <ben@bagu.org> |
| 1001 |
|
| 1002 |
Use checkboxes for booleans in the details view. |
| 1003 |
|
| 1004 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: |
| 1005 |
|
| 1006 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1007 |
|
| 1008 |
Improve performance of related list height calculation. |
| 1009 |
|
| 1010 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1011 |
Put code to calculate the expected height in a static initializer so |
| 1012 |
that that it's only called once. |
| 1013 |
|
| 1014 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1015 |
|
| 1016 |
Show related list tables in notebooks (again). |
| 1017 |
|
| 1018 |
Calculate the height of the related list tables so the Notebook can be |
| 1019 |
set the correct height. The height of the related list table is also needed by |
| 1020 |
FlowTable to be able decide how to create the layout. |
| 1021 |
|
| 1022 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate |
| 1023 |
and set the Portal height based on the height of the related list |
| 1024 |
table and the Portal container. |
| 1025 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1026 |
Add method to calculate the height of the related list tables. |
| 1027 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 1028 |
* src/main/webapp/style.css: Add css class for Pager. This is needed to |
| 1029 |
calculate the height of the Pager widget. |
| 1030 |
|
| 1031 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1032 |
|
| 1033 |
Use CellTable API for table property instead of setting style on Element. |
| 1034 |
|
| 1035 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1036 |
|
| 1037 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1038 |
|
| 1039 |
Make ListViewTable and RelatedListTable a consistent height. |
| 1040 |
|
| 1041 |
The tables are now a consistent height regardless of the contents of |
| 1042 |
the table. A hidden button is added to empty rows to ensure that the |
| 1043 |
height of these rows will match the height of rows with data. |
| 1044 |
|
| 1045 |
A navigation button column is now added to every table. The width of |
| 1046 |
the navigation column is set to 0px when a RelatedListTable shouldn't |
| 1047 |
have navigation buttons. This maintains the a consistent row height in |
| 1048 |
tables that don't show the navigation buttons. |
| 1049 |
|
| 1050 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide |
| 1051 |
navigation column when not needed. |
| 1052 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method |
| 1053 |
arguments for navigation button to constructor of ListViewTable. |
| 1054 |
* src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render |
| 1055 |
hidden button for empty data rows. |
| 1056 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method |
| 1057 |
arguments for navigation button to constructor. |
| 1058 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Always |
| 1059 |
create navigation buttons. Add hideNavigationButtons() method. |
| 1060 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method |
| 1061 |
arguments for navigation button to constructor. |
| 1062 |
|
| 1063 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1064 |
|
| 1065 |
Use 'visibility: hidden' in Utils.getWidgetHeight(). |
| 1066 |
|
| 1067 |
This is better choice because hidden elements are invisible, don't |
| 1068 |
respond to events and are not part of the tab order. They will, |
| 1069 |
however, take up space which is required to be able to calculate the |
| 1070 |
height of the widget. |
| 1071 |
|
| 1072 |
* src/main/java/org/glom/web/client/Utils.java: |
| 1073 |
|
| 1074 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1075 |
|
| 1076 |
Use Utils.getWidgetHeight() in FlowTable. |
| 1077 |
|
| 1078 |
* src/main/java/org/glom/web/client/Utils.java: Remove TODO item about |
| 1079 |
this. |
| 1080 |
* src/main/java/org/glom/web/client/ui/details/FlowTable.java: |
| 1081 |
|
| 1082 |
2011-12-01 Ben Konrath <ben@bagu.org> |
| 1083 |
|
| 1084 |
Put the details css class name on the correct table column. |
| 1085 |
|
| 1086 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 1087 |
|
| 1088 |
2011-11-30 Ben Konrath <ben@bagu.org> |
| 1089 |
|
| 1090 |
Update for java-libglom API change. |
| 1091 |
|
| 1092 |
The getters and setters on FieldFormatting and NumericFormat were |
| 1093 |
changed to remove the 'M'. |
| 1094 |
|
| 1095 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1096 |
|
| 1097 |
2011-11-29 Ben Konrath <ben@bagu.org> |
| 1098 |
|
| 1099 |
Only allow RelatedListTables in Portals. |
| 1100 |
|
| 1101 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: |
| 1102 |
|
| 1103 |
2011-11-29 Ben Konrath <ben@bagu.org> |
| 1104 |
|
| 1105 |
Only create a contents panel for Portals when title is being set. |
| 1106 |
|
| 1107 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: |
| 1108 |
|
| 1109 |
2011-11-29 Ben Konrath <ben@bagu.org> |
| 1110 |
|
| 1111 |
Set TabLayoutPanel height based on calculated height its widgets. |
| 1112 |
|
| 1113 |
This is a potential fix for this bug: |
| 1114 |
|
| 1115 |
https://bugzilla.gnome.org/show_bug.cgi?id=665133 |
| 1116 |
|
| 1117 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: |
| 1118 |
|
| 1119 |
2011-11-29 Ben Konrath <ben@bagu.org> |
| 1120 |
|
| 1121 |
Align details field labels and data with the Open buttons. |
| 1122 |
|
| 1123 |
* src/main/webapp/style.css: |
| 1124 |
|
| 1125 |
2011-11-29 Ben Konrath <ben@bagu.org> |
| 1126 |
|
| 1127 |
Remove unnecessary <div> in the Notebook widget. |
| 1128 |
|
| 1129 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Remove |
| 1130 |
method to get container FlowPanel (<div>). |
| 1131 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the |
| 1132 |
initWidget() method directly on the TabLayoutPanel widget instead of |
| 1133 |
Group's container widget. |
| 1134 |
|
| 1135 |
2011-11-29 Ben Konrath <ben@bagu.org> |
| 1136 |
|
| 1137 |
Don't add group titles for Portals in Notebooks. |
| 1138 |
|
| 1139 |
This reverts the previous patch and fixes a bug I introduced with |
| 1140 |
commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c . |
| 1141 |
|
| 1142 |
* src/main/java/org/glom/web/client/ui/details/Group.java: |
| 1143 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: |
| 1144 |
|
| 1145 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1146 |
|
| 1147 |
Remove unused boolean argument in Portal constructor. |
| 1148 |
|
| 1149 |
Just a code cleanup. |
| 1150 |
|
| 1151 |
* src/main/java/org/glom/web/client/ui/details/Group.java: |
| 1152 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: |
| 1153 |
|
| 1154 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1155 |
|
| 1156 |
Remove hack for glom 1.18 style glom files. |
| 1157 |
|
| 1158 |
* src/main/java/org/glom/web/client/ui/details/Group.java: |
| 1159 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: |
| 1160 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: |
| 1161 |
|
| 1162 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1163 |
|
| 1164 |
Use Gda Value version of primary key to log result too large error. |
| 1165 |
|
| 1166 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 1167 |
|
| 1168 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1169 |
|
| 1170 |
Don't use TypedDataItem.getText() for Unknown types from the URL. |
| 1171 |
|
| 1172 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 1173 |
* src/main/java/org/glom/web/server/Utils.java: Use getUnknown() |
| 1174 |
instead of getText(). |
| 1175 |
* src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown |
| 1176 |
String field and getUnknown() method. |
| 1177 |
|
| 1178 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1179 |
|
| 1180 |
Log an error message when the java-libglom .so is not present. |
| 1181 |
|
| 1182 |
The error message was being set in the exception but not logged. |
| 1183 |
|
| 1184 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 1185 |
|
| 1186 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1187 |
|
| 1188 |
Ignore LayoutItem_CalendarPortals. |
| 1189 |
|
| 1190 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't |
| 1191 |
create the LayoutItemPortal DTO for LayoutItem_CanendarPortals. |
| 1192 |
|
| 1193 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1194 |
|
| 1195 |
Extract method for creating the LayoutItemPortal DTO. |
| 1196 |
|
| 1197 |
Just breaking the code up into smaller chunks. |
| 1198 |
|
| 1199 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1200 |
|
| 1201 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1202 |
|
| 1203 |
Add TypedDataItem. |
| 1204 |
|
| 1205 |
This should have been added with the refactor. Oops! |
| 1206 |
|
| 1207 |
* src/main/java/org/glom/web/shared/TypedDataItem.java: |
| 1208 |
|
| 1209 |
2011-11-28 Ben Konrath <ben@bagu.org> |
| 1210 |
|
| 1211 |
Create primary key value from URL string using type from Glom document. |
| 1212 |
|
| 1213 |
See this bug, comments 19 - 25: |
| 1214 |
|
| 1215 |
https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19 |
| 1216 |
|
| 1217 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't |
| 1218 |
create a TypeDataItem for the primary key here when loading from a |
| 1219 |
URL. Show the same string for the primary key value as was received |
| 1220 |
from the URL string (when loading from a URL). |
| 1221 |
* src/main/java/org/glom/web/server/Utils.java: Update method for |
| 1222 |
creating the Gda Value from the TypeDataItem to properly deal with |
| 1223 |
creating a Gda Value based on the Glom document type for the primary |
| 1224 |
key value string when loading from a URL. |
| 1225 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 1226 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1227 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 1228 |
Update for changed method name. |
| 1229 |
|
| 1230 |
2011-11-27 Ben Konrath <ben@bagu.org> |
| 1231 |
|
| 1232 |
Rename PrimaryKeyItem to TypedDataItem. |
| 1233 |
|
| 1234 |
The name PrimaryKeyItem suggests what the class should be used for. |
| 1235 |
TypedDataItem is a neutral name that describes the class better. |
| 1236 |
|
| 1237 |
This is a rename-only refactor. |
| 1238 |
|
| 1239 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 1240 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 1241 |
* src/main/java/org/glom/web/client/Utils.java: |
| 1242 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 1243 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 1244 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 1245 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1246 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 1247 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1248 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 1249 |
* src/main/java/org/glom/web/server/Utils.java: |
| 1250 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 1251 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1252 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 1253 |
* src/main/java/org/glom/web/shared/NavigationRecord.java: |
| 1254 |
|
| 1255 |
2011-11-25 Ben Konrath <ben@bagu.org> |
| 1256 |
|
| 1257 |
Improve Gda Value conversion from PrimaryKeyItem. |
| 1258 |
|
| 1259 |
The value from the PrimaryKeyItem is only used if its type match the |
| 1260 |
type from the glom document. |
| 1261 |
|
| 1262 |
* src/main/java/org/glom/web/server/Utils.java: |
| 1263 |
|
| 1264 |
2011-11-25 Ben Konrath <ben@bagu.org> |
| 1265 |
|
| 1266 |
Manually check if the java-liblgom .so is visible to the JVM. |
| 1267 |
|
| 1268 |
It seems that Tomcat has problems when a static initializer throws an |
| 1269 |
exception. This check is done before the first method call into |
| 1270 |
java-libglom so that execution doesn't continue if the .so is not |
| 1271 |
found. |
| 1272 |
|
| 1273 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 1274 |
|
| 1275 |
2011-11-25 Ben Konrath <ben@bagu.org> |
| 1276 |
|
| 1277 |
Improve browser configuration error messages. |
| 1278 |
|
| 1279 |
This fixes: |
| 1280 |
|
| 1281 |
https://bugzilla.gnome.org/show_bug.cgi?id=662792 |
| 1282 |
|
| 1283 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 1284 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add |
| 1285 |
getConfigurationErrorMessage() method. |
| 1286 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: |
| 1287 |
Get and display a specific configuration error message when no Glom |
| 1288 |
documents are found. |
| 1289 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 1290 |
Implement getConfigurationErrorMessage() method. Surround configuration |
| 1291 |
code in the init() method with a try/catch block. This allows the |
| 1292 |
errors to be caught while keeping the servlet available to retrieve the |
| 1293 |
configuration error message. |
| 1294 |
|
| 1295 |
2011-11-25 Ben Konrath <ben@bagu.org> |
| 1296 |
|
| 1297 |
Don't use Strings to hold primary key values. |
| 1298 |
|
| 1299 |
The primary key values are now held in a new data object |
| 1300 |
(PrimaryKeyItem) that holds type information and the primary key value |
| 1301 |
using the correct type. |
| 1302 |
|
| 1303 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 1304 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 1305 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use |
| 1306 |
PrimaryKeyItem instead of String to hold the primary key value. |
| 1307 |
* src/main/java/org/glom/web/client/Utils.java: Remove |
| 1308 |
getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a |
| 1309 |
PrimaryKeyItem based on the GlomFieldType and the DataItem. |
| 1310 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use |
| 1311 |
PrimaryKeyItem instead of String to hold the primary key value. Load |
| 1312 |
document selection page when the documentID has not been set correctly. |
| 1313 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work |
| 1314 |
DetailsPlace -> URL and URL -> DetailsPlace conversion with |
| 1315 |
PrimaryKeyItem. |
| 1316 |
* src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java: |
| 1317 |
Return empty string for URL instead of "null". |
| 1318 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 1319 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1320 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 1321 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Use |
| 1322 |
PrimaryKeyItem instead of String to hold primary key values. |
| 1323 |
* src/main/java/org/glom/web/server/Utils.java: New method to convert a |
| 1324 |
PrimaryKeyValue to a Gda Value. |
| 1325 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 1326 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1327 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 1328 |
Replace temporary database access code that uses the PrimaryKeyValue to |
| 1329 |
Gda Value conversion. |
| 1330 |
* src/main/java/org/glom/web/shared/DataItem.java: Add comment. |
| 1331 |
* src/main/java/org/glom/web/shared/NavigationRecord.java: Use |
| 1332 |
PrimaryKeyItem instead of String. |
| 1333 |
* src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to |
| 1334 |
hold primary key values. |
| 1335 |
|
| 1336 |
2011-11-24 Ben Konrath <ben@bagu.org> |
| 1337 |
|
| 1338 |
Use newly added java-libglom API to create queries. |
| 1339 |
|
| 1340 |
This isn't finished. I still need to stop using Strings for primary key |
| 1341 |
values in the client code. |
| 1342 |
|
| 1343 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell |
| 1344 |
libglom to use fake connections so that retrieving the query string will |
| 1345 |
work. |
| 1346 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 1347 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java: |
| 1348 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1349 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 1350 |
Use the newly added libglom sql methods and classes to create the |
| 1351 |
query. Add temporary hack to convert primary value strings to Gda |
| 1352 |
Value. |
| 1353 |
|
| 1354 |
2011-11-23 Ben Konrath <ben@bagu.org> |
| 1355 |
|
| 1356 |
Don't explicitly set the height of Portals. |
| 1357 |
|
| 1358 |
See comments 6 - 10 of this bug for details: |
| 1359 |
|
| 1360 |
https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6 |
| 1361 |
|
| 1362 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: |
| 1363 |
|
| 1364 |
2011-11-23 Ben Konrath <ben@bagu.org> |
| 1365 |
|
| 1366 |
Use an HTML table instead of CSS for the FlowTable layout. |
| 1367 |
|
| 1368 |
* src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use |
| 1369 |
GWT's FlexTable to implement the FlowTable. |
| 1370 |
* src/main/webapp/style.css: Adjust CSS for the change to FlexTable. |
| 1371 |
|
| 1372 |
2011-11-18 Ben Konrath <ben@bagu.org> |
| 1373 |
|
| 1374 |
Add boolean example to HTML table mockup. |
| 1375 |
|
| 1376 |
* mockups/details-view-html-tables-text-entries.html: |
| 1377 |
|
| 1378 |
2011-11-17 Ben Konrath <ben@bagu.org> |
| 1379 |
|
| 1380 |
Ensure the pager buttons are always visible for related lists. |
| 1381 |
|
| 1382 |
To accomplish this, I've turned off text wrapping in the list view and |
| 1383 |
related list tables for both the header and data text. The related list |
| 1384 |
table now has a fixed layout so the it doesn't overflow its container. |
| 1385 |
This is required to ensure that the cell text is clipped when it |
| 1386 |
overflows the cell and an ellipsis is added to the right side of the |
| 1387 |
cell when text is clipped. |
| 1388 |
|
| 1389 |
A fixed table layout for the related list table in the details view |
| 1390 |
seems what we want for the details view anyway, so the side-effect is |
| 1391 |
desirable. |
| 1392 |
|
| 1393 |
The ellipsis will only be displayed in Firefox >= 7. |
| 1394 |
|
| 1395 |
This fixes bug: |
| 1396 |
|
| 1397 |
https://bugzilla.gnome.org/show_bug.cgi?id=662930 |
| 1398 |
|
| 1399 |
* src/main/java/org/glom/web/client/ui/cell/NumericCell.java: |
| 1400 |
* src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add |
| 1401 |
'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table |
| 1402 |
cell text. |
| 1403 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1404 |
Set the 'table-layout: fixed' CSS property to the related list table. |
| 1405 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the |
| 1406 |
'white-space: nowrap;' CSS property on both the list view and the |
| 1407 |
related list tables. |
| 1408 |
|
| 1409 |
2011-11-16 Ben Konrath <ben@bagu.org> |
| 1410 |
|
| 1411 |
Rework the fix for empty notebook tab labels. |
| 1412 |
|
| 1413 |
Setting the empty group titles with its name caused problems for the |
| 1414 |
details layout. Instead of using libglom's |
| 1415 |
LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent |
| 1416 |
to the client when the title is empty. This allows the Notebook to use |
| 1417 |
the name when the title is empty without affecting anything else. |
| 1418 |
|
| 1419 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: |
| 1420 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1421 |
|
| 1422 |
2011-11-16 Ben Konrath <ben@bagu.org> |
| 1423 |
|
| 1424 |
Set group titles with name when title is empty. |
| 1425 |
|
| 1426 |
This fixes a problem with an empty notebook tab label in the Lesson |
| 1427 |
Planner document. The forth tab in the notebook should be "Internet": |
| 1428 |
|
| 1429 |
http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0 |
| 1430 |
|
| 1431 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Use |
| 1432 |
libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup |
| 1433 |
DTO title. |
| 1434 |
|
| 1435 |
2011-11-16 Ben Konrath <ben@bagu.org> |
| 1436 |
|
| 1437 |
Remove whitespace from the configured username properties. |
| 1438 |
|
| 1439 |
This assumes that usernames won't have whitespace at the beginning |
| 1440 |
or end. But I think this is a reasonable assumption. |
| 1441 |
|
| 1442 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use |
| 1443 |
String.trim() to remove the whitespace from the username properties. |
| 1444 |
|
| 1445 |
2011-11-15 Ben Konrath <ben@bagu.org> |
| 1446 |
|
| 1447 |
Add details view mockup with HTML tables and text entries. |
| 1448 |
|
| 1449 |
This is from the attachment on this bug: |
| 1450 |
|
| 1451 |
https://bugzilla.gnome.org/show_bug.cgi?id=663109 |
| 1452 |
|
| 1453 |
* mockups/details-view-html-tables-text-entries.html: |
| 1454 |
|
| 1455 |
2011-11-15 Ben Konrath <ben@bagu.org> |
| 1456 |
|
| 1457 |
Add space between the columns of the flow table. |
| 1458 |
|
| 1459 |
This fixes: |
| 1460 |
|
| 1461 |
https://bugzilla.gnome.org/show_bug.cgi?id=662918 |
| 1462 |
|
| 1463 |
* src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1% |
| 1464 |
space between columns in the flow table. |
| 1465 |
|
| 1466 |
2011-11-15 Ben Konrath <ben@bagu.org> |
| 1467 |
|
| 1468 |
Add backup files to the .gitignore. |
| 1469 |
|
| 1470 |
* .gitignore: Ignore files that end with ~. |
| 1471 |
|
| 1472 |
2011-11-09 Ben Konrath <ben@bagu.org> |
| 1473 |
|
| 1474 |
Use latest release of gwt-log. |
| 1475 |
|
| 1476 |
Gwt-log releases are now being submitted to the maven central |
| 1477 |
repository so manual installation of the jar is no longer required. |
| 1478 |
|
| 1479 |
* pom.xml: Update version and groupId of gwt-log dependency. |
| 1480 |
|
| 1481 |
2011-10-31 Ben Konrath <ben@bagu.org> |
| 1482 |
|
| 1483 |
Don't use GWT numeric formatting to override the glom currency formatting. |
| 1484 |
|
| 1485 |
Currencies are now displayed like they are in Glom. See this bug: |
| 1486 |
|
| 1487 |
https://bugzilla.gnome.org/show_bug.cgi?id=646216 |
| 1488 |
|
| 1489 |
* src/main/java/org/glom/web/client/Utils.java: Remove GWT currency |
| 1490 |
formatting. |
| 1491 |
* src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add |
| 1492 |
currency code to constructor and set it when the cell is rendered. |
| 1493 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the |
| 1494 |
currency code to the constructor of the NumericCell. |
| 1495 |
|
| 1496 |
2011-10-27 Ben Konrath <ben@bagu.org> |
| 1497 |
|
| 1498 |
Require the latest release of java-libglom (1.17.4). |
| 1499 |
|
| 1500 |
* pom.xml: |
| 1501 |
|
| 1502 |
2011-10-26 Ben Konrath <ben@bagu.org> |
| 1503 |
|
| 1504 |
Add style to Notebook that matches current theme. |
| 1505 |
|
| 1506 |
It's not the best style in the world but it's better than the default. |
| 1507 |
|
| 1508 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some |
| 1509 |
padding at the bottom of the child widgets. |
| 1510 |
* src/main/webapp/style.css: Add style for the Notebook. |
| 1511 |
|
| 1512 |
2011-10-26 Ben Konrath <ben@bagu.org> |
| 1513 |
|
| 1514 |
Move servlet initialization code to overridden init method. |
| 1515 |
|
| 1516 |
This is half of the solution to getting proper error messages |
| 1517 |
displayed when configuration errors occur. Here's the relevant bug: |
| 1518 |
|
| 1519 |
https://bugzilla.gnome.org/show_bug.cgi?id=662792 |
| 1520 |
|
| 1521 |
The rest of the solution involves surrounding the init method with a |
| 1522 |
try/catch block and setting a global variable with the error / |
| 1523 |
exception. A new async method should be created to retrieve and display |
| 1524 |
the error message / exception. |
| 1525 |
|
| 1526 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move |
| 1527 |
code from constructor to init method adding exceptions as needed. |
| 1528 |
|
| 1529 |
2011-10-26 Ben Konrath <ben@bagu.org> |
| 1530 |
|
| 1531 |
Add script to monitor and restart tomcat if required. |
| 1532 |
|
| 1533 |
* utils/check-and-recover-tomcat.py: New file. |
| 1534 |
|
| 1535 |
2011-10-26 Ben Konrath <ben@bagu.org> |
| 1536 |
|
| 1537 |
Display the correct number of data items in the pager. |
| 1538 |
|
| 1539 |
This commit fixes: |
| 1540 |
|
| 1541 |
https://bugzilla.gnome.org/show_bug.cgi?id=661441 |
| 1542 |
|
| 1543 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 1544 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1545 |
The implementation is the same for both tables: Keep track of the |
| 1546 |
number of non-empty rows and fire and RowCountChangeEvent after the data has |
| 1547 |
been updated. |
| 1548 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a |
| 1549 |
custom Pager class that subclasses SimplePager to handle displaying |
| 1550 |
the correct number when empty rows have been added. |
| 1551 |
|
| 1552 |
2011-10-26 Ben Konrath <ben@bagu.org> |
| 1553 |
|
| 1554 |
Correct error in previous commit. |
| 1555 |
|
| 1556 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Remove |
| 1557 |
eventBus parameter from listView.setCellTable(). |
| 1558 |
|
| 1559 |
2011-10-26 Ben Konrath <ben@bagu.org> |
| 1560 |
|
| 1561 |
Fix error in TODO comment. |
| 1562 |
|
| 1563 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 1564 |
|
| 1565 |
2011-10-24 Ben Konrath <ben@bagu.org> |
| 1566 |
|
| 1567 |
Create Notebook widgets to the details view. |
| 1568 |
|
| 1569 |
This isn't finished just yet - I still need to create a reasonable |
| 1570 |
style to match the current theme. |
| 1571 |
|
| 1572 |
* src/main/java/org/glom/web/client/Utils.java: Add method for |
| 1573 |
calculating the height of a widget. This is used in the Notebook class. |
| 1574 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for |
| 1575 |
new constructor method in Group. |
| 1576 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Add new |
| 1577 |
method for creating child widget that can be used by subclasses |
| 1578 |
like Notebook. New constructor that allows disabling the group |
| 1579 |
titles - Notebooks don't set a group title for their child groups. |
| 1580 |
* src/main/java/org/glom/web/client/ui/details/Notebook.java: New class |
| 1581 |
to make Notebooks using GWT's TabLayoutPanel. |
| 1582 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: New |
| 1583 |
constructor that allows disabling the group titles. |
| 1584 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the |
| 1585 |
LayoutItemNotebook DTO. |
| 1586 |
* src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New |
| 1587 |
DTO for Notebooks. It's just an empty class for now but we might need |
| 1588 |
it to transfer some specific information in the future. |
| 1589 |
|
| 1590 |
2011-10-21 Ben Konrath <ben@bagu.org> |
| 1591 |
|
| 1592 |
Add navigation buttons to related list tables. |
| 1593 |
|
| 1594 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 1595 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 1596 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new |
| 1597 |
method getSuitableRecordToViewDetails() for getting the table name |
| 1598 |
and primary key value for related list navigation buttons. |
| 1599 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add |
| 1600 |
private cell renderer class to get the navigation information for |
| 1601 |
related list tables from the server. Extract the navigation |
| 1602 |
processing code from the details cell navigation and use it for the |
| 1603 |
related list navigation as well. |
| 1604 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private |
| 1605 |
cell renderer class for the details open buttons. This was needed |
| 1606 |
because the related list navigation buttons and the list view |
| 1607 |
navigation buttons need to react differently when clicked. |
| 1608 |
* src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove |
| 1609 |
the onEnterKeyDown() method because it's now overriden in the |
| 1610 |
subclasses that are specific to the related list tables and the list |
| 1611 |
view tables. |
| 1612 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: Increase |
| 1613 |
the vertical size a little because the buttons add a bit of vertical |
| 1614 |
space to table. This is not a perfect solution because the vertical |
| 1615 |
size of with table fewer than 5 rows will be a little smaller. |
| 1616 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for |
| 1617 |
changes in how navigation buttons are handled. |
| 1618 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement |
| 1619 |
getSuitableRecordToViewDetails() using the new RelatedListNavigation |
| 1620 |
database access object. |
| 1621 |
* src/main/java/org/glom/web/server/database/DBAccess.java: Move code |
| 1622 |
to find the portal for a given relationship name from |
| 1623 |
RelatedListDBAccess. Add method to find a primary key field for a |
| 1624 |
given table. |
| 1625 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1626 |
Move code to find the portal for a given relationship name to |
| 1627 |
DBAccess. |
| 1628 |
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java: |
| 1629 |
New file: database access object for getting the related list |
| 1630 |
navigation information (the table name and the primary key value). |
| 1631 |
* src/main/java/org/glom/web/shared/NavigationRecord.java: New file: |
| 1632 |
DTO for transferring a table name to navigate to and a primary key |
| 1633 |
value. |
| 1634 |
* src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add |
| 1635 |
boolean and getter/setter to specifies if the related list should add |
| 1636 |
navigation buttons. |
| 1637 |
|
| 1638 |
2011-10-24 Murray Cumming <murrayc@murrayc.com> |
| 1639 |
|
| 1640 |
Use the master branch of java-libglom |
| 1641 |
|
| 1642 |
* pom.xml: Depend on java-libglom 1.19 instead. |
| 1643 |
|
| 1644 |
This is the master branch. See also the libglom-1-18 branch. |
| 1645 |
|
| 1646 |
2011-10-11 Ben Konrath <ben@bagu.org> |
| 1647 |
|
| 1648 |
Enable the open navigation button when the data has been set. |
| 1649 |
|
| 1650 |
This avoids having active buttons that don't do anything when the data |
| 1651 |
has not been set. |
| 1652 |
|
| 1653 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: |
| 1654 |
|
| 1655 |
2011-10-11 Ben Konrath <ben@bagu.org> |
| 1656 |
|
| 1657 |
Use IsWidget interface for FlowTableItem. |
| 1658 |
|
| 1659 |
* src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change |
| 1660 |
FlowTableItem.getWidget() to asWidget() from the IsWidget interface. |
| 1661 |
|
| 1662 |
2011-10-11 Ben Konrath <ben@bagu.org> |
| 1663 |
|
| 1664 |
Remove GWT styling from open button in details view. |
| 1665 |
|
| 1666 |
There are still some issues with how the details cell is arranged but |
| 1667 |
this should be made to match Glom 1.20. I'm going to leave fixing this |
| 1668 |
until I have Glom 1.20 up and running. |
| 1669 |
|
| 1670 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set |
| 1671 |
style name on open button. |
| 1672 |
* src/main/webapp/style.css: Move and edit details-navigation class. |
| 1673 |
Re-arrange some classes to make them appear in the same order as the |
| 1674 |
UI. |
| 1675 |
|
| 1676 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1677 |
|
| 1678 |
Update to GWT 2.4.0. |
| 1679 |
|
| 1680 |
* .gitignore: Ignore new cache directory. |
| 1681 |
* .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting. |
| 1682 |
* pom.xml: Change GWT and maven plugin to 2.4.0. |
| 1683 |
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for |
| 1684 |
2.4.0. |
| 1685 |
* src/main/java/org/glom/web/client/ClientFactory.java: |
| 1686 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: |
| 1687 |
* src/main/java/org/glom/web/client/OnlineGlom.java: |
| 1688 |
Update source for API changes. |
| 1689 |
* utils/build-onlineglom-war.sh: Remove cache directory before the |
| 1690 |
build. |
| 1691 |
|
| 1692 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1693 |
|
| 1694 |
Add navigation buttons in the details view. |
| 1695 |
|
| 1696 |
This isn't finished but I thought I'd commit what I have as it's a |
| 1697 |
pretty good start. I still need to: |
| 1698 |
|
| 1699 |
1. Change the style so that it fits better into the current theme |
| 1700 |
2. Adjust the details cell to expand as much as possible. |
| 1701 |
|
| 1702 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add |
| 1703 |
click handlers to navigation buttons in the DetailsCells. Create a |
| 1704 |
refreshData() method to get just the data from the server without the |
| 1705 |
layout. |
| 1706 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 1707 |
Update the tableSelector and browser title when the table name |
| 1708 |
changes without using the tableSelector. |
| 1709 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 1710 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename |
| 1711 |
getDetailsCells() to getCells(). Update variable names. |
| 1712 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add |
| 1713 |
method to set click handler on navigation button. Rename a few |
| 1714 |
variables. Add navigation buttons where needed. |
| 1715 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few |
| 1716 |
variables and methods. |
| 1717 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the |
| 1718 |
navigation boolean and navigation table as required in the |
| 1719 |
LayoutItemField DTO. |
| 1720 |
* src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add |
| 1721 |
variables for navigation along with getter/setter methods. |
| 1722 |
|
| 1723 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1724 |
|
| 1725 |
Rename Field to DetailsCell. |
| 1726 |
|
| 1727 |
This is a refactor-only commit. No functionality has been added or |
| 1728 |
removed. |
| 1729 |
|
| 1730 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 1731 |
Update variable and method names. |
| 1732 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 1733 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update |
| 1734 |
variable and method names. |
| 1735 |
* src/main/java/org/glom/web/client/ui/details/DetailsCell.java: |
| 1736 |
Renamed from Field. |
| 1737 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Update |
| 1738 |
variable and method names. |
| 1739 |
|
| 1740 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1741 |
|
| 1742 |
Create separate methods for layout and data the details view. |
| 1743 |
|
| 1744 |
This is a refactor-only commit. No functionality has been added or |
| 1745 |
removed. |
| 1746 |
|
| 1747 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: New |
| 1748 |
private methods: setData(), createLayout(). |
| 1749 |
|
| 1750 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1751 |
|
| 1752 |
Don't use TableSelectorImpl implementation details in TableSelectorActivity. |
| 1753 |
|
| 1754 |
This is part of a change to get navigation buttons in the details view |
| 1755 |
but it should have been done this way from the start. |
| 1756 |
|
| 1757 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Update |
| 1758 |
for method name change in TableSelectionView. |
| 1759 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 1760 |
Create TableChangeEvent and set the browser title using the |
| 1761 |
TableSelectionView API. |
| 1762 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 1763 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 1764 |
Change getSelectedTable() to getSelectedTableName(). Add |
| 1765 |
getSelectedTableTitle(). |
| 1766 |
|
| 1767 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1768 |
|
| 1769 |
Use primaryKeyValue naming convention in constructor of DetailsPlace. |
| 1770 |
|
| 1771 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 1772 |
|
| 1773 |
2011-10-07 Ben Konrath <ben@bagu.org> |
| 1774 |
|
| 1775 |
Update TableChangeEvent to use newTableName naming convention. |
| 1776 |
|
| 1777 |
This makes the class more consistent with GWT naming conventions. |
| 1778 |
|
| 1779 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 1780 |
Update for method name change in TableChangeEvent. |
| 1781 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Update |
| 1782 |
for method name change in TableChangeEvent. |
| 1783 |
* src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update |
| 1784 |
newTableName variable and getter method. Make toDebugString() |
| 1785 |
actually work. |
| 1786 |
|
| 1787 |
2011-09-30 Ben Konrath <ben@bagu.org> |
| 1788 |
|
| 1789 |
Disable the pager in the list tables when the data row count is less than the minimum. |
| 1790 |
|
| 1791 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 1792 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 1793 |
|
| 1794 |
2011-09-30 Ben Konrath <ben@bagu.org> |
| 1795 |
|
| 1796 |
Add empty rows to the end of related list and list view tables. |
| 1797 |
|
| 1798 |
I also extracted the cell rendering classes from the ListTable because |
| 1799 |
the code was becoming a little crazy with all the anonymous inner |
| 1800 |
classes. My plan is to use these cell rendering classes in the details |
| 1801 |
view as well so this refactor will be needed for that change. |
| 1802 |
|
| 1803 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only |
| 1804 |
set the row count in related list tables if the data has more rows |
| 1805 |
than the minimum number of rows visible. |
| 1806 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the |
| 1807 |
row count in list view tables if the data has more rows than the |
| 1808 |
minimum number of rows visible. |
| 1809 |
* src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class |
| 1810 |
for rendering TYPE_BOOLEAN cells. The code was extracted from the |
| 1811 |
ListTable class. |
| 1812 |
* src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class |
| 1813 |
for rendering TYPE_NUMERIC cells. The code was extracted from the |
| 1814 |
ListTable class. |
| 1815 |
* src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New |
| 1816 |
class for rendering cells with buttons in list views. The code was |
| 1817 |
extracted from the ListTable class. |
| 1818 |
* src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class |
| 1819 |
for rendering TYPE_TEXT cells. The code was extracted from the |
| 1820 |
ListTable class. |
| 1821 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1822 |
Add empty rows to the end of the data if required. Implement |
| 1823 |
ListTable.getMinNumVisibleRows(). |
| 1824 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract |
| 1825 |
cell renderer code to public classes. Return null in |
| 1826 |
Column.getValue() for empty rows. Add new abstract method: |
| 1827 |
getMinNumVisibleRows(). Move code to set the row count of the list view |
| 1828 |
table to ListViewImpl. |
| 1829 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add |
| 1830 |
empty rows to the end of the data if required. Implement |
| 1831 |
ListTable.getMinNumVisibleRows(). |
| 1832 |
|
| 1833 |
|
| 1834 |
2011-09-27 Ben Konrath <ben@bagu.org> |
| 1835 |
|
| 1836 |
Use GWT.log for client-side debugging statements. |
| 1837 |
|
| 1838 |
These are optimized out when deployed so I should have used this method |
| 1839 |
in the first place. These statements will eventually be replaced with some sort |
| 1840 |
of notification in the browser. |
| 1841 |
|
| 1842 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 1843 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 1844 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 1845 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1846 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 1847 |
|
| 1848 |
2011-09-27 Ben Konrath <ben@bagu.org> |
| 1849 |
|
| 1850 |
Put tableselector on the right, back to list link on right. |
| 1851 |
|
| 1852 |
The idea is that the table selector is acting like a label for the |
| 1853 |
currently displayed table so it should be placed below the document title. This |
| 1854 |
puts the table title in a similar position to where it is in Glom. |
| 1855 |
|
| 1856 |
* mockups/details-contacts.html: |
| 1857 |
* mockups/details-projects.html: |
| 1858 |
* mockups/listview-contacts.html: |
| 1859 |
* mockups/listview-projects.html: |
| 1860 |
* mockups/style.css: |
| 1861 |
Update mockups to match how the interfaces currently look. |
| 1862 |
* src/main/webapp/style.css: Swap positions of backlink with the table |
| 1863 |
selector. Add some space on the left side of the table selector to |
| 1864 |
line things up with the document title. |
| 1865 |
|
| 1866 |
2011-09-27 Ben Konrath <ben@bagu.org> |
| 1867 |
|
| 1868 |
Add field colouring to details view. |
| 1869 |
|
| 1870 |
This change re-works how field colouring works. The colour formatting |
| 1871 |
information is now set to the client with the layout information instead of |
| 1872 |
with the data. This eliminates the need to send the same colour strings for |
| 1873 |
data in list view column when colour information is set. |
| 1874 |
|
| 1875 |
In order to set an alternate colour for negative numeric values, the |
| 1876 |
number is now sent to client and formatted with the GWT NumberFormat class. |
| 1877 |
|
| 1878 |
This change also fixes: |
| 1879 |
|
| 1880 |
https://bugzilla.gnome.org/show_bug.cgi?id=659752 |
| 1881 |
|
| 1882 |
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT |
| 1883 |
internationalization framework which is needed for client side numeric |
| 1884 |
formatting. |
| 1885 |
* src/main/java/org/glom/web/client/Utils.java: New file for some |
| 1886 |
client static utility methods. |
| 1887 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass |
| 1888 |
the DataItem object to the Field class. Use a utility method to |
| 1889 |
create the foreignKeyValue string. |
| 1890 |
* src/main/java/org/glom/web/client/ui/details/Field.java: Set |
| 1891 |
alignment and text colours in the constructor. Add setData(DataItem) |
| 1892 |
method. Remove setText(String) method. |
| 1893 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the |
| 1894 |
colour information to GlomTextCell. Create and use GlomNumberCell for |
| 1895 |
rendering numbers. Use utility method to get the string for the |
| 1896 |
primary key of the key provider. Re-work how the horizontal alignment |
| 1897 |
is set. |
| 1898 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Add |
| 1899 |
formatting to layout information. Methods for converting the libglom |
| 1900 |
formatting information were moved from DBAccess. |
| 1901 |
* src/main/java/org/glom/web/server/database/DBAccess.java: Remove |
| 1902 |
numeric formatting (it's now done on the client side). Don't set text |
| 1903 |
colours in DataItem. Move libglom formatting conversion methods to |
| 1904 |
ConfiguredDocument. |
| 1905 |
* src/main/java/org/glom/web/shared/DataItem.java: Remove fields and |
| 1906 |
getters/setters for text colour information. |
| 1907 |
* src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file |
| 1908 |
for transferring the libglom NumericFormat information to the client. |
| 1909 |
* src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields |
| 1910 |
and getters/setters for: GlomNumericFormat, background colour and |
| 1911 |
foreground colour strings. |
| 1912 |
|
| 1913 |
2011-09-26 Ben Konrath <ben@bagu.org> |
| 1914 |
|
| 1915 |
Simplify code that iterates through the LayoutGroup. |
| 1916 |
|
| 1917 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 1918 |
|
| 1919 |
2011-09-26 Ben Konrath <ben@bagu.org> |
| 1920 |
|
| 1921 |
Accept Eclipse formatting for OnlineGlomServiceAsync. |
| 1922 |
|
| 1923 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 1924 |
|
| 1925 |
2011-09-26 Ben Konrath <ben@bagu.org> |
| 1926 |
|
| 1927 |
Don't use the ListDBAccess classes to get the primary key layout information. |
| 1928 |
|
| 1929 |
This was causing a bug where the wrong index for the hidden primary key |
| 1930 |
was being sent to the client. |
| 1931 |
|
| 1932 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the |
| 1933 |
primary key while creating the LayoutGroup DTO. Create a |
| 1934 |
LayoutItemField DTO for hidden primary keys. Don't use the |
| 1935 |
RelatedListDBAccess because it was only used for getting the primary |
| 1936 |
key. |
| 1937 |
* src/main/java/org/glom/web/server/database/DBAccess.java: Change the |
| 1938 |
access modifier from public to protected for getPrimaryKeyField() and |
| 1939 |
getPrimaryKeyLayoutItemField(). |
| 1940 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove |
| 1941 |
abstract method getExpectedResultSize() because RelatedListDBAccess |
| 1942 |
doesn't have enough info to implement it. |
| 1943 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java: |
| 1944 |
Remove @Override for getExpectedResultSize(). |
| 1945 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1946 |
Remove method getExpectedResultSize(). |
| 1947 |
|
| 1948 |
2011-09-23 Ben Konrath <ben@bagu.org> |
| 1949 |
|
| 1950 |
Log which layout (list or details) the ignored item is from. |
| 1951 |
|
| 1952 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1953 |
|
| 1954 |
2011-09-23 Ben Konrath <ben@bagu.org> |
| 1955 |
|
| 1956 |
Remove annotations that turn off code formatting in DataItem. |
| 1957 |
|
| 1958 |
* src/main/java/org/glom/web/shared/DataItem.java: |
| 1959 |
|
| 1960 |
2011-09-23 Ben Konrath <ben@bagu.org> |
| 1961 |
|
| 1962 |
Rename GlomField to DataItem and update associated methods. |
| 1963 |
|
| 1964 |
This is a rename-only refactor. No functionality has been added or |
| 1965 |
removed. |
| 1966 |
|
| 1967 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 1968 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 1969 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 1970 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 1971 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 1972 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: |
| 1973 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 1974 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1975 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 1976 |
* src/main/java/org/glom/web/server/database/DBAccess.java: |
| 1977 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 1978 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: |
| 1979 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java: |
| 1980 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 1981 |
* src/main/java/org/glom/web/shared/DataItem.java: |
| 1982 |
* src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: |
| 1983 |
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: |
| 1984 |
|
| 1985 |
2011-09-23 Ben Konrath <ben@bagu.org> |
| 1986 |
|
| 1987 |
Rename GlomDocument to DocumentInfo and update associated methods. |
| 1988 |
|
| 1989 |
This is a rename-only refactor. No functionality has been added or |
| 1990 |
removed. |
| 1991 |
|
| 1992 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 1993 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 1994 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 1995 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 1996 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: |
| 1997 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 1998 |
* src/main/java/org/glom/web/shared/DocumentInfo.java: |
| 1999 |
|
| 2000 |
2011-09-20 Ben Konrath <ben@bagu.org> |
| 2001 |
|
| 2002 |
Require java-libglom 1.17.3. |
| 2003 |
|
| 2004 |
This picks up the fix for the seg fault problem with the Scenes table |
| 2005 |
in the Openismus Film Manager example. |
| 2006 |
|
| 2007 |
* pom.xml: |
| 2008 |
|
| 2009 |
2011-09-20 Ben Konrath <ben@bagu.org> |
| 2010 |
|
| 2011 |
Change the way sort clause is added for primary key when no sort clause is requested. |
| 2012 |
|
| 2013 |
The primary key is now added to the LayoutFieldVector (fieldsToGet) |
| 2014 |
before the sort clause is created. When a sort clause is not requested, the |
| 2015 |
sort clause is created by finding the primary key in the LayoutFieldVector |
| 2016 |
(fieldsToGet). |
| 2017 |
|
| 2018 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: |
| 2019 |
|
| 2020 |
2011-09-20 Ben Konrath <ben@bagu.org> |
| 2021 |
|
| 2022 |
Log error message if no documents are found in the configured directory. |
| 2023 |
|
| 2024 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also: |
| 2025 |
Extract the glom file extension string to a private static final class |
| 2026 |
variable (mostly as syntactic sugar). Accept a minor formatting change. |
| 2027 |
* src/main/resources/onlineglom.properties: Add '/glomfile' to end of |
| 2028 |
the example glom.document.directory configuration property to make it |
| 2029 |
more clear that it can any directory, not just the home directory. |
| 2030 |
|
| 2031 |
2011-09-18 Ben Konrath <ben@bagu.org> |
| 2032 |
|
| 2033 |
Add related lists to details view. |
| 2034 |
|
| 2035 |
The related list table has support for paging and sorting just like the |
| 2036 |
table in the list view. |
| 2037 |
|
| 2038 |
* pom.xml: Require java-libglom 1.17.2 for the new methods to build the |
| 2039 |
SQL queries for the related list tables. |
| 2040 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2041 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2042 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2043 |
Rename getList methods to getListView and add comments. Remove |
| 2044 |
getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about |
| 2045 |
it being unused. Add methods: getDetailsLayoutAndData(), |
| 2046 |
getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount() |
| 2047 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 2048 |
Create the layout and set the data for the fields in one async call |
| 2049 |
instead of two. Create related lists where appropriate. |
| 2050 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Changes |
| 2051 |
for method name changes in OnlineGlomService. |
| 2052 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 2053 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename |
| 2054 |
addLayoutGroup() to addGroup(). Add methods to get the DTOs for the |
| 2055 |
visible UI objects. |
| 2056 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 2057 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove |
| 2058 |
tableName from setCellTable(). Create a ListViewTable instead of |
| 2059 |
ListTable. |
| 2060 |
* src/main/java/org/glom/web/client/ui/details/Field.java: New class to |
| 2061 |
represent a data field in the details view. |
| 2062 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Move to code |
| 2063 |
from addDetailsCell() to Field class. Keep track of the Fields and |
| 2064 |
Portals in the details view. |
| 2065 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal |
| 2066 |
a little bigger to match Glom. Keep track of the LayoutItemPortal DTO |
| 2067 |
and add a method to get it. Add method to set the contents of the |
| 2068 |
portal. |
| 2069 |
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: |
| 2070 |
New class for related list tables. This class has the data provider |
| 2071 |
for the related list table. |
| 2072 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to |
| 2073 |
abstract class which is the base class for the ListViewTable and the |
| 2074 |
RelatedListTable. |
| 2075 |
* src/main/java/org/glom/web/client/ui/list/ListViewTable.java: |
| 2076 |
New class for list view tables. This class has the data provider for |
| 2077 |
the list view table. |
| 2078 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Add |
| 2079 |
methods for related list tables. Add more information to the |
| 2080 |
LayoutItemField and LayoutItemPortal DTOs. |
| 2081 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 2082 |
Remove debugging print statement. |
| 2083 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: |
| 2084 |
Remove debugging print statements. Add primary key field to SQL count |
| 2085 |
query. |
| 2086 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java: |
| 2087 |
Remove unnecessary LayoutFieldVector parameter from |
| 2088 |
getResultSizeOfSQLQuery() method. |
| 2089 |
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java: |
| 2090 |
New class for related list table database access. |
| 2091 |
* src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New |
| 2092 |
class that is a wrapper DTO for details view layout and data. |
| 2093 |
* src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add |
| 2094 |
new 'fromField' string to this DTO. |
| 2095 |
* src/main/webapp/style.css: Remove bottom margin and override top |
| 2096 |
margin with 0em. |
| 2097 |
|
| 2098 |
2011-09-15 Ben Konrath <ben@bagu.org> |
| 2099 |
|
| 2100 |
Breakup the OnlineGlomServiceImpl class to make it more manageable. |
| 2101 |
|
| 2102 |
This sets things up to make it easier to add the data retrieval for |
| 2103 |
related lists (portals). No user noticeable changes were made with |
| 2104 |
this commit. |
| 2105 |
|
| 2106 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: This |
| 2107 |
class has the code to retrieve the layouts and access the |
| 2108 |
database using the new database helper classes. |
| 2109 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2110 |
Most of the functionality has been removed from this class. This |
| 2111 |
class now represents the public interface for the client side |
| 2112 |
code. It also deals with configuring the servlet and cleaning |
| 2113 |
things up when the servlet is stopped. |
| 2114 |
* src/main/java/org/glom/web/server/Utils.java: Extract a couple |
| 2115 |
of static methods into this utility class. |
| 2116 |
* src/main/java/org/glom/web/server/database/DBAccess.java: |
| 2117 |
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java: |
| 2118 |
* src/main/java/org/glom/web/server/database/ListDBAccess.java: |
| 2119 |
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java: |
| 2120 |
These classes have the database retrieval code. The class hierarchy |
| 2121 |
has been setup to make it easy to reuse code for similar |
| 2122 |
functionality. |
| 2123 |
|
| 2124 |
2011-09-06 Ben Konrath <ben@bagu.org> |
| 2125 |
|
| 2126 |
Create separate classes for list table code and the data provider. |
| 2127 |
|
| 2128 |
As part of this refactor, I also split up the code a bit to make it |
| 2129 |
more manageable. |
| 2130 |
|
| 2131 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list |
| 2132 |
table code to two new classes (below). |
| 2133 |
* src/main/java/org/glom/web/client/ui/list/ListTable.java: New file |
| 2134 |
with code from ListViewImpl. |
| 2135 |
* src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java: |
| 2136 |
New file with code from ListViewImpl. |
| 2137 |
|
| 2138 |
2011-09-06 Ben Konrath <ben@bagu.org> |
| 2139 |
|
| 2140 |
Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem. |
| 2141 |
|
| 2142 |
This fixes the LayoutItemPortal DTO to match the libglom layout object |
| 2143 |
hierarchy. |
| 2144 |
|
| 2145 |
* src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: |
| 2146 |
|
| 2147 |
2011-09-01 Ben Konrath <ben@bagu.org> |
| 2148 |
|
| 2149 |
Set title of Portals in the Details View. |
| 2150 |
|
| 2151 |
* pom.xml: Bump required version of java-libglom to 1.17.1. |
| 2152 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal |
| 2153 |
widget creation to its own class. Add comments to constructor. |
| 2154 |
* src/main/java/org/glom/web/client/ui/details/Portal.java: New file. |
| 2155 |
The code is mostly from the Group class with the title now set. |
| 2156 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set |
| 2157 |
title of Portal. Update some comments. Fix some code formatting. |
| 2158 |
|
| 2159 |
2011-09-01 Ben Konrath <ben@bagu.org> |
| 2160 |
|
| 2161 |
Remove TODO comment for the flow table column width. |
| 2162 |
|
| 2163 |
The flow table column width is working correctly and doesn't need to be |
| 2164 |
changed. See this mailing list post for more info: |
| 2165 |
|
| 2166 |
https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html |
| 2167 |
|
| 2168 |
* src/main/java/org/glom/web/client/ui/details/FlowTable.java: |
| 2169 |
|
| 2170 |
2011-08-27 Ben Konrath <ben@bagu.org> |
| 2171 |
|
| 2172 |
Add document title (database name) to top of the browser page. |
| 2173 |
|
| 2174 |
I added the document title to the TableSelecitonView but that will |
| 2175 |
change if / when we add a view that doesn't require table selection. |
| 2176 |
|
| 2177 |
* mockups/details-contacts.html: |
| 2178 |
* mockups/details-projects.html: |
| 2179 |
* mockups/listview-contacts.html: |
| 2180 |
* mockups/listview-projects.html: |
| 2181 |
* mockups/style.css: Add document title to mockups to keep things |
| 2182 |
consistent. |
| 2183 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel |
| 2184 |
sizes to account for the document title. |
| 2185 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2186 |
Set the document title when it has been retrieved from the server. |
| 2187 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 2188 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add |
| 2189 |
and implement setDocumentTitle(String) method. |
| 2190 |
* src/main/webapp/style.css: Add ID for document title style. |
| 2191 |
|
| 2192 |
2011-08-25 Ben Konrath <ben@bagu.org> |
| 2193 |
|
| 2194 |
Add NavigationType enum to LayoutItemPortal DTO. |
| 2195 |
|
| 2196 |
This is the start of adding support for Portals to the Details View. |
| 2197 |
|
| 2198 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert |
| 2199 |
LayoutItem_Portal.navigation_type enum from libglom to |
| 2200 |
LayoutItemPortal.NavigationType enum. |
| 2201 |
* src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add |
| 2202 |
NavigationType enum, field for storing the NavigationType and getter |
| 2203 |
and setter methods. |
| 2204 |
|
| 2205 |
2011-08-25 Ben Konrath <ben@bagu.org> |
| 2206 |
|
| 2207 |
Implement the flow table layout in the Details View. |
| 2208 |
|
| 2209 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change |
| 2210 |
FlowTable to Group to account for the renamed class. |
| 2211 |
* src/main/java/org/glom/web/client/ui/details/FlowTable.java: New |
| 2212 |
File. This is a container widget that implements the Glom details view |
| 2213 |
flow table behaviour. |
| 2214 |
* src/main/java/org/glom/web/client/ui/details/Group.java: Moved from |
| 2215 |
org/glom/web/client/ui/FlowTable.java. |
| 2216 |
* src/main/webapp/style.css: Adjust bottom margin of the subgroup-title |
| 2217 |
so that the size of the subgroups are a closer match to the size of |
| 2218 |
the Glom subgroups. This makes the flowtable layout match the layout |
| 2219 |
in Glom for the Music Collection example file. |
| 2220 |
|
| 2221 |
2011-08-16 Ben Konrath <ben@bagu.org> |
| 2222 |
|
| 2223 |
Create container element for LayoutItemPortal in Details View. |
| 2224 |
|
| 2225 |
This will help me develop the layout for the FlowTable. |
| 2226 |
|
| 2227 |
* src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename |
| 2228 |
fieldPanel variable to detailsCell. |
| 2229 |
|
| 2230 |
2011-08-15 Ben Konrath <ben@bagu.org> |
| 2231 |
|
| 2232 |
Set the height of the data element in the Details View. |
| 2233 |
|
| 2234 |
I changed the InlineLabels (text in a span element) to Labels (text in |
| 2235 |
a div element) so that I could set the height of the details-data |
| 2236 |
elements instead of the details-cell parent elements. This allows the |
| 2237 |
the details-data element to display the correct height if style is |
| 2238 |
applied that shows the height. |
| 2239 |
|
| 2240 |
This change has the added benefit of allowing the order of the labels |
| 2241 |
and data elements to be changed for right-to-left languages. |
| 2242 |
|
| 2243 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change |
| 2244 |
InlineLabels to Labels. |
| 2245 |
* src/main/java/org/glom/web/client/ui/FlowTable.java: Change |
| 2246 |
InlineLabels to Labels. Set the height of the data element. |
| 2247 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the |
| 2248 |
multiline text height in the Formatting DTO. |
| 2249 |
* src/main/java/org/glom/web/shared/layout/Formatting.java: Add field |
| 2250 |
for multiline height along with getter and setter methods. |
| 2251 |
* src/main/webapp/style.css: Adjust style to account for the change |
| 2252 |
from span elements to div elements in the details cell. |
| 2253 |
|
| 2254 |
2011-08-15 Ben Konrath <ben@bagu.org> |
| 2255 |
|
| 2256 |
Make the List View appearance match the mockups. |
| 2257 |
|
| 2258 |
It doesn't match exactly but it's much better than it was. |
| 2259 |
|
| 2260 |
* mockups/listview-contacts.html: Remove unused css classes. |
| 2261 |
* mockups/listview-projects.html: Remove unused css classes. |
| 2262 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15 |
| 2263 |
rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div) |
| 2264 |
for mainPanel instead of VerticalPanel (table). Set style name on |
| 2265 |
CellTable. Set style name on Details column. Right-align Details |
| 2266 |
buttons. |
| 2267 |
* src/main/webapp/style.css: Adjust properties to match the mockups. |
| 2268 |
|
| 2269 |
2011-08-12 Ben Konrath <ben@bagu.org> |
| 2270 |
|
| 2271 |
Add better support for subgroups in the details view. |
| 2272 |
|
| 2273 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for |
| 2274 |
changed FlowTable constructor. |
| 2275 |
* src/main/java/org/glom/web/client/ui/FlowTable.java: Add better |
| 2276 |
support for subgroups and subgroup-titles. |
| 2277 |
* src/main/webapp/style.css: Add CSS class for subgroups and |
| 2278 |
subgroup-titles. |
| 2279 |
|
| 2280 |
2011-08-12 Ben Konrath <ben@bagu.org> |
| 2281 |
|
| 2282 |
Return the top level LayoutGroup title. |
| 2283 |
|
| 2284 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2285 |
|
| 2286 |
2011-08-11 Ben Konrath <ben@bagu.org> |
| 2287 |
|
| 2288 |
Make the TableSelector header match the mockup. |
| 2289 |
|
| 2290 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to |
| 2291 |
the layout panel. Properly lineup the table selection header with |
| 2292 |
the list and details view. |
| 2293 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the |
| 2294 |
margin around the details view. |
| 2295 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 2296 |
Rename listBox variable to tableSelector. Set id for the style sheet. |
| 2297 |
Use a FlowPanel instead of a HorizontalPanel. |
| 2298 |
* src/main/webapp/style.css: Add properties to make the TableSelector |
| 2299 |
box match the mockups. |
| 2300 |
|
| 2301 |
2011-07-13 Ben Konrath <ben@bagu.org> |
| 2302 |
|
| 2303 |
Update install script for java-libglom version change. |
| 2304 |
|
| 2305 |
* utils/install-onlineglom-war.sh: Also exit if 'make check' in |
| 2306 |
java-libglom fails. |
| 2307 |
|
| 2308 |
2011-07-13 Ben Konrath <ben@bagu.org> |
| 2309 |
|
| 2310 |
Add support sub-group in the details view. |
| 2311 |
|
| 2312 |
I also removed the code that special-cased the default details view |
| 2313 |
layout. See: |
| 2314 |
|
| 2315 |
http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html |
| 2316 |
|
| 2317 |
I still have to make a proper flowtable. |
| 2318 |
|
| 2319 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 2320 |
Don't special-case default details view layout. |
| 2321 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: Remove |
| 2322 |
addLayoutField() as I'm going to use it. |
| 2323 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract |
| 2324 |
GroupPanel to FlowTable class. Remove unimplemented addLayoutField() |
| 2325 |
method. |
| 2326 |
* src/main/java/org/glom/web/client/ui/FlowTable.java: New class |
| 2327 |
extracted from DetailsViewImpl.GroupPanel. Add support for |
| 2328 |
sub-groups. |
| 2329 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set |
| 2330 |
column count when getting the details layout. |
| 2331 |
|
| 2332 |
2011-07-12 Ben Konrath <ben@bagu.org> |
| 2333 |
|
| 2334 |
Set browser title with database and table titles. |
| 2335 |
|
| 2336 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2337 |
Set the browser title when the table changes and when the activity |
| 2338 |
first starts. |
| 2339 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set |
| 2340 |
title when retrieving document info (the GlomDocument object). |
| 2341 |
* src/main/java/org/glom/web/shared/GlomDocument.java: Add title field |
| 2342 |
with getter and setter methods. Remove unused convenience constructor. |
| 2343 |
Use default code formatting. |
| 2344 |
|
| 2345 |
2011-07-12 Ben Konrath <ben@bagu.org> |
| 2346 |
|
| 2347 |
Ignore LayoutItemPortals in the details view. |
| 2348 |
|
| 2349 |
I added a new DTO for the LayoutItemPortal so that I can ignore it in |
| 2350 |
the client code. |
| 2351 |
|
| 2352 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore |
| 2353 |
LayoutItemPortal layout objects. |
| 2354 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create |
| 2355 |
LayoutItemPortal objects when retrieving the details layout. |
| 2356 |
* src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New |
| 2357 |
file. This is an empty class and just used to get type information for |
| 2358 |
now. |
| 2359 |
|
| 2360 |
2011-07-12 Ben Konrath <ben@bagu.org> |
| 2361 |
|
| 2362 |
Use java-libglom 1.17.0. |
| 2363 |
|
| 2364 |
* pom.xml: |
| 2365 |
|
| 2366 |
2011-07-11 Ben Konrath <ben@bagu.org> |
| 2367 |
|
| 2368 |
Remove "Table:" label from table selector. |
| 2369 |
|
| 2370 |
This matches a recent change in the Glom UI. |
| 2371 |
|
| 2372 |
* mockups/details-contacts.html: |
| 2373 |
* mockups/details-projects.html: |
| 2374 |
* mockups/listview-contacts.html: |
| 2375 |
* mockups/listview-projects.html: Remove the "Table:" label from the |
| 2376 |
mockups as well. |
| 2377 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 2378 |
|
| 2379 |
2011-07-11 Ben Konrath <ben@bagu.org> |
| 2380 |
|
| 2381 |
Add main groups to the details view. |
| 2382 |
|
| 2383 |
This makes things look a little nicer in the details view. The next step |
| 2384 |
is to implement the flowtable. |
| 2385 |
|
| 2386 |
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the |
| 2387 |
resources from the standard gwt css theme. Standard.css is now |
| 2388 |
included in OnlineGlom.html so that the online glom css rules have |
| 2389 |
precedence over the gwt theme. |
| 2390 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass |
| 2391 |
the whole LayoutGroup to the DetailsView instead of just the titles. |
| 2392 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 2393 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the |
| 2394 |
details layout with a helper class (GroupPanel). I might extract this |
| 2395 |
class when I make the full flowtable. |
| 2396 |
* src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty |
| 2397 |
string as default so I don't have to worry about NPEs when processing |
| 2398 |
the layout objects. |
| 2399 |
* src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see |
| 2400 |
note beside OnlineGlom.gwt.xml above). |
| 2401 |
* src/main/webapp/style.css: Add default font-size to body to override |
| 2402 |
the font-size set by the standard theme. Don't use h2 tags for |
| 2403 |
group-title. Create new details-cell class. |
| 2404 |
|
| 2405 |
2011-07-08 Murray Cumming <murrayc@murrayc.com> |
| 2406 |
|
| 2407 |
ConfiguredDocument: Set the port number too. |
| 2408 |
|
| 2409 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 2410 |
(ConfiguredDocument.ConfiguredDocument): Get the port number from the |
| 2411 |
Glom document. Presumably this worked sometimes so far because there is a |
| 2412 |
default port number. |
| 2413 |
|
| 2414 |
2011-07-08 Murray Cumming <murrayc@murrayc.com> |
| 2415 |
|
| 2416 |
ConfiguredDocument: Warn that sqlite and self-hosting are not supported. |
| 2417 |
|
| 2418 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 2419 |
(ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is |
| 2420 |
correct, though we should throw an exception too. |
| 2421 |
|
| 2422 |
2011-07-08 Murray Cumming <murrayc@murrayc.com> |
| 2423 |
|
| 2424 |
Fix a addDocuemnt typo. |
| 2425 |
|
| 2426 |
* src/main/java/org/glom/web/shared/Documents.java |
| 2427 |
(Documents.addDocuemnt): Rename to addDocument(). |
| 2428 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java |
| 2429 |
(OnlineGlomServiceImpl.getDocuments): Adapt. |
| 2430 |
|
| 2431 |
2011-07-08 Murray Cumming <murrayc@murrayc.com> |
| 2432 |
|
| 2433 |
Slightly improved log output when connection fails. |
| 2434 |
|
| 2435 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java |
| 2436 |
(ConfiguredDocument.setUsernameAndPassword): |
| 2437 |
We don't know for sure if it' the username/password that's wrong, so |
| 2438 |
rephrase the message. |
| 2439 |
Also ouput the exception message, though it's generic in this case. |
| 2440 |
|
| 2441 |
2011-07-08 Ben Konrath <ben@bagu.org> |
| 2442 |
|
| 2443 |
Cleanup comments. |
| 2444 |
|
| 2445 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also |
| 2446 |
added braces to a one line if statement because the Eclipse formatter |
| 2447 |
was getting confused. |
| 2448 |
|
| 2449 |
2011-07-07 Ben Konrath <ben@bagu.org> |
| 2450 |
|
| 2451 |
Update project config files for Eclipse 3.7 and use GWT 2.3.0. |
| 2452 |
|
| 2453 |
These should really be two separate tasks but I counldn't get things to |
| 2454 |
work with GWT 2.2.0 and Eclipse 3.7. |
| 2455 |
|
| 2456 |
* .classpath: |
| 2457 |
* .project: |
| 2458 |
* .settings/org.eclipse.jdt.core.prefs: |
| 2459 |
* .settings/org.eclipse.jdt.ui.prefs: |
| 2460 |
* .settings/org.eclipse.ltk.core.refactoring.prefs: |
| 2461 |
* .settings/org.eclipse.m2e.core.prefs: |
| 2462 |
Add new config files. Update current files. Remove references to the |
| 2463 |
webtools plugins as we're not using any of the webtools features. |
| 2464 |
* .gitignore: Add logs directory which is created when running with |
| 2465 |
'mvn gwt:run'. |
| 2466 |
* pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added. |
| 2467 |
* src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from |
| 2468 |
src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known |
| 2469 |
limitation: |
| 2470 |
http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations |
| 2471 |
|
| 2472 |
2011-07-07 Murray Cumming <murrayc@murrayc.com> |
| 2473 |
|
| 2474 |
onlineglom.properties: Add explanatory comments. |
| 2475 |
|
| 2476 |
* src/main/resources/onlineglom.properties: Also change the default user |
| 2477 |
from ben to someuser, to avoid the risk of people thinking we just |
| 2478 |
stupidly hard-coded a locale path, when they see that on stderr or in a log. |
| 2479 |
|
| 2480 |
2011-06-28 Ben Konrath <ben@bagu.org> |
| 2481 |
|
| 2482 |
Use filename in Log for incorrect passwords. |
| 2483 |
|
| 2484 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Add |
| 2485 |
getFileName(String) method to get the filename from the URI. |
| 2486 |
|
| 2487 |
2011-06-28 Ben Konrath <ben@bagu.org> |
| 2488 |
|
| 2489 |
Add the table name to the URL token for the ListPlace. |
| 2490 |
|
| 2491 |
This makes things consistent between the DetailsPlace and the |
| 2492 |
ListPlace. It also allows the the ListPlace to be bookmarked. |
| 2493 |
|
| 2494 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2495 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2496 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2497 |
Remove getDefaultListLayout(). The default layout is now returned |
| 2498 |
by the getListLayout() method when the table name is an empty string. |
| 2499 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 2500 |
Add table name field. Change to a new ListPlace when the table |
| 2501 |
has been changed. Use getListLayout() for getting the default |
| 2502 |
list layout. |
| 2503 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2504 |
Add table name field. Set the correct table name in the list box |
| 2505 |
when loading from bookmark. This corrects a problem for the |
| 2506 |
DetailsPlace too. |
| 2507 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 2508 |
Move table name to super-class (HasSelectableTable). Move document |
| 2509 |
and table URL keys to super-class in HasSelectableTable. |
| 2510 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java: |
| 2511 |
Add table name field. Add Tokenizer class with URL key common to |
| 2512 |
the subclasses (DetailsPlace and ListPlace). |
| 2513 |
* src/main/java/org/glom/web/client/place/ListPlace.java: |
| 2514 |
Add table name. Add code to parse the URL token. |
| 2515 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 2516 |
Update ListPlace construction with empty table name string. |
| 2517 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 2518 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 2519 |
Change setTableSelectedIndex(int) to setSelectedTableName(String). |
| 2520 |
Update ListPlace construction with table name string. |
| 2521 |
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: |
| 2522 |
Change defaultTableName field to tableName to reflect how it's now |
| 2523 |
used. Update the getter and setter methods. |
| 2524 |
|
| 2525 |
2011-06-28 Ben Konrath <ben@bagu.org> |
| 2526 |
|
| 2527 |
Enable the table selector in the DetailsView. |
| 2528 |
|
| 2529 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2530 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2531 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2532 |
Remove getDefaultDetailsLayout(). The default layout is now returned |
| 2533 |
by the getDetailsLayout() method when the table name is an empty |
| 2534 |
string. |
| 2535 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add |
| 2536 |
event handler for table change event. Change to using |
| 2537 |
getDetailsLayout() for the default details layout. |
| 2538 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table |
| 2539 |
name to URL token. |
| 2540 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table |
| 2541 |
when navigating to the details place. |
| 2542 |
|
| 2543 |
2011-06-27 Ben Konrath <ben@bagu.org> |
| 2544 |
|
| 2545 |
Use filename based unique document ID in URL and for RPC. |
| 2546 |
|
| 2547 |
The document ID is the glom document name with spaces (' ') replaced |
| 2548 |
with pluses ('+') and without the .glom extension. |
| 2549 |
|
| 2550 |
This change is mostly a string substitution of 'documentTitle' for |
| 2551 |
'documentID'. The only code change is the addition of a Documents DTO to get the |
| 2552 |
filename to document title mappings as indicated below. |
| 2553 |
|
| 2554 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2555 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2556 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 2557 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: |
| 2558 |
Use Documents DTO to create the document links in the document |
| 2559 |
selection view. |
| 2560 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 2561 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2562 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 2563 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java: |
| 2564 |
* src/main/java/org/glom/web/client/place/ListPlace.java: |
| 2565 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java: |
| 2566 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 2567 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 2568 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 2569 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 2570 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 2571 |
* src/main/java/org/glom/web/server/Log.java: |
| 2572 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change |
| 2573 |
getDocumentTitles() to getDocuments() and return the Documents DTO. |
| 2574 |
* src/main/java/org/glom/web/shared/Documents.java: New DTO for |
| 2575 |
transferring the filename to document title mappings. |
| 2576 |
|
| 2577 |
2011-06-25 Ben Konrath <ben@bagu.org> |
| 2578 |
|
| 2579 |
Make the authentication popup work again. |
| 2580 |
|
| 2581 |
This bug was introduced when I extracted ConfiguredDocument to its own class. |
| 2582 |
|
| 2583 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the |
| 2584 |
correct success / fail status in setUsernameAndPassword(). |
| 2585 |
|
| 2586 |
2011-06-25 Ben Konrath <ben@bagu.org> |
| 2587 |
|
| 2588 |
Use filename as unique key for configuring database usernames and passwords. |
| 2589 |
|
| 2590 |
This replaces the use of the Glom document title which could change |
| 2591 |
depending on the locale. Thanks to Murray Cumming for pointing out this |
| 2592 |
problem. |
| 2593 |
|
| 2594 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2595 |
* src/main/resources/onlineglom.properties: |
| 2596 |
|
| 2597 |
2011-06-24 Ben Konrath <ben@bagu.org> |
| 2598 |
|
| 2599 |
Pass primary key value to DetailsView. |
| 2600 |
|
| 2601 |
This enables the DetailsView to load the correct data. |
| 2602 |
|
| 2603 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add |
| 2604 |
primary key value field and set in constructor. Pass primary key |
| 2605 |
value to getDetailsData(). |
| 2606 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL |
| 2607 |
variables for document title and primary key value. |
| 2608 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary |
| 2609 |
key value to the DetailsPlace. |
| 2610 |
|
| 2611 |
2011-06-24 Ben Konrath <ben@bagu.org> |
| 2612 |
|
| 2613 |
Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable. |
| 2614 |
|
| 2615 |
This allows the primary key to be retrieved by the Details button. This |
| 2616 |
functionality has not been implemented yet but it's in the works. |
| 2617 |
|
| 2618 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Pass |
| 2619 |
the LayoutGroup result to ListView.setCellTable instead of all of its |
| 2620 |
fields individually. |
| 2621 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 2622 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use |
| 2623 |
LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable |
| 2624 |
get the primary key for the table. |
| 2625 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the |
| 2626 |
index of the primary key in the LayoutGroup accounting for hidden |
| 2627 |
primary keys. Rename getJavaNumberFormat() to |
| 2628 |
convertToJavaNumberFormat() for consistency. Cleanup / add some |
| 2629 |
comments. |
| 2630 |
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a |
| 2631 |
field for primary key index and a field to indicate whether the |
| 2632 |
primary key is hidden or not. |
| 2633 |
|
| 2634 |
2011-06-23 Ben Konrath <ben@bagu.org> |
| 2635 |
|
| 2636 |
Rename getTableData methods to getListData. |
| 2637 |
|
| 2638 |
This is a rename refactor for consistency with other methods. |
| 2639 |
|
| 2640 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2641 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2642 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 2643 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2644 |
|
| 2645 |
2011-06-23 Ben Konrath <ben@bagu.org> |
| 2646 |
|
| 2647 |
Extract the ConfiguredDocument innerclass into its own class. |
| 2648 |
|
| 2649 |
This makes the servlet code more object oriented. |
| 2650 |
|
| 2651 |
* src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted |
| 2652 |
from private ConfiguredDocument class in OnlineGlomServiceImpl. |
| 2653 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the |
| 2654 |
new ConfiguredDocument class. |
| 2655 |
|
| 2656 |
2011-06-21 Ben Konrath <ben@bagu.org> |
| 2657 |
|
| 2658 |
Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable. |
| 2659 |
|
| 2660 |
This makes things more inline with how libglom works and reduces code |
| 2661 |
duplication. This refactor lays the groundwork for adding the primary key to |
| 2662 |
the LayoutGroup object. |
| 2663 |
|
| 2664 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2665 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2666 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2667 |
Change method names to getListLayout and getDefaultListLayout for |
| 2668 |
consistency. Use LayoutGroup as the DTO for the list layout instead of |
| 2669 |
ColumnInfo and LayoutListTable. |
| 2670 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Use the |
| 2671 |
new method names along with the LayoutGroup object for transferring the |
| 2672 |
list layout. |
| 2673 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 2674 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 2675 |
Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable(). |
| 2676 |
* src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced |
| 2677 |
with LayoutGroup. |
| 2678 |
* src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted. |
| 2679 |
Replaced with LayoutGroup. |
| 2680 |
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add |
| 2681 |
expectedResultSize and defaultTableName fields which are needed for |
| 2682 |
the list layout. |
| 2683 |
* src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add |
| 2684 |
type field which is needed for the list layout but will also be |
| 2685 |
useful for the details layout as things progress. |
| 2686 |
* src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java: |
| 2687 |
Make class abstract. Remove the unnecessary |
| 2688 |
getFormattingHorizontalAlignment method. Add setFormatting method. |
| 2689 |
|
| 2690 |
2011-06-16 Ben Konrath <ben@bagu.org> |
| 2691 |
|
| 2692 |
Add scripts for building and installing war. |
| 2693 |
|
| 2694 |
These will help when updating OnlineGlom but they're also good |
| 2695 |
supplemental documentation of the build and deployment proceeding. |
| 2696 |
|
| 2697 |
* utils/build-onlineglom-war.sh: New file. |
| 2698 |
* utils/install-onlineglom-war.sh: New file. |
| 2699 |
|
| 2700 |
2011-06-16 Ben Konrath <ben@bagu.org> |
| 2701 |
|
| 2702 |
Create wrapper class to create consistent log messages. |
| 2703 |
|
| 2704 |
I wrapped methods in the Log class of gwt-log to add the method names |
| 2705 |
from the servlet and create consistent formatting of the document title |
| 2706 |
and table names in the log messages. |
| 2707 |
|
| 2708 |
* src/main/java/org/glom/web/server/Log.java: New file with wrapped methods. |
| 2709 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all |
| 2710 |
log methods to use methods from wrapped Log class. |
| 2711 |
|
| 2712 |
2011-06-16 Ben Konrath <ben@bagu.org> |
| 2713 |
|
| 2714 |
Remove superfluous conditional return. |
| 2715 |
|
| 2716 |
Thanks to Murray Cumming for pointing this out! |
| 2717 |
|
| 2718 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2719 |
|
| 2720 |
2011-06-15 Ben Konrath <ben@bagu.org> |
| 2721 |
|
| 2722 |
Return an ArrayList of LayoutGroups for the Details layout. |
| 2723 |
|
| 2724 |
This corrects a problem with the details layout as it can have more |
| 2725 |
than one top level LayoutGroup. |
| 2726 |
|
| 2727 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2728 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change |
| 2729 |
method name from get*DetailsLayoutGroup to get*DetailsLayout. Return |
| 2730 |
an ArrayList<LayoutGroup> in the get*DetailsLayout methods. |
| 2731 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal |
| 2732 |
with ArrayList of LayoutGroups for the details view layout. |
| 2733 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change |
| 2734 |
method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an |
| 2735 |
ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline |
| 2736 |
getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify |
| 2737 |
the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to |
| 2738 |
getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent. |
| 2739 |
|
| 2740 |
2011-06-14 Ben Konrath <ben@bagu.org> |
| 2741 |
|
| 2742 |
Use cast_dynamic method to determine the libglom LayoutItem type. |
| 2743 |
|
| 2744 |
This is better than finding the LayoutItem type by using the string |
| 2745 |
returned from the get_part_type_name() method. |
| 2746 |
|
| 2747 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2748 |
|
| 2749 |
2011-06-14 Ben Konrath <ben@bagu.org> |
| 2750 |
|
| 2751 |
Add method names to log entries in the servlet. |
| 2752 |
|
| 2753 |
This helps when tracking down deployment problems. |
| 2754 |
|
| 2755 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2756 |
|
| 2757 |
2011-06-14 Ben Konrath <ben@bagu.org> |
| 2758 |
|
| 2759 |
Add data to the DetailsView using a hard-coded primary key value. |
| 2760 |
|
| 2761 |
The layout and functionality of the DetailsView is not complete. This |
| 2762 |
is just a checkpoint so the patch doesn't get too big. |
| 2763 |
|
| 2764 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2765 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2766 |
Add getDetailsData() servlet method. |
| 2767 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 2768 |
Add RPC to getDetailsData(). Change the way the LayoutGroups and |
| 2769 |
LayoutFields are added to the DetailsView. |
| 2770 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 2771 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: |
| 2772 |
Add setData() method. Change addLayoutGroup() and addLayoutField() to |
| 2773 |
take the string for the title instead of the object. |
| 2774 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2775 |
Add implementation getDetailsData() along with some private helper |
| 2776 |
methods. |
| 2777 |
* src/main/webapp/style.css: Add padding to details-data class. Add a |
| 2778 |
details-label class with the same padding as the details-data class. |
| 2779 |
|
| 2780 |
2011-06-03 Ben Konrath <ben@bagu.org> |
| 2781 |
|
| 2782 |
Use presenter.goTo() to change to the DetailsPlace. |
| 2783 |
|
| 2784 |
This will make things easier when we need to open the DetailsView with |
| 2785 |
data specific to the row that was clicked. |
| 2786 |
|
| 2787 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 2788 |
|
| 2789 |
2011-06-02 Ben Konrath <ben@bagu.org> |
| 2790 |
|
| 2791 |
Add CSS file from mockups. |
| 2792 |
|
| 2793 |
I'm adding this now because it's going to be useful to have when |
| 2794 |
developing the DetailsView. The TableSelectionView and ListView aren't |
| 2795 |
setup properly yet. |
| 2796 |
|
| 2797 |
* src/main/webapp/OnlineGlom.html: |
| 2798 |
* src/main/webapp/style.css: |
| 2799 |
|
| 2800 |
2011-06-02 Ben Konrath <ben@bagu.org> |
| 2801 |
|
| 2802 |
Use String.isEmpty() to check for empty string. |
| 2803 |
|
| 2804 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 2805 |
|
| 2806 |
2011-06-02 Ben Konrath <ben@bagu.org> |
| 2807 |
|
| 2808 |
Display main layout group titles in the DetailsView. |
| 2809 |
|
| 2810 |
This is the start of the DetailsActivity/DetailsView implementation. |
| 2811 |
|
| 2812 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2813 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 2814 |
Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods. |
| 2815 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 2816 |
Get the layout information for the details view from the server and set |
| 2817 |
the main layout group titles. |
| 2818 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 2819 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: |
| 2820 |
Add addLayoutGroup() and addLayoutField() methods. This are just |
| 2821 |
temporary methods for creating the the details view that will change |
| 2822 |
in the future. |
| 2823 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2824 |
Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() |
| 2825 |
methods. |
| 2826 |
* src/main/java/org/glom/web/shared/layout/Formatting.java: |
| 2827 |
* src/main/java/org/glom/web/shared/layout/LayoutGroup.java: |
| 2828 |
* src/main/java/org/glom/web/shared/layout/LayoutItem.java: |
| 2829 |
* src/main/java/org/glom/web/shared/layout/LayoutItemField.java: |
| 2830 |
* src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java: |
| 2831 |
Data Transfer Objects that mimic the libglom object structure. These are |
| 2832 |
used for transferring the details layout but could also be used for |
| 2833 |
transferring the list layout. |
| 2834 |
|
| 2835 |
2011-05-27 Ben Konrath <ben@bagu.org> |
| 2836 |
|
| 2837 |
Reset the AuthenticationPopup when clearing the ListView. |
| 2838 |
|
| 2839 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 2840 |
|
| 2841 |
2011-05-27 Ben Konrath <ben@bagu.org> |
| 2842 |
|
| 2843 |
Fix problem with onlineglom.properties file loading. |
| 2844 |
|
| 2845 |
The old way worked in Eclipse but not on the server. Loading the |
| 2846 |
onlineglom.properties file now works in Eclipse and on the server. |
| 2847 |
|
| 2848 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2849 |
|
| 2850 |
2011-05-24 Ben Konrath <ben@bagu.org> |
| 2851 |
|
| 2852 |
Update gwt-log from 3.1.0 to 3.1.2. |
| 2853 |
|
| 2854 |
Gwt-log 3.1.0 has been marked as depreciated. |
| 2855 |
|
| 2856 |
* pom.xml: |
| 2857 |
|
| 2858 |
2011-05-24 Ben Konrath <ben@bagu.org> |
| 2859 |
|
| 2860 |
Add comment to ListActivity.goTo() method. |
| 2861 |
|
| 2862 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 2863 |
|
| 2864 |
2011-05-24 Ben Konrath <ben@bagu.org> |
| 2865 |
|
| 2866 |
Remove FIXME in convertGdkColorToHtmlColour() |
| 2867 |
|
| 2868 |
The Gdk::Color value returned by libglom is 16-bits per channel on both |
| 2869 |
64 and 32-bit platforms. |
| 2870 |
|
| 2871 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2872 |
|
| 2873 |
2011-05-19 Ben Konrath <ben@bagu.org> |
| 2874 |
|
| 2875 |
Improve performance of initial ListView load. |
| 2876 |
|
| 2877 |
I removed a round trip to the server for getting the default table name |
| 2878 |
and then requesting information about that table. This also removes a potential |
| 2879 |
problem with the table change handler not being setup in time to receive the |
| 2880 |
table change event from the ListActivity. |
| 2881 |
|
| 2882 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 2883 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add |
| 2884 |
getDefaultLayoutListTable() method. Improve comments. |
| 2885 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: Use |
| 2886 |
getDefaultLayoutListTable() method instead of firing a table change |
| 2887 |
event to get the table to load. |
| 2888 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add |
| 2889 |
implementation of getDefaultLayoutListTable() method. |
| 2890 |
* src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for |
| 2891 |
table name. |
| 2892 |
|
| 2893 |
2011-05-19 Ben Konrath <ben@bagu.org> |
| 2894 |
|
| 2895 |
Override toDebugString() in TableChangeEvent. |
| 2896 |
|
| 2897 |
This is useful to have for debugging. |
| 2898 |
|
| 2899 |
* src/main/java/org/glom/web/client/event/TableChangeEvent.java: |
| 2900 |
|
| 2901 |
2011-05-19 Ben Konrath <ben@bagu.org> |
| 2902 |
|
| 2903 |
Add a "Back to List" link when at the DetailsPlace. |
| 2904 |
|
| 2905 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: |
| 2906 |
Populate the CellTable based on the selected table of the ListBox if |
| 2907 |
it's set otherwise use the default table. This allows the "Back to |
| 2908 |
List" link to work. |
| 2909 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2910 |
Remove Place from constructors. Add a setPlace() method. Add |
| 2911 |
goToPlace() method. Set class as presenter for TableSelectionView. |
| 2912 |
* src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java: |
| 2913 |
Use the same TableSelectionActivity when switching between the List and |
| 2914 |
Details Places. |
| 2915 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 2916 |
Subclass the new HasSelectableTablePlace. This removes some duplicate |
| 2917 |
code. |
| 2918 |
* src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java: |
| 2919 |
New class to represent Places that display the TableSelectionView. |
| 2920 |
* src/main/java/org/glom/web/client/place/ListPlace.java: |
| 2921 |
Subclass the new HasSelectableTablePlace. This removes some duplicate |
| 2922 |
code. |
| 2923 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 2924 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 2925 |
Add Presenter interface. Add setBackLinkVisible() method. Add |
| 2926 |
setBackLink() method. |
| 2927 |
|
| 2928 |
2011-05-18 Ben Konrath <ben@bagu.org> |
| 2929 |
|
| 2930 |
Enable the "Details" buttons. |
| 2931 |
|
| 2932 |
Right now only an empty details view is displayed. |
| 2933 |
|
| 2934 |
* src/main/java/org/glom/web/client/ClientFactory.java: |
| 2935 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: |
| 2936 |
Add DetailsView to ClientFactory. |
| 2937 |
* src/main/java/org/glom/web/client/activity/DetailsActivity.java: |
| 2938 |
A basic activity for the details view. |
| 2939 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2940 |
Add a new constructor that takes a DetailsPlace. Rename shutdown() to |
| 2941 |
clearView(). |
| 2942 |
* src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: |
| 2943 |
Add DetailsPlace.Tokenizer to the list of tokens that are generated by |
| 2944 |
GWT. |
| 2945 |
* src/main/java/org/glom/web/client/mvp/DataActivityMapper.java: |
| 2946 |
Create a new DetailsActivity when a DetailsPlace is requested. Remove |
| 2947 |
unnecessary super() in constructor. |
| 2948 |
* src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java: |
| 2949 |
Create a new TableSelectionActivity when a DetailsPlace is requested. We |
| 2950 |
really shouldn't create a new TableSelectionActivity for both the ListPlace |
| 2951 |
and the DetailsPlace so this should be considered a temporary solution. |
| 2952 |
* src/main/java/org/glom/web/client/place/DetailsPlace.java: |
| 2953 |
New file. Represents a URL for the details view. |
| 2954 |
* src/main/java/org/glom/web/client/ui/DetailsView.java: |
| 2955 |
* src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: |
| 2956 |
A basic details view interface and implementation. |
| 2957 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 2958 |
Enable the "Details" buttons. |
| 2959 |
|
| 2960 |
2011-05-12 Ben Konrath <ben@bagu.org> |
| 2961 |
|
| 2962 |
Use a LayoutPanel with multiple display areas for main layout. |
| 2963 |
|
| 2964 |
This is mostly a refactor in that there are no changes from the user |
| 2965 |
point of view. These changes are required so that we can swap out the list view |
| 2966 |
with the details view when the user clicks the "Details" button. |
| 2967 |
|
| 2968 |
* src/main/java/org/glom/web/client/ClientFactory.java: |
| 2969 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove |
| 2970 |
OnlineGlomView. Add TableSelectionView, ListView and |
| 2971 |
AuthenticationPopup. |
| 2972 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel |
| 2973 |
for main layout. Add display regions for main activities. Add |
| 2974 |
activity manager for for main activities. |
| 2975 |
* src/main/java/org/glom/web/client/activity/ListActivity.java: New |
| 2976 |
file from parts of the deleted OnlineGlomActivity. |
| 2977 |
* src/main/java/org/glom/web/client/activity/TableSelectionActivity.java: |
| 2978 |
New file from parts of the deleted OnlineGlomActivity. |
| 2979 |
* src/main/java/org/glom/web/client/event/TableChangeEvent.java: |
| 2980 |
* src/main/java/org/glom/web/client/event/TableChangeEventHandler.java: |
| 2981 |
New files for app wide table change event. |
| 2982 |
* src/main/java/org/glom/web/client/mvp/DataActivityMapper.java: |
| 2983 |
* src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java: |
| 2984 |
* src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java: |
| 2985 |
Activity mappers for the main activities replace the deleted app-wide |
| 2986 |
AppActivityMapper. |
| 2987 |
* src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: |
| 2988 |
Fix a spelling error in he comment. |
| 2989 |
* src/main/java/org/glom/web/client/ui/ListView.java: |
| 2990 |
* src/main/java/org/glom/web/client/ui/ListViewImpl.java: |
| 2991 |
Renamed from LayoutListView and modified for MVP. This still not a |
| 2992 |
proper dumb view as prescribed by the MVP pattern but it works for now. |
| 2993 |
* src/main/java/org/glom/web/client/ui/TableSelectionView.java: |
| 2994 |
* src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: |
| 2995 |
New widget stripped out of the deleted OnlineGlomView. |
| 2996 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 2997 |
Remove hack that is fixed by this patch. |
| 2998 |
|
| 2999 |
2011-05-06 Ben Konrath <ben@bagu.org> |
| 3000 |
|
| 3001 |
Rename OnlineGlomPlace to ListPlace. |
| 3002 |
|
| 3003 |
The only change besides the rename is that url will now display #list |
| 3004 |
instead of #Document. |
| 3005 |
|
| 3006 |
* src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: |
| 3007 |
* src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: |
| 3008 |
* src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: |
| 3009 |
* src/main/java/org/glom/web/client/place/ListPlace.java: |
| 3010 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 3011 |
|
| 3012 |
2011-05-06 Ben Konrath <ben@bagu.org> |
| 3013 |
|
| 3014 |
Use Presenter for app navigation. |
| 3015 |
|
| 3016 |
This is the proper way to deal with Place (URL) changes with the MVP |
| 3017 |
framework. |
| 3018 |
|
| 3019 |
* src/main/java/org/glom/web/client/ClientFactory.java: |
| 3020 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove |
| 3021 |
PlaceHistoryMapper and PlaceHistoryHandler. |
| 3022 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Re-add |
| 3023 |
PlaceHistoryMapper and PlaceHistoryHandler. |
| 3024 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: |
| 3025 |
Don't use getHistoryMapper().getToken(place) to create the hyperlinks. |
| 3026 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java: |
| 3027 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 3028 |
Add Presenter interface and setPresenter methods. Rename addHyperLink |
| 3029 |
to addDocumentLink taking only the document title as a parameter. |
| 3030 |
|
| 3031 |
2011-04-14 Ben Konrath <ben@bagu.org> |
| 3032 |
|
| 3033 |
Prompt for db username/password if they haven't been set. |
| 3034 |
|
| 3035 |
This is implemented with a popup widget that is contained within the |
| 3036 |
OnlineGlomView and managed by the OnlineGlomActivity. |
| 3037 |
|
| 3038 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Two new |
| 3039 |
methods for checking and setting the database username and password. |
| 3040 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two |
| 3041 |
new methods for checking and setting the database username and |
| 3042 |
password. |
| 3043 |
* src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: |
| 3044 |
Display authentication popup if the JDBC connection to the database |
| 3045 |
has not been authenticated. |
| 3046 |
* src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New |
| 3047 |
file. |
| 3048 |
* src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods |
| 3049 |
for dealing with the authentication popup. |
| 3050 |
* src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: |
| 3051 |
Implement the methods for dealing with the authentication popup. |
| 3052 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't |
| 3053 |
try to executed queries if the database connection hasn't been |
| 3054 |
authenticated. Implement methods for checking and setting the |
| 3055 |
database username and password. |
| 3056 |
|
| 3057 |
2011-04-12 Ben Konrath <ben@bagu.org> |
| 3058 |
|
| 3059 |
Make log messages a little clearer. |
| 3060 |
|
| 3061 |
Add a dash betweeen the document title and the table name. |
| 3062 |
|
| 3063 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3064 |
|
| 3065 |
2011-04-12 Ben Konrath <ben@bagu.org> |
| 3066 |
|
| 3067 |
Protect against NPEs when cleaning up database resources. |
| 3068 |
|
| 3069 |
While this isn't strictly necessary because the exception is caught, |
| 3070 |
not protecting against the NPEs makes it harder to find the real error |
| 3071 |
in the log file. |
| 3072 |
|
| 3073 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3074 |
|
| 3075 |
2011-04-12 Ben Konrath <ben@bagu.org> |
| 3076 |
|
| 3077 |
Move configuration of the servlet to the constructor. |
| 3078 |
|
| 3079 |
The servlet will be initialized even if the database authentication |
| 3080 |
information is not set or correct. I still need to add the UI for prompting |
| 3081 |
the user for the authentication information when it's required. |
| 3082 |
|
| 3083 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Add |
| 3084 |
javadocs for getDocumentTitles() method. |
| 3085 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: |
| 3086 |
Set error message when RPC fails. |
| 3087 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the |
| 3088 |
glom files directory from the configuration file. Try to set the |
| 3089 |
database authentication information for the specific document if it's |
| 3090 |
set and works otherwise try to use the global authentication |
| 3091 |
information set for the directory. |
| 3092 |
* src/main/resources/onlineglom.properties: Moved from |
| 3093 |
src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys. |
| 3094 |
Added detailed comments for the new keys. |
| 3095 |
|
| 3096 |
2011-04-11 Ben Konrath <ben@bagu.org> |
| 3097 |
|
| 3098 |
Remove unnecessary @Override in DocumentSelectionViewImpl. |
| 3099 |
|
| 3100 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 3101 |
|
| 3102 |
2011-04-11 Ben Konrath <ben@bagu.org> |
| 3103 |
|
| 3104 |
Remove center alignment in DocumentSelectionView. |
| 3105 |
|
| 3106 |
The title element is still centred but the document titles and bottom |
| 3107 |
sentence are both left-aligned. |
| 3108 |
|
| 3109 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml: |
| 3110 |
|
| 3111 |
2011-04-11 Ben Konrath <ben@bagu.org> |
| 3112 |
|
| 3113 |
Change 'Demo' naming convention to 'Document'. |
| 3114 |
|
| 3115 |
This is just a rename refactor with no functional changes to the code. |
| 3116 |
|
| 3117 |
* src/main/java/org/glom/web/client/ClientFactory.java: |
| 3118 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: |
| 3119 |
* src/main/java/org/glom/web/client/OnlineGlom.java: |
| 3120 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: |
| 3121 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 3122 |
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: |
| 3123 |
* src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: |
| 3124 |
* src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: |
| 3125 |
* src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java: |
| 3126 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionView.java: |
| 3127 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: |
| 3128 |
* src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml: |
| 3129 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3130 |
|
| 3131 |
2011-04-08 Ben Konrath <ben@bagu.org> |
| 3132 |
|
| 3133 |
Remove FIXME from safeLongToInt() method. |
| 3134 |
|
| 3135 |
Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use |
| 3136 |
this method. |
| 3137 |
|
| 3138 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3139 |
|
| 3140 |
2011-04-08 Ben Konrath <ben@bagu.org> |
| 3141 |
|
| 3142 |
Display an error if no glom documents are found in the specified directory. |
| 3143 |
|
| 3144 |
* src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: |
| 3145 |
* src/main/java/org/glom/web/client/ui/DemoSelectionView.java: |
| 3146 |
* src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java: |
| 3147 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3148 |
|
| 3149 |
2011-04-08 Ben Konrath <ben@bagu.org> |
| 3150 |
|
| 3151 |
Add copyright header to one more file ... oops. |
| 3152 |
|
| 3153 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 3154 |
|
| 3155 |
2011-04-08 Ben Konrath <ben@bagu.org> |
| 3156 |
|
| 3157 |
Add copyright header to files without it. |
| 3158 |
|
| 3159 |
* src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: |
| 3160 |
* src/main/java/org/glom/web/client/place/DemoSelectionPlace.java: |
| 3161 |
* src/main/java/org/glom/web/client/ui/DemoSelectionView.java: |
| 3162 |
* src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java: |
| 3163 |
* src/main/java/org/glom/web/shared/ColumnInfo.java: |
| 3164 |
* src/main/java/org/glom/web/shared/GlomField.java: |
| 3165 |
|
| 3166 |
2011-04-08 Ben Konrath <ben@bagu.org> |
| 3167 |
|
| 3168 |
Add support for accessing multiple glom documents in the servlet. |
| 3169 |
|
| 3170 |
This completes the demo selection functionality. |
| 3171 |
|
| 3172 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Add |
| 3173 |
document title to methods. |
| 3174 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add |
| 3175 |
document title to methods. |
| 3176 |
* src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: |
| 3177 |
Set browser window title when the activity starts. Correct name of |
| 3178 |
document title variable. |
| 3179 |
* src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: |
| 3180 |
Set browser window title when the activity starts. Set the table |
| 3181 |
selector change handler after table selector has been set. Clear the |
| 3182 |
OnlineGlomView when the activity has been stopped. |
| 3183 |
* src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the |
| 3184 |
document title as the place token. Use "#Document:" instead of |
| 3185 |
"#OnlineGlomPlace:" in the URL. |
| 3186 |
* src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml: |
| 3187 |
Change heading to "Online Glom" |
| 3188 |
* src/main/java/org/glom/web/client/ui/LayoutListView.java: Use |
| 3189 |
document title in RPC methods. |
| 3190 |
* src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove |
| 3191 |
setDocumentTitle() method. Add clear() method. |
| 3192 |
* src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove |
| 3193 |
setDocumentTitle() method. Implement clear() method which removes the |
| 3194 |
change handler on the ListBox, clears the ListBox and clears the |
| 3195 |
DataPanel. |
| 3196 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3197 |
Implement methods with document title. Keep track for the configured |
| 3198 |
glom documents and their corresponding JDBC configurations in a hash |
| 3199 |
table. This information is retrieved using the document title as the |
| 3200 |
key in the hash table. |
| 3201 |
* src/main/java/org/glom/web/shared/GlomDocument.java: Remove |
| 3202 |
document title field as it's no longer needed. |
| 3203 |
|
| 3204 |
2011-04-08 Ben Konrath <ben@bagu.org> |
| 3205 |
|
| 3206 |
Update the Eclipse JDT configuration. |
| 3207 |
|
| 3208 |
* .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new |
| 3209 |
methods. Automatically add the copyright header to new files. |
| 3210 |
|
| 3211 |
2011-04-05 Ben Konrath <ben@bagu.org> |
| 3212 |
|
| 3213 |
Add new page for demo selection. |
| 3214 |
|
| 3215 |
This patch adds all the components required to view and start an |
| 3216 |
OnlineGlom demo by clicking on the desired hyperlink. The user is |
| 3217 |
able to return to the demo selection page with the browser's back |
| 3218 |
button. I still need to modify the servlet to work with multiple |
| 3219 |
documents so all demo links will load the file defined in the |
| 3220 |
OnlineGlom.properties. |
| 3221 |
|
| 3222 |
* .gitignore: Add .gwt which holds the error log for the GWT UiBuidler. |
| 3223 |
This is only useful during development so we don't need to save it. |
| 3224 |
* src/main/java/org/glom/web/client/ClientFactory.java: Add method to |
| 3225 |
get a reference to the DemoSelectionView. |
| 3226 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement |
| 3227 |
method to get a reference to the DemoSelectionView. |
| 3228 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Change the |
| 3229 |
default view to DemoSelectionView. |
| 3230 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Add method |
| 3231 |
to get glom document titles for glom files in a hard-coded directory. |
| 3232 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add |
| 3233 |
method to get glom document titles for glom files in a hard-coded |
| 3234 |
directory. |
| 3235 |
* src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: |
| 3236 |
Presenter for DemoSelectionView. |
| 3237 |
* src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update |
| 3238 |
for DemoSelectionView. |
| 3239 |
* src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: |
| 3240 |
Update for DemoSelectionView. |
| 3241 |
* src/main/java/org/glom/web/client/place/DemoSelectionPlace.java: |
| 3242 |
Basic 'Place' implementation for the DemoSelectionView. |
| 3243 |
* src/main/java/org/glom/web/client/ui/DemoSelectionView.java: |
| 3244 |
The interface for the DemoSelectionView. |
| 3245 |
* src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java: |
| 3246 |
The implementation of the DemoSelectionView. |
| 3247 |
* src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml: |
| 3248 |
The GWT UiBuilder xml file used in DemoSelectionViewImpl. |
| 3249 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add |
| 3250 |
implementation of method to get glom document titles for glom files |
| 3251 |
in a hard-coded directory. |
| 3252 |
* src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's |
| 3253 |
on longer being used. |
| 3254 |
* src/main/webapp/glom.png: Glom logo. |
| 3255 |
|
| 3256 |
2011-04-05 Ben Konrath <ben@bagu.org> |
| 3257 |
|
| 3258 |
Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity. |
| 3259 |
|
| 3260 |
This is the forth and final commit of a refactor that will allow |
| 3261 |
OnlineGlom to be used with multiple documents. |
| 3262 |
|
| 3263 |
* src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: |
| 3264 |
Move RPC code from OnlineGlomViewImpl to this class. |
| 3265 |
* src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods |
| 3266 |
to inferface. |
| 3267 |
* src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move |
| 3268 |
RPC code to the presenter class (the P in MVP). |
| 3269 |
|
| 3270 |
2011-04-04 Ben Konrath <ben@bagu.org> |
| 3271 |
|
| 3272 |
Start moving the existing OnlineGlom code to MVP. |
| 3273 |
|
| 3274 |
This work is based on the GWT MVP framework that is documented here: |
| 3275 |
|
| 3276 |
https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html |
| 3277 |
|
| 3278 |
This is the third commit of a refactor that will allow OnlineGlom to |
| 3279 |
be used with multiple documents. |
| 3280 |
|
| 3281 |
* src/main/java/org/glom/web/client/ClientFactory.java: New file. |
| 3282 |
Interface for client factory which is used to get instances of various |
| 3283 |
classes throughout the app. |
| 3284 |
* src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file. |
| 3285 |
Implementation of client factory. |
| 3286 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Add code to |
| 3287 |
initialize the MVP framework. |
| 3288 |
* src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: |
| 3289 |
New file. Activity manager for the main container widget. This is the |
| 3290 |
Presenter in MVP. |
| 3291 |
* src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file. |
| 3292 |
Maps place (URL) to its corresponding activity. |
| 3293 |
* src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: |
| 3294 |
New file. This is just a place holder for a generated file. |
| 3295 |
* src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: |
| 3296 |
New file. Represents the URL for the main Online Glom app. |
| 3297 |
* src/main/java/org/glom/web/client/ui/LayoutListView.java: Update |
| 3298 |
for changes in LayoutListViewImpl. |
| 3299 |
* src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create |
| 3300 |
interface for View. Move code to OnlineGlomViewImpl class. |
| 3301 |
* src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New |
| 3302 |
file. Implementation of OnlineGlomView. |
| 3303 |
* src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and |
| 3304 |
Place resources. Use ClientFactoryImpl by default. |
| 3305 |
|
| 3306 |
2011-04-04 Ben Konrath <ben@bagu.org> |
| 3307 |
|
| 3308 |
Move View classes to their own package. |
| 3309 |
|
| 3310 |
This is the second commit of a refactor that will allow OnlineGlom to |
| 3311 |
be used with multiple documents. |
| 3312 |
|
| 3313 |
* src/main/java/org/glom/web/client/OnlineGlom.java: |
| 3314 |
* src/main/java/org/glom/web/client/ui/LayoutListView.java: |
| 3315 |
* src/main/java/org/glom/web/client/ui/OnlineGlomView.java: |
| 3316 |
|
| 3317 |
2011-04-02 Ben Konrath <ben@bagu.org> |
| 3318 |
|
| 3319 |
Move UI code from the main module to its own class. |
| 3320 |
|
| 3321 |
This is the first commit of a refactor that will allow OnlineGlom to be |
| 3322 |
used with multiple documents. |
| 3323 |
|
| 3324 |
* src/main/java/org/glom/web/client/LayoutListView.java: Update |
| 3325 |
references to OnlineGlom to OnlineGlomView. |
| 3326 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Move code to |
| 3327 |
OnlineGlomView and instantiate it here. |
| 3328 |
* src/main/java/org/glom/web/client/OnlineGlomView.java: New class that |
| 3329 |
represents the main OnlineGlomView with one document. |
| 3330 |
|
| 3331 |
2011-04-01 Ben Konrath <ben@bagu.org> |
| 3332 |
|
| 3333 |
Fix formatting of gwt.xml and add DTD. |
| 3334 |
|
| 3335 |
* src/main/resources/org/glom/web/OnlineGlom.gwt.xml: |
| 3336 |
|
| 3337 |
2011-03-30 Ben Konrath <ben@bagu.org> |
| 3338 |
|
| 3339 |
Propperly convert gdkColor string to html colour string. |
| 3340 |
|
| 3341 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3342 |
|
| 3343 |
2011-03-28 Ben Konrath <ben@bagu.org> |
| 3344 |
|
| 3345 |
Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment(). |
| 3346 |
|
| 3347 |
This implementation matches |
| 3348 |
OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more |
| 3349 |
readable and is not tied to Swig. |
| 3350 |
|
| 3351 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3352 |
|
| 3353 |
2011-03-28 Ben Konrath <ben@bagu.org> |
| 3354 |
|
| 3355 |
Use read-only checkboxes for boolean field types. |
| 3356 |
|
| 3357 |
* src/main/java/org/glom/web/client/LayoutListView.java: Create columns |
| 3358 |
in the CellTable based on the field type. It currently only |
| 3359 |
distinguishes between boolean and text columns but I'll need to add |
| 3360 |
support for more types. |
| 3361 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the |
| 3362 |
column type in the ColumnInfo object. Add method to convert between the |
| 3363 |
glom field type enum in ColumnInfo and the glom field type in libglom. |
| 3364 |
* src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for |
| 3365 |
field type. |
| 3366 |
* src/main/java/org/glom/web/shared/GlomField.java: Add support for |
| 3367 |
getting and setting booleans. |
| 3368 |
|
| 3369 |
2011-03-25 Ben Konrath <ben@bagu.org> |
| 3370 |
|
| 3371 |
Don't get the Date twice from the ResultSet. |
| 3372 |
|
| 3373 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3374 |
|
| 3375 |
2011-03-25 Ben Konrath <ben@bagu.org> |
| 3376 |
|
| 3377 |
Cleanup code in the servlet. |
| 3378 |
|
| 3379 |
* TODO: Remove item about row count. Add item about testing row count |
| 3380 |
query with large number of rows. |
| 3381 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix |
| 3382 |
spelling mistakes, change method parameter to be consistent with |
| 3383 |
other methods. |
| 3384 |
|
| 3385 |
2011-03-25 Ben Konrath <ben@bagu.org> |
| 3386 |
|
| 3387 |
Add server side logging with the gwt-log library. |
| 3388 |
|
| 3389 |
* .gitignore: Ignore the log file we're now producing. |
| 3390 |
* TODO: Add a couple TODO item for logging. |
| 3391 |
* pom.xml: Add gwt-log and log4j as a dependency. |
| 3392 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add |
| 3393 |
logging of errors, warnings and some important info. |
| 3394 |
* src/main/resources/log4j.properties: New file to configure log4j. |
| 3395 |
|
| 3396 |
2011-03-24 Ben Konrath <ben@bagu.org> |
| 3397 |
|
| 3398 |
Add a disable button for the Details view. |
| 3399 |
|
| 3400 |
* src/main/java/org/glom/web/client/LayoutListView.java: |
| 3401 |
|
| 3402 |
2011-03-22 Ben Konrath <ben@bagu.org> |
| 3403 |
|
| 3404 |
Use a count query to get the number of rows for the list view pager. |
| 3405 |
|
| 3406 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3407 |
|
| 3408 |
2011-03-22 Ben Konrath <ben@bagu.org> |
| 3409 |
|
| 3410 |
Add more TODO information about CellTable pager positioning. |
| 3411 |
|
| 3412 |
* TODO: |
| 3413 |
|
| 3414 |
2011-03-19 Ben Konrath <ben@bagu.org> |
| 3415 |
|
| 3416 |
Add TODO item about CellTable pager positioning. |
| 3417 |
|
| 3418 |
* TODO: |
| 3419 |
|
| 3420 |
2011-03-18 Ben Konrath <ben@bagu.org> |
| 3421 |
|
| 3422 |
Remove unneeded GlomFieldColumn class. |
| 3423 |
|
| 3424 |
This is just a small code cleanup. |
| 3425 |
|
| 3426 |
* src/main/java/org/glom/web/client/LayoutListView.java: |
| 3427 |
|
| 3428 |
2011-03-18 Ben Konrath <ben@bagu.org> |
| 3429 |
|
| 3430 |
Use cursor mode in the query that gets data for the list view. |
| 3431 |
|
| 3432 |
I still need to fix the potential memory problem when getting the row |
| 3433 |
count for the list view. |
| 3434 |
|
| 3435 |
* TODO: Add note about testing memory usage with large data sets. Add |
| 3436 |
item about fixing row counting with large data sets. |
| 3437 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the |
| 3438 |
PostgreSQL JDBC driver into cursor mode when getting data for the |
| 3439 |
list view. |
| 3440 |
|
| 3441 |
2011-03-15 Ben Konrath <ben@bagu.org> |
| 3442 |
|
| 3443 |
Remove the GWT Container from the Eclipse build classpath. |
| 3444 |
|
| 3445 |
The GWT dependencies are set by Maven so this isn't needed. |
| 3446 |
|
| 3447 |
* .classpath: |
| 3448 |
|
| 3449 |
2011-03-15 Murray Cumming <murrayc@murrayc.com> |
| 3450 |
|
| 3451 |
Added some earlier mockups to git, but not to the tarball dist. |
| 3452 |
|
| 3453 |
* mockups/: Added some mockups from 2010-02 by Daniel Borgmann for |
| 3454 |
Openismus. These hopefully show how we might structure the HTML so that |
| 3455 |
it can be styled easily with CSS. However, we probably need to adapt them |
| 3456 |
for the CSS structure that GWT dictates for common widgets. |
| 3457 |
|
| 3458 |
2011-03-14 Ben Konrath <ben@bagu.org> |
| 3459 |
|
| 3460 |
Locate OnlineGlom.properties using the ServletContext. |
| 3461 |
|
| 3462 |
This is required to be able to locate the file in the deployed servlet. |
| 3463 |
|
| 3464 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3465 |
Configure the database and glom document in in a helper method so |
| 3466 |
that the ServletContext can be used to locate OnlineGlom.properties. |
| 3467 |
* src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from |
| 3468 |
src/main/webapp. This is the proper location for .properites files. |
| 3469 |
|
| 3470 |
2011-03-12 Ben Konrath <ben@bagu.org> |
| 3471 |
|
| 3472 |
Add note to README about why we're compiling down to obfuscated JavaScript. |
| 3473 |
|
| 3474 |
* README: |
| 3475 |
|
| 3476 |
2011-03-11 Ben Konrath <ben@bagu.org> |
| 3477 |
|
| 3478 |
Use properties file to configure servlet. |
| 3479 |
|
| 3480 |
This allows people to change the glom file path, db username and db |
| 3481 |
password without recompiling the code. |
| 3482 |
|
| 3483 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3484 |
* src/main/webapp/OnlineGlom.properties: |
| 3485 |
|
| 3486 |
2011-03-11 Ben Konrath <ben@bagu.org> |
| 3487 |
|
| 3488 |
Use table fields in layout list view if the layout list is not defined. |
| 3489 |
|
| 3490 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3491 |
Manually create a LayoutFieldVector for the query builder using the |
| 3492 |
table fields when a layout list is not defined in the glom file. |
| 3493 |
|
| 3494 |
2011-03-11 Ben Konrath <ben@bagu.org> |
| 3495 |
|
| 3496 |
Only show FIXME string for images when there's an image. |
| 3497 |
|
| 3498 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included |
| 3499 |
in this change are some small code cleanups. |
| 3500 |
|
| 3501 |
2011-03-11 Ben Konrath <ben@bagu.org> |
| 3502 |
|
| 3503 |
Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs. |
| 3504 |
|
| 3505 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3506 |
|
| 3507 |
2011-03-11 Ben Konrath <ben@bagu.org> |
| 3508 |
|
| 3509 |
Correctly set the index of the default table. |
| 3510 |
|
| 3511 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3512 |
Correctly set the index of the default table. Add commented out example |
| 3513 |
file paths. |
| 3514 |
|
| 3515 |
2011-03-10 Ben Konrath <ben@bagu.org> |
| 3516 |
|
| 3517 |
Add comment to pom.xml about the previous change. |
| 3518 |
|
| 3519 |
* pom.xml: Add comment about the deployment issue so that it's obvious |
| 3520 |
why java-libglom is set to the provided scope. |
| 3521 |
|
| 3522 |
2011-03-10 Ben Konrath <ben@bagu.org> |
| 3523 |
|
| 3524 |
Change java-libglom dependency from compile to provided in pom.xml. |
| 3525 |
|
| 3526 |
Since java-libglom uses jni it can only be loaded once and therefore |
| 3527 |
must be placed in $CATALINA_HOME/lib and not included in each war. |
| 3528 |
This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04. |
| 3529 |
More information about this issue can be found in the Tomcat 6 release |
| 3530 |
notes in the "JNI Based Applications" section: |
| 3531 |
|
| 3532 |
http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt |
| 3533 |
|
| 3534 |
* README: Remove note about this issue. Deployment info should really |
| 3535 |
be on the wiki anyway so I'll add it right now. |
| 3536 |
* pom.xml: Change java-libglom dependency from compile to provided so |
| 3537 |
that it's copied in to the packaged war. |
| 3538 |
|
| 3539 |
2011-03-09 Ben Konrath <ben@bagu.org> |
| 3540 |
|
| 3541 |
Change to using a neutral locale for currency, date and time formatting. |
| 3542 |
|
| 3543 |
This solves the problem of currency values being represented without a |
| 3544 |
space between the currency code and the number (e.g. "EUR5.89" is now |
| 3545 |
represented as "EUR 5.89"). More work is required when we implement |
| 3546 |
a locale preference setting. |
| 3547 |
|
| 3548 |
* TODO: Add note about currency formatting issues with different |
| 3549 |
locales. |
| 3550 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change |
| 3551 |
to using the neutral ROOT locale. |
| 3552 |
|
| 3553 |
2011-03-09 Ben Konrath <ben@bagu.org> |
| 3554 |
|
| 3555 |
Add support for currency codes that are not ISO 4217 codes. |
| 3556 |
|
| 3557 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use |
| 3558 |
the currency code defined in the glom file when it's not 3 characters |
| 3559 |
long or when Java doesn't recognize the string as an ISO 4217 code. |
| 3560 |
|
| 3561 |
2011-03-08 Ben Konrath <ben@bagu.org> |
| 3562 |
|
| 3563 |
Remove test classes, launch configurations and configuration. |
| 3564 |
|
| 3565 |
The test stuff was getting in the way when creating the war. To make |
| 3566 |
the war file you can now do 'mvn clean package'. The packaged war file |
| 3567 |
will be in the target directory. |
| 3568 |
|
| 3569 |
* .classpath: Remove unused classpathentry for tests and i18n. |
| 3570 |
* pom.xml: Remove junit.jar dependency. Properly use gwt.version |
| 3571 |
property. Don't run test or i18n goals when packaging the war. |
| 3572 |
* src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct |
| 3573 |
formatting. |
| 3574 |
|
| 3575 |
Removed files: |
| 3576 |
|
| 3577 |
* OnlineGlomTest-dev.launch: |
| 3578 |
* OnlineGlomTest-prod.launch: |
| 3579 |
* src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: |
| 3580 |
* src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: |
| 3581 |
|
| 3582 |
2011-03-07 Ben Konrath <ben@bagu.org> |
| 3583 |
|
| 3584 |
Update gwt-maven plugin to 2.2.0 and fix other configuation problems. |
| 3585 |
|
| 3586 |
These fixes allow me to use 'mvn deploy' to create the war file. |
| 3587 |
|
| 3588 |
* .classpath: This generated config has been updated by Eclipse. This |
| 3589 |
change was probably triggered by me updating from Eclipse 3.6.1 to |
| 3590 |
3.6.2. |
| 3591 |
* .gitignore: Add entry to ignore the directory |
| 3592 |
src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse. |
| 3593 |
* .project: The generated config has been updated by Eclipse. This |
| 3594 |
change was probably triggered by me updating from Eclipse 3.6.1 to |
| 3595 |
3.6.2. |
| 3596 |
* .settings/com.google.appengine.eclipse.core.prefs: Add empty config |
| 3597 |
so that Eclipse doesn't complain |
| 3598 |
* pom.xml: Update to gwt-maven-plugin 2.2.0. |
| 3599 |
* src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from |
| 3600 |
'tests' directory to 'client' directory. This is the new |
| 3601 |
gwt-maven-plugin convension. |
| 3602 |
* src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly |
| 3603 |
refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl. |
| 3604 |
|
| 3605 |
2011-03-07 Ben Konrath <ben@bagu.org> |
| 3606 |
|
| 3607 |
Add support for horizontal alignment in the LayoutList columns. |
| 3608 |
|
| 3609 |
* TODO: Remove item about horizontal alignment. Add item about |
| 3610 |
improvements to ColumnInfo. |
| 3611 |
* src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal |
| 3612 |
alignment on the columns. Use ColumnInfo RPC object get the column |
| 3613 |
title and horizontal alignment. |
| 3614 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Update |
| 3615 |
LayoutListView creation with ColumnInfo RPC object. |
| 3616 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create |
| 3617 |
a ColumnInfo object for every LayoutList columnn. Convert the |
| 3618 |
FieldFormatting.HorizontalAlignment to the correct |
| 3619 |
ColumnnInfo.HorizontatlAlignment with the new |
| 3620 |
getColumnInfoHorizontalAlignment helper method. |
| 3621 |
* src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object |
| 3622 |
to encapsulate column information like alignment and title. This |
| 3623 |
could be used to set the colour instead of on a per cell field basis. |
| 3624 |
* src/main/java/org/glom/web/shared/LayoutListTable.java: Replace |
| 3625 |
column title storage and retrieval with ColumnInfo. |
| 3626 |
|
| 3627 |
2011-03-04 Ben Konrath <ben@bagu.org> |
| 3628 |
|
| 3629 |
Add support for column sorting. |
| 3630 |
|
| 3631 |
* src/main/java/org/glom/web/client/LayoutListView.java: Change |
| 3632 |
AsynDataProvider to be an anonymous inner class. Use new |
| 3633 |
getSortedTableData RPC method when column sort is requested. Set all |
| 3634 |
columns sortable and add an AsyncHandler to activate sorting in the |
| 3635 |
AsyncDataProvider. |
| 3636 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Add new |
| 3637 |
method getSortedTableData(). Cleanup other method signatures. |
| 3638 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add |
| 3639 |
new method getSortedTableData(). Cleanup other method signatures. |
| 3640 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3641 |
Implement getSortedTableData() and getTableData() methods by using a |
| 3642 |
private helper method with the appropriate parameters filled in. Use |
| 3643 |
user supplied sort clause when supplied, otherwise fall back to |
| 3644 |
sorting by the primary key. Move destroy() method to be underneath |
| 3645 |
constructor for readability. Cleanup comments. |
| 3646 |
|
| 3647 |
2011-03-03 Ben Konrath <ben@bagu.org> |
| 3648 |
|
| 3649 |
Add support for colour text and colour backgrounds to the layout list cells. |
| 3650 |
|
| 3651 |
Only the cell backgrounds are coloured which leaves a gap between the |
| 3652 |
cells that isn't coloured. I need to figure out a way to set |
| 3653 |
'style=background-colour:' on the whole column rather than just the |
| 3654 |
cell. |
| 3655 |
|
| 3656 |
* TODO: Add a note about colouring the background of the whole column. |
| 3657 |
* src/main/java/org/glom/web/client/LayoutListView.java: Add a custom |
| 3658 |
column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to |
| 3659 |
render the coloured text and backgrounds. Use GlomField[] for the row type. |
| 3660 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[] |
| 3661 |
for the row type. |
| 3662 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use |
| 3663 |
GlomField[] for the row type. |
| 3664 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use |
| 3665 |
GlomField[] for the row type. Set the text, text colour and background |
| 3666 |
colour in the GlomField objects as specified in the glom document. Add |
| 3667 |
method to convert from Gdk::Color to HTML colour string. Cleanup comments. |
| 3668 |
* src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate |
| 3669 |
the glom field text, foreground colour and background colour. |
| 3670 |
|
| 3671 |
2011-03-02 Ben Konrath <ben@bagu.org> |
| 3672 |
|
| 3673 |
Don't display hidden tables in the combo box. |
| 3674 |
|
| 3675 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use |
| 3676 |
ArrayLists. |
| 3677 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add |
| 3678 |
code to ignore hidden tables using ArrayLists for the table names and |
| 3679 |
titles. |
| 3680 |
* src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and |
| 3681 |
tableNames to use ArrayLists instead of String[]. Update getter and setter |
| 3682 |
methods. |
| 3683 |
|
| 3684 |
2011-03-01 Ben Konrath <ben@bagu.org> |
| 3685 |
|
| 3686 |
Add support for Date and Time number types. |
| 3687 |
|
| 3688 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3689 |
Implement formatting for Date and Time values. Change the default glom |
| 3690 |
file to small business example. |
| 3691 |
|
| 3692 |
2011-03-01 Ben Konrath <ben@bagu.org> |
| 3693 |
|
| 3694 |
Add support for formatting glom types as specified in the glom file. |
| 3695 |
|
| 3696 |
Formatting isn't finished yet - I still need to add support for Date |
| 3697 |
and Time values. |
| 3698 |
|
| 3699 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add |
| 3700 |
formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove |
| 3701 |
checks for null values in JDBC cleanup code and catch all exceptions |
| 3702 |
instead of just SQLExceptions. |
| 3703 |
* src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect |
| 3704 |
method name. |
| 3705 |
|
| 3706 |
2011-03-01 Ben Konrath <ben@bagu.org> |
| 3707 |
|
| 3708 |
Use GWT 2.2.0 instead of 2.1.1. |
| 3709 |
|
| 3710 |
* pom.xml: Change GWT version numbers. |
| 3711 |
|
| 3712 |
2011-03-01 Ben Konrath <ben@bagu.org> |
| 3713 |
|
| 3714 |
A few small code cleanups. |
| 3715 |
|
| 3716 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove |
| 3717 |
duplicate for loop. |
| 3718 |
* src/main/java/org/glom/web/shared/GlomDocument.java: Remove |
| 3719 |
unnecessary object creation in constructor. |
| 3720 |
* src/main/java/org/glom/web/shared/LayoutListTable.java: Remove |
| 3721 |
unnecessary object creation in constructor. |
| 3722 |
|
| 3723 |
2011-02-28 Ben Konrath <ben@bagu.org> |
| 3724 |
|
| 3725 |
Add file for TODO list. |
| 3726 |
|
| 3727 |
* TODO: New file. |
| 3728 |
|
| 3729 |
2011-02-18 Ben Konrath <ben@bagu.org> |
| 3730 |
|
| 3731 |
Enable the CellTable Pager when more than 20 rows need to be viewed. |
| 3732 |
|
| 3733 |
The Pager will automatically become active when the results are larger |
| 3734 |
than the CellTable size which is currently set to 20 lines. |
| 3735 |
|
| 3736 |
* src/main/java/org/glom/web/client/LayoutListView.java: Correct class |
| 3737 |
name on debug statment in RPC call in LayoutListDataProvider, add |
| 3738 |
numRows parameter to LayoutListView constructor, propperly set rowCount |
| 3739 |
in CellTable. |
| 3740 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Correct class |
| 3741 |
name on debug statment in RPC call, use LayoutListTable object in RPC |
| 3742 |
calls, pass rowCount to LayoutListView. |
| 3743 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Change |
| 3744 |
getLayoutListHeaders to getLayoutListTable and return LayoutListTable |
| 3745 |
object. |
| 3746 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update |
| 3747 |
interface for changes in OnlineGlomService. |
| 3748 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change |
| 3749 |
getLayoutListHeaders() to getLayoutListTable() and return |
| 3750 |
LayoutListTable. Using this object allows me to pass other information |
| 3751 |
about the LayoutList like the expected number of rows in the result set. |
| 3752 |
The Connection object from the connection pool is now propperly closed. |
| 3753 |
Only the requested number of lines are returned to the client in |
| 3754 |
getTableData(). |
| 3755 |
* src/main/java/org/glom/web/shared/LayoutListTable.java: Move from |
| 3756 |
GlomTable and add columnTitles and numRows. |
| 3757 |
|
| 3758 |
2011-02-18 Ben Konrath <ben@bagu.org> |
| 3759 |
|
| 3760 |
Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object. |
| 3761 |
|
| 3762 |
This is a small performance boost. I'll use GlomTable to get the required |
| 3763 |
layoutlist information. |
| 3764 |
|
| 3765 |
* src/main/java/org/glom/web/client/OnlineGlom.java: |
| 3766 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3767 |
* src/main/java/org/glom/web/shared/GlomDocument.java: |
| 3768 |
|
| 3769 |
2011-02-18 Ben Konrath <ben@bagu.org> |
| 3770 |
|
| 3771 |
Add option to turn off formatting in JDT formatter preferences. |
| 3772 |
|
| 3773 |
* .settings/org.eclipse.jdt.core.prefs: |
| 3774 |
|
| 3775 |
2011-02-18 Ben Konrath <ben@bagu.org> |
| 3776 |
|
| 3777 |
Rename LayoutList to LayoutListView. |
| 3778 |
|
| 3779 |
I'm working towards setting things up to easily use MVP when the time |
| 3780 |
comes. |
| 3781 |
|
| 3782 |
* src/main/java/org/glom/web/client/LayoutListView.java: Rename from |
| 3783 |
LayoutList.java. |
| 3784 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Update |
| 3785 |
references. |
| 3786 |
|
| 3787 |
2011-02-17 Ben Konrath <ben@bagu.org> |
| 3788 |
|
| 3789 |
Move LayoutListDataProvider class into LayoutList.java. |
| 3790 |
|
| 3791 |
* src/main/java/org/glom/web/client/LayoutList.java: |
| 3792 |
|
| 3793 |
2011-02-17 Ben Konrath <ben@bagu.org> |
| 3794 |
|
| 3795 |
Rename RPC service classes from LibGlomService* to OnlineGlomService*. |
| 3796 |
|
| 3797 |
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update |
| 3798 |
references. |
| 3799 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Update references. |
| 3800 |
* src/main/java/org/glom/web/client/OnlineGlomService.java: Rename |
| 3801 |
from LibGlomServer.java. |
| 3802 |
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: |
| 3803 |
Rename from LibGlomServiceAsync.java. |
| 3804 |
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: |
| 3805 |
Rename from LibGlomServiceImpl.java. |
| 3806 |
* src/main/webapp/WEB-INF/web.xml: Update configuration. |
| 3807 |
|
| 3808 |
2011-02-17 Ben Konrath <ben@bagu.org> |
| 3809 |
|
| 3810 |
Update JDT settings. |
| 3811 |
|
| 3812 |
* .settings/org.eclipse.jdt.core.prefs: |
| 3813 |
|
| 3814 |
2011-02-17 Ben Konrath <ben@bagu.org> |
| 3815 |
|
| 3816 |
Move GWT-RPC objects to shared package (where they should be). |
| 3817 |
|
| 3818 |
* src/main/java/org/glom/web/client/LibGlomService.java: Update imports. |
| 3819 |
* src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports. |
| 3820 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Update imports. |
| 3821 |
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports. |
| 3822 |
* src/main/java/org/glom/web/shared/GlomDocument.java: Move to |
| 3823 |
org.glom.web.shared package. |
| 3824 |
* src/main/java/org/glom/web/shared/GlomTable.java: Move to |
| 3825 |
org.glom.web.shared package. |
| 3826 |
* src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared |
| 3827 |
directory in compilation to javascript. |
| 3828 |
|
| 3829 |
2011-02-16 Ben Konrath <ben@bagu.org> |
| 3830 |
|
| 3831 |
Add sort clause to the sql query that grabs table information. |
| 3832 |
|
| 3833 |
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause |
| 3834 |
if one of the columns is a primary key. |
| 3835 |
|
| 3836 |
2011-02-16 Ben Konrath <ben@bagu.org> |
| 3837 |
|
| 3838 |
Disable generateAsync feature of gwt-maven. |
| 3839 |
|
| 3840 |
The generated interface does not correctly match the methods in LibGlomService |
| 3841 |
and the generated singleton Util inner-class doesn't respect the servlet |
| 3842 |
mappings. |
| 3843 |
|
| 3844 |
* pom.xml: Turn off generateAsync feature. |
| 3845 |
* src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file |
| 3846 |
with singleton Util inner-class. |
| 3847 |
|
| 3848 |
2011-02-14 Ben Konrath <ben@bagu.org> |
| 3849 |
|
| 3850 |
Add LGPL v3 licence notices. |
| 3851 |
|
| 3852 |
Followed directions listed here: |
| 3853 |
http://www.gnu.org/licenses/gpl-howto.html |
| 3854 |
|
| 3855 |
* COPYING: This file is a copy of the GPL v3. |
| 3856 |
* COPYING.LESSER: This file is a copy of the LGPL v3. |
| 3857 |
* src/main/java/org/glom/web/client/GlomDocument.java: Add licence |
| 3858 |
notice. |
| 3859 |
* src/main/java/org/glom/web/client/GlomTable.java: Add licence |
| 3860 |
notice. |
| 3861 |
* src/main/java/org/glom/web/client/LayoutList.java: Add licence |
| 3862 |
notice. |
| 3863 |
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add |
| 3864 |
licence notice. |
| 3865 |
* src/main/java/org/glom/web/client/LibGlomService.java: Add licence |
| 3866 |
notice. |
| 3867 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Add licence |
| 3868 |
notice. |
| 3869 |
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add |
| 3870 |
licence notice. |
| 3871 |
|
| 3872 |
2011-02-14 Ben Konrath <ben@bagu.org> |
| 3873 |
|
| 3874 |
Use ArrayList instead of Array in GWT-RPC calls. |
| 3875 |
|
| 3876 |
Apparently this gives a slight performance boost to the compiled |
| 3877 |
java script. |
| 3878 |
|
| 3879 |
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList |
| 3880 |
instead of Array. |
| 3881 |
* src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead |
| 3882 |
of Array. |
| 3883 |
|
| 3884 |
2011-02-14 Ben Konrath <ben@bagu.org> |
| 3885 |
|
| 3886 |
Access data from a postgres db rather than the example glom file. |
| 3887 |
|
| 3888 |
* .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to |
| 3889 |
compile down to obfuscated javascript. |
| 3890 |
* pom.xml: Add c3p0 and postgres JDBC libraries. |
| 3891 |
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data |
| 3892 |
using a postgres db accessed through the c3p0 connection pooling library. |
| 3893 |
|
| 3894 |
2011-02-14 Ben Konrath <ben@bagu.org> |
| 3895 |
|
| 3896 |
Update Java formatter settings. |
| 3897 |
|
| 3898 |
* .settings/org.eclipse.jdt.core.prefs: Change comment length to 120. |
| 3899 |
|
| 3900 |
2011-02-02 Ben Konrath <ben@bagu.org> |
| 3901 |
|
| 3902 |
Update Eclipse and Maven configs to in preparation for the postgres JDBC jar. |
| 3903 |
|
| 3904 |
* .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now |
| 3905 |
using Maven. |
| 3906 |
* .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to |
| 3907 |
the compiled webapp directory that Eclipse uses as we're using Maven now. |
| 3908 |
* .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6. |
| 3909 |
* .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version |
| 3910 |
to 1.6. |
| 3911 |
* pom.xml: Format file, change target Java version to 1.6. |
| 3912 |
|
| 3913 |
2011-02-02 Ben Konrath <ben@bagu.org> |
| 3914 |
|
| 3915 |
Add information about a deployment related issue. |
| 3916 |
|
| 3917 |
* README: Add Notes section with the problem outlined. |
| 3918 |
|
| 3919 |
2011-02-02 Ben Konrath <ben@bagu.org> |
| 3920 |
|
| 3921 |
Call Glom.libglom_deinit() when the servlet is shutdown. |
| 3922 |
|
| 3923 |
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add |
| 3924 |
Glom.libglom_deinit() to destroy() method. |
| 3925 |
|
| 3926 |
2011-01-28 Ben Konrath <ben@bagu.org> |
| 3927 |
|
| 3928 |
Use generated Util class to get the RPC Async interface. |
| 3929 |
|
| 3930 |
* .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config |
| 3931 |
file. |
| 3932 |
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated |
| 3933 |
getInstance() method to get a reference to the RPC Async interface. |
| 3934 |
* src/main/java/org/glom/web/client/OnlineGlom.java: Use generated |
| 3935 |
getInstance() method to get a reference to the RPC Async interface, remove |
| 3936 |
the now unused getLibGlomServiceProxy() method. |
| 3937 |
|
| 3938 |
2011-01-27 Ben Konrath <ben@bagu.org> |
| 3939 |
|
| 3940 |
Cleanup ChangeLog entry from previous commit. |
| 3941 |
|
| 3942 |
* ChangeLog: Group logical changes together and add comments. |
| 3943 |
|
| 3944 |
2011-01-25 Ben Konrath <ben@bagu.org> |
| 3945 |
|
| 3946 |
Convert to gwt-maven project. |
| 3947 |
|
| 3948 |
* .gitignore: Update for new project structure. |
| 3949 |
* README: New file with a link to the online documentation. |
| 3950 |
* pom.xml: The generated maven configuration file with some tweaks. |
| 3951 |
|
| 3952 |
Add / update Eclipse settings. These files are a merge of the files that |
| 3953 |
were generated with the gwt-maven plugin and the files we were previously |
| 3954 |
using. |
| 3955 |
* .classpath: |
| 3956 |
* .project: |
| 3957 |
* .settings/.jsdtscope: |
| 3958 |
* .settings/com.google.gdt.eclipse.core.prefs: |
| 3959 |
* .settings/com.google.gwt.eclipse.core.prefs: |
| 3960 |
* .settings/org.eclipse.jdt.core.prefs: |
| 3961 |
* .settings/org.eclipse.wst.common.component: |
| 3962 |
* .settings/org.eclipse.wst.common.project.facet.core.xml: |
| 3963 |
* .settings/org.eclipse.wst.jsdt.ui.superType.container: |
| 3964 |
* .settings/org.maven.ide.eclipse.prefs: |
| 3965 |
* OnlineGlomTest-dev.launch: |
| 3966 |
* OnlineGlomTest-prod.launch: |
| 3967 |
|
| 3968 |
Java source files moved from the 'src' directory to the directory structure |
| 3969 |
required by maven. |
| 3970 |
* src/main/java/org/glom/web/client/GlomDocument.java: |
| 3971 |
* src/main/java/org/glom/web/client/GlomTable.java: |
| 3972 |
* src/main/java/org/glom/web/client/LayoutList.java: |
| 3973 |
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: |
| 3974 |
* src/main/java/org/glom/web/client/LibGlomService.java: |
| 3975 |
* src/main/java/org/glom/web/client/OnlineGlom.java: |
| 3976 |
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: |
| 3977 |
|
| 3978 |
Non-functional property file used for translations. I included this as |
| 3979 |
reminder that it's something I need to sort out. |
| 3980 |
* src/main/resources/org/glom/web/client/Messages.properties: |
| 3981 |
|
| 3982 |
The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory. |
| 3983 |
* src/main/resources/org/glom/web/OnlineGlom.gwt.xml: |
| 3984 |
|
| 3985 |
The servlet configuration files moved from the 'war' directory. |
| 3986 |
* src/main/webapp/OnlineGlom.css: |
| 3987 |
* src/main/webapp/OnlineGlom.html: |
| 3988 |
* src/main/webapp/WEB-INF/web.xml: |
| 3989 |
|
| 3990 |
Generated test files with most of the code commented out. I included these |
| 3991 |
so that it's easy to add tests when we're ready for them. |
| 3992 |
* src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java: |
| 3993 |
* src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: |
| 3994 |
|
| 3995 |
2011-01-25 Ben Konrath <ben@bagu.org> |
| 3996 |
|
| 3997 |
Remove unused println. |
| 3998 |
|
| 3999 |
* src/org/glom/web/server/LibGlomServiceImpl.java: |
| 4000 |
|
| 4001 |
2011-01-25 Ben Konrath <ben@bagu.org> |
| 4002 |
|
| 4003 |
Add project specific JDT settings. |
| 4004 |
|
| 4005 |
* .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse. |
| 4006 |
* .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse. |
| 4007 |
|
| 4008 |
2011-01-25 Ben Konrath <ben@bagu.org> |
| 4009 |
|
| 4010 |
Populate celltable with example data. |
| 4011 |
|
| 4012 |
* src/org/glom/web/client/GlomDocument.java: Correct formatting. |
| 4013 |
* src/org/glom/web/client/GlomTable.java: Correct formatting. |
| 4014 |
* src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java, |
| 4015 |
add LayoutListDataProvider to CellTable, add simpler pager (not working yet). |
| 4016 |
* src/org/glom/web/client/LayoutListDataProvider.java: New file, |
| 4017 |
asynchronously gets the example data. |
| 4018 |
* src/org/glom/web/client/LibGlomService.java: Add getTableData() method. |
| 4019 |
* src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method. |
| 4020 |
* src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and |
| 4021 |
curently selected table to be retrieved by other widgets. |
| 4022 |
* src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting, |
| 4023 |
implement getTableData() in a hacky way. This method needs to be updated |
| 4024 |
to grab information from the database when database creating is |
| 4025 |
implemented. |
| 4026 |
|
| 4027 |
2011-01-20 Ben Konrath <ben@bagu.org> |
| 4028 |
|
| 4029 |
Set table headers when table dropBox changes. |
| 4030 |
|
| 4031 |
* src/org/glom/web/client/GlomDocument.java: Correct some method |
| 4032 |
names. |
| 4033 |
* src/org/glom/web/client/LibGlomService.java: Add method |
| 4034 |
to get list layout field names. |
| 4035 |
* src/org/glom/web/client/LibGlomServiceAsync.java: Add method |
| 4036 |
to get list layout field names. |
| 4037 |
* src/org/glom/web/client/ListLayoutTable.java: New file - composite |
| 4038 |
widget for list layout table. |
| 4039 |
* src/org/glom/web/client/OnlineGlom.java: Add a change handler for |
| 4040 |
the table drop box and add new updateTable() method to asynchronously |
| 4041 |
get the layout list field names for the currently selected table. |
| 4042 |
* src/org/glom/web/server/LibGlomServiceImpl.java: Add server side |
| 4043 |
implementation of getLayoutListHeaders() method. |
| 4044 |
* war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required. |
| 4045 |
|
| 4046 |
2011-01-18 Ben Konrath <ben@bagu.org> |
| 4047 |
|
| 4048 |
Make a listBox with table titles instead of the flexTable demo. |
| 4049 |
|
| 4050 |
This is the start of something more useful. |
| 4051 |
|
| 4052 |
* .classpath: Exclude a bunch of packages from the JVM that are |
| 4053 |
getting in the way of the Eclipse content assist. |
| 4054 |
* src/org/glom/web/client/GlomDocument.java: |
| 4055 |
* src/org/glom/web/client/GlomTable.java: |
| 4056 |
* src/org/glom/web/client/LibGlomService.java: |
| 4057 |
* src/org/glom/web/client/LibGlomServiceAsync.java: |
| 4058 |
* src/org/glom/web/client/OnlineGlom.java: |
| 4059 |
* src/org/glom/web/server/LibGlomServiceImpl.java: |
| 4060 |
* war/OnlineGlom.html: |
| 4061 |
* war/WEB-INF/web.xml: |
| 4062 |
|
| 4063 |
211-01-13 Ben Konrath <ben@bagu.org> |
| 4064 |
|
| 4065 |
Update to new java-libglom API. |
| 4066 |
|
| 4067 |
* .gitignore: Ignore OnlineGlom.war. |
| 4068 |
* src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API. |
| 4069 |
|
| 4070 |
2010-12-20 Ben Konrath <ben@bagu.org> |
| 4071 |
|
| 4072 |
Add some basic style to the table listing. |
| 4073 |
|
| 4074 |
* src/org/glom/web/client/OnlineGlom.java: Add style to the table |
| 4075 |
header, print useful error message on async callback failure. |
| 4076 |
* war/OnlineGlom.css: Add style for table header, remove defaults |
| 4077 |
provided by the Eclipse project wizard. |
| 4078 |
|
| 4079 |
2010-12-20 Ben Konrath <ben@bagu.org> |
| 4080 |
|
| 4081 |
Load example file from installed glom dir. |
| 4082 |
|
| 4083 |
* src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API |
| 4084 |
provided by java-libglom to find the example file. |
| 4085 |
|
| 4086 |
2010-12-20 Ben Konrath <ben@bagu.org> |
| 4087 |
|
| 4088 |
Update Eclipse settings. |
| 4089 |
|
| 4090 |
* .classpath: |
| 4091 |
* .settings/com.google.gdt.eclipse.core.prefs: |
| 4092 |
* .settings/com.google.gwt.eclipse.core.prefs: |
| 4093 |
|
| 4094 |
2010-12-17 Ben Konrath <ben@bagu.org> |
| 4095 |
|
| 4096 |
Initial commit. |
| 4097 |
|
| 4098 |
* .classpath: New file. |
| 4099 |
* .gitignore: New file. |
| 4100 |
* .project: New file. |
| 4101 |
* .settings/com.google.gdt.eclipse.core.prefs: New file. |
| 4102 |
* .settings/com.google.gwt.eclipse.core.prefs: New file. |
| 4103 |
* src/org/glom/web/OnlineGlom.gwt.xml: New file. |
| 4104 |
* src/org/glom/web/client/GlomTable.java: New file. |
| 4105 |
* src/org/glom/web/client/OnlineGlom.java: New file. |
| 4106 |
* src/org/glom/web/client/TableNameService.java: New file. |
| 4107 |
* src/org/glom/web/client/TableNameServiceAsync.java: New file. |
| 4108 |
* src/org/glom/web/server/TableNamesServiceImpl.java: New file. |
| 4109 |
* war/OnlineGlom.css: New file. |
| 4110 |
* war/OnlineGlom.html: New file. |
| 4111 |
* war/WEB-INF/web.xml: New file. |
| 4112 |
* war/images/glom.png: New file. |