Package org.apache.poi.hssf.usermodel

Examples of org.apache.poi.hssf.usermodel.HSSFRow


      final HSSFSheet sheet, final int currentRowNumber,
      final Map<Object, Object> data, final String dataKey,
      final String heading, final CellStyle cellStyle) {
    int currentRow = currentRowNumber;

    HSSFRow row;

    row = sheet.createRow((short) currentRow++);
    createCell(row, cellStyle.getStyle10Bold(), (short) 0, heading);

    row = sheet.createRow((short) currentRow++);
View Full Code Here


  @SuppressWarnings("unchecked")
  private int generateDeviationOverview(final HSSFWorkbook wb,
      final HSSFSheet sheet, final int currentRowNumber,
      final Map<Object, Object> data, final CellStyle cellStyle) {
    HSSFRow row;

    int currentRow = currentRowNumber;

    row = sheet.createRow((short) currentRow++);
    createCell(row, cellStyle.getStyle10Bold(), (short) 3, "Avviksoversikt");
View Full Code Here

    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 1, new int[] { 4000 });

    int currentRow = 0;
    HSSFRow row;

    CellStyle cellStyle = new CellStyle(wb);

    row = sheet.createRow((short) currentRow++);
View Full Code Here

    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 1, new int[] { 4000 });

    int currentRow = 0;
    HSSFRow row;

    CellStyle cellStyle = new CellStyle(wb);

    row = sheet.createRow((short) currentRow++);
View Full Code Here

    HSSFSheet sheet = getSheet(wb, 10, new int[] { 5000, 1000, 5000, 5000,
        5000, 5000, 5000, 5000, 5000, 5000 });

    int currentRow = 0;
    HSSFRow row;

    CellStyle cellStyle = new CellStyle(wb);

    row = sheet.createRow((short) currentRow++);
View Full Code Here

        5000, 5000, 5000, 5000, 5000, 5000, 5000 }

    );

    int currentRow = 0;
    HSSFRow row;

    CellStyle cellStyle = new CellStyle(wb);

    currentRow = createEmptyRows(sheet, currentRow, 2);
    row = sheet.createRow((short) currentRow++);
View Full Code Here

        5000, 5000, 5000, 5000, 5000, 5000, 5000 }

    );

    int currentRow = 0;
    HSSFRow row;

    CellStyle cellStyle = new CellStyle(wb);

    // currentRow = createEmptyRows(sheet, currentRow, 2);
    row = sheet.createRow((short) currentRow++);
View Full Code Here

      ImmutableMap<String, Integer> productAreaColumns, HSSFSheet sheet,
      int currentRow, CellStyle cellStyle,
      Map<TakstoltegnerVSum, Collection<TakstoltegnerV>> dataList) {
    Map<String, HSSFRow> tegnerlinjeMap = Maps.newHashMap();
    for (TakstoltegnerVSum tegner : dataList.keySet()) {
      HSSFRow tegnerlinje = tegnerlinjeMap.get(tegner.getTrossDrawer());
      tegnerlinje = tegnerlinje != null ? tegnerlinje : sheet
          .createRow((short) currentRow++);

      createCell(tegnerlinje, cellStyle.getStyle((short) 10,
          HSSFFont.BOLDWEIGHT_NORMAL, HSSFCellStyle.ALIGN_LEFT,
View Full Code Here

    return currentRow;
  }

  private int createBasisHeading(HSSFSheet sheet, int currentRow,
      CellStyle cellStyle) {
    HSSFRow row;
    currentRow = createEmptyRows(sheet, currentRow, 2);
    row = sheet.createRow((short) currentRow++);

    createCell(row, cellStyle.getStyle((short) 10,
        HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_LEFT, (short) -1,
View Full Code Here

      String[] columnPropterties, String[] columnNames, List<?> list)
  {
    HSSFWorkbook workbook = new HSSFWorkbook();
    HSSFSheet sheet = workbook.createSheet(sheetName);
    // 创建第1行,也就是输出表头
    HSSFRow row = sheet.createRow(0);
    HSSFCell cell;
    for (int i = 0; i < columnNames.length; i++)
    {
      cell = row.createCell(i);
      cell.setCellValue(new HSSFRichTextString(columnNames[i]));
    }
    // 下面是输出各行的数据
    for (int i = 0; i < list.size(); i++)
    {
      row = sheet.createRow(i + 1);
      Object o = list.get(i);
      for (int j = 0; j < columnPropterties.length; j++)
      {
        cell = row.createCell(j);
        Object obj = ReflectionUtils.invokeGetterMethod(o, columnPropterties[j]);
        cell.setCellValue(obj == null ? "" : obj.toString());
      }
    }
    return workbook;
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.usermodel.HSSFRow

Copyright © 2018 www.massapicom. 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.