Method Summary |
|
public int | addMergedRegion(Region region) |
public void | addValidationData(HSSFDataValidation obj_validation) |
public void | autoSizeColumn(short column) Adjusts the column width to fit the contents. |
HSSFSheet | cloneSheet(HSSFWorkbook workbook) |
public HSSFPatriarch | createDrawingPatriarch() Creates the toplevel drawing patriarch. |
public void | createFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow) Creates a split (freezepane). |
public void | createFreezePane(int colSplit, int rowSplit) Creates a split (freezepane). |
public HSSFRow | createRow(int rownum) |
public void | createSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane) Creates a split pane. |
public void | dumpDrawingRecords(boolean fat) Aggregates the drawing records and dumps the escher record hierarchy
to the standard output. |
public boolean | getAlternateExpression() |
public boolean | getAlternateFormula() |
public boolean | getAutobreaks() |
public HSSFComment | getCellComment(int row, int column) |
public short[] | getColumnBreaks() |
public short | getColumnWidth(short column) |
public short | getDefaultColumnWidth() |
public short | getDefaultRowHeight() |
public float | getDefaultRowHeightInPoints() get the default row height for the sheet (if the rows do not define their own height) in
points. |
public boolean | getDialog() |
public boolean | getDisplayGuts() |
public int | getFirstRowNum() |
public boolean | getFitToPage() |
public HSSFFooter | getFooter() Gets the user model for the document footer. |
public HSSFHeader | getHeader() Gets the user model for the document header. |
public boolean | getHorizontallyCenter() Determine whether printed output for this sheet will be horizontally centered. |
public int | getLastRowNum() |
public short | getLeftCol() |
public double | getMargin(short margin) Gets the size of the margin in inches. |
public Region | getMergedRegionAt(int index) |
public int | getNumMergedRegions() |
public boolean | getObjectProtect() |
public PaneInformation | getPaneInformation() Returns the information regarding the currently configured pane (split or freeze). |
public short | getPassword() |
public int | getPhysicalNumberOfRows() |
public HSSFPrintSetup | getPrintSetup() Gets the print setup object. |
public boolean | getProtect() |
public HSSFRow | getRow(int rownum) Returns the logical row (not physical) 0-based. |
public int[] | getRowBreaks() |
public boolean | getRowSumsBelow() |
public boolean | getRowSumsRight() |
public boolean | getScenarioProtect() |
protected Sheet | getSheet() used internally in the API to get the low level Sheet record represented by this
Object. |
public short | getTopRow() |
public boolean | getVerticallyCenter(boolean value) Determine whether printed output for this sheet will be vertically centered. |
public void | groupColumn(short fromColumn, short toColumn) Create an outline for the provided column range. |
public void | groupRow(int fromRow, int toRow) |
protected void | insertChartRecords(List records) |
public boolean | isColumnBroken(short column) |
public boolean | isColumnHidden(short column) Get the hidden state for a given column. |
public boolean | isDisplayFormulas() Returns if formulas are displayed. |
public boolean | isDisplayGridlines() Returns if gridlines are displayed. |
public boolean | isDisplayRowColHeadings() Returns if RowColHeadings are displayed. |
public boolean | isGridsPrinted() get whether gridlines are printed. |
public boolean | isPrintGridlines() Returns whether gridlines are printed. |
public boolean | isRowBroken(int row) |
public void | protectSheet(String password) |
public void | removeColumnBreak(short column) |
public void | removeMergedRegion(int index) |
public void | removeRow(HSSFRow row) Remove a row from this sheet. |
public void | removeRowBreak(int row) |
public Iterator | rowIterator() an iterator of the PHYSICAL rows. |
public void | setAlternativeExpression(boolean b) |
public void | setAlternativeFormula(boolean b) |
public void | setAutobreaks(boolean b) |
public void | setColumnBreak(short column) |
public void | setColumnGroupCollapsed(short columnNumber, boolean collapsed) Expands or collapses a column group. |
public void | setColumnHidden(short column, boolean hidden) Get the visibility state for a given column. |
public void | setColumnWidth(short column, short width) |
public void | setDefaultColumnStyle(short column, HSSFCellStyle style) Sets the default column style for a given column. |
public void | setDefaultColumnWidth(short width) |
public void | setDefaultRowHeight(short height) |
public void | setDefaultRowHeightInPoints(float height) |
public void | setDialog(boolean b) |
public void | setDisplayFormulas(boolean show) Sets whether the formulas are shown in a viewer. |
public void | setDisplayGridlines(boolean show) Sets whether the gridlines are shown in a viewer. |
public void | setDisplayGuts(boolean b) |
public void | setDisplayRowColHeadings(boolean show) Sets whether the RowColHeadings are shown in a viewer. |
public void | setFitToPage(boolean b) |
public void | setGridsPrinted(boolean value) set whether gridlines printed. |
public void | setHorizontallyCenter(boolean value) determines whether the output is horizontally centered on the page. |
public void | setMargin(short margin, double size) Sets the size of the margin in inches. |
public void | setPrintGridlines(boolean newPrintGridlines) Turns on or off the printing of gridlines. |
public void | setProtect(boolean protect) |
public void | setRowBreak(int row) |
public void | setRowGroupCollapsed(int row, boolean collapse) |
public void | setRowSumsBelow(boolean b) |
public void | setRowSumsRight(boolean b) |
public void | setSelected(boolean sel) Sets whether sheet is selected. |
public void | setVerticallyCenter(boolean value) determines whether the output is vertically centered on the page. |
public void | setZoom(int numerator, int denominator) Sets the zoom magnication for the sheet. |
protected void | shiftMerged(int startRow, int endRow, int n, boolean isRow) |
public void | shiftRows(int startRow, int endRow, int n) Shifts rows between startRow and endRow n number of rows.
If you use a negative number, it will shift rows up.
Code ensures that rows don't wrap around.
Calls shiftRows(startRow, endRow, n, false, false);
Additionally shifts merged regions that are completely defined in these
rows (ie. |
public void | shiftRows(int startRow, int endRow, int n, boolean copyRowHeight, boolean resetOriginalRowHeight) Shifts rows between startRow and endRow n number of rows.
If you use a negative number, it will shift rows up.
Code ensures that rows don't wrap around
Additionally shifts merged regions that are completely defined in these
rows (ie. |
public void | showInPane(short toprow, short leftcol) Sets desktop window pane display area, when the
file is first opened in a viewer. |
public void | ungroupColumn(short fromColumn, short toColumn) |
public void | ungroupRow(int fromRow, int toRow) |
protected void | validateColumn(short column) |
protected void | validateRow(int row) |