protected void copyFormat ( PdfPTable sourceTable ) { relativeWidths = new float [ sourceTable . getNumberOfColumns ( ) ] ; absoluteWidths = new float [ sourceTable . getNumberOfColumns ( ) ] ; System . arraycopy ( sourceTable . relativeWidths , 0 , relativeWidths , 0 , getNumberOfColumns ( ) ) ; System . arraycopy ( sourceTable . absoluteWidths , 0 , absoluteWidths , 0 , getNumberOfColumns ( ) ) ; totalWidth = sourceTable . totalWidth ; totalHeight = sourceTable . totalHeight ; currentRowIdx = 0 ; tableEvent = sourceTable . tableEvent ; runDirection = sourceTable . runDirection ; defaultCell = new PdfPCell ( sourceTable . defaultCell ) ; currentRow = new PdfPCell [ sourceTable . currentRow . length ] ; isColspan = sourceTable . isColspan ; splitRows = sourceTable . splitRows ; spacingAfter = sourceTable . spacingAfter ; spacingBefore = sourceTable . spacingBefore ; headerRows = sourceTable . headerRows ; footerRows = sourceTable . footerRows ; lockedWidth = sourceTable . lockedWidth ; extendLastRow = sourceTable . extendLastRow ; headersInEvent = sourceTable . headersInEvent ; widthPercentage = sourceTable . widthPercentage ; splitLate = sourceTable . splitLate ; skipFirstHeader = sourceTable . skipFirstHeader ; skipLastFooter = sourceTable . skipLastFooter ; horizontalAlignment = sourceTable . horizontalAlignment ; keepTogether = sourceTable . keepTogether ; complete = sourceTable . complete ; }
Copies the format of the sourceTable without copying the content .