Package org.formulacompiler.spreadsheet.internal.excel.xlsx.loader.StylesheetParser

Examples of org.formulacompiler.spreadsheet.internal.excel.xlsx.loader.StylesheetParser.Style


    final double value = Double.parseDouble( _value );

    if (_styleIndex == null)
      return value;

    final Style cellStyle = this.stylesheet.getStyle( Integer.parseInt( _styleIndex.getValue() ) );
    if (cellStyle != null) {
      if (!cellStyle.isDate() && cellStyle.isTime())
        return value < 365.0 ? new Duration( value ) : new LocalDate( value );

      if (cellStyle.isDate())
        //LATER: need to check for global time format & global timezone
        return value < 1.0 ? new Duration( value ) : new LocalDate( value );
    }
    return value;
  }
View Full Code Here

TOP

Related Classes of org.formulacompiler.spreadsheet.internal.excel.xlsx.loader.StylesheetParser.Style

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.