Examples of SectionModel


Examples of com.apps.ubc.cc.model.SectionModel

      } else if (type.equals(SECTION_TYPE)) {
        String dID = req.getParameter("did");
        String cID = req.getParameter("cid");
        String sID = req.getParameter("sid");
        SectionModel sm = getSectionModel(dID, cID, sID);
       
        HttpSession s = req.getSession();
        s.setAttribute("section", sm);
        try {
          req.getRequestDispatcher("/details.jsp").forward(req, resp);
View Full Code Here

Examples of com.apps.ubc.cc.model.SectionModel

    String cdf = "No";
    if(sio.isCdf())
      cdf = "Yes";
    String end = sio.getEnd();
    String location = sio.getLocation();
    SectionModel sm = new SectionModel( dept,  course,  section,
         activity,  term,  day,  location,
         start,  end,  instructor,  building,
         room,  cdf,  drop,  withdraw,
         title,  lat,  lng);
    return sm;
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.SectionModel

    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() );
    }
    return new SectionModelCompiler( this.compiler, this, _sectionDef, model );
  }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.SectionModel


  public void stepInto( SectionBinding _sectionDef )
  {
    SectionModelCompiler sectionCompiler = this.targetSectionCompiler.getOrCreateSectionCompiler( _sectionDef );
    SectionModel sectionModel = sectionCompiler.getSectionModel();
    ExpressionNode step = new ExpressionNodeForSubSectionModel( sectionModel );
    add( step );
    this.targetSectionCompiler = sectionCompiler;
  }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.SectionModel

  }


  public void stepOut()
  {
    SectionModel parentModel = this.targetSectionCompiler.getSectionModel().getSection();
    assert null != parentModel;
    SectionModelCompiler parentCompiler = this.targetSectionCompiler.getSection();
    ExpressionNode step = new ExpressionNodeForParentSectionModel( parentModel );
    add( step );
    this.targetSectionCompiler = parentCompiler;
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.SectionModel

  {
    final Object cellSource = _cell.getSource();
    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 );
      this.listener.constantCellCalculated( event );
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.SectionModel

        //this.sectionInfo = new SectionInfoImpl(...);
        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
Copyright © 2018 www.massapi.com. 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.