1 50 51 package com.lowagie.text.pdf.events; 52 53 import java.util.ArrayList ; 54 import java.util.Iterator ; 55 56 import com.lowagie.text.pdf.PdfContentByte; 57 import com.lowagie.text.pdf.PdfPTable; 58 import com.lowagie.text.pdf.PdfPTableEvent; 59 60 66 67 public class PdfPTableEventForwarder implements PdfPTableEvent { 68 69 70 protected ArrayList events = new ArrayList (); 71 72 76 public void addTableEvent(PdfPTableEvent event) { 77 events.add(event); 78 } 79 80 83 public void tableLayout(PdfPTable table, float[][] widths, float[] heights, int headerRows, int rowStart, PdfContentByte[] canvases) { 84 PdfPTableEvent event; 85 for (Iterator i = events.iterator(); i.hasNext(); ) { 86 event = (PdfPTableEvent)i.next(); 87 event.tableLayout(table, widths, heights, headerRows, rowStart, canvases); 88 } 89 } 90 } | Popular Tags |