Details: Show images.
authorMurray Cumming <murrayc@murrayc.com>
Mon, 23 Jul 2012 18:45:09 +0000 (20:45 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 16 Nov 2012 19:48:34 +0000 (20:48 +0100)
commita4ee390f45184bcb91b136206a7660be09b04bea
tree39f8727cc9272b8e9c67ed571a0b7066fcf6939a
parent29d5050d17dcfb642b87eb5558900029ce53e1b1
Details: Show images.

        * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Move some code into
        * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
so it can be used in:
        * src/main/java/org/glom/web/server/OnlineGlomImages.java: A new servlet just
for serving image data.
* src/main/webapp/WEB-INF/web.xml: Mention the new servlet.

* src/main/java/org/glom/web/shared/DataItem.java: Added get/setImageDataUrl().
        * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
setData(): For image field types, add a GWT Image widget,
with the URL that was set in the DataItem.

        * pom.xml: Depend on org.apache.httpcomponents for UriBuilder.
        * src/main/java/org/glom/web/server/database/DBAccess.java:
        convertResultSetToDTO(): Set the URL for image data, so the client browser
can retrieve the image from our new servlet. This uses UriBuilder.
Move getPrimaryKeyField to:
 * src/main/java/org/glom/web/server/libglom/Document.java:
Added getTablePrimaryKeyField().

        * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
        * src/main/java/org/glom/web/server/database/ListDBAccess.java:
        * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
        Adapted.
13 files changed:
ChangeLog
pom.xml
src/main/java/org/glom/web/client/ui/details/DetailsCell.java
src/main/java/org/glom/web/server/ConfiguredDocumentSet.java [new file with mode: 0644]
src/main/java/org/glom/web/server/OnlineGlomImages.java [new file with mode: 0644]
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/java/org/glom/web/server/database/DBAccess.java
src/main/java/org/glom/web/server/database/DetailsDBAccess.java
src/main/java/org/glom/web/server/database/ListDBAccess.java
src/main/java/org/glom/web/server/database/RelatedListNavigation.java
src/main/java/org/glom/web/server/libglom/Document.java
src/main/java/org/glom/web/shared/DataItem.java
src/main/webapp/WEB-INF/web.xml