public class CellRefRange extends CellRef
CellRefRange
is a CellRef
, representing a range.
The inherited attributes represent the upper-left corner of a block of
cells. An additional internal CellRef
represents the bottom-
right corner of the block of cells.DEF_DEFAULT_VALUE, DEFAULT_VALUE_IND
Constructor | Description |
---|---|
CellRefRange(int pRow,
int pCol) |
|
CellRefRange(int pRow,
int pCol,
boolean pAbsRow,
boolean pAbsCol) |
|
CellRefRange(int pRow,
short pCol) |
|
CellRefRange(java.lang.String cellRef) |
|
CellRefRange(java.lang.String pSheetName,
int pRow,
int pCol,
boolean pAbsRow,
boolean pAbsCol) |
|
CellRefRange(org.apache.poi.ss.usermodel.Cell cell) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
Checks whether this cell reference range is equal to another object.
|
java.lang.String |
formatAsString() |
If there is a range end
CellRef , then append a colon ":"
character followed by the range end formatted string. |
CellRef |
getRangeEndCellRef() |
Returns the end of the cell range.
|
void |
setRangeEndCellRef(CellRef rangeEnd) |
Sets the end of the cell range with another
CellRef . |
compareTo, formatAsStringWithDef, getDefaultValue, setDefaultValue
cellReferenceIsWithinRange, classifyCellReference, convertColStringToIndex, convertNumToColString, getCellRefParts, getCol, getRow, getSheetName, hashCode, isColAbsolute, isColumnWithnRange, isPartAbsolute, isRowAbsolute, isRowWithnRange, toString
public CellRefRange(java.lang.String cellRef)
public CellRefRange(int pRow, int pCol)
public CellRefRange(int pRow, short pCol)
public CellRefRange(org.apache.poi.ss.usermodel.Cell cell)
public CellRefRange(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol)
public CellRefRange(java.lang.String pSheetName, int pRow, int pCol, boolean pAbsRow, boolean pAbsCol)
public void setRangeEndCellRef(CellRef rangeEnd)
CellRef
. Copies
the given CellRef
so it can set its own internal copy's
sheet name to null
.rangeEnd
- The CellRef
indicating the end of the range
of cells.public CellRef getRangeEndCellRef()
CellRef
.public boolean equals(java.lang.Object o)
CellRefRange
, the superclass
method equals
returns true
, and either both
have no range end CellRefs
, or both range end
CellRefs
compare equal.
CellRef
but not a
CellRefRange
, the superclass method equals
returns true
, and this object does not have a range end
CellRef
.
public java.lang.String formatAsString()
CellRef
, then append a colon ":"
character followed by the range end formatted string.formatAsString
in class org.apache.poi.ss.util.CellReference
Copyright © 2012–2018 Jett Team. All rights reserved.