com.csam.dif
Class DIFRow
- java.lang.Object
-
- com.csam.dif.DIFRow
-
public final class DIFRow extends java.lang.ObjectThis class represents a row within a spreadsheet which contains cells of data. Most of the methods here are centered around manipulating this cell relationship.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.Iterator<DIFCell>cellIterator()DIFCellcreateCell(int cellNumber)DIFCellcreateCell(int cellNumber, DIFCell.CellType cellType)voiddeleteCell(int cellNumber)DIFCellgetCell(int cellNumber)intgetFirstCellNumber()intgetLastCellNumber()intgetPhysicalNumberOfCells()intgetRowNumber()Returns the physical row number within the spreadsheet of this row.booleanhasCell(int cellNumber)
-
-
-
Method Detail
-
getRowNumber
public int getRowNumber()
Returns the physical row number within the spreadsheet of this row. A "physical" number is defined as the visual position of the row as opposed to a "logical" position. What this means in real-terms is that in any given sheet, several rows may be "empty". Thus, these rows may not be represented in the sheet model. If the first row within a sheet which contains cells is located on the third row of the spreadsheet, then the "physical number" is 2 (the numbers are zero-based, meaning the first row is 0, not 1).- Returns:
introw number
-
createCell
public DIFCell createCell(int cellNumber, DIFCell.CellType cellType) throws DIFCellExistsException
- Parameters:
cellNumber-cellType-- Returns:
- Throws:
DIFCellExistsException
-
createCell
public DIFCell createCell(int cellNumber) throws DIFCellExistsException
- Parameters:
cellNumber-- Returns:
- Throws:
DIFCellExistsException
-
hasCell
public boolean hasCell(int cellNumber)
- Parameters:
cellNumber-- Returns:
-
cellIterator
public java.util.Iterator<DIFCell> cellIterator()
- Returns:
-
getPhysicalNumberOfCells
public int getPhysicalNumberOfCells()
- Returns:
-
getFirstCellNumber
public int getFirstCellNumber()
- Returns:
-
getLastCellNumber
public int getLastCellNumber()
- Returns:
-
getCell
public DIFCell getCell(int cellNumber)
- Parameters:
cellNumber-- Returns:
-
deleteCell
public void deleteCell(int cellNumber)
- Parameters:
cellNumber-
-
-
DMelt 3.0 © DataMelt by jWork.ORG