Examples of RowRecord


Examples of jxl.read.biff.RowRecord

     */
    /* row height */
    final RowRecord[] rinfos = jsheet.getRowProperties();
    final int rowsz = rinfos.length;
    for(int j =0; j < rowsz; j++){
      final RowRecord rinfo = rinfos[j];
      if (!ZssWorkbookParser.isDefaultHeight(rinfo)) {
        final int rowHeight = rinfo.getRowHeight()/20;
        final int ri = rinfo.getRowNumber();
        zkSheet.setRowHeight(ri, ExcelFormatHelper.ptToPx(rowHeight));
      }
    }
    /* column width */
    final ColumnInfoRecord[] cinfos = jsheet.getColumnInfos();
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

            {
                newSheet( (String) _sheetNames.get( _currentSheetNumber++ ) );
            }
            break;
        case RowRecord.sid :
            RowRecord rowRec = (RowRecord) record;
            _currentSheetListener.newRow( rowRec.getRowNumber( ),
                                          rowRec.getLastCol( ) - rowRec.getFirstCol( ) + 1 );
            break;
        case SSTRecord.sid :
            _sstRec = (SSTRecord) record;
            break;
        case LabelSSTRecord.sid :
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

     * @param sheet low-level Sheet object that contains this Row
     * @param rowNum the row number of this row (0 based)
     * @see org.apache.poi.hssf.usermodel.HSSFSheet#createRow(int)
     */
    HSSFRow(HSSFWorkbook book, HSSFSheet sheet, int rowNum) {
        this(book, sheet, new RowRecord(rowNum));
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

            // Reset the row and column counts - new workbook / worksheet
            resetCounts();
          }
          break;
        case RowRecord.sid:
          RowRecord rowrec = (RowRecord) record;
          //System.out.println("Row " + rowrec.getRowNumber() + " found, first column at "
          //        + rowrec.getFirstCol() + " last column at " + rowrec.getLastCol());

          // If there's a jump in rows, fire off missing row records
          if (lastRowRow + 1 < rowrec.getRowNumber()) {
            for (int i = (lastRowRow + 1); i < rowrec.getRowNumber(); i++) {
              MissingRowDummyRecord dr = new MissingRowDummyRecord(i);
              childListener.processRecord(dr);
            }
          }

          // Record this as the last row we saw
          lastRowRow = rowrec.getRowNumber();
          break;

        case SharedFormulaRecord.sid:
          // SharedFormulaRecord occurs after the first FormulaRecord of the cell range.
          // There are probably (but not always) more cell records after this
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

    public RowRecord getRow(int rownum)
    {

        // Integer integer = new Integer(rownum);
        RowRecord row = new RowRecord();

        row.setRowNumber(( short ) rownum);
        return ( RowRecord ) records.get(row);
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

      //For a performance improvement, it would be better to return an instance of
      //an iterator and use that instance throughout, rather than recreating one and
      //having to move it to the right position.
      int startIndex = block * DBCellRecord.BLOCK_SIZE;
      Iterator rowIter = records.values().iterator();
      RowRecord row = null;
      //Position the iterator at the start of the block
      for (int i=0; i<=startIndex;i++) {
        row = (RowRecord)rowIter.next();
      }

      return row.getRowNumber();
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

      int endIndex = ((block + 1)*DBCellRecord.BLOCK_SIZE)-1;
      if (endIndex >= records.size())
        endIndex = records.size()-1;

      Iterator rowIter = records.values().iterator();
      RowRecord row = null;
      for (int i=0; i<=endIndex;i++) {
        row = (RowRecord)rowIter.next();
      }
      return row.getRowNumber();
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

      //having to move it to the right position.
      int i=0;
      for (;i<startIndex;i++)
        rowIterator.next();
      while(rowIterator.hasNext() && (i++ < endIndex)) {
        RowRecord row = (RowRecord)rowIterator.next();
        pos += row.serialize(pos, data);
      }
      return pos - offset;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord

    {
        RowRecordsAggregate rec = new RowRecordsAggregate();
        for ( Iterator rowIter = getIterator(); rowIter.hasNext(); )
        {
            //return the cloned Row Record & insert
            RowRecord row = (RowRecord) ( (RowRecord) rowIter.next() ).clone();
            rec.insertRow( row );
        }
        return rec;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.RowRecord


    public int findStartOfRowOutlineGroup(int row)
    {
        // Find the start of the group.
        RowRecord rowRecord = this.getRow( row );
        int level = rowRecord.getOutlineLevel();
        int currentRow = row;
        while (this.getRow( currentRow ) != null)
        {
            rowRecord = this.getRow( currentRow );
            if (rowRecord.getOutlineLevel() < level)
                return currentRow + 1;
            currentRow--;
        }

        return currentRow + 1;
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.