/** * Implements the add method of the TextElementArray interface. * @param o an element that needs to be added to the cell. */ public boolean add(final Element o) { cell.addElement(o); return true; }
/** * Implements the add method of the TextElementArray interface. * @param o an element that needs to be added to the cell. */ public boolean add(final Element o) { cell.addElement(o); return true; }
public Element getElement() { if ( wrapperTable != null ) { return wrapperTable; } else if ( wrapperCell != null ) { wrapperCell.addElement( this ); wrapperTable = createTable( wrapperCell ); return wrapperTable; } return this; } }
@Override public void addElement( Element element ) { this.empty = false; if ( element instanceof ListItem ) { List aList = new List(); aList.setIndentationLeft( ( (ListItem) element ).getIndentationLeft() ); aList.add( element ); super.addElement( aList ); } else { super.addElement( element ); } }
public static Paragraph constructTitle( IParagraphFactory factory, Paragraph ancestorTitle, ArrayList numbers, int numberDepth, int numberStyle, PdfPCell cell ) { if ( ancestorTitle != null && cell != null ) { Paragraph newTitle = factory.createParagraph(); PdfPTable table = new PdfPTable( 1 ); table.setWidthPercentage( 100f ); cell.addElement( ancestorTitle ); table.addCell( cell ); newTitle.add( table ); return newTitle; } return ancestorTitle; }
@Override public void consume(Element element) { PdfPCell cell = new PdfPCell(); cell.addElement(element); steps.addCell(noBorder(colspan(2, new PdfPCell(new Phrase(""))))); steps.addCell(noBorder(cell)); } };
wrapperCell.addElement( this ); outerCell.setPaddingRight( getIndentationRight() ); setIndentationRight( 0.0f ); outerCell.addElement( wrapperTable ); wrapperTable = createTable( outerCell );
cell.addElement(p); cell.setBorder(Rectangle.NO_BORDER);
cell.addElement(p); cell.setBorderColor(BaseColor.LIGHT_GRAY); cell.setBorder(Rectangle.TOP + Rectangle.BOTTOM);
table.setWidthPercentage(100f); PdfPCell cell = new PdfPCell(); cell.addElement(paragraph); cell.setBorder(Rectangle.NO_BORDER); cell.setPadding(0);
table.setWidthPercentage(100f); PdfPCell cell = new PdfPCell(); cell.addElement(paragraph); cell.setBorder(Rectangle.NO_BORDER); cell.setPadding(0);