From: Javen O'Neal This may then be used to add graphics or charts.false
if the column is visible
*/
+ @Override
public boolean isColumnHidden(int columnIndex) {
return _sheet.isColumnHidden(columnIndex);
}
@@ -518,6 +529,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param width - the width in units of 1/256th of a character width
* @throws IllegalArgumentException if width > 255*256 (the maximum column width in Excel is 255 characters)
*/
+ @Override
public void setColumnWidth(int columnIndex, int width) {
_sheet.setColumnWidth(columnIndex, width);
}
@@ -528,10 +540,12 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param columnIndex - the column to set (0-based)
* @return width - the width in units of 1/256th of a character width
*/
+ @Override
public int getColumnWidth(int columnIndex) {
return _sheet.getColumnWidth(columnIndex);
}
+ @Override
public float getColumnWidthInPixels(int column){
int cw = getColumnWidth(column);
int def = getDefaultColumnWidth()*256;
@@ -546,6 +560,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return default column width
*/
+ @Override
public int getDefaultColumnWidth() {
return _sheet.getDefaultColumnWidth();
}
@@ -556,6 +571,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param width default column width
*/
+ @Override
public void setDefaultColumnWidth(int width) {
_sheet.setDefaultColumnWidth(width);
}
@@ -567,6 +583,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return default row height
*/
+ @Override
public short getDefaultRowHeight() {
return _sheet.getDefaultRowHeight();
}
@@ -577,7 +594,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return default row height in points
*/
-
+ @Override
public float getDefaultRowHeightInPoints() {
return ((float) _sheet.getDefaultRowHeight() / 20);
}
@@ -588,7 +605,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param height default row height
*/
-
+ @Override
public void setDefaultRowHeight(short height) {
_sheet.setDefaultRowHeight(height);
}
@@ -599,7 +616,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param height default row height
*/
-
+ @Override
public void setDefaultRowHeightInPoints(float height) {
_sheet.setDefaultRowHeight((short) (height * 20));
}
@@ -609,6 +626,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* (0 based) column, or null if no style has been
* set for that column
*/
+ @Override
public HSSFCellStyle getColumnStyle(int column) {
short styleIndex = _sheet.getXFIndexForColAt((short) column);
@@ -626,7 +644,6 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return true if printed
*/
-
public boolean isGridsPrinted() {
return _sheet.isGridsPrinted();
}
@@ -636,7 +653,6 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param value false if not printed.
*/
-
public void setGridsPrinted(boolean value) {
_sheet.setGridsPrinted(value);
}
@@ -649,6 +665,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @throws IllegalStateException if region intersects with an existing merged region
* or multi-cell array formula on this sheet
*/
+ @Override
public int addMergedRegion(CellRangeAddress region) {
region.validate(SpreadsheetVersion.EXCEL97);
@@ -853,6 +870,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* Alias for {@link #rowIterator()} to allow
* foreach loops
*/
+ @Override
public Iteratortrue
if this sheet is currently selected
*/
+ @Override
public boolean isSelected() {
return getSheet().getWindowTwo().getSelected();
}
@@ -1123,6 +1159,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param sel Whether to select the sheet or deselect the sheet.
*/
+ @Override
public void setSelected(boolean sel) {
getSheet().getWindowTwo().setSelected(sel);
}
@@ -1149,6 +1186,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param margin which margin to get
* @return the size of the margin
*/
+ @Override
public double getMargin(short margin) {
switch (margin) {
case FooterMargin:
@@ -1166,6 +1204,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param margin which margin to get
* @param size the size of the margin
*/
+ @Override
public void setMargin(short margin, double size) {
switch (margin) {
case FooterMargin:
@@ -1188,6 +1227,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return true => protection enabled; false => protection disabled
*/
+ @Override
public boolean getProtect() {
return getProtectionBlock().isSheetProtected();
}
@@ -1213,6 +1253,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return true => protection enabled; false => protection disabled
*/
+ @Override
public boolean getScenarioProtect() {
return getProtectionBlock().isScenarioProtected();
}
@@ -1222,6 +1263,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param password to set for protection. Pass null
to remove protection
*/
+ @Override
public void protectSheet(String password) {
getProtectionBlock().protectSheet(password, true, true); //protect objs&scenarios(normal)
}
@@ -1276,6 +1318,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return short indicating the rownum (0 based) of the top row
*/
+ @Override
public short getTopRow() {
return _sheet.getTopRow();
}
@@ -1286,6 +1329,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return short indicating the rownum (0 based) of the top row
*/
+ @Override
public short getLeftCol() {
return _sheet.getLeftCol();
}
@@ -1614,6 +1658,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param leftmostColumn Left column visible in right pane.
* @param topRow Top row visible in bottom pane
*/
+ @Override
public void createFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow) {
validateColumn(colSplit);
validateRow(rowSplit);
@@ -1634,6 +1679,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param colSplit Horizonatal position of split.
* @param rowSplit Vertical position of split.
*/
+ @Override
public void createFreezePane(int colSplit, int rowSplit) {
createFreezePane(colSplit, rowSplit, colSplit, rowSplit);
}
@@ -1652,6 +1698,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @see #PANE_UPPER_LEFT
* @see #PANE_UPPER_RIGHT
*/
+ @Override
public void createSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane) {
getSheet().createSplitPane(xSplitPos, ySplitPos, topRow, leftmostColumn, activePane);
}
@@ -1661,6 +1708,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return null if no pane configured, or the pane information.
*/
+ @Override
public PaneInformation getPaneInformation() {
return getSheet().getPaneInformation();
}
@@ -1670,6 +1718,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param show whether to show gridlines or not
*/
+ @Override
public void setDisplayGridlines(boolean show) {
_sheet.setDisplayGridlines(show);
}
@@ -1679,6 +1728,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return whether gridlines are displayed
*/
+ @Override
public boolean isDisplayGridlines() {
return _sheet.isDisplayGridlines();
}
@@ -1688,6 +1738,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param show whether to show formulas or not
*/
+ @Override
public void setDisplayFormulas(boolean show) {
_sheet.setDisplayFormulas(show);
}
@@ -1697,6 +1748,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return whether formulas are displayed
*/
+ @Override
public boolean isDisplayFormulas() {
return _sheet.isDisplayFormulas();
}
@@ -1706,6 +1758,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param show whether to show RowColHeadings or not
*/
+ @Override
public void setDisplayRowColHeadings(boolean show) {
_sheet.setDisplayRowColHeadings(show);
}
@@ -1715,6 +1768,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return whether RowColHeadings are displayed
*/
+ @Override
public boolean isDisplayRowColHeadings() {
return _sheet.isDisplayRowColHeadings();
}
@@ -1730,6 +1784,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param row the row to break, inclusive
*/
+ @Override
public void setRowBreak(int row) {
validateRow(row);
_sheet.getPageSettings().setRowBreak(row, (short) 0, (short) 255);
@@ -1738,6 +1793,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
/**
* @return true
if there is a page break at the indicated row
*/
+ @Override
public boolean isRowBroken(int row) {
return _sheet.getPageSettings().isRowBroken(row);
}
@@ -1745,6 +1801,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
/**
* Removes the page break at the indicated row
*/
+ @Override
public void removeRowBreak(int row) {
_sheet.getPageSettings().removeRowBreak(row);
}
@@ -1752,6 +1809,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
/**
* @return row indexes of all the horizontal page breaks, never null
*/
+ @Override
public int[] getRowBreaks() {
//we can probably cache this information, but this should be a sparsely used function
return _sheet.getPageSettings().getRowBreaks();
@@ -1760,6 +1818,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
/**
* @return column indexes of all the vertical page breaks, never null
*/
+ @Override
public int[] getColumnBreaks() {
//we can probably cache this information, but this should be a sparsely used function
return _sheet.getPageSettings().getColumnBreaks();
@@ -1777,6 +1836,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param column the column to break, inclusive
*/
+ @Override
public void setColumnBreak(int column) {
validateColumn((short) column);
_sheet.getPageSettings().setColumnBreak((short) column, (short) 0, (short) SpreadsheetVersion.EXCEL97.getLastRowIndex());
@@ -1788,6 +1848,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param column FIXME: Document this!
* @return FIXME: Document this!
*/
+ @Override
public boolean isColumnBroken(int column) {
return _sheet.getPageSettings().isColumnBroken(column);
}
@@ -1797,6 +1858,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param column
*/
+ @Override
public void removeColumnBreak(int column) {
_sheet.getPageSettings().removeColumnBreak(column);
}
@@ -1874,6 +1936,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return the top-level drawing patriarch, if there is one, else returns null
*/
+ @Override
public HSSFPatriarch getDrawingPatriarch() {
_patriarch = getPatriarch(false);
return _patriarch;
@@ -1887,6 +1950,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return The new patriarch.
*/
+ @Override
public HSSFPatriarch createDrawingPatriarch() {
_patriarch = getPatriarch(true);
return _patriarch;
@@ -1931,6 +1995,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param columnNumber One of the columns in the group.
* @param collapsed true = collapse group, false = expand group.
*/
+ @Override
public void setColumnGroupCollapsed(int columnNumber, boolean collapsed) {
_sheet.setColumnGroupCollapsed(columnNumber, collapsed);
}
@@ -1941,10 +2006,12 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param fromColumn beginning of the column range.
* @param toColumn end of the column range.
*/
+ @Override
public void groupColumn(int fromColumn, int toColumn) {
_sheet.groupColumnRange(fromColumn, toColumn, true);
}
+ @Override
public void ungroupColumn(int fromColumn, int toColumn) {
_sheet.groupColumnRange(fromColumn, toColumn, false);
}
@@ -1955,14 +2022,17 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param fromRow start row (0-based)
* @param toRow end row (0-based)
*/
+ @Override
public void groupRow(int fromRow, int toRow) {
_sheet.groupRowRange(fromRow, toRow, true);
}
+ @Override
public void ungroupRow(int fromRow, int toRow) {
_sheet.groupRowRange(fromRow, toRow, false);
}
+ @Override
public void setRowGroupCollapsed(int rowIndex, boolean collapse) {
if (collapse) {
_sheet.getRowsAggregate().collapseRow(rowIndex);
@@ -1977,6 +2047,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param column the column index
* @param style the style to set
*/
+ @Override
public void setDefaultColumnStyle(int column, CellStyle style) {
_sheet.setDefaultColumnStyle(column, ((HSSFCellStyle) style).getIndex());
}
@@ -1990,6 +2061,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @param column the column index
*/
+ @Override
public void autoSizeColumn(int column) {
autoSizeColumn(column, false);
}
@@ -2007,6 +2079,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
* @param column the column index
* @param useMergedCells whether to use the contents of merged cells when calculating the width of the column
*/
+ @Override
public void autoSizeColumn(int column, boolean useMergedCells) {
double width = SheetUtil.getColumnWidth(this, column, useMergedCells);
@@ -2110,6 +2183,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
}
}
+ @Override
public HSSFSheetConditionalFormatting getSheetConditionalFormatting() {
return new HSSFSheetConditionalFormatting(this);
}
@@ -2119,6 +2193,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
*
* @return the name of this sheet
*/
+ @Override
public String getSheetName() {
HSSFWorkbook wb = getWorkbook();
int idx = wb.getSheetIndex(this);
@@ -2152,6 +2227,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
return SSCellRange.create(firstRow, firstColumn, height, width, temp, HSSFCell.class);
}
+ @Override
public CellRangefalse
if the column is visible
*/
+ @Override
public boolean isColumnHidden(int columnIndex)
{
return _sh.isColumnHidden(columnIndex);
@@ -252,6 +263,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param columnIndex - the column to set (0-based)
* @param width - the width in units of 1/256th of a character width
*/
+ @Override
public void setColumnWidth(int columnIndex, int width)
{
_sh.setColumnWidth(columnIndex,width);
@@ -262,6 +274,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param columnIndex - the column to set (0-based)
* @return width - the width in units of 1/256th of a character width
*/
+ @Override
public int getColumnWidth(int columnIndex)
{
return _sh.getColumnWidth(columnIndex);
@@ -286,6 +299,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param width default column width measured in characters
*/
+ @Override
public void setDefaultColumnWidth(int width)
{
_sh.setDefaultColumnWidth(width);
@@ -297,6 +311,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return default column width measured in characters
*/
+ @Override
public int getDefaultColumnWidth()
{
return _sh.getDefaultColumnWidth();
@@ -309,6 +324,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return default row height measured in twips (1/20 of a point)
*/
+ @Override
public short getDefaultRowHeight()
{
return _sh.getDefaultRowHeight();
@@ -320,6 +336,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return default row height in points
*/
+ @Override
public float getDefaultRowHeightInPoints()
{
return _sh.getDefaultRowHeightInPoints();
@@ -331,6 +348,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param height default row height measured in twips (1/20 of a point)
*/
+ @Override
public void setDefaultRowHeight(short height)
{
_sh.setDefaultRowHeight(height);
@@ -341,6 +359,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* points
* @param height default row height
*/
+ @Override
public void setDefaultRowHeightInPoints(float height)
{
_sh.setDefaultRowHeightInPoints(height);
@@ -352,6 +371,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* (0 based) column, or null if no style has been
* set for that column
*/
+ @Override
public CellStyle getColumnStyle(int column)
{
return _sh.getColumnStyle(column);
@@ -369,6 +389,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param region (rowfrom/colfrom-rowto/colto) to merge
* @return index of this region
*/
+ @Override
public int addMergedRegion(CellRangeAddress region)
{
return _sh.addMergedRegion(region);
@@ -379,6 +400,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value true to vertically center, false otherwise.
*/
+ @Override
public void setVerticallyCenter(boolean value)
{
_sh.setVerticallyCenter(value);
@@ -389,6 +411,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value true to horizontally center, false otherwise.
*/
+ @Override
public void setHorizontallyCenter(boolean value)
{
_sh.setHorizontallyCenter(value);
@@ -397,7 +420,7 @@ public class SXSSFSheet implements Sheet, Cloneable
/**
* Determine whether printed output for this sheet will be horizontally centered.
*/
-
+ @Override
public boolean getHorizontallyCenter()
{
return _sh.getHorizontallyCenter();
@@ -406,6 +429,7 @@ public class SXSSFSheet implements Sheet, Cloneable
/**
* Determine whether printed output for this sheet will be vertically centered.
*/
+ @Override
public boolean getVerticallyCenter()
{
return _sh.getVerticallyCenter();
@@ -416,6 +440,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param index of the region to unmerge
*/
+ @Override
public void removeMergedRegion(int index)
{
_sh.removeMergedRegion(index);
@@ -426,6 +451,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return number of merged regions
*/
+ @Override
public int getNumMergedRegions()
{
return _sh.getNumMergedRegions();
@@ -438,6 +464,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return the merged region at the specified index
*/
+ @Override
public CellRangeAddress getMergedRegion(int index)
{
return _sh.getMergedRegion(index);
@@ -460,6 +487,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @return an iterator of the PHYSICAL rows. Meaning the 3rd element may not
* be the third row if say for instance the second row is undefined.
*/
+ @Override
public Iteratortrue
if the sheet displays Automatic Page Breaks.
*/
+ @Override
public void setAutobreaks(boolean value)
{
_sh.setAutobreaks(value);
@@ -482,6 +511,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value - guts or no guts
*/
+ @Override
public void setDisplayGuts(boolean value)
{
_sh.setDisplayGuts(value);
@@ -493,6 +523,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value whether to display or hide all zero values on the worksheet
*/
+ @Override
public void setDisplayZeros(boolean value)
{
_sh.setDisplayZeros(value);
@@ -505,6 +536,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return whether all zero values on the worksheet are displayed
*/
+ @Override
public boolean isDisplayZeros()
{
return _sh.isDisplayZeros();
@@ -515,6 +547,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value true for right to left, false otherwise.
*/
+ @Override
public void setRightToLeft(boolean value)
{
_sh.setRightToLeft(value);
@@ -525,6 +558,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return whether the text is displayed in right-to-left mode in the window
*/
+ @Override
public boolean isRightToLeft()
{
return _sh.isRightToLeft();
@@ -535,6 +569,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value true
if the Fit to Page print option is enabled.
*/
+ @Override
public void setFitToPage(boolean value)
{
_sh.setFitToPage(value);
@@ -553,6 +588,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
true
if row summaries appear below detail in the outline
*/
+ @Override
public void setRowSumsBelow(boolean value)
{
_sh.setRowSumsBelow(value);
@@ -571,6 +607,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param value true
if col summaries appear right of the detail in the outline
*/
+ @Override
public void setRowSumsRight(boolean value)
{
_sh.setRowSumsRight(value);
@@ -581,6 +618,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return true
if the sheet displays Automatic Page Breaks.
*/
+ @Override
public boolean getAutobreaks()
{
return _sh.getAutobreaks();
@@ -592,6 +630,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return boolean - guts or no guts
*/
+ @Override
public boolean getDisplayGuts()
{
return _sh.getDisplayGuts();
@@ -602,6 +641,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return true
if the Fit to Page print option is enabled.
*/
+ @Override
public boolean getFitToPage()
{
return _sh.getFitToPage();
@@ -620,6 +660,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return true
if row summaries appear below detail in the outline
*/
+ @Override
public boolean getRowSumsBelow()
{
return _sh.getRowSumsBelow();
@@ -638,6 +679,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return true
if col summaries appear right of the detail in the outline
*/
+ @Override
public boolean getRowSumsRight()
{
return _sh.getRowSumsRight();
@@ -650,6 +692,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @return true
if this sheet displays gridlines.
* @see #isPrintGridlines() to check if printing of gridlines is turned on or off
*/
+ @Override
public boolean isPrintGridlines()
{
return _sh.isPrintGridlines();
@@ -664,6 +707,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param show true
if this sheet should display gridlines.
* @see #setPrintGridlines(boolean)
*/
+ @Override
public void setPrintGridlines(boolean show)
{
_sh.setPrintGridlines(show);
@@ -674,6 +718,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return The user model for the print setup object.
*/
+ @Override
public PrintSetup getPrintSetup()
{
return _sh.getPrintSetup();
@@ -686,6 +731,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return the document header. Never null
*/
+ @Override
public Header getHeader()
{
return _sh.getHeader();
@@ -698,6 +744,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return the document footer. Never null
*/
+ @Override
public Footer getFooter()
{
return _sh.getFooter();
@@ -711,6 +758,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param value true
if this sheet is selected
* @see Workbook#setActiveSheet(int)
*/
+ @Override
public void setSelected(boolean value)
{
_sh.setSelected(value);
@@ -722,6 +770,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param margin which margin to get
* @return the size of the margin
*/
+ @Override
public double getMargin(short margin)
{
return _sh.getMargin(margin);
@@ -733,6 +782,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param margin which margin to get
* @param size the size of the margin
*/
+ @Override
public void setMargin(short margin, double size)
{
_sh.setMargin(margin,size);
@@ -743,6 +793,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return true => protection enabled; false => protection disabled
*/
+ @Override
public boolean getProtect()
{
return _sh.getProtect();
@@ -852,6 +903,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* recommended solution, but this may be used for certain cases where
* evaluation in POI is not possible.
*/
+ @Override
public void setForceFormulaRecalculation(boolean value) {
_sh.setForceFormulaRecalculation(value);
}
@@ -860,11 +912,14 @@ public class SXSSFSheet implements Sheet, Cloneable
* Whether Excel will be asked to recalculate all formulas when the
* workbook is opened.
*/
+ @Override
public boolean getForceFormulaRecalculation() {
return _sh.getForceFormulaRecalculation();
}
/**
+ * Not implemented for SXSSFSheets
+ *
* 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.
@@ -878,12 +933,15 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param endRow the row to end shifting
* @param n the number of rows to shift
*/
+ @Override
public void shiftRows(int startRow, int endRow, int n)
{
throw new RuntimeException("NotImplemented");
}
/**
+ * Not implemented for SXSSFSheets
+ *
* 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
@@ -898,6 +956,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param copyRowHeight whether to copy the row height during the shift
* @param resetOriginalRowHeight whether to set the original row's height to the default
*/
+ @Override
public void shiftRows(int startRow, int endRow, int n, boolean copyRowHeight, boolean resetOriginalRowHeight)
{
throw new RuntimeException("NotImplemented");
@@ -910,6 +969,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param leftmostColumn Left column visible in right pane.
* @param topRow Top row visible in bottom pane
*/
+ @Override
public void createFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow)
{
_sh.createFreezePane(colSplit, rowSplit, leftmostColumn, topRow);
@@ -920,6 +980,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param colSplit Horizonatal position of split.
* @param rowSplit Vertical position of split.
*/
+ @Override
public void createFreezePane(int colSplit, int rowSplit)
{
_sh.createFreezePane(colSplit,rowSplit);
@@ -938,6 +999,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @see #PANE_UPPER_LEFT
* @see #PANE_UPPER_RIGHT
*/
+ @Override
public void createSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane)
{
_sh.createSplitPane(xSplitPos, ySplitPos, leftmostColumn, topRow, activePane);
@@ -948,6 +1010,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return null if no pane configured, or the pane information.
*/
+ @Override
public PaneInformation getPaneInformation()
{
return _sh.getPaneInformation();
@@ -958,6 +1021,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param show whether to show gridlines or not
*/
+ @Override
public void setDisplayGridlines(boolean show)
{
_sh.setDisplayGridlines(show);
@@ -968,6 +1032,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return whether gridlines are displayed
*/
+ @Override
public boolean isDisplayGridlines()
{
return _sh.isDisplayGridlines();
@@ -978,6 +1043,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param show whether to show formulas or not
*/
+ @Override
public void setDisplayFormulas(boolean show)
{
_sh.setDisplayFormulas(show);
@@ -988,6 +1054,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @return whether formulas are displayed
*/
+ @Override
public boolean isDisplayFormulas()
{
return _sh.isDisplayFormulas();
@@ -998,6 +1065,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param show whether to show RowColHeadings or not
*/
+ @Override
public void setDisplayRowColHeadings(boolean show)
{
_sh.setDisplayRowColHeadings(show);
@@ -1007,6 +1075,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Returns if RowColHeadings are displayed.
* @return whether RowColHeadings are displayed
*/
+ @Override
public boolean isDisplayRowColHeadings()
{
return _sh.isDisplayRowColHeadings();
@@ -1016,6 +1085,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Sets a page break at the indicated row
* @param row FIXME: Document this!
*/
+ @Override
public void setRowBreak(int row)
{
_sh.setRowBreak(row);
@@ -1026,6 +1096,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param row FIXME: Document this!
* @return FIXME: Document this!
*/
+ @Override
public boolean isRowBroken(int row)
{
return _sh.isRowBroken(row);
@@ -1035,6 +1106,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Removes the page break at the indicated row
* @param row
*/
+ @Override
public void removeRowBreak(int row)
{
_sh.removeRowBreak(row);
@@ -1044,6 +1116,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Retrieves all the horizontal page breaks
* @return all the horizontal page breaks, or null if there are no row page breaks
*/
+ @Override
public int[] getRowBreaks()
{
return _sh.getRowBreaks();
@@ -1053,6 +1126,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Retrieves all the vertical page breaks
* @return all the vertical page breaks, or null if there are no column page breaks
*/
+ @Override
public int[] getColumnBreaks()
{
return _sh.getColumnBreaks();
@@ -1062,6 +1136,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Sets a page break at the indicated column
* @param column
*/
+ @Override
public void setColumnBreak(int column)
{
_sh.setColumnBreak(column);
@@ -1072,6 +1147,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param column FIXME: Document this!
* @return FIXME: Document this!
*/
+ @Override
public boolean isColumnBroken(int column)
{
return _sh.isColumnBroken(column);
@@ -1081,6 +1157,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* Removes a page break at the indicated column
* @param column
*/
+ @Override
public void removeColumnBreak(int column)
{
_sh.removeColumnBreak(column);
@@ -1092,6 +1169,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param columnNumber One of the columns in the group.
* @param collapsed true = collapse group, false = expand group.
*/
+ @Override
public void setColumnGroupCollapsed(int columnNumber, boolean collapsed)
{
_sh.setColumnGroupCollapsed(columnNumber, collapsed);
@@ -1103,6 +1181,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param fromColumn beginning of the column range.
* @param toColumn end of the column range.
*/
+ @Override
public void groupColumn(int fromColumn, int toColumn)
{
_sh.groupColumn(fromColumn,toColumn);
@@ -1114,6 +1193,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param fromColumn start column (0-based)
* @param toColumn end column (0-based)
*/
+ @Override
public void ungroupColumn(int fromColumn, int toColumn)
{
_sh.ungroupColumn(fromColumn, toColumn);
@@ -1156,6 +1236,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param fromRow start row (0-based)
* @param toRow end row (0-based)
*/
+ @Override
public void groupRow(int fromRow, int toRow)
{
for(SXSSFRow row : _rows.subMap(fromRow, toRow + 1).values()){
@@ -1206,6 +1287,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param fromRow start row (0-based)
* @param toRow end row (0-based)
*/
+ @Override
public void ungroupRow(int fromRow, int toRow)
{
_sh.ungroupRow(fromRow, toRow);
@@ -1217,6 +1299,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param row start row of a groupped range of rows (0-based)
* @param collapse whether to expand/collapse the detail rows
*/
+ @Override
public void setRowGroupCollapsed(int row, boolean collapse)
{
if (collapse) {
@@ -1286,6 +1369,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param column the column index
* @param style the style to set
*/
+ @Override
public void setDefaultColumnStyle(int column, CellStyle style)
{
_sh.setDefaultColumnStyle(column, style);
@@ -1304,6 +1388,7 @@ public class SXSSFSheet implements Sheet, Cloneable
*
* @param column the column index
*/
+ @Override
public void autoSizeColumn(int column)
{
autoSizeColumn(column, false);
@@ -1322,6 +1407,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param column the column index
* @param useMergedCells whether to use the contents of merged cells when calculating the width of the column
*/
+ @Override
public void autoSizeColumn(int column, boolean useMergedCells)
{
double width = SheetUtil.getColumnWidth(this, column, useMergedCells);
@@ -1390,12 +1476,22 @@ public class SXSSFSheet implements Sheet, Cloneable
public Listtrue
if this sheet is currently selected
*/
+ @Override
public boolean isSelected()
{
return _sh.isSelected();
@@ -1439,6 +1538,7 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param range Region of array formula for result.
* @return the {@link CellRange} of cells affected by this change
*/
+ @Override
public CellRange extends Cell> setArrayFormula(String formula, CellRangeAddress range)
{
return _sh.setArrayFormula(formula, range);
@@ -1450,16 +1550,19 @@ public class SXSSFSheet implements Sheet, Cloneable
* @param cell any cell within Array Formula range
* @return the {@link CellRange} of cells affected by this change
*/
+ @Override
public CellRange extends Cell> removeArrayFormula(Cell cell)
{
return _sh.removeArrayFormula(cell);
}
+ @Override
public DataValidationHelper getDataValidationHelper()
{
return _sh.getDataValidationHelper();
}
+ @Override
public List