public void setCellEvent(PdfPCellEvent event) {
if (event == null) this.cellEvent = null;
else if (this.cellEvent == null) this.cellEvent = event;
else if (this.cellEvent instanceof PdfPCellEventForwarder) ((PdfPCellEventForwarder)this.cellEvent).addCellEvent(event);
else {
PdfPCellEventForwarder forward = new PdfPCellEventForwarder();
forward.addCellEvent(this.cellEvent);
forward.addCellEvent(event);
this.cellEvent = forward;
}
}