A class to get references to cells for use in other functions
| Constructor and description |
|---|
CellFinder
(org.apache.poi.xssf.usermodel.XSSFCell cell, java.util.Map<java.lang.Object, java.lang.Integer> columnIndexes) |
| Type | Name and description |
|---|---|
java.lang.String |
exactCell(int columnIndex, int rowIndex)Retrieves an exact cell reference |
java.lang.String |
exactCell(java.lang.String columnName, int rowIndex)Retrieves an exact cell reference based on a previously defined column definition (created by CreatesCells.column and row index |
java.lang.String |
exactCell(java.lang.String columnName)Retrieves an exact cell reference based on a previously defined column definition (created by CreatesCells.column |
java.lang.String |
getColumn()@return The current column (A..Z) |
int |
getRow()@return The current row number (1 based) |
java.lang.String |
getSheetName()@return The current sheet name |
java.lang.String |
relativeCell(int columnIndex, int rowIndex)Retrieves a cell relative to the current cell. |
java.lang.String |
relativeCell(int columnIndex)Retrieves a cell relative to the current cell. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Retrieves an exact cell reference
columnIndex - The column indexrowIndex - The row indexRetrieves an exact cell reference based on a previously defined column definition (created by CreatesCells.column and row index
columnName - The column identifierrowIndex - The row indexRetrieves an exact cell reference based on a previously defined column definition (created by CreatesCells.column
columnName - The column identifier
Retrieves a cell relative to the current cell. Use negative values to reference rows and columns before the current cell and positive values to reference rows and columns after the current cell.
columnIndex - The column indexrowIndex - The row indexRetrieves a cell relative to the current cell. Use negative values to reference previous columns and positive values to reference columns after the current cell.
columnIndex - The column index