From 4f1e143c6eac9e1b57b2400bf5b0761a8b072419 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 1 Apr 2014 16:50:03 +0200 Subject: PDFBOX Table generation incl. QR Code detection and Positioning is done --- .../main/java/at/knowcenter/wag/egov/egiz/table/Table.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz') diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java index de471e11..72bdfc4d 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/table/Table.java @@ -78,7 +78,7 @@ public class Table implements Serializable /** * The row definitions. */ - private Map rows_ = new HashMap(); + private Map> rows_ = new HashMap>(); /** * The table width. @@ -192,12 +192,12 @@ public class Table implements Serializable * * @return Returns the sorted (by row number) table rows. */ - public ArrayList getRows() + public ArrayList> getRows() { - ArrayList rows = new ArrayList(); + ArrayList> rows = new ArrayList>(); for (int row_idx = 1; row_idx <= rows_.size(); row_idx++) { - ArrayList row = (ArrayList) rows_.get("" + row_idx); + ArrayList row = (ArrayList) rows_.get("" + row_idx); rows.add(row); } return rows; @@ -213,7 +213,7 @@ public class Table implements Serializable * @param row * the entry list to store */ - public void addRow(String rowNumber, ArrayList row) + public void addRow(String rowNumber, ArrayList row) { rows_.put(rowNumber, row); if (row.size() > maxCols_) @@ -230,10 +230,10 @@ public class Table implements Serializable String the_string = "\n#### TABLE " + name_ + " BEGIN #####"; the_string += " Width:" + width_ + " max cols:" + maxCols_ + " cols:" + colsRelativeWith_; the_string += "\nStyle:" + style_; - ArrayList rows = getRows(); + ArrayList> rows = getRows(); for (int row_idx = 0; row_idx < rows.size(); row_idx++) { - ArrayList row = (ArrayList) rows.get(row_idx); + ArrayList row = rows.get(row_idx); String row_prefix = "\n ++ ROW " + row_idx + " ++ "; for (int entry_idx = 0; entry_idx < row.size(); entry_idx++) { -- cgit v1.2.3