|
1 | 1 | package be.quodlibet.boxable; |
2 | 2 |
|
| 3 | +import java.io.IOException; |
| 4 | + |
3 | 5 | import org.apache.pdfbox.pdmodel.PDDocument; |
4 | 6 |
|
5 | | -import java.io.IOException; |
| 7 | +import be.quodlibet.boxable.page.PageProvider; |
6 | 8 |
|
7 | 9 | /** |
8 | 10 | * Created by dgautier on 3/18/2015. |
9 | 11 | */ |
10 | 12 | public abstract class AbstractTemplatedTable<T extends AbstractPageTemplate> extends Table<T> { |
| 13 | + |
| 14 | + @Deprecated |
| 15 | + public AbstractTemplatedTable(float yStart, float yStartNewPage, float bottomMargin, float width, float margin, PDDocument document, T currentPage, boolean drawLines, boolean drawContent) throws IOException { |
| 16 | + super(yStart, yStartNewPage, bottomMargin, width, margin, document, currentPage, drawLines, drawContent); |
| 17 | + } |
| 18 | + |
| 19 | + @Deprecated |
| 20 | + public AbstractTemplatedTable(float yStartNewPage, float bottomMargin, float width, float margin, PDDocument document, boolean drawLines, boolean drawContent) throws IOException { |
| 21 | + super(yStartNewPage, bottomMargin, width, margin, document, drawLines, drawContent); |
| 22 | + setYStart(getCurrentPage().yStart()); |
| 23 | + } |
11 | 24 |
|
12 | | - public AbstractTemplatedTable(float yStart, float yStartNewPage, float bottomMargin, float width, float margin, PDDocument document, T currentPage, boolean drawLines, boolean drawContent) throws IOException { |
13 | | - super(yStart, yStartNewPage, bottomMargin, width, margin, document, currentPage, drawLines, drawContent); |
| 25 | + public AbstractTemplatedTable(float yStart, float yStartNewPage, float bottomMargin, float width, float margin, PDDocument document, T currentPage, boolean drawLines, boolean drawContent, PageProvider<T> pageProvider) throws IOException { |
| 26 | + super(yStart, yStartNewPage, 0, bottomMargin, width, margin, document, currentPage, drawLines, drawContent, pageProvider); |
14 | 27 | } |
15 | 28 |
|
16 | | - public AbstractTemplatedTable(float yStartNewPage, float bottomMargin, float width, float margin, PDDocument document, boolean drawLines, boolean drawContent) throws IOException { |
17 | | - super(yStartNewPage, bottomMargin, width, margin, document, drawLines, drawContent); |
| 29 | + public AbstractTemplatedTable(float yStartNewPage, float bottomMargin, float width, float margin, PDDocument document, boolean drawLines, boolean drawContent, PageProvider<T> pageProvider) throws IOException { |
| 30 | + super(yStartNewPage, 0, bottomMargin, width, margin, document, drawLines, drawContent, pageProvider); |
18 | 31 | setYStart(getCurrentPage().yStart()); |
19 | 32 | } |
20 | 33 |
|
|
0 commit comments