Package org.formulacompiler.spreadsheet.internal

Examples of org.formulacompiler.spreadsheet.internal.BaseSpreadsheet



  SectionModelCompiler createSectionCompiler( SectionBinding _sectionDef )
  {
    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() );
View Full Code Here


        final SheetBuilder sheetBuilder = spreadsheetBuilder.beginSheet( xlsSheet.getName() );
        loadRows( xlsSheet, sheetBuilder );
        sheetBuilder.endSheet();
      }

      final BaseSpreadsheet workbook = spreadsheetBuilder.getSpreadsheet();
      loadNames( xlsWorkbook, workbook );
      return workbook;
    }
    catch (jxl.read.biff.BiffException e) {
      throw new SpreadsheetException.LoadError( "Error parsing " + _originalFileName, e );
View Full Code Here

  public void save() throws IOException, SpreadsheetException
  {
    this.template = (null == this.templateInputStream) ? null : loadTemplate( this.templateInputStream );
    this.templateSheet = (null == this.template) ? null : this.template.getSheet( 0 );

    final BaseSpreadsheet wb = (BaseSpreadsheet) this.model;
    final WritableWorkbook xwb = createWorkbook();
    try {
      saveWorkbook( wb, xwb );
      xwb.write();
      xwb.close();
View Full Code Here

TOP

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

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.