Esempio n. 1
0
    public HSSFCellStyle getOrCreateStyle(HSSFWorkbook workbook, StyleVO styleVO) {
      String keyString = styleVO.toString();
      HSSFCellStyle style = reusableStyles.get(keyString);

      if (style == null) {
        style = workbook.createCellStyle();
        styleVO.applyTo(style, workbook);
        reusableStyles.put(keyString, style);
      }
      return style;
    }