/**
  * Return the cell's style.
  *
  * @return the cell's style. Always not-null. Default cell style has zero index and can be
  *     obtained as <code>workbook.getCellStyleAt(0)</code>
  * @see org.zkoss.poi.ss.usermodel.Workbook#getCellStyleAt(short)
  */
 public CellStyle getCellStyle() {
   if (_style == null) {
     SXSSFWorkbook wb = (SXSSFWorkbook) getRow().getSheet().getWorkbook();
     return wb.getCellStyleAt((short) 0);
   } else {
     return _style;
   }
 }
Beispiel #2
0
 public SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet xSheet) throws IOException {
   _workbook = workbook;
   _sh = xSheet;
   _writer = workbook.createSheetDataWriter();
   setRandomAccessWindowSize(_workbook.getRandomAccessWindowSize());
 }