Document: Load static text and image items too.
authorMurray Cumming <murrayc@murrayc.com>
Tue, 13 Nov 2012 23:14:49 +0000 (00:14 +0100)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 16 Nov 2012 19:50:04 +0000 (20:50 +0100)
commitfb448c03cd7d357c056bd9dc74331ca37aa78df1
tree84ee737d7a030140f20b69fb7c02ff66452eb719
parent808c21241d66a802ae8bacfb6440f7aa00d1a126
Document: Load static text and image items too.

        * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemImage.java:
        * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemText.java:
New LayoutItem classes to represent these layout items.
        * src/main/java/org/glom/web/shared/libglom/layout/StaticText.java: The
main text of a LayoutItemText.
        * src/main/java/org/glom/web/server/libglom/Document.java:
        load_after_layout_group(): Handle the node types and instantiate the
new classes.
        * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
Add testLayoutItemText() to check that the text is loaded properly.
ChangeLog
src/main/java/org/glom/web/server/libglom/Document.java
src/main/java/org/glom/web/shared/libglom/layout/LayoutItemImage.java [new file with mode: 0644]
src/main/java/org/glom/web/shared/libglom/layout/LayoutItemText.java [new file with mode: 0644]
src/main/java/org/glom/web/shared/libglom/layout/StaticText.java [new file with mode: 0644]
src/test/java/org/glom/web/server/libglom/DocumentTest.java