12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /**
- *
- * Copyright (c) behosoft Co.,Ltd.
- * All Rights Reserved.
- *
- * This software is the confidential and proprietary information of behosoft.
- * (Social Security Department). You shall not disclose such
- * Confidential Information and shall use it only in accordance with
- * the terms of the license agreement you entered into with behosoft.
- *
- * Distributable under GNU LGPL license by gnu.org
- */
- package com.behosoft.util.pdfutil;
- import java.util.ArrayList;
- import java.util.List;
- /**
- * Title: Wms_common_utils_pdfUtils
- * <p>
- * Description: 定义pdf表格模板
- * </p>
- *
- * @author daijiashun
- * @version $Revision$ 2009-8-17
- * @author (lastest modification by $Author$)
- * @since 1.0
- */
- public class PdfTableTemplate implements IsPdfContent {
- private List<PdfTableRow> rows = new ArrayList<PdfTableRow>();
- private int colNum = 0;
- private int rowNum = 0;
- public int getRowNum() {
- return rowNum;
- }
- public int getColNum() {
- return colNum;
- }
- public List<PdfTableRow> getRows() {
- return rows;
- }
- public void setRows(List<PdfTableRow> rows) {
- this.rows = rows;
- this.rowNum = rows.size();
- for (PdfTableRow row : rows) {
- if (row.count() > colNum) {
- colNum = row.count();
- }
- }
- }
- public PdfTableTemplate() {
- }
- public void add(PdfTableRow row) {
- this.rows.add(row);
- if (row.count() > colNum) {
- colNum = row.count();
- }
- rowNum++;
- }
- }
|