Examples of createCell()


Examples of org.apache.poi.ss.usermodel.Row.createCell()

            final Row row = sheet.createRow(zeroBasedLineNumber);
            final Column[] columns = table.getColumns();
            for (int i = 0; i < columns.length; i++) {
                final Column column = columns[i];
                final int columnNumber = column.getColumnNumber();
                row.createCell(columnNumber).setCellValue(column.getName());
            }
        }

        final MutableSchema schema = (MutableSchema) table.getSchema();
        schema.addTable((MutableTable) table);
View Full Code Here

Examples of org.apache.poi.xssf.usermodel.XSSFRow.createCell()

                        row = table.getXSSFSheet().createRow(rowId);
                    }

                    XSSFCell cell = row.getCell(columnId);
                    if (cell == null) {
                        cell = row.createCell(columnId);
                    }
                    logger.log(POILogger.DEBUG, "Setting '" + value + "' to cell " + cell.getColumnIndex() + "-" + cell.getRowIndex() + " in sheet "
                                                    + table.getXSSFSheet().getSheetName());
                    cell.setCellValue(value.trim());
                }
View Full Code Here

Examples of org.apache.poi.xwpf.usermodel.XWPFTableRow.createCell()

        // create dynamic columns
        for (int rowC = 0; rowC < (rowDataList.size() - 1); rowC++) {
            //XWPFTableRow newRow = new XWPFTableRow(tempRow.getCtRow(), getTable());
            XWPFTableRow newRow = getTable().insertNewTableRow(dynamicRowAddC);
            for (XWPFTableCell cell : tempRow.getTableCells()) {
                XWPFTableCell newCell = newRow.createCell();
                DocXEngine.copyCell(cell, newCell);
            }
        }
        dynamicRowIndex = tempRowC;
    }
View Full Code Here

Examples of org.zkoss.poi.hssf.usermodel.HSSFRow.createCell()

                final Cell srcCell = cellEntry.getValue();
                final CellStyle cellStyle = srcCell.getCellStyle();
                final int c = cellEntry.getKey().intValue();
                Cell cell = row.getCell(c);
                if (cell == null) {
                  cell = row.createCell(c);
                }
                cell.setCellStyle(BookHelper.copyFromStyleExceptBorder(getBook(), cellStyle));
              }
            }
          }
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.Row.createCell()

    if (row == null) {
      row = sheet.createRow(rowIndex);
    }
    Cell cell = row.getCell(colIndex);
    if (cell == null) {
      cell = row.createCell(colIndex);
    }
    return cell;
  }
 
  public static String formatHyperlink(Book book, int type, String address, String label) {
View Full Code Here

Examples of org.zkoss.poi.xssf.usermodel.XSSFRow.createCell()

                final Cell srcCell = cellEntry.getValue();
                final CellStyle cellStyle = srcCell.getCellStyle();
                final int c = cellEntry.getKey().intValue();
                Cell cell = row.getCell(c);
                if (cell == null) {
                  cell = row.createCell(c);
                }
                cell.setCellStyle(BookHelper.copyFromStyleExceptBorder(getBook(), cellStyle));
              }
            }
          }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow.createCell()

    protected void drawCurricularRuleRow(final CurricularRule rule, final HtmlTable main, int level) {
        final HtmlTableRow groupRow = main.createRow();
        groupRow.setClasses(getCurricularRuleRowClass());
        addTabsToRow(groupRow, level);

        final HtmlTableCell cell = groupRow.createCell();
        cell.setClasses(getLabelCellClass());
        cell.setColspan(getMaxLineSize() - level);
        cell.setText(CurricularRuleLabelFormatter.getLabel(rule));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.