CellPhrase pargraph=new CellPhrase(cellInfo,""); cell.setPhrase(pargraph); cell.setFixedHeight(cellHeight); CellPhrase pargraph=new CellPhrase(cellInfo,cellData); cell.setPhrase(pargraph); cell.setFixedHeight(cellHeight);
return; table.getDefaultCell().setFixedHeight(hfHeight); table.setTotalWidth(tableWidth); table.setLockedWidth(true);
private PdfPCell createImageCell(PdfPTable table, String text, ExcelExportEntity entity, int rowHeight, int rowSpan, int colSpan) { try { Image image = Image.getInstance(ImageCache.getImage(text)); PdfPCell iCell = new PdfPCell(image); styler.setCellStyler(iCell, entity, text); iCell.setFixedHeight((int) (rowHeight * 2.5)); table.addCell(iCell); return iCell; } catch (BadElementException e) { LOGGER.error(e.getMessage(), e); } catch (MalformedURLException e) { LOGGER.error(e.getMessage(), e); } catch (IOException e) { LOGGER.error(e.getMessage(), e); } return new PdfPCell(); }
private PdfPCell createImageCell(PdfPTable table, String text, ExcelExportEntity entity, int rowHeight, int rowSpan, int colSpan) { try { Image image = Image.getInstance(ImageCache.getImage(text)); PdfPCell iCell = new PdfPCell(image); styler.setCellStyler(iCell, entity, text); iCell.setFixedHeight((int) (rowHeight * 2.5)); table.addCell(iCell); return iCell; } catch (BadElementException e) { LOGGER.error(e.getMessage(), e); } catch (MalformedURLException e) { LOGGER.error(e.getMessage(), e); } catch (IOException e) { LOGGER.error(e.getMessage(), e); } return new PdfPCell(); }
private PdfPCell createStringCell(PdfPTable table, String text, ExcelExportEntity entity, int rowHeight) { PdfPCell iCell = new PdfPCell(new Phrase(text, styler.getFont(entity, text))); styler.setCellStyler(iCell, entity, text); iCell.setFixedHeight((int) (rowHeight * 2.5)); table.addCell(iCell); return iCell; }
private PdfPCell createStringCell(PdfPTable table, String text, ExcelExportEntity entity, int rowHeight) { PdfPCell iCell = new PdfPCell(new Phrase(text, styler.getFont(entity, text))); styler.setCellStyler(iCell, entity, text); iCell.setFixedHeight((int) (rowHeight * 2.5)); table.addCell(iCell); return iCell; }
private PdfPCell createStringCell(PdfPTable table, String text, ExcelExportEntity entity, int rowHeight, int colspan, int rowspan) { PdfPCell iCell = new PdfPCell(new Phrase(text, styler.getFont(entity, text))); styler.setCellStyler(iCell, entity, text); iCell.setFixedHeight((int) (rowHeight * 2.5)); if (colspan > 1) { iCell.setColspan(colspan); } if (rowspan > 1) { iCell.setRowspan(rowspan); } table.addCell(iCell); return iCell; }
private PdfPCell createStringCell(PdfPTable table, String text, ExcelExportEntity entity, int rowHeight, int colspan, int rowspan) { PdfPCell iCell = new PdfPCell(new Phrase(text, styler.getFont(entity, text))); styler.setCellStyler(iCell, entity, text); iCell.setFixedHeight((int) (rowHeight * 2.5)); if (colspan > 1) { iCell.setColspan(colspan); } if (rowspan > 1) { iCell.setRowspan(rowspan); } table.addCell(iCell); return iCell; }
private void createHeaderRow(PdfExportParams entity, PdfPTable table, int feildLength) { PdfPCell iCell = new PdfPCell( new Phrase(entity.getTitle(), styler.getFont(null, entity.getTitle()))); iCell.setHorizontalAlignment(Element.ALIGN_CENTER); iCell.setVerticalAlignment(Element.ALIGN_CENTER); iCell.setFixedHeight(entity.getTitleHeight()); iCell.setColspan(feildLength + 1); table.addCell(iCell); if (entity.getSecondTitle() != null) { iCell = new PdfPCell( new Phrase(entity.getSecondTitle(), styler.getFont(null, entity.getSecondTitle()))); iCell.setHorizontalAlignment(Element.ALIGN_RIGHT); iCell.setVerticalAlignment(Element.ALIGN_CENTER); iCell.setFixedHeight(entity.getSecondTitleHeight()); iCell.setColspan(feildLength + 1); table.addCell(iCell); } }
private void createHeaderRow(PdfExportParams entity, PdfPTable table, int feildLength) { PdfPCell iCell = new PdfPCell( new Phrase(entity.getTitle(), styler.getFont(null, entity.getTitle()))); iCell.setHorizontalAlignment(Element.ALIGN_CENTER); iCell.setVerticalAlignment(Element.ALIGN_CENTER); iCell.setFixedHeight(entity.getTitleHeight()); iCell.setColspan(feildLength + 1); table.addCell(iCell); if (entity.getSecondTitle() != null) { iCell = new PdfPCell( new Phrase(entity.getSecondTitle(), styler.getFont(null, entity.getSecondTitle()))); iCell.setHorizontalAlignment(Element.ALIGN_RIGHT); iCell.setVerticalAlignment(Element.ALIGN_CENTER); iCell.setFixedHeight(entity.getSecondTitleHeight()); iCell.setColspan(feildLength + 1); table.addCell(iCell); } }
CellPhrase pargraph=new CellPhrase(cellInfo,""); cell.setPhrase(pargraph); cell.setFixedHeight(cellHeight); CellPhrase pargraph=new CellPhrase(cellInfo,cellData); cell.setPhrase(pargraph); cell.setFixedHeight(cellHeight);
return; table.getDefaultCell().setFixedHeight(hfHeight); table.setTotalWidth(tableWidth); table.setLockedWidth(true);
cell.setFixedHeight(fixHs[k]); } else { cell.setMinimumHeight(minHs[k]);
cell.setFixedHeight(fixHs[k]); } else { cell.setMinimumHeight(minHs[k]);