[seam-commits] Seam SVN: r11942 - branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Jan 8 12:35:17 EST 2010


Author: norman.richards at jboss.com
Date: 2010-01-08 12:35:17 -0500 (Fri, 08 Jan 2010)
New Revision: 11942

Modified:
   branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
   branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UISection.java
Log:
JBSEAM-4517

Modified: branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
===================================================================
--- branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java	2010-01-08 17:32:48 UTC (rev 11941)
+++ branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java	2010-01-08 17:35:17 UTC (rev 11942)
@@ -41,5 +41,7 @@
       if (chapterTitle != null) {
           section.setBookmarkTitle(chapterTitle);
       }
+      
+      section.setTriggerNewPage(getNewPage());
    }
 }

Modified: branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UISection.java
===================================================================
--- branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UISection.java	2010-01-08 17:32:48 UTC (rev 11941)
+++ branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UISection.java	2010-01-08 17:35:17 UTC (rev 11942)
@@ -10,6 +10,7 @@
    Section section;
    Integer numberDepth;
    String sectionTitle;
+   boolean newPage = false;
 
    public void setNumberDepth(Integer numberDepth)
    {
@@ -20,7 +21,18 @@
    {
       this.sectionTitle = sectionTitle;
    }
+   
+   public boolean getNewPage()
+   {
+      return (Boolean) valueBinding("newPage", newPage);
+   }
+   
+   public void setNewPage(boolean newPage)
+   {
+      this.newPage = newPage;
+   }
     
+    
    public Section getSection()
    {
       return section;
@@ -66,8 +78,10 @@
       sectionTitle = (String) valueBinding(context, "sectionTitle", sectionTitle);
       if (sectionTitle != null)
       {
-         section.setBookmarkTitle(sectionTitle);
+         section.setBookmarkTitle(sectionTitle);         
       }
+      
+      section.setTriggerNewPage(getNewPage());
    }
 
    private int countSectionParents(UISection component, int level)



More information about the seam-commits mailing list