Examples of MissingCellDummyRecord


Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

   
    // If there's a gap in the cells, then fire
    //  the dummy cell records
    if(lastCellColumn != thisColumn-1) {
      for(int i=lastCellColumn+1; i<thisColumn; i++) {
        childListener.processRecord(new MissingCellDummyRecord(thisRow, i));
      }
    }
   
    // Next part of expanded record handling
    if(expandedRecords != null && expandedRecords.length > 0) {
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

                break;
        }

        // 空值的操作
        if (record instanceof MissingCellDummyRecord) {
            MissingCellDummyRecord mc = (MissingCellDummyRecord) record;
            currentRow = thisRow = mc.getRow();
            thisColumn = mc.getColumn();
            rowList.add(index, " ");
        }

        // 打印输出
        if (thisStr != null) {
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

      lastColumnNumber = -1;
    }

    // Handle missing column
    if(record instanceof MissingCellDummyRecord) {
      MissingCellDummyRecord mc = (MissingCellDummyRecord)record;
      thisRow = mc.getRow();
      thisColumn = mc.getColumn();
      thisStr = "";
    }

    // If we got something to print out, do so
    if(thisStr != null) {
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

    assertTrue(r[cell00+55] instanceof MissingCellDummyRecord);
    assertFalse(r[cell00+56] instanceof MissingCellDummyRecord);
    assertFalse(r[cell00+57] instanceof MissingCellDummyRecord);
   
    // Check some numbers
    MissingCellDummyRecord mc;
   
    mc = (MissingCellDummyRecord)r[cell00+3];
    assertEquals(1, mc.getRow());
    assertEquals(1, mc.getColumn());
    mc = (MissingCellDummyRecord)r[cell00+4];
    assertEquals(1, mc.getRow());
    assertEquals(2, mc.getColumn());
   
    mc = (MissingCellDummyRecord)r[cell00+8];
    assertEquals(2, mc.getRow());
    assertEquals(1, mc.getColumn());
    mc = (MissingCellDummyRecord)r[cell00+9];
    assertEquals(2, mc.getRow());
    assertEquals(2, mc.getColumn());
   
    mc = (MissingCellDummyRecord)r[cell00+55];
    assertEquals(22, mc.getRow());
    assertEquals(10, mc.getColumn());
  }
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

      if(record instanceof MissingRowDummyRecord) {
        MissingRowDummyRecord mr = (MissingRowDummyRecord)record;
        log("Got dummy row " + mr.getRowNumber());
      }
      if(record instanceof MissingCellDummyRecord) {
        MissingCellDummyRecord mc = (MissingCellDummyRecord)record;
        log("Got dummy cell " + mc.getRow() + " " + mc.getColumn());
      }
      if(record instanceof LastCellOfRowDummyRecord) {
        LastCellOfRowDummyRecord lc = (LastCellOfRowDummyRecord)record;
        log("Got end-of row, row was " + lc.getRow() + ", last column was " + lc.getLastColumnNumber());
      }
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

    // If there's a gap in the cells, then fire
    //  the dummy cell records
    if(lastCellColumn != thisColumn-1) {
      for(int i=lastCellColumn+1; i<thisColumn; i++) {
        childListener.processRecord(new MissingCellDummyRecord(thisRow, i));
      }
    }

    // Next part of expanded record handling
    if(expandedRecords != null && expandedRecords.length > 0) {
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

    }
   
    // Do we need to fire dummy cell records?
    if(lastSeenColumn != (thisColumn-1)) {
      for(int i=lastSeenColumn+1; i<thisColumn; i++) {
        MissingCellDummyRecord r = new MissingCellDummyRecord(thisRow, i);
        childListener.processRecord(r);
      }
    }
   
    // Update cell and row counts if doing cells
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

    assertTrue(r[cell00+55] instanceof MissingCellDummyRecord);
    assertFalse(r[cell00+56] instanceof MissingCellDummyRecord);
    assertFalse(r[cell00+57] instanceof MissingCellDummyRecord);
   
    // Check some numbers
    MissingCellDummyRecord mc;
   
    mc = (MissingCellDummyRecord)r[cell00+3];
    assertEquals(1, mc.getRow());
    assertEquals(1, mc.getColumn());
    mc = (MissingCellDummyRecord)r[cell00+4];
    assertEquals(1, mc.getRow());
    assertEquals(2, mc.getColumn());
   
    mc = (MissingCellDummyRecord)r[cell00+8];
    assertEquals(2, mc.getRow());
    assertEquals(1, mc.getColumn());
    mc = (MissingCellDummyRecord)r[cell00+9];
    assertEquals(2, mc.getRow());
    assertEquals(2, mc.getColumn());
   
    mc = (MissingCellDummyRecord)r[cell00+55];
    assertEquals(22, mc.getRow());
    assertEquals(10, mc.getColumn());
  }
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

      if(record instanceof MissingRowDummyRecord) {
        MissingRowDummyRecord mr = (MissingRowDummyRecord)record;
        log("Got dummy row " + mr.getRowNumber());
      }
      if(record instanceof MissingCellDummyRecord) {
        MissingCellDummyRecord mc = (MissingCellDummyRecord)record;
        log("Got dummy cell " + mc.getRow() + " " + mc.getColumn());
      }
      if(record instanceof LastCellOfRowDummyRecord) {
        LastCellOfRowDummyRecord lc = (LastCellOfRowDummyRecord)record;
        log("Got end-of row, row was " + lc.getRow() + ", last column was " + lc.getLastColumnNumber());
      }
View Full Code Here

Examples of org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord

      lastColumnNumber = -1;
    }
   
    // Handle missing column
    if(record instanceof MissingCellDummyRecord) {
      MissingCellDummyRecord mc = (MissingCellDummyRecord)record;
      thisRow = mc.getRow();
      thisColumn = mc.getColumn();
      thisStr = "";
    }
   
    // If we got something to print out, do so
    if(thisStr != null) {
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.