Class BasicIDARERow
- java.lang.Object
-
- idare.imagenode.Interfaces.DataSetReaders.WorkBook.BasicImplementation.BasicIDARERow
-
-
Field Summary
-
Fields inherited from interface idare.imagenode.Interfaces.DataSetReaders.WorkBook.IDARERow
CREATE_NULL_AS_BLANK, RETURN_BLANK_AS_NULL, RETURN_NULL_AND_BLANK
-
-
Constructor Summary
Constructors Constructor Description BasicIDARERow(BasicIDARESheet parent)
Simple constructor providing the parent sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<IDARECell>
cellIterator()
Obtain an Iterator over theIDARECell
s of this row.BasicIDARECell
createCell()
Create a Blank Cell at the end of this row.BasicIDARECell
createCell(int pos)
Create a blank cell at a specified position, overwriting any cell existing at the provided position This is the same as the Call createCell(CellType.BLANK,pos)BasicIDARECell
createCell(IDARECell.CellType type)
Create a Cell with a specified type at the end of this row This is the same as a call to createCell(type,getLastCellNum()-1)BasicIDARECell
createCell(IDARECell.CellType CellType, int pos)
Create a Cell of the specified type at the specified position.void
createNullCell()
Create a Null cell at the end of this row.IDARECell
getCell(int arg0)
Get theIDARECell
in the specified column from this Row.IDARECell
getCell(int arg0, int arg1)
Get theIDARECell
in the specified column from this Row, using the specified policy to handle non existing or blank cells.int
getCellIndex(BasicIDARECell cell)
Get the position/index of a given Cellshort
getLastCellNum()
Gets the index of the last cell contained in this row PLUS ONE.!int
getRowNum()
Get the position of this row in the enclosingIDARESheet
;Iterator<IDARECell>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
BasicIDARERow
public BasicIDARERow(BasicIDARESheet parent)
Simple constructor providing the parent sheet.- Parameters:
parent
- TheBasicIDARESheet
containing this Row.
-
-
Method Detail
-
cellIterator
public Iterator<IDARECell> cellIterator()
Description copied from interface:IDARERow
Obtain an Iterator over theIDARECell
s of this row.- Specified by:
cellIterator
in interfaceIDARERow
- Returns:
- the iterator starting with the first cell.
-
getCell
public IDARECell getCell(int arg0)
Description copied from interface:IDARERow
Get theIDARECell
in the specified column from this Row. This is the same as a call to getCell(arg0,IDARERow.RETURN_NULL_AND_BLANK)
-
getCell
public IDARECell getCell(int arg0, int arg1)
Description copied from interface:IDARERow
Get theIDARECell
in the specified column from this Row, using the specified policy to handle non existing or blank cells.
-
getLastCellNum
public short getLastCellNum()
Description copied from interface:IDARERow
Gets the index of the last cell contained in this row PLUS ONE.!- Specified by:
getLastCellNum
in interfaceIDARERow
- Returns:
- the last index of a non null cell in this row
-
getRowNum
public int getRowNum()
Description copied from interface:IDARERow
Get the position of this row in the enclosingIDARESheet
;- Specified by:
getRowNum
in interfaceIDARERow
- Returns:
- the position of this row in the enclosing
IDARESheet
-
createNullCell
public void createNullCell()
Create a Null cell at the end of this row.
-
createCell
public BasicIDARECell createCell()
Create a Blank Cell at the end of this row. This is the same as createCell(getLastCellNum()-1)- Returns:
- the created cell.
-
createCell
public BasicIDARECell createCell(IDARECell.CellType type)
Create a Cell with a specified type at the end of this row This is the same as a call to createCell(type,getLastCellNum()-1)- Parameters:
type
- the type of the created cell- Returns:
- the created cell
-
createCell
public BasicIDARECell createCell(int pos)
Create a blank cell at a specified position, overwriting any cell existing at the provided position This is the same as the Call createCell(CellType.BLANK,pos)- Parameters:
pos
- the 0-based position at which to place the cell.- Returns:
- the created cell
-
createCell
public BasicIDARECell createCell(IDARECell.CellType CellType, int pos)
Create a Cell of the specified type at the specified position. This extends the row accordingly.- Parameters:
CellType
- TheIDARECell.CellType
of the created cellpos
- the 0-based position of the cell- Returns:
- the created
BasicIDARECell
-
getCellIndex
public int getCellIndex(BasicIDARECell cell)
Get the position/index of a given Cell- Parameters:
cell
- the cell for which the index is requested- Returns:
- the 0-based index of the cell.
-
-