org.apache.poi.hssf.record.aggregates
Class RowRecordsAggregate
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.aggregates.RecordAggregate
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate
public final class RowRecordsAggregate
- extends RecordAggregate
- Author:
- andy, Jason Height (jheight at chariot dot net dot au)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowRecordsAggregate
public RowRecordsAggregate()
- Creates a new instance of ValueRecordsAggregate
insertRow
public void insertRow(RowRecord row)
removeRow
public void removeRow(RowRecord row)
getRow
public RowRecord getRow(int rowIndex)
getPhysicalNumberOfRows
public int getPhysicalNumberOfRows()
getFirstRowNum
public int getFirstRowNum()
getLastRowNum
public int getLastRowNum()
getRowBlockCount
public int getRowBlockCount()
- Returns the number of row blocks.
The row blocks are goupings of rows that contain the DBCell record
after them
getRowCountForBlock
public int getRowCountForBlock(int block)
- Returns the number of physical rows within a block
visitContainedRecords
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
- Specified by:
visitContainedRecords in class RecordAggregate
getIterator
public java.util.Iterator getIterator()
getAllRecordsIterator
public java.util.Iterator getAllRecordsIterator()
findStartOfRowOutlineGroup
public int findStartOfRowOutlineGroup(int row)
findEndOfRowOutlineGroup
public int findEndOfRowOutlineGroup(int row)
writeHidden
public int writeHidden(RowRecord rowRecord,
int row,
boolean hidden)
collapseRow
public void collapseRow(int rowNumber)
createRow
public static RowRecord createRow(int rowNumber)
- Create a row record.
- Parameters:
row - number
- Returns:
- RowRecord created for the passed in row number
- See Also:
RowRecord
isRowGroupCollapsed
public boolean isRowGroupCollapsed(int row)
expandRow
public void expandRow(int rowNumber)
isRowGroupHiddenByParent
public boolean isRowGroupHiddenByParent(int row)
getValueRecords
public CellValueRecordInterface[] getValueRecords()
createIndexRecord
public IndexRecord createIndexRecord(int indexRecordOffset,
int sizeOfInitialSheetRecords)
constructCellValues
public void constructCellValues(int offset,
java.util.List records)
insertCell
public void insertCell(CellValueRecordInterface cvRec)
removeCell
public void removeCell(CellValueRecordInterface cvRec)
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.