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