[jboss-cvs] jboss-seam/src/pdf/org/jboss/seam/pdf/ui ...
Norman Richards
norman.richards at jboss.com
Sun Dec 24 14:29:01 EST 2006
User: nrichards
Date: 06/12/24 14:29:01
Modified: src/pdf/org/jboss/seam/pdf/ui UIImage.java UIList.java
Log:
update for the demo
Revision Changes Path
1.2 +22 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIImage.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIImage.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIImage.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- UIImage.java 24 Dec 2006 16:21:33 -0000 1.1
+++ UIImage.java 24 Dec 2006 19:29:01 -0000 1.2
@@ -1,5 +1,7 @@
package org.jboss.seam.pdf.ui;
+import org.jboss.seam.pdf.ITextUtils;
+
import javax.faces.event.*;
import javax.faces.context.*;
import javax.faces.component.*;
@@ -22,6 +24,8 @@
float rotation;
float height;
float width;
+ String alignment;
+ String alt;
public void setResource(String resource) {
this.resource = resource;
@@ -39,10 +43,20 @@
this.width = width;
}
+ public void setAlignment(String alignment) {
+ this.alignment = alignment;
+ }
+
+ public void setAlt(String alt) {
+ this.alt = alt;
+ }
+
public Object getITextObject() {
return image;
}
+
+
public void createITextObject() {
URL url = Thread.currentThread().getContextClassLoader().getResource(resource);
@@ -62,6 +76,14 @@
if (height>0 || width > 0) {
image.scaleAbsolute(width, height);
}
+
+ if (alignment != null) {
+ image.setAlignment(ITextUtils.alignmentValue(alignment));
+ }
+
+ if (alt != null) {
+ image.setAlt(alt);
+ }
}
public void add(Object o) {
1.2 +1 -1 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIList.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIList.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIList.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- UIList.java 24 Dec 2006 16:21:33 -0000 1.1
+++ UIList.java 24 Dec 2006 19:29:01 -0000 1.2
@@ -16,7 +16,7 @@
List list;
- boolean numbered = true;
+ boolean numbered = false;
boolean lettered = false;
float indent = 20f;
More information about the jboss-cvs-commits
mailing list