values.add(widthTokens.nextToken()); table = new Table(values.size()); float[] widths = new float[table.getColumns()]; for (int i = 0; i < values.size(); i++) { value = attributes.getProperty(ElementTags.COLUMNS); try { table = new Table(Integer.parseInt(value)); } catch (Exception e) { table = new Table(1);
values.add(widthTokens.nextToken()); table = new Table(values.size()); float[] widths = new float[table.getColumns()]; for (int i = 0; i < values.size(); i++) { value = attributes.getProperty(ElementTags.COLUMNS); try { table = new Table(Integer.parseInt(value)); } catch (Exception e) { table = new Table(1);
values.add(widthTokens.nextToken()); table = new Table(values.size()); float[] widths = new float[table.getColumns()]; for (int i = 0; i < values.size(); i++) { value = attributes.getProperty(ElementTags.COLUMNS); try { table = new Table(Integer.parseInt(value)); } catch (Exception e) { table = new Table(1);
/** * Initialize the main info holder table. * @throws BadElementException for errors during table initialization */ protected void initTable() throws BadElementException { tablePDF = new Table(this.model.getNumberOfColumns()); tablePDF.setDefaultVerticalAlignment(Element.ALIGN_TOP); tablePDF.setCellsFitPage(true); tablePDF.setWidth(100); tablePDF.setPadding(2); tablePDF.setSpacing(0); smallFont = FontFactory.getFont(FontFactory.HELVETICA, 7, Font.NORMAL, new Color(0, 0, 0)); }
Table t = new Table(startIndex == 0 ? subCols : subCols + 2, rows); t.getDefaultCell().setVerticalAlignment(Element.ALIGN_MIDDLE); t.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
Table table = new Table(columns); table.setAlignment(alignment); table.setSpacing(cellspacing);
Table table = new Table(columns); table.setAlignment(alignment); table.setSpacing(cellspacing);
Table table = new Table(columns); table.setAlignment(alignment); table.setSpacing(cellspacing);
private Table createTableThreadHeader(DiscrepancyNoteThread discNoteThread) throws BadElementException { Table table = new Table(2); table.setTableFitsPage(true); table.setCellsFitPage(true);
/** * This method creates a report group for the error message on the report * * @throws DocumentException */ private void generateErrorColumnHeaders() throws DocumentException { try { int headerwidths[] = { 60 }; Table aTable = new Table(1, 1); // 2 columns, 1 rows. aTable.setAutoFillEmptyCells(true); aTable.setPadding(3); aTable.setWidths(headerwidths); aTable.setWidth(100); Cell cell; Font font = FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL); cell = new Cell(new Phrase("Error(s)", font)); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); cell.setGrayFill(0.9f); aTable.addCell(cell); this.document.add(aTable); } catch (Exception e) { throw new RuntimeException("DepreciationReport.generateErrorColumnHeaders() - Error: " + e.getMessage()); } }
return; case Element.TABLE: Table table = new Table(3); float[] widths = new float[3]; widths[1] = ((Table)element).getWidth();
return; case Element.TABLE: Table table = new Table(3); float[] widths = new float[3]; widths[1] = ((Table)element).getWidth();
return; case Element.TABLE: Table table = new Table(3); float[] widths = new float[3]; widths[1] = ((Table)element).getWidth();
/** * @see org.displaytag.export.BinaryExportView#doExport(OutputStream) */ public void doExport(OutputStream out) throws JspException { try { Document document = new Document(PageSize.A4.rotate(), 60, 60, 40, 40); this.initItextWriter(document, out); document.open(); Table table = new Table(this.model.getNumberOfColumns()); ItextTableWriter writer = new ItextTableWriter(table, document); writer.writeTable(this.model, "-1"); document.add(table); document.close(); } catch (Exception e) { throw new ItextGenerationException(e); } }
/** * This method creates the headers for the report statistics */ private void generateColumnHeaders() { try { int headerwidths[] = { 40, 15 }; Table aTable = new Table(2, 1); // 2 columns, 1 rows. aTable.setAutoFillEmptyCells(true); aTable.setPadding(3); aTable.setWidths(headerwidths); aTable.setWidth(100); Cell cell; Font font = FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL); cell = new Cell(new Phrase(SpringContext.getBean(KualiConfigurationService.class).getPropertyString(CamsKeyConstants.Depreciation.MSG_REPORT_DEPRECIATION_HEADING1), font)); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); cell.setGrayFill(0.9f); aTable.addCell(cell); cell = new Cell(new Phrase(SpringContext.getBean(KualiConfigurationService.class).getPropertyString(CamsKeyConstants.Depreciation.MSG_REPORT_DEPRECIATION_HEADING2), font)); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setVerticalAlignment(Element.ALIGN_MIDDLE); cell.setGrayFill(0.9f); aTable.addCell(cell); this.document.add(aTable); } catch (Exception e) { throw new RuntimeException("DepreciationReport.generateColumnHeaders() - Error: " + e.getMessage()); } }
t = new Table(colnum); t.setPadding(TABLE_PADDING); t.setBorderWidth(TABLE_BORDERWIDTH);
p = new Table(1); p.setPadding(TABLE_PADDING); p.setBorderWidth(TABLE_BORDERWIDTH);
private Table createTableFromBean(DiscrepancyNoteBean discBean) throws BadElementException { Table table = new Table(2); table.setTableFitsPage(true); table.setCellsFitPage(true);
if ( table == null ) { final int rowCount = contentProducer.getRowCount(); table = new Table( columnCount, rowCount ); table.setAutoFillEmptyCells( false ); table.setWidth( 100 ); // span the full page..