/** * Adds an iText element to the cell. * * @param element */ public void addElement(Element element) { if (table != null) { table = null; column.setText(null); } column.addElement(element); }
/** * Adds an iText element to the cell. * * @param element */ public void addElement(Element element) { if (table != null) { table = null; column.setText(null); } column.addElement(element); }
/** * Adds an iText element to the cell. * * @param element */ public void addElement(Element element) { if (table != null) { table = null; column.setText(null); } column.addElement(element); }
public void addElement( Element element ) { if ( element instanceof SectionPdfPTable ) { // section is a specific container // it is not added to direct parent container // but to section parent container which may be // StylableDocument or StylableTableCell or StylableHeaderFooter table cell sectionParent.addElement( element ); } else { // ordinary element texts.get( colIdx ).addElement( element ); simulateText(); } }
public void addElement( Element element ) { if ( element instanceof SectionPdfPTable ) { // section is a specific container // it is not added to direct parent container // but to section parent container which may be // StylableDocument or StylableTableCell or StylableHeaderFooter table cell sectionParent.addElement( element ); } else { // ordinary element texts.get( colIdx ).addElement( element ); simulateText(); } }
public void addElement( Element element ) { if ( element instanceof SectionPdfPTable ) { // section is a specific container // it is not added to direct parent container // but to section parent container which may be // StylableDocument or StylableTableCell or StylableHeaderFooter table cell sectionParent.addElement( element ); } else { // ordinary element texts.get( colIdx ).addElement( element ); simulateText(); } }
public void addElement( Element element ) { if ( element instanceof SectionPdfPTable ) { // section is a specific container // it is not added to direct parent container // but to section parent container which may be // StylableDocument or StylableTableCell or StylableHeaderFooter table cell sectionParent.addElement( element ); } else { // ordinary element texts.get( colIdx ).addElement( element ); simulateText(); } }
void setTable(PdfPTable table) { this.table = table; column.setText(null); image = null; if (table != null) { table.setExtendLastRow(verticalAlignment == Element.ALIGN_TOP); column.addElement(table); table.setWidthPercentage(100); } }
void setTable(PdfPTable table) { this.table = table; column.setText(null); image = null; if (table != null) { table.setExtendLastRow(verticalAlignment == Element.ALIGN_TOP); column.addElement(table); table.setWidthPercentage(100); } }
void setTable(PdfPTable table) { this.table = table; column.setText(null); image = null; if (table != null) { table.setExtendLastRow(verticalAlignment == Element.ALIGN_TOP); column.addElement(table); table.setWidthPercentage(100); } }
/** * Add an element to be rendered in a column. * Note that you can only add a <CODE>Phrase</CODE> * or a <CODE>Chunk</CODE> if the columns are * not all simple. This is an underlying restriction in * {@link com.lowagie.text.pdf.ColumnText} * * @param element element to add * @throws DocumentException if element can't be added */ public void addElement(Element element) throws DocumentException { if (simple) { columnText.addElement(element); } else if (element instanceof Phrase) { columnText.addText((Phrase) element); } else if (element instanceof Chunk) { columnText.addText((Chunk) element); } else { throw new DocumentException("Can't add " + element.getClass() + " to MultiColumnText with complex columns"); } }
public void addElement( Element element ) { if ( !super.isOpen() ) { super.open(); } if ( masterPageJustChanged ) { // master page was changed but there was no explicit page break pageBreak(); } text.addElement( element ); StylableDocumentSection.getCell( layoutTable, colIdx ).getColumn().addElement( element ); simulateText(); documentEmpty = false; }
public void addElement( Element element ) { if ( !super.isOpen() ) { super.open(); } if ( masterPageJustChanged ) { // master page was changed but there was no explicit page break pageBreak(); } text.addElement( element ); StylableDocumentSection.getCell( layoutTable, colIdx ).getColumn().addElement( element ); simulateText(); documentEmpty = false; }
/** * Add an element to be rendered in a column. * Note that you can only add a <CODE>Phrase</CODE> * or a <CODE>Chunk</CODE> if the columns are * not all simple. This is an underlying restriction in * {@link com.lowagie.text.pdf.ColumnText} * * @param element element to add * @throws DocumentException if element can't be added */ public void addElement(Element element) throws DocumentException { if (simple) { columnText.addElement(element); } else if (element instanceof Phrase) { columnText.addText((Phrase) element); } else if (element instanceof Chunk) { columnText.addText((Chunk) element); } else { throw new DocumentException(MessageLocalization.getComposedMessage("can.t.add.1.to.multicolumntext.with.complex.columns", element.getClass())); } }
/** * Add an element to be rendered in a column. * Note that you can only add a <CODE>Phrase</CODE> * or a <CODE>Chunk</CODE> if the columns are * not all simple. This is an underlying restriction in * {@link com.lowagie.text.pdf.ColumnText} * * @param element element to add * @throws DocumentException if element can't be added */ public void addElement(Element element) throws DocumentException { if (simple) { columnText.addElement(element); } else if (element instanceof Phrase) { columnText.addText((Phrase) element); } else if (element instanceof Chunk) { columnText.addText((Chunk) element); } else { throw new DocumentException(MessageLocalization.getComposedMessage("can.t.add.1.to.multicolumntext.with.complex.columns", element.getClass())); } }
public void addElement( Element element ) { if ( !super.isOpen() ) { super.open(); } if ( masterPageJustChanged ) { // master page was changed but there was no explicit page break pageBreak(); } text.addElement( element ); StylableDocumentSection.getCell( layoutTable, colIdx ).getColumn().addElement( element ); simulateText(); documentEmpty = false; // if (first) { // first = false; // try { // Image img = Image.getInstance("/Users/ben/Documents/1000000000000028000001135F95BFF1.png"); // img.setAbsolutePosition(0f, 0f); // this.add(img); // } catch (Exception e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } // } }
public void addElement( Element element ) { if ( !super.isOpen() ) { super.open(); } if ( masterPageJustChanged ) { // master page was changed but there was no explicit page break pageBreak(); } text.addElement( element ); StylableDocumentSection.getCell( layoutTable, colIdx ).getColumn().addElement( element ); simulateText(); documentEmpty = false; // if (first) { // first = false; // try { // Image img = Image.getInstance("/Users/ben/Documents/1000000000000028000001135F95BFF1.png"); // img.setAbsolutePosition(0f, 0f); // this.add(img); // } catch (Exception e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } // } }
table.setWidthPercentage(100); table.setExtendLastRow(true); column.addElement(table); if (style != null) { cloneNonPositionParameters(style);
table.setWidthPercentage(100); table.setExtendLastRow(true); column.addElement(table); if (style != null) { cloneNonPositionParameters(style);
table.setWidthPercentage(100); table.setExtendLastRow(true); column.addElement(table); if (style != null) { cloneNonPositionParameters(style);