com.lowagie.text.pdf.events
public class FieldPositioningEvents extends PdfPageEventHelper implements PdfPCellEvent
Field Summary | |
---|---|
protected PdfFormField | cellField
Keeps the form field that is to be positioned in a cellLayout event. |
protected PdfWriter | fieldWriter
The PdfWriter to use when a field has to added in a cell event. |
protected HashMap | genericChunkFields
Keeps a map with fields that are to be positioned in inGenericTag. |
float | padding Some extra padding that will be taken into account when defining the widget. |
protected PdfFormField | parent
The PdfFormField that is the parent of the field added in a cell event. |
Constructor Summary | |
---|---|
FieldPositioningEvents() Creates a new event. | |
FieldPositioningEvents(PdfWriter writer, PdfFormField field) Creates a new event. | |
FieldPositioningEvents(PdfFormField parent, PdfFormField field) Creates a new event. | |
FieldPositioningEvents(PdfWriter writer, String text) Creates a new event. | |
FieldPositioningEvents(PdfWriter writer, PdfFormField parent, String text) Creates a new event. |
Method Summary | |
---|---|
void | addField(String text, PdfFormField field)
Add a PdfFormField that has to be tied to a generic Chunk. |
void | cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvases) |
void | onGenericTag(PdfWriter writer, Document document, Rectangle rect, String text) |
void | setPadding(float padding) |
void | setParent(PdfFormField parent) |
Throws: DocumentException IOException
Throws: DocumentException IOException
See Also: (com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
See Also: PdfPageEvent
Parameters: padding The padding to set.
Parameters: parent The parent to set.