Package org.formulacompiler.runtime.spreadsheet

Examples of org.formulacompiler.runtime.spreadsheet.RangeAddress


  {
    final CellRange range = _sectionDef.getRange();
    final BaseSpreadsheet spreadsheet = range.getFrom().getSheet().getSpreadsheet();
    final Set<String> names = spreadsheet.getNamesFor( range );
    final String name = names != null && !names.isEmpty() ? names.iterator().next() : null;
    final RangeAddress rangeAddress = range.getRangeAddress();
    final SectionModel model = new SectionModel( getSectionModel(), rangeAddress, name,
        _sectionDef.getInputClass(), _sectionDef.getOutputClass() );
    model.makeInput( _sectionDef.getCallChainToCall() );
    if (_sectionDef.getCallToImplement() != null) {
      model.makeOutput( _sectionDef.getCallToImplement() );
View Full Code Here


    if (cellSource instanceof CellAddress) {
      final CellAddress cellAddress = (CellAddress) cellSource;
      final CellInfo cellInfo = new CellInfoImpl( cellAddress, _cell.getName() );
      final SectionModel sectionModel = _cell.getSection();
      final Object sectionSource = sectionModel.getSource();
      final RangeAddress range = sectionSource instanceof RangeAddress ? (RangeAddress) sectionSource : null;
      final SectionInfo sectionInfo = new SectionInfoImpl( sectionModel.getName(), range, -1 );
      final boolean input = _cell.isInput();
      final boolean output = _cell.isOutput();
      final SpreadsheetCellComputationEvent event = new SpreadsheetCellComputationEvent( cellInfo, sectionInfo,
          _value, input, output );
View Full Code Here

        if (isComputationListenerEnabled()) {
          mv.loadThis();
          mv.loadArg( 2 ); //section index
          final ExpressionCompilerForNumbers c = numericCompiler();
          final SectionModel sectionModel = model();
          final RangeAddress range = (RangeAddress) model().getSource();
          final CellAddress topLeft = range.getTopLeft();
          final CellAddress bottomRight = range.getBottomRight();
          c.compile_util_createSectionInfo( sectionModel.getName(),
              topLeft.getSheetName(), topLeft.getRowIndex(), topLeft.getColumnIndex(),
              bottomRight.getSheetName(), bottomRight.getRowIndex(), bottomRight.getColumnIndex() );
          mv.putField( section().classType(), SECTION_INFO_MEMBER_NAME, SECTION_INFO_CLASS );
        }
View Full Code Here

TOP

Related Classes of org.formulacompiler.runtime.spreadsheet.RangeAddress

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.