|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.events.PdfPCellEventForwarder
public class PdfPCellEventForwarder
If you want to add more than one event to a cell, you have to construct a PdfPCellEventForwarder, add the different events to this object and add the forwarder to the PdfPCell.
| Field Summary | |
|---|---|
protected ArrayList |
events
ArrayList containing all the PageEvents that have to be executed. |
| Constructor Summary | |
|---|---|
PdfPCellEventForwarder()
|
|
| Method Summary | |
|---|---|
void |
addCellEvent(PdfPCellEvent event)
Add a page event to the forwarder. |
void |
cellLayout(PdfPCell cell,
Rectangle position,
PdfContentByte[] canvases)
This method is called at the end of the cell rendering. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList events
| Constructor Detail |
|---|
public PdfPCellEventForwarder()
| Method Detail |
|---|
public void addCellEvent(PdfPCellEvent event)
event - an event that has to be added to the forwarder.
public void cellLayout(PdfPCell cell,
Rectangle position,
PdfContentByte[] canvases)
PdfPCellEventPdfContentByte contained in
canvases.canvases are:
PdfPTable.BASECANVAS - the original PdfContentByte. Anything placed here
will be under the cell.
PdfPTable.BACKGROUNDCANVAS - the layer where the background goes to.
PdfPTable.LINECANVAS - the layer where the lines go to.
PdfPTable.TEXTCANVAS - the layer where the text go to. Anything placed here
will be over the cell.
cellLayout in interface PdfPCellEventcell - the cellposition - the coordinates of the cellcanvases - an array of PdfContentBytePdfPCellEvent.cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||