-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/org/fugerit/java/doc/mod/openpdf/helpers/CellParent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.fugerit.java.doc.mod.openpdf.helpers; | ||
|
||
import com.lowagie.text.Cell; | ||
import com.lowagie.text.Element; | ||
|
||
public class CellParent implements ParentElement { | ||
|
||
private Cell cell; | ||
|
||
public CellParent( Cell cell ) { | ||
this.cell = cell; | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fugerit.java.doc.mod.itext.ParentElement#add(com.lowagie.text.Element) | ||
*/ | ||
public void add(Element element) throws Exception { | ||
this.cell.addElement( element ); | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/org/fugerit/java/doc/mod/openpdf/helpers/DocumentParent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.fugerit.java.doc.mod.openpdf.helpers; | ||
|
||
import com.lowagie.text.Document; | ||
import com.lowagie.text.Element; | ||
|
||
public class DocumentParent implements ParentElement { | ||
|
||
private Document document; | ||
|
||
public DocumentParent( Document document) { | ||
this.document = document; | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fugerit.java.doc.mod.itext.ParentElement#add(com.lowagie.text.Element) | ||
*/ | ||
public void add(Element element) throws Exception { | ||
this.document.add( element ); | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/org/fugerit/java/doc/mod/openpdf/helpers/ParentElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.fugerit.java.doc.mod.openpdf.helpers; | ||
|
||
import com.lowagie.text.Element; | ||
|
||
public interface ParentElement { | ||
|
||
public void add( Element element ) throws Exception; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/org/fugerit/java/doc/mod/openpdf/helpers/PhraseParent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.fugerit.java.doc.mod.openpdf.helpers; | ||
|
||
import com.lowagie.text.Element; | ||
import com.lowagie.text.Phrase; | ||
|
||
public class PhraseParent implements ParentElement { | ||
|
||
private Phrase phrase; | ||
|
||
public PhraseParent( Phrase phrase ) { | ||
this.phrase = phrase; | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fugerit.java.doc.mod.itext.ParentElement#add(com.lowagie.text.Element) | ||
*/ | ||
public void add(Element element) throws Exception { | ||
this.phrase.add( element ); | ||
} | ||
|
||
} |