[jboss-cvs] jboss-seam/src/pdf/org/jboss/seam/pdf/ui ...
Norman Richards
norman.richards at jboss.com
Mon Feb 19 23:06:09 EST 2007
User: nrichards
Date: 07/02/19 23:06:09
Modified: src/pdf/org/jboss/seam/pdf/ui UIAnchor.java
UICell.java UIChapter.java UIDocument.java
UIFont.java UIImage.java UIList.java
UIListItem.java UIPage.java UIParagraph.java
UISection.java UITable.java
Log:
add overrides
Revision Changes Path
1.7 +5 -1 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIAnchor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIAnchor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIAnchor.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- UIAnchor.java 8 Jan 2007 18:11:41 -0000 1.6
+++ UIAnchor.java 20 Feb 2007 04:06:09 -0000 1.7
@@ -20,14 +20,17 @@
this.reference = reference;
}
+ @Override
public Object getITextObject() {
return anchor;
}
+ @Override
public void removeITextObject() {
anchor = null;
}
+ @Override
public void createITextObject(FacesContext context) {
anchor = new Anchor();
@@ -42,6 +45,7 @@
}
}
+ @Override
public void handleAdd(Object o) {
anchor.add(o);
}
1.10 +3 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UICell.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UICell.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UICell.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- UICell.java 8 Feb 2007 03:20:22 -0000 1.9
+++ UICell.java 20 Feb 2007 04:06:09 -0000 1.10
@@ -135,14 +135,17 @@
this.rotation = rotation;
}
+ @Override
public Object getITextObject() {
return cell;
}
+ @Override
public void removeITextObject() {
cell = null;
}
+ @Override
public void createITextObject(FacesContext context) {
PdfPCell defaultCell = getDefaultCellFromTable();
if (defaultCell != null) {
1.7 +1 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIChapter.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIChapter.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- UIChapter.java 15 Jan 2007 06:42:04 -0000 1.6
+++ UIChapter.java 20 Feb 2007 04:06:09 -0000 1.7
@@ -18,6 +18,7 @@
this.number = number;
}
+ @Override
public Object getITextObject() {
return section;
}
1.17 +4 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIDocument.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIDocument.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- UIDocument.java 7 Feb 2007 07:15:13 -0000 1.16
+++ UIDocument.java 20 Feb 2007 04:06:09 -0000 1.17
@@ -99,10 +99,12 @@
}
+ @Override
public Object getITextObject() {
return document;
}
+ @Override
public void createITextObject(FacesContext context) {
type = (String) valueBinding(context, "type", type);
docType = docTypeForName(type);
@@ -172,10 +174,12 @@
}
}
+ @Override
public void removeITextObject() {
document = null;
}
+ @Override
public void handleAdd(Object o) {
if (o instanceof Element) {
try {
1.6 +4 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIFont.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIFont.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIFont.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- UIFont.java 3 Jan 2007 19:45:35 -0000 1.5
+++ UIFont.java 20 Feb 2007 04:06:09 -0000 1.6
@@ -27,18 +27,22 @@
this.style = style;
}
+ @Override
public Font getFont() {
return font;
}
+ @Override
public Object getITextObject() {
return null; // we don't add to this component, so skip
}
+ @Override
public void removeITextObject() {
font = null;
}
+ @Override
public void createITextObject(FacesContext context) {
familyName = (String) valueBinding(context, "familyName", familyName);
int family = (familyName==null) ? Font.UNDEFINED : Font.getFamilyIndex(familyName);
1.12 +3 -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.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- UIImage.java 5 Feb 2007 06:23:25 -0000 1.11
+++ UIImage.java 20 Feb 2007 04:06:09 -0000 1.12
@@ -106,10 +106,12 @@
}
+ @Override
public Object getITextObject() {
return image;
}
+ @Override
public void removeITextObject() {
image = null;
}
@@ -141,6 +143,7 @@
}
}
+ @Override
public void createITextObject(FacesContext context) {
resource = (String) valueBinding(context,"resource", resource);
1.10 +3 -0 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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- UIList.java 11 Jan 2007 05:32:06 -0000 1.9
+++ UIList.java 20 Feb 2007 04:06:09 -0000 1.10
@@ -51,14 +51,17 @@
this.lowerCase = lowerCase;
}
+ @Override
public Object getITextObject() {
return list;
}
+ @Override
public void removeITextObject() {
list = null;
}
+ @Override
public void createITextObject(FacesContext context) {
style = (String) valueBinding(context, "style", style);
lowerCase = (Boolean) valueBinding(context, "lowerCase", lowerCase);
1.8 +2 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIListItem.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIListItem.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIListItem.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- UIListItem.java 9 Jan 2007 08:07:03 -0000 1.7
+++ UIListItem.java 20 Feb 2007 04:06:09 -0000 1.8
@@ -34,10 +34,12 @@
this.indentationRight = indentationRight;
}
+ @Override
public Object getITextObject() {
return listItem;
}
+ @Override
public void createITextObject(FacesContext context) {
listItem = new ListItem();
1.6 +4 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIPage.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIPage.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIPage.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- UIPage.java 3 Jan 2007 19:45:36 -0000 1.5
+++ UIPage.java 20 Feb 2007 04:06:09 -0000 1.6
@@ -11,18 +11,22 @@
{
public static final String COMPONENT_TYPE = "org.jboss.seam.pdf.ui.UIPage";
+ @Override
public Object getITextObject() {
return null;
}
+ @Override
public void removeITextObject() {
// nothing to do
}
+ @Override
public void createITextObject(FacesContext context) {
// nothing to do
}
+ @Override
public void handleAdd(Object o) {
addToITextParent(o);
}
1.8 +3 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIParagraph.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UIParagraph.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UIParagraph.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- UIParagraph.java 25 Jan 2007 06:17:07 -0000 1.7
+++ UIParagraph.java 20 Feb 2007 04:06:09 -0000 1.8
@@ -53,14 +53,17 @@
this.keepTogether = keepTogether;
}
+ @Override
public Object getITextObject() {
return paragraph;
}
+ @Override
public void removeITextObject() {
paragraph = null;
}
+ @Override
public void createITextObject(FacesContext context) {
Font font = getFont();
if (font == null) {
1.7 +4 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UISection.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UISection.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UISection.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- UISection.java 15 Jan 2007 06:42:04 -0000 1.6
+++ UISection.java 20 Feb 2007 04:06:09 -0000 1.7
@@ -19,18 +19,22 @@
return section;
}
+ @Override
public Object getITextObject() {
return null; // don't add to parent - already added.
}
+ @Override
public void removeITextObject() {
section = null;
}
+ @Override
public void handleAdd(Object o) {
section.add(o);
}
+ @Override
public void createITextObject(FacesContext context) {
UISection uiParent = (UISection)findITextParent(getParent(), UISection.class);
1.9 +3 -0 jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UITable.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UITable.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/pdf/org/jboss/seam/pdf/ui/UITable.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- UITable.java 7 Feb 2007 07:15:13 -0000 1.8
+++ UITable.java 20 Feb 2007 04:06:09 -0000 1.9
@@ -101,14 +101,17 @@
+ @Override
public Object getITextObject() {
return table;
}
+ @Override
public void removeITextObject() {
table = null;
}
+ @Override
public void createITextObject(FacesContext context) {
columns = (Integer) valueBinding(context, "columns", columns);
table = new PdfPTable(columns);
More information about the jboss-cvs-commits
mailing list