LayoutItemField: Fix loading of custom titles.
authorMurray Cumming <murrayc@murrayc.com>
Sun, 6 May 2012 21:01:03 +0000 (23:01 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Sun, 6 May 2012 21:01:03 +0000 (23:01 +0200)
commit9b5d961cfd2581de5503e0adb2ebf1b5ed4e6b79
treeaf47024c78bbe57c553e7131845df0980e56cf05
parentb06b73abb2ceb2fc4c758a860ffd2512ec073458
LayoutItemField: Fix loading of custom titles.

* src/main/java/org/glom/web/server/libglom/Document.java
loadDataLayoutItemField(): The title, if any, instead of the field
title, is stored in a title_custom node. Load it from there.
* src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
class.
* src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
Add getCustomTitle() and use it, instead of super.getTitle*(), in the
getTitle*() overrides.
* src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
Adapt.
ChangeLog
src/main/java/org/glom/web/server/libglom/Document.java
src/main/java/org/glom/web/shared/libglom/CustomTitle.java [new file with mode: 0644]
src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java
src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java