public abstract class CellRangeAddressBase
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
CellRangeAddressBase(int firstRow,
int lastRow,
int firstCol,
int lastCol) |
Modifier and Type | Method and Description |
---|---|
int |
getFirstColumn() |
int |
getFirstRow() |
int |
getLastColumn() |
int |
getLastRow() |
int |
getNumberOfCells() |
boolean |
isFullColumnRange() |
boolean |
isFullRowRange() |
boolean |
isInRange(int rowInd,
int colInd) |
boolean |
isInRange(int rngRow,
int rngCol,
int rngLastRow,
int rngLastCol) |
void |
setFirstColumn(int firstCol) |
void |
setFirstRow(int firstRow) |
void |
setLastColumn(int lastCol) |
void |
setLastRow(int lastRow) |
java.lang.String |
toString() |
void |
validate(SpreadsheetVersion ssVersion)
Validate the range limits against the supplied version of Excel
|
protected CellRangeAddressBase(int firstRow, int lastRow, int firstCol, int lastCol)
public void validate(SpreadsheetVersion ssVersion)
ssVersion
- the version of Excel to validate againstjava.lang.IllegalArgumentException
- if the range limits are outside of the allowed rangepublic final boolean isFullColumnRange()
public final boolean isFullRowRange()
public final int getFirstColumn()
public final int getFirstRow()
public final int getLastColumn()
public final int getLastRow()
public boolean isInRange(int rowInd, int colInd)
public final void setFirstColumn(int firstCol)
firstCol
- column number for the upper left hand cornerpublic final void setFirstRow(int firstRow)
firstRow
- row number for the upper left hand cornerpublic final void setLastColumn(int lastCol)
lastCol
- column number for the lower right hand cornerpublic final void setLastRow(int lastRow)
lastRow
- row number for the lower right hand cornerpublic int getNumberOfCells()
public final java.lang.String toString()
toString
in class java.lang.Object
public boolean isInRange(int rngRow, int rngCol, int rngLastRow, int rngLastCol)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.