Package org.zkoss.poi.ss.usermodel

Examples of org.zkoss.poi.ss.usermodel.DataFormatter


      final CellValue cv = BookHelper.evaluate(book, cell);
      cellType = cv.getCellType();
    } else if (cellType == Cell.CELL_TYPE_STRING) {
      return cell.getRichStringCellValue();
    }
      final String result = new DataFormatter(ZssContext.getCurrent().getLocale(), false).formatCellValue(cell, cellType); //ZSS-68
    return newRichTextString(cell, result);
  }
View Full Code Here


          if (formatString == null) { //ZSS-76
            formatString = "mm/dd/yyyy h:mm:ss AM/PM";
          }
        }
        final boolean date1904 = ((Book)cell.getSheet().getWorkbook()).isDate1904();
        return new DataFormatter(locale, false).formatRawCellContents(val, -1, formatString, date1904); //ZSS-68
      } else {
        return NumberToTextConverter.toText(val);
      }
    case Cell.CELL_TYPE_STRING:
      return cell.getStringCellValue();
View Full Code Here

TOP

Related Classes of org.zkoss.poi.ss.usermodel.DataFormatter

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.