|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ss.util.AreaReference
public class AreaReference
Constructor Summary | |
---|---|
AreaReference(CellReference topLeft,
CellReference botRight)
Deprecated. use AreaReference(CellReference, CellReference, SpreadsheetVersion) instead |
|
AreaReference(CellReference topLeft,
CellReference botRight,
SpreadsheetVersion version)
Creates an area ref from a pair of Cell References. |
|
AreaReference(java.lang.String reference,
SpreadsheetVersion version)
Create an area ref from a string representation. |
Method Summary | |
---|---|
java.lang.String |
formatAsString()
Returns a text representation of this area reference. |
static AreaReference[] |
generateContiguous(SpreadsheetVersion version,
java.lang.String reference)
Takes a non-contiguous area reference, and returns an array of contiguous area references |
static AreaReference[] |
generateContiguous(java.lang.String reference)
Deprecated. use generateContiguous(SpreadsheetVersion, String) instead |
CellReference[] |
getAllReferencedCells()
Returns a reference to every cell covered by this area |
CellReference |
getFirstCell()
|
CellReference |
getLastCell()
Note - if this area reference refers to a single cell, the return value of this method will be identical to that of getFirstCell() |
static AreaReference |
getWholeColumn(SpreadsheetVersion version,
java.lang.String start,
java.lang.String end)
|
static AreaReference |
getWholeRow(SpreadsheetVersion version,
java.lang.String start,
java.lang.String end)
|
static boolean |
isContiguous(java.lang.String reference)
Is the reference for a contiguous (i.e. |
boolean |
isSingleCell()
|
boolean |
isWholeColumnReference()
|
static boolean |
isWholeColumnReference(SpreadsheetVersion version,
CellReference topLeft,
CellReference botRight)
Is the reference for a whole-column reference, such as C:C or D:G ? |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AreaReference(java.lang.String reference, SpreadsheetVersion version)
@Deprecated @Removal(version="3.19") public AreaReference(CellReference topLeft, CellReference botRight)
AreaReference(CellReference, CellReference, SpreadsheetVersion)
instead
public AreaReference(CellReference topLeft, CellReference botRight, SpreadsheetVersion version)
Method Detail |
---|
public static boolean isContiguous(java.lang.String reference)
generateContiguous(SpreadsheetVersion, String)
)
public static AreaReference getWholeRow(SpreadsheetVersion version, java.lang.String start, java.lang.String end)
public static AreaReference getWholeColumn(SpreadsheetVersion version, java.lang.String start, java.lang.String end)
public static boolean isWholeColumnReference(SpreadsheetVersion version, CellReference topLeft, CellReference botRight)
public boolean isWholeColumnReference()
@Deprecated @Removal(version="3.19") public static AreaReference[] generateContiguous(java.lang.String reference)
generateContiguous(SpreadsheetVersion, String)
instead
public static AreaReference[] generateContiguous(SpreadsheetVersion version, java.lang.String reference)
public boolean isSingleCell()
false
if this area reference involves more than one cellpublic CellReference getFirstCell()
public CellReference getLastCell()
public CellReference[] getAllReferencedCells()
public java.lang.String formatAsString()
Example return values:
Result | Comment |
---|---|
A1:A1 | Single cell area reference without sheet |
A1:$C$1 | Multi-cell area reference without sheet |
Sheet1!A$1:B4 | Standard sheet name |
'O''Brien''s Sales'!B5:C6' | Sheet name with special characters |
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |