Package jxl

Examples of jxl.DateCell


      final jxl.NumberCell xlsNumCell = (jxl.NumberCell) _xlsCell;
      _rowBuilder.addCellWithConstant( xlsNumCell.getValue() )
          .applyNumberFormat( convertNumberFormat( xlsNumCell, xlsNumCell.getNumberFormat() ) );
    }
    else if (CellType.DATE == xlsType) {
      final DateCell xlsDateCell = (jxl.DateCell) _xlsCell;
      final Object value;
      if (null != this.globalTimeFormat
          && this.globalTimeFormat.equals( xlsDateCell.getCellFormat().getFormat().getFormatString() )) {
        value = RuntimeDouble_v2.dateFromNum( xlsDateCell.getValue(), this.globalTimeZone, ComputationMode.EXCEL );
      }
      else if (xlsDateCell.isTime()) {
        value = new Duration( xlsDateCell.getValue() );
      }
      else {
        value = new LocalDate( xlsDateCell.getValue() );
      }
      _rowBuilder.addCellWithConstant( value );
    }
    else if (jxl.CellType.LABEL == xlsType) {
      _rowBuilder.addCellWithConstant( ((jxl.LabelCell) _xlsCell).getString() );
View Full Code Here


          String valeurDeLaCellule;
          Cell cellule = feuilleTrajets.getCell(numeroDeColonne,numeroDeLigne);
         
          if (cellule.getType() == CellType.DATE) {
            //Une cellule de feuille de calcul qui contient une date
            DateCell celluleDate = (DateCell) cellule;
            Date date = celluleDate.getDate();
            valeurDeLaCellule = new SimpleDateFormat(MotsCleProjet.TIME_FORMAT).format(date);
          } else {
            valeurDeLaCellule = cellule.getContents();
          }
            ligne.put(numeroDeColonne,valeurDeLaCellule);
View Full Code Here

TOP

Related Classes of jxl.DateCell

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.