Package org.formulacompiler.spreadsheet.internal

Examples of org.formulacompiler.spreadsheet.internal.CellInstance


          if (this.template != null)
            writeRowStyle( row.getStyleName() );

          final List<? extends CellInstance> cells = row.getCellList();
          for (int ci = 0; ci != cells.size(); ci++) {
            final CellInstance cell = cells.get( ci );
            writeStartElement( XMLConstants.Main.CELL );
            final StringBuilder sb = new StringBuilder();
            CellAddressImpl.appendNameA1ForCellIndex( sb, ci, false, ri, false );
            writeAttribute( XMLConstants.Main.CELL_REFERENCE, sb.toString() );

            final Object value = cell == null ? null : cell.getValue();
            final ExpressionNode expression;
            if (cell != null && cell instanceof CellWithExpression)
              expression = ((CellWithExpression) cell).getExpression();
            else
              expression = null;

            if (cell != null)
              writeCellStyle( value, cell.getStyleName() );

            if (expression != null) {
              writeStartElement( XMLConstants.Main.CELL_FORMULA );
              writeText( ExpressionFormatter.format( expression, cell.getCellIndex() ) );
              writeEndElement( XMLConstants.Main.CELL_FORMULA );
            }

            if (value != null) {
              writeStartElement( XMLConstants.Main.CELL_VALUE );
View Full Code Here


  }


  public CellModel createCellModel( CellIndex _cellIndex, boolean _isInput ) throws CompilerException
  {
    final CellInstance cell = _cellIndex.getCell();
    final boolean nonNull = (null != cell);
    if (nonNull || _isInput) {
      final CellAddress cellAddress = _cellIndex.getCellAddress();
      final CellModel result = new CellModel( this.sectionModel, cellAddress );
      this.compiler.addCellModel( _cellIndex, result );
View Full Code Here

TOP

Related Classes of org.formulacompiler.spreadsheet.internal.CellInstance

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.