Author: norman.richards(a)jboss.com
Date: 2009-06-15 11:54:11 -0400 (Mon, 15 Jun 2009)
New Revision: 11158
Modified:
branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
Log:
JBSEAM-4246
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 2009-06-15
14:57:57 UTC (rev 11157)
+++ branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java 2009-06-15
15:54:11 UTC (rev 11158)
@@ -8,6 +8,7 @@
public static final String COMPONENT_TYPE =
"org.jboss.seam.pdf.ui.UIChapter";
Integer number = 1;
+ Integer numberDepth = 1;
public Chapter getChapter()
{
@@ -18,6 +19,11 @@
{
this.number = number;
}
+
+ public void setNumberDepth(Integer numberDepth)
+ {
+ this.numberDepth = numberDepth;
+ }
@Override
public Object getITextObject()
@@ -31,6 +37,8 @@
public void createITextObject(FacesContext context)
{
number = (Integer) valueBinding(context, "number", number);
+ numberDepth = (Integer) valueBinding(context, "numberDepth",
numberDepth);
section = new Chapter("", number);
+ section.setNumberDepth(numberDepth);
}
}