Package org.formulacompiler.spreadsheet.Spreadsheet

Examples of org.formulacompiler.spreadsheet.Spreadsheet.Cell


    final Map<String, Spreadsheet.Range> result = New.map();
    final SpreadsheetBinder binder = getBinder();
    for (Map.Entry<String, Spreadsheet.Range> def : defs.entrySet()) {
      final Spreadsheet.Range range = def.getValue();
      if (range instanceof Cell) {
        final Cell cell = (Cell) range;
        if (!binder.isInputCell( cell ) && !binder.isOutputCell( cell )) {
          result.put( def.getKey(), range );
        }
      }
    }
View Full Code Here


    }

    private void bindThisMethodToNamedCell( Method _m, String _cellNamePrefix ) throws CompilerException
    {
      final String fullCellName = (_cellNamePrefix + _m.getName());
      Cell cell = null;
      try {
        cell = getSpreadsheet().getCell( fullCellName );
      }
      catch (SpreadsheetException.NameNotFound e) {
        final String baseCellName = (_cellNamePrefix + getPlainCellNameFor( _m ));
View Full Code Here

      final String prefix = (null != _prefix) ? _prefix.toUpperCase() : null;
      final Map<String, Spreadsheet.Range> defs = getSpreadsheet().getRangeNames();
      for (Map.Entry<String, Spreadsheet.Range> def : defs.entrySet()) {
        final Spreadsheet.Range range = def.getValue();
        if (range instanceof Cell) {
          final Cell cell = (Cell) range;
          if (canBind( cell )) {
            final String name = def.getKey().toUpperCase();
            if (null == prefix) {
              bindThisNamedCellToMethod( cell, name );
            }
View Full Code Here

    {
      final Map<String, Spreadsheet.Range> defs = getBinder().getSpreadsheet().getRangeNames();
      for (Map.Entry<String, Spreadsheet.Range> def : defs.entrySet()) {
        final Spreadsheet.Range range = def.getValue();
        if (range instanceof Cell) {
          final Cell cell = (Cell) range;
          final String name = def.getKey();
          if (name.toUpperCase().startsWith( _prefix )) {
            if (!isBound( cell )) {
              throw new SpreadsheetException.NameNotFound( "There is no "
                  + bindingTypeName() + " method named " + name + "() or get" + name + "() to bind the cell "
View Full Code Here

  public void createCellNamesFromRowTitles()
  {
    for (Spreadsheet.Row row : this.sheet.getRows()) {
      final Cell[] cells = row.getCells();
      if (cells.length >= 2) {
        final Cell titleCell = cells[ 0 ];
        if (null != titleCell) {
          final Object titleValue = titleCell.getConstantValue();
          if (titleValue instanceof String) {
            this.spreadsheet.defineAdditionalRangeName( sanitize( (String) titleValue ), cells[ 1 ] );
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.formulacompiler.spreadsheet.Spreadsheet.Cell

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.