Package io.keikai.api
Class Ranges
java.lang.Object
io.keikai.api.Ranges
The facade class provides you multiple ways to get a
Range.- Since:
- 3.0.0
- Author:
- dennis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAreaRefString(int tRow, int lCol, int bRow, int rCol) Gets area reference expressionstatic StringgetAreaRefString(Sheet sheet, int tRow, int lCol, int bRow, int rCol) Gets area reference expressionstatic StringgetAreaRefString(Sheet sheet, AreaRef area) Gets area reference expressionstatic StringgetCellRefString(int row, int col) Gets cell reference expressionstatic StringgetCellRefString(Sheet sheet, int row, int col) Gets cell reference expression stringstatic StringgetColumnRefString(int column) Get column reference stringReturns a list of the defined names belong to the specifiedSheet;static StringgetRowRefString(int row) Get row referencestatic Rangestatic Rangestatic Rangestatic RangeReturns the associatedXRangeof the specifiedXSheetand area.static Rangestatic Rangerange(Sheet sheet, CellRegion cellRegion) static Rangestatic RangerangeByName(Sheet sheet, String name) Returns the associatedRangeof the specified name of a NamedRange (e.g.
-
Constructor Details
-
Ranges
public Ranges()
-
-
Method Details
-
range
-
range
-
rangeByName
Returns the associatedRangeof the specified name of a NamedRange (e.g. "MyRange"); -
getNames
Returns a list of the defined names belong to the specifiedSheet;- Parameters:
sheet- theSheetthe defined names will refer to.- Returns:
- a list of the defined names of the specified sheet
- Since:
- 5.1.0
-
range
Returns the associatedXRangeof the specifiedXSheetand area.- Parameters:
sheet- theSheetthe Range will refer to.tRow- top row index of the area the Range will refer to.lCol- left column index of the area the Range will refer to.bRow- bottom row index of the area the Range will refer to.rCol- right column index fo the area the Range will refer to.- Returns:
- the associated
Rangeof the specifiedSheetand area.
-
range
-
range
- Parameters:
sheet- theSheetthe Range will refer to.selection- the selection of spreadsheet
-
range
- Parameters:
sheet- theSheetthe Range will refer to.cellRegion- the cell region- Since:
- 6.2.0
-
getCellRefString
Gets cell reference expression- Parameters:
row- 0-based row indexcol- 0-based column index- Returns:
- the cell reference string (e.g. A1)
-
getCellRefString
Gets cell reference expression string- Parameters:
sheet- sheetrow- 0-based row indexcol- 0-based column index- Returns:
- the cell reference string (e.g. Sheet1!A1)
-
getAreaRefString
Gets area reference expression- Parameters:
tRow- top rowlCol- left columnbRow- bottom/last rowrCol- right/last column- Returns:
- the area reference string (e.g. A1:B2)
-
getAreaRefString
Gets area reference expression- Parameters:
sheet- sheettRow- top rowlCol- left columnbRow- bottom rowrCol- right column- Returns:
- the area reference string (e.g. Sheet1!A1:B2)
-
getAreaRefString
Gets area reference expression- Parameters:
sheet- sheetarea- area- Returns:
- the area reference string (e.g. Sheet1!A1:B2)
-
getColumnRefString
Get column reference string- Parameters:
column- 0-based column index- Returns:
- the column reference string (e.g A, AB)
-
getRowRefString
Get row reference- Parameters:
row- 0-based row index- Returns:
- the column reference string (e.g 1, 12)
-
range
-