code: private void generateSheet(Workbook workbook, List<?> data, Class clazz,
                                 boolean isWriteHeader, String sheetName)
              throws Excel4JException {
  
          Sheet sheet;
          if (null != sheetName && !"".equals(sheetName)) {
              sheet = workbook.createSheet(sheetName);
          } else {
              sheet = workbook.createSheet();
          }
          Row row = sheet.createRow(0);
          List<ExcelHeader> headers = Utils.getHeaderList(clazz);
          if (isWriteHeader) {
              // 写标题
              for (int i = 0; i < headers.size(); i++) {
                  row.createCell(i).setCellValue(headers.get(i).getTitle());
              }
          }
          // 写数据
          Object _data;
          for (int i = 0; i < data.size(); i++) {
              row = sheet.createRow(i + 1);
              _data = data.get(i);
              for (int j = 0; j < headers.size(); j++) {
                  row.createCell(j).setCellValue(Utils.getProperty(_data,
                          headers.get(j).getFiled(),
                          headers.get(j).getWriteConverter()));
              }
          }
  
      }
docs: 生成sheet数据