Document: Static image items: Store an image URL, using the layout path.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 15 Nov 2012 21:59:32 +0000 (22:59 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 16 Nov 2012 19:50:04 +0000 (20:50 +0100)
commitc0c01bbb034b6ce21323d15553b22bb5e8b23a61
treed56523b24938f413e8a8b5bcfc489de5567c427c
parentbdd10449d5479b51df59e8359828738858eff7bc
Document: Static image items: Store an image URL, using the layout path.

        * src/main/java/org/glom/web/server/Utils.java: Add buildImageDataUrl().
        * src/main/java/org/glom/web/server/libglom/Document.java:
        Add a constructor that takes the documentID, for use in the
LayoutItemImage URL.
loadLayoutNode(): Pass a Path object to the helper methods, so we
can use it to create a URL for LayoutItemImage items.
This seems as good a way as any to specify a layout item in the document.
        * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
Pass the documentID to the constructor, for use in the LayoutItemImage
URL.
ChangeLog
src/main/java/org/glom/web/server/ConfiguredDocumentSet.java
src/main/java/org/glom/web/server/Utils.java
src/main/java/org/glom/web/server/libglom/Document.java