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.Rectangle; 57 import com.lowagie.text.pdf.PdfContentByte; 58 import com.lowagie.text.pdf.PdfPCell; 59 import com.lowagie.text.pdf.PdfPCellEvent; 60 61 67 68 public class PdfPCellEventForwarder implements PdfPCellEvent { 69 70 71 protected ArrayList events = new ArrayList (); 72 73 77 public void addCellEvent(PdfPCellEvent event) { 78 events.add(event); 79 } 80 81 84 public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases) { 85 PdfPCellEvent event; 86 for (Iterator i = events.iterator(); i.hasNext(); ) { 87 event = (PdfPCellEvent)i.next(); 88 event.cellLayout(cell, position, canvases); 89 } 90 } 91 } | Popular Tags |