|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.usermodel.HSSFSheet
public class HSSFSheet
High level representation of a worksheet.
Field Summary | |
---|---|
protected Workbook |
book
|
static short |
BottomMargin
|
static int |
INITIAL_CAPACITY
Used for compile-time optimization. |
static short |
LeftMargin
|
static byte |
PANE_LOWER_LEFT
|
static byte |
PANE_LOWER_RIGHT
|
static byte |
PANE_UPPER_LEFT
|
static byte |
PANE_UPPER_RIGHT
|
static short |
RightMargin
|
static short |
TopMargin
|
protected HSSFWorkbook |
workbook
|
Constructor Summary | |
---|---|
protected |
HSSFSheet(HSSFWorkbook workbook)
Creates new HSSFSheet - called by HSSFWorkbook to create a sheet from scratch. |
protected |
HSSFSheet(HSSFWorkbook workbook,
Sheet sheet)
Creates an HSSFSheet representing the given Sheet object. |
Method Summary | |
---|---|
int |
addMergedRegion(Region region)
adds a merged region of cells (hence those cells form one) |
void |
addValidationData(HSSFDataValidation obj_validation)
Creates a data validation object |
void |
autoSizeColumn(short column)
Adjusts the column width to fit the contents. |
void |
autoSizeColumn(short column,
boolean useMergedCells)
Adjusts the column width to fit the contents. |
HSSFPatriarch |
createDrawingPatriarch()
Creates the top-level drawing patriarch. |
void |
createFreezePane(int colSplit,
int rowSplit)
Creates a split (freezepane). |
void |
createFreezePane(int colSplit,
int rowSplit,
int leftmostColumn,
int topRow)
Creates a split (freezepane). |
HSSFRow |
createRow(int rownum)
Create a new row within the sheet and return the high level representation |
void |
createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
int activePane)
Creates a split pane. |
void |
dumpDrawingRecords(boolean fat)
Aggregates the drawing records and dumps the escher record hierarchy to the standard output. |
boolean |
getAlternateExpression()
whether alternate expression evaluation is on |
boolean |
getAlternateFormula()
whether alternative formula entry is on |
boolean |
getAutobreaks()
show automatic page breaks or not |
HSSFComment |
getCellComment(int row,
int column)
Returns cell comment for the specified row and column |
short[] |
getColumnBreaks()
Retrieves all the vertical page breaks |
short |
getColumnWidth(short column)
get the width (in units of 1/256th of a character width ) |
short |
getDefaultColumnWidth()
get the default column width for the sheet (if the columns do not define their own width) in characters |
short |
getDefaultRowHeight()
get the default row height for the sheet (if the rows do not define their own height) in twips (1/20 of a point) |
float |
getDefaultRowHeightInPoints()
get the default row height for the sheet (if the rows do not define their own height) in points. |
boolean |
getDialog()
get whether sheet is a dialog sheet or not |
boolean |
getDisplayGuts()
get whether to display the guts or not |
EscherAggregate |
getDrawingEscherAggregate()
Returns the agregate escher records for this sheet, it there is one. |
HSSFPatriarch |
getDrawingPatriarch()
Returns the top-level drawing patriach, if there is one. |
int |
getFirstRowNum()
Gets the first row on the sheet |
boolean |
getFitToPage()
fit to page option is on |
HSSFFooter |
getFooter()
Gets the user model for the document footer. |
boolean |
getForceFormulaRecalculation()
Whether a record must be inserted or not at generation to indicate that formula must be recalculated when workbook is opened. |
HSSFHeader |
getHeader()
Gets the user model for the document header. |
boolean |
getHorizontallyCenter()
Determine whether printed output for this sheet will be horizontally centered. |
int |
getLastRowNum()
Gets the number last row on the sheet. |
short |
getLeftCol()
The left col in the visible view when the sheet is first viewed after opening it in a viewer |
double |
getMargin(short margin)
Gets the size of the margin in inches. |
Region |
getMergedRegionAt(int index)
gets the region at a particular index |
int |
getNumMergedRegions()
returns the number of merged regions |
boolean |
getObjectProtect()
Answer whether object protection is enabled or disabled |
PaneInformation |
getPaneInformation()
Returns the information regarding the currently configured pane (split or freeze). |
short |
getPassword()
|
int |
getPhysicalNumberOfRows()
Returns the number of phsyically defined rows (NOT the number of rows in the sheet) |
HSSFPrintSetup |
getPrintSetup()
Gets the print setup object. |
boolean |
getProtect()
Answer whether protection is enabled or disabled |
HSSFRow |
getRow(int rownum)
Returns the logical row (not physical) 0-based. |
int[] |
getRowBreaks()
Retrieves all the horizontal page breaks |
boolean |
getRowSumsBelow()
get if row summaries appear below detail in the outline |
boolean |
getRowSumsRight()
get if col summaries appear right of the detail in the outline |
boolean |
getScenarioProtect()
Answer whether scenario protection is enabled or disabled |
protected Sheet |
getSheet()
used internally in the API to get the low level Sheet record represented by this Object. |
HSSFSheetConditionalFormatting |
getSheetConditionalFormatting()
|
short |
getTopRow()
The top row in the visible view when the sheet is first viewed after opening it in a viewer |
boolean |
getVerticallyCenter()
Determine whether printed output for this sheet will be vertically centered. |
boolean |
getVerticallyCenter(boolean value)
Deprecated. use getVerticallyCenter() instead |
void |
groupColumn(short fromColumn,
short toColumn)
Create an outline for the provided column range. |
void |
groupRow(int fromRow,
int toRow)
|
protected void |
insertChartRecords(java.util.List records)
|
boolean |
isActive()
|
boolean |
isColumnBroken(short column)
Determines if there is a page break at the indicated column |
boolean |
isColumnHidden(short column)
Get the hidden state for a given column. |
boolean |
isDisplayFormulas()
Returns if formulas are displayed. |
boolean |
isDisplayGridlines()
Returns if gridlines are displayed. |
boolean |
isDisplayRowColHeadings()
Returns if RowColHeadings are displayed. |
boolean |
isGridsPrinted()
get whether gridlines are printed. |
boolean |
isPrintGridlines()
Returns whether gridlines are printed. |
boolean |
isRowBroken(int row)
Determines if there is a page break at the indicated row |
boolean |
isSelected()
Note - this is not the same as whether the sheet is focused (isActive) |
java.util.Iterator |
iterator()
Alias for rowIterator() to allow
foreach loops |
void |
protectSheet(java.lang.String password)
Sets the protection enabled as well as the password |
void |
removeColumnBreak(short column)
Removes a page break at the indicated column |
void |
removeMergedRegion(int index)
removes a merged region of cells (hence letting them free) |
void |
removeRow(org.apache.poi.ss.usermodel.Row row)
Remove a row from this sheet. |
void |
removeRowBreak(int row)
Removes the page break at the indicated row |
java.util.Iterator |
rowIterator()
|
void |
setActive(boolean sel)
Sets whether sheet is selected. |
void |
setAlternativeExpression(boolean b)
whether alternate expression evaluation is on |
void |
setAlternativeFormula(boolean b)
whether alternative formula entry is on |
void |
setAutobreaks(boolean b)
show automatic page breaks or not |
void |
setColumnBreak(short column)
Sets a page break at the indicated column |
void |
setColumnGroupCollapsed(short columnNumber,
boolean collapsed)
Expands or collapses a column group. |
void |
setColumnHidden(short column,
boolean hidden)
Get the visibility state for a given column. |
void |
setColumnWidth(short column,
short width)
set the width (in units of 1/256th of a character width) |
void |
setDefaultColumnStyle(short column,
org.apache.poi.ss.usermodel.CellStyle style)
Sets the default column style for a given column. |
void |
setDefaultColumnWidth(short width)
set the default column width for the sheet (if the columns do not define their own width) in characters |
void |
setDefaultRowHeight(short height)
set the default row height for the sheet (if the rows do not define their own height) in twips (1/20 of a point) |
void |
setDefaultRowHeightInPoints(float height)
set the default row height for the sheet (if the rows do not define their own height) in points |
void |
setDialog(boolean b)
set whether sheet is a dialog sheet or not |
void |
setDisplayFormulas(boolean show)
Sets whether the formulas are shown in a viewer. |
void |
setDisplayGridlines(boolean show)
Sets whether the gridlines are shown in a viewer. |
void |
setDisplayGuts(boolean b)
set whether to display the guts or not |
void |
setDisplayRowColHeadings(boolean show)
Sets whether the RowColHeadings are shown in a viewer. |
void |
setFitToPage(boolean b)
fit to page option is on |
void |
setForceFormulaRecalculation(boolean value)
Whether a record must be inserted or not at generation to indicate that formula must be recalculated when workbook is opened. |
void |
setGridsPrinted(boolean value)
set whether gridlines printed. |
void |
setHorizontallyCenter(boolean value)
determines whether the output is horizontally centered on the page. |
void |
setMargin(short margin,
double size)
Sets the size of the margin in inches. |
void |
setPrintGridlines(boolean newPrintGridlines)
Turns on or off the printing of gridlines. |
void |
setProtect(boolean protect)
Deprecated. use protectSheet(String, boolean, boolean) |
void |
setRowBreak(int row)
Sets a page break at the indicated row |
void |
setRowGroupCollapsed(int row,
boolean collapse)
|
void |
setRowSumsBelow(boolean b)
set if row summaries appear below detail in the outline |
void |
setRowSumsRight(boolean b)
set if col summaries appear right of the detail in the outline |
void |
setSelected(boolean sel)
Sets whether sheet is selected. |
void |
setVerticallyCenter(boolean value)
determines whether the output is vertically centered on the page. |
void |
setZoom(int numerator,
int denominator)
Sets the zoom magnication for the sheet. |
protected void |
shiftMerged(int startRow,
int endRow,
int n,
boolean isRow)
Shifts the merged regions left or right depending on mode |
void |
shiftRows(int startRow,
int endRow,
int n)
Shifts rows between startRow and endRow n number of rows. |
void |
shiftRows(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight)
Shifts rows between startRow and endRow n number of rows. |
void |
shiftRows(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight,
boolean moveComments)
Shifts rows between startRow and endRow n number of rows. |
void |
showInPane(short toprow,
short leftcol)
Sets desktop window pane display area, when the file is first opened in a viewer. |
void |
ungroupColumn(short fromColumn,
short toColumn)
|
void |
ungroupRow(int fromRow,
int toRow)
|
protected void |
validateColumn(short column)
Runs a bounds check for column numbers |
protected void |
validateRow(int row)
Runs a bounds check for row numbers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short LeftMargin
public static final short RightMargin
public static final short TopMargin
public static final short BottomMargin
public static final byte PANE_LOWER_RIGHT
public static final byte PANE_UPPER_RIGHT
public static final byte PANE_LOWER_LEFT
public static final byte PANE_UPPER_LEFT
public static final int INITIAL_CAPACITY
protected Workbook book
protected HSSFWorkbook workbook
Constructor Detail |
---|
protected HSSFSheet(HSSFWorkbook workbook)
workbook
- - The HSSF Workbook object associated with the sheet.HSSFWorkbook.createSheet()
protected HSSFSheet(HSSFWorkbook workbook, Sheet sheet)
workbook
- - The HSSF Workbook object associated with the sheet.sheet
- - lowlevel Sheet object this sheet will representHSSFWorkbook.createSheet()
Method Detail |
---|
public HSSFRow createRow(int rownum)
createRow
in interface org.apache.poi.ss.usermodel.Sheet
rownum
- row number
HSSFRow
,
#removeRow(HSSFRow)
public void removeRow(org.apache.poi.ss.usermodel.Row row)
removeRow
in interface org.apache.poi.ss.usermodel.Sheet
row
- representing a row to remove.public HSSFRow getRow(int rownum)
getRow
in interface org.apache.poi.ss.usermodel.Sheet
rownum
- row to get
public int getPhysicalNumberOfRows()
getPhysicalNumberOfRows
in interface org.apache.poi.ss.usermodel.Sheet
public int getFirstRowNum()
getFirstRowNum
in interface org.apache.poi.ss.usermodel.Sheet
public int getLastRowNum()
getPhysicalNumberOfRows()
to
tell if there is a row at position zero
or not.
getLastRowNum
in interface org.apache.poi.ss.usermodel.Sheet
public void addValidationData(HSSFDataValidation obj_validation)
obj_validation
- The Data validation object settingspublic void setColumnHidden(short column, boolean hidden)
setColumnHidden
in interface org.apache.poi.ss.usermodel.Sheet
column
- - the column to get (0-based)hidden
- - the visiblity state of the columnpublic boolean isColumnHidden(short column)
isColumnHidden
in interface org.apache.poi.ss.usermodel.Sheet
column
- - the column to set (0-based)
public void setColumnWidth(short column, short width)
setColumnWidth
in interface org.apache.poi.ss.usermodel.Sheet
column
- - the column to set (0-based)width
- - the width in units of 1/256th of a character widthpublic short getColumnWidth(short column)
getColumnWidth
in interface org.apache.poi.ss.usermodel.Sheet
column
- - the column to set (0-based)
public short getDefaultColumnWidth()
getDefaultColumnWidth
in interface org.apache.poi.ss.usermodel.Sheet
public short getDefaultRowHeight()
getDefaultRowHeight
in interface org.apache.poi.ss.usermodel.Sheet
public float getDefaultRowHeightInPoints()
getDefaultRowHeightInPoints
in interface org.apache.poi.ss.usermodel.Sheet
public void setDefaultColumnWidth(short width)
setDefaultColumnWidth
in interface org.apache.poi.ss.usermodel.Sheet
width
- default column widthpublic void setDefaultRowHeight(short height)
setDefaultRowHeight
in interface org.apache.poi.ss.usermodel.Sheet
height
- default row heightpublic void setDefaultRowHeightInPoints(float height)
setDefaultRowHeightInPoints
in interface org.apache.poi.ss.usermodel.Sheet
height
- default row heightpublic boolean isGridsPrinted()
isGridsPrinted
in interface org.apache.poi.ss.usermodel.Sheet
public void setGridsPrinted(boolean value)
setGridsPrinted
in interface org.apache.poi.ss.usermodel.Sheet
value
- false if not printed.public int addMergedRegion(Region region)
addMergedRegion
in interface org.apache.poi.ss.usermodel.Sheet
region
- (rowfrom/colfrom-rowto/colto) to merge
public void setForceFormulaRecalculation(boolean value)
value
- true if an uncalced record must be inserted or not at generationpublic boolean getForceFormulaRecalculation()
public void setVerticallyCenter(boolean value)
setVerticallyCenter
in interface org.apache.poi.ss.usermodel.Sheet
value
- true to vertically center, false otherwise.public boolean getVerticallyCenter(boolean value)
getVerticallyCenter
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getVerticallyCenter()
public void setHorizontallyCenter(boolean value)
setHorizontallyCenter
in interface org.apache.poi.ss.usermodel.Sheet
value
- true to horizontally center, false otherwise.public boolean getHorizontallyCenter()
getHorizontallyCenter
in interface org.apache.poi.ss.usermodel.Sheet
public void removeMergedRegion(int index)
removeMergedRegion
in interface org.apache.poi.ss.usermodel.Sheet
index
- of the region to unmergepublic int getNumMergedRegions()
getNumMergedRegions
in interface org.apache.poi.ss.usermodel.Sheet
public Region getMergedRegionAt(int index)
getMergedRegionAt
in interface org.apache.poi.ss.usermodel.Sheet
index
- of the region to fetch
public java.util.Iterator rowIterator()
rowIterator
in interface org.apache.poi.ss.usermodel.Sheet
public java.util.Iterator iterator()
rowIterator()
to allow
foreach loops
iterator
in interface java.lang.Iterable<org.apache.poi.ss.usermodel.Row>
iterator
in interface org.apache.poi.ss.usermodel.Sheet
protected Sheet getSheet()
public void setAlternativeExpression(boolean b)
setAlternativeExpression
in interface org.apache.poi.ss.usermodel.Sheet
b
- alternative expression evaluation or notpublic void setAlternativeFormula(boolean b)
setAlternativeFormula
in interface org.apache.poi.ss.usermodel.Sheet
b
- alternative formulas or notpublic void setAutobreaks(boolean b)
setAutobreaks
in interface org.apache.poi.ss.usermodel.Sheet
b
- whether to show auto page breakspublic void setDialog(boolean b)
setDialog
in interface org.apache.poi.ss.usermodel.Sheet
b
- isDialog or notpublic void setDisplayGuts(boolean b)
setDisplayGuts
in interface org.apache.poi.ss.usermodel.Sheet
b
- guts or no guts (or glory)public void setFitToPage(boolean b)
setFitToPage
in interface org.apache.poi.ss.usermodel.Sheet
b
- fit or notpublic void setRowSumsBelow(boolean b)
setRowSumsBelow
in interface org.apache.poi.ss.usermodel.Sheet
b
- below or notpublic void setRowSumsRight(boolean b)
setRowSumsRight
in interface org.apache.poi.ss.usermodel.Sheet
b
- right or notpublic boolean getAlternateExpression()
getAlternateExpression
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getAlternateFormula()
getAlternateFormula
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getAutobreaks()
getAutobreaks
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getDialog()
getDialog
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getDisplayGuts()
getDisplayGuts
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getFitToPage()
getFitToPage
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getRowSumsBelow()
getRowSumsBelow
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getRowSumsRight()
getRowSumsRight
in interface org.apache.poi.ss.usermodel.Sheet
public boolean isPrintGridlines()
isPrintGridlines
in interface org.apache.poi.ss.usermodel.Sheet
public void setPrintGridlines(boolean newPrintGridlines)
setPrintGridlines
in interface org.apache.poi.ss.usermodel.Sheet
newPrintGridlines
- boolean to turn on or off the printing of
gridlinespublic HSSFPrintSetup getPrintSetup()
getPrintSetup
in interface org.apache.poi.ss.usermodel.Sheet
public HSSFHeader getHeader()
getHeader
in interface org.apache.poi.ss.usermodel.Sheet
public HSSFFooter getFooter()
getFooter
in interface org.apache.poi.ss.usermodel.Sheet
public boolean isSelected()
true
if this sheet is currently selectedpublic void setSelected(boolean sel)
setSelected
in interface org.apache.poi.ss.usermodel.Sheet
sel
- Whether to select the sheet or deselect the sheet.public boolean isActive()
true
if this sheet is currently focusedpublic void setActive(boolean sel)
sel
- Whether to select the sheet or deselect the sheet.public double getMargin(short margin)
getMargin
in interface org.apache.poi.ss.usermodel.Sheet
margin
- which margin to get
public void setMargin(short margin, double size)
setMargin
in interface org.apache.poi.ss.usermodel.Sheet
margin
- which margin to getsize
- the size of the marginpublic boolean getProtect()
getProtect
in interface org.apache.poi.ss.usermodel.Sheet
public short getPassword()
getPassword
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getObjectProtect()
getObjectProtect
in interface org.apache.poi.ss.usermodel.Sheet
public boolean getScenarioProtect()
getScenarioProtect
in interface org.apache.poi.ss.usermodel.Sheet
public void setProtect(boolean protect)
setProtect
in interface org.apache.poi.ss.usermodel.Sheet
protect
- true => protection enabled; false => protection disabledpublic void protectSheet(java.lang.String password)
protectSheet
in interface org.apache.poi.ss.usermodel.Sheet
password
- to set for protectionpublic void setZoom(int numerator, int denominator)
setZoom
in interface org.apache.poi.ss.usermodel.Sheet
numerator
- The numerator for the zoom magnification.denominator
- The denominator for the zoom magnification.public short getTopRow()
getTopRow
in interface org.apache.poi.ss.usermodel.Sheet
public short getLeftCol()
getLeftCol
in interface org.apache.poi.ss.usermodel.Sheet
public void showInPane(short toprow, short leftcol)
showInPane
in interface org.apache.poi.ss.usermodel.Sheet
toprow
- the top row to show in desktop window paneleftcol
- the left column to show in desktop window paneprotected void shiftMerged(int startRow, int endRow, int n, boolean isRow)
TODO: MODE , this is only row specific
startRow
- endRow
- n
- isRow
- public void shiftRows(int startRow, int endRow, int n)
Additionally shifts merged regions that are completely defined in these rows (ie. merged 2 cells on a row to be shifted).
shiftRows
in interface org.apache.poi.ss.usermodel.Sheet
startRow
- the row to start shiftingendRow
- the row to end shiftingn
- the number of rows to shiftpublic void shiftRows(int startRow, int endRow, int n, boolean copyRowHeight, boolean resetOriginalRowHeight)
Additionally shifts merged regions that are completely defined in these rows (ie. merged 2 cells on a row to be shifted).
TODO Might want to add bounds checking here
shiftRows
in interface org.apache.poi.ss.usermodel.Sheet
startRow
- the row to start shiftingendRow
- the row to end shiftingn
- the number of rows to shiftcopyRowHeight
- whether to copy the row height during the shiftresetOriginalRowHeight
- whether to set the original row's height to the defaultpublic void shiftRows(int startRow, int endRow, int n, boolean copyRowHeight, boolean resetOriginalRowHeight, boolean moveComments)
Additionally shifts merged regions that are completely defined in these rows (ie. merged 2 cells on a row to be shifted).
TODO Might want to add bounds checking here
startRow
- the row to start shiftingendRow
- the row to end shiftingn
- the number of rows to shiftcopyRowHeight
- whether to copy the row height during the shiftresetOriginalRowHeight
- whether to set the original row's height to the defaultmoveComments
- whether to move comments at the same time as the cells they are attached toprotected void insertChartRecords(java.util.List records)
public void createFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow)
createFreezePane
in interface org.apache.poi.ss.usermodel.Sheet
colSplit
- Horizonatal position of split.rowSplit
- Vertical position of split.topRow
- Top row visible in bottom paneleftmostColumn
- Left column visible in right pane.public void createFreezePane(int colSplit, int rowSplit)
createFreezePane
in interface org.apache.poi.ss.usermodel.Sheet
colSplit
- Horizonatal position of split.rowSplit
- Vertical position of split.public void createSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane)
createSplitPane
in interface org.apache.poi.ss.usermodel.Sheet
xSplitPos
- Horizonatal position of split (in 1/20th of a point).ySplitPos
- Vertical position of split (in 1/20th of a point).topRow
- Top row visible in bottom paneleftmostColumn
- Left column visible in right pane.activePane
- Active pane. One of: PANE_LOWER_RIGHT,
PANE_UPPER_RIGHT, PANE_LOWER_LEFT, PANE_UPPER_LEFTPANE_LOWER_LEFT
,
PANE_LOWER_RIGHT
,
PANE_UPPER_LEFT
,
PANE_UPPER_RIGHT
public PaneInformation getPaneInformation()
getPaneInformation
in interface org.apache.poi.ss.usermodel.Sheet
public void setDisplayGridlines(boolean show)
setDisplayGridlines
in interface org.apache.poi.ss.usermodel.Sheet
show
- whether to show gridlines or notpublic boolean isDisplayGridlines()
isDisplayGridlines
in interface org.apache.poi.ss.usermodel.Sheet
public void setDisplayFormulas(boolean show)
setDisplayFormulas
in interface org.apache.poi.ss.usermodel.Sheet
show
- whether to show formulas or notpublic boolean isDisplayFormulas()
isDisplayFormulas
in interface org.apache.poi.ss.usermodel.Sheet
public void setDisplayRowColHeadings(boolean show)
setDisplayRowColHeadings
in interface org.apache.poi.ss.usermodel.Sheet
show
- whether to show RowColHeadings or notpublic boolean isDisplayRowColHeadings()
isDisplayRowColHeadings
in interface org.apache.poi.ss.usermodel.Sheet
public void setRowBreak(int row)
setRowBreak
in interface org.apache.poi.ss.usermodel.Sheet
row
- FIXME: Document this!public boolean isRowBroken(int row)
isRowBroken
in interface org.apache.poi.ss.usermodel.Sheet
row
- FIXME: Document this!
public void removeRowBreak(int row)
removeRowBreak
in interface org.apache.poi.ss.usermodel.Sheet
row
- public int[] getRowBreaks()
getRowBreaks
in interface org.apache.poi.ss.usermodel.Sheet
public short[] getColumnBreaks()
getColumnBreaks
in interface org.apache.poi.ss.usermodel.Sheet
public void setColumnBreak(short column)
setColumnBreak
in interface org.apache.poi.ss.usermodel.Sheet
column
- public boolean isColumnBroken(short column)
isColumnBroken
in interface org.apache.poi.ss.usermodel.Sheet
column
- FIXME: Document this!
public void removeColumnBreak(short column)
removeColumnBreak
in interface org.apache.poi.ss.usermodel.Sheet
column
- protected void validateRow(int row)
row
- protected void validateColumn(short column)
column
- public void dumpDrawingRecords(boolean fat)
dumpDrawingRecords
in interface org.apache.poi.ss.usermodel.Sheet
public HSSFPatriarch createDrawingPatriarch()
createDrawingPatriarch
in interface org.apache.poi.ss.usermodel.Sheet
public EscherAggregate getDrawingEscherAggregate()
public HSSFPatriarch getDrawingPatriarch()
createDrawingPatriarch()
and
start from scratch!
public void setColumnGroupCollapsed(short columnNumber, boolean collapsed)
setColumnGroupCollapsed
in interface org.apache.poi.ss.usermodel.Sheet
columnNumber
- One of the columns in the group.collapsed
- true = collapse group, false = expand group.public void groupColumn(short fromColumn, short toColumn)
groupColumn
in interface org.apache.poi.ss.usermodel.Sheet
fromColumn
- beginning of the column range.toColumn
- end of the column range.public void ungroupColumn(short fromColumn, short toColumn)
ungroupColumn
in interface org.apache.poi.ss.usermodel.Sheet
public void groupRow(int fromRow, int toRow)
groupRow
in interface org.apache.poi.ss.usermodel.Sheet
public void ungroupRow(int fromRow, int toRow)
ungroupRow
in interface org.apache.poi.ss.usermodel.Sheet
public void setRowGroupCollapsed(int row, boolean collapse)
setRowGroupCollapsed
in interface org.apache.poi.ss.usermodel.Sheet
public void setDefaultColumnStyle(short column, org.apache.poi.ss.usermodel.CellStyle style)
setDefaultColumnStyle
in interface org.apache.poi.ss.usermodel.Sheet
column
- the column indexstyle
- the style to setpublic void autoSizeColumn(short column)
autoSizeColumn
in interface org.apache.poi.ss.usermodel.Sheet
column
- the column indexpublic void autoSizeColumn(short column, boolean useMergedCells)
column
- the column indexuseMergedCells
- whether to use the contents of merged cells when calculating the width of the columnpublic HSSFComment getCellComment(int row, int column)
getCellComment
in interface org.apache.poi.ss.usermodel.Sheet
null
if not foundpublic HSSFSheetConditionalFormatting getSheetConditionalFormatting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |