public class RowHandle extends Object
get a handle to the Cells in a row
set the default formatting for a Row
WorkBookHandle,
WorkSheetHandle,
FormulaHandle| Modifier and Type | Field and Description |
|---|---|
Row |
myRow |
static int |
ROW_HEIGHT_DIVISOR |
| Modifier | Constructor and Description |
|---|---|
protected |
RowHandle(Row c,
WorkSheetHandle ws) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVerticalMergeRange()
Determines if the row passes through
a vertical merge range
|
CellHandle[] |
getCells()
Returns the array of Cells in this Row
|
CellHandle[] |
getCells(boolean cached)
Returns the array of Cells in this Row
|
int[] |
getColDimensions()
return the min/max columns defined for this row
|
FormatHandle |
getFormatHandle()
Gets the FormatHandle for this Row.
|
int |
getFormatId()
gets the current default row format id.
|
boolean |
getHasAnyBottomBorder()
Additional space below the row.
|
boolean |
getHasAnyThickTopBorder()
returns true if there is a thick top or thick or medium bottom border on previoous row
Not useful for public API
|
boolean |
getHasThickBottomBorder()
returns true if there is a Thick Bottom border set on the row
|
boolean |
getHasThickTopBorder()
returns true if there is a Thick Top border set on the row
|
int |
getHeight()
Return the row height of an existing row.
|
static int |
getHeight(Boundsheet sheet,
int row)
Return the row height of an existing row.
|
int |
getHeightInChars()
returns the row height in Excel units, which depends upon the default font
in Arial 10 pt, standard row height is 12.75 points |
String |
getJSON()
Get the JSON object for this row.
|
org.json.JSONObject |
getJSON(int maxcols) |
int |
getOutlineLevel()
Returns the Outline level (depth) of the row
|
int |
getRowNumber()
Returns the row number of this RowHandle
|
WorkBook |
getWorkBook() |
WorkSheetHandle |
getWorkSheetHandle() |
boolean |
isAlteredHeight()
true if row height has been altered from default
i.e.
|
boolean |
isCollapsed()
Returns whether the row is collapsed
|
boolean |
isHidden()
Returns whether the row is hidden
|
void |
setBackgroundColor(Color colr) |
void |
setCollapsed(boolean b)
Set whether the row is collapsed.
|
void |
setFormatId(int i)
sets the default format id for the Row's Cells
|
void |
setHasThickBottomBorder(boolean hasBorder)
sets this row to have a thick bottom border
|
void |
setHasThickTopBorder(boolean hasBorder)
sets this row to have a thick top border
|
void |
setHeight(int newHeight)
Sets the row height in twips (1/20th of a point)
|
void |
setHeightInChars(int newHeight)
sets the row height in Excel units.
|
void |
setHidden(boolean b)
Set whether the row is hidden
|
void |
setOutlineLevel(int x)
Set the Outline level (depth) of the row
|
void |
setRowHeightAutoFit()
sets the row height to auto fit
When the row height is set manually, autofit is automatically turned off |
String |
toString()
Returns the String representation of this Row
|
public static int ROW_HEIGHT_DIVISOR
public Row myRow
protected RowHandle(Row c, WorkSheetHandle ws)
public int getHeight()
public int getHeightInChars()
public static int getHeight(Boundsheet sheet, int row)
sheet - row - public void setHeightInChars(int newHeight)
double - i - row height value in Excel unitspublic void setRowHeightAutoFit()
public void setHeight(int newHeight)
newHeight - public boolean containsVerticalMergeRange()
public void setFormatId(int i)
int - Format Id for all Cells in Rowpublic FormatHandle getFormatHandle()
public int getFormatId()
public CellHandle[] getCells(boolean cached)
cache - cellhandles flagpublic CellHandle[] getCells()
public String getJSON()
public org.json.JSONObject getJSON(int maxcols)
public String toString()
public int getRowNumber()
public void setCollapsed(boolean b)
b - public void setHidden(boolean b)
b - public void setOutlineLevel(int x)
x - public int getOutlineLevel()
public boolean isCollapsed()
public boolean isHidden()
public boolean isAlteredHeight()
public void setBackgroundColor(Color colr)
public boolean getHasThickTopBorder()
public boolean getHasThickBottomBorder()
public boolean getHasAnyThickTopBorder()
public boolean getHasAnyBottomBorder()
public void setHasThickTopBorder(boolean hasBorder)
public void setHasThickBottomBorder(boolean hasBorder)
public int[] getColDimensions()
public WorkBook getWorkBook()
public WorkSheetHandle getWorkSheetHandle()
Copyright © 2002–2019 Starter Inc.. All rights reserved.