Java org.apache.poi.ss.usermodel Workbook fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.ss.usermodel Workbook fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.ss.usermodel Workbook.

The text is from its open source code.

Implementation

org.apache.poi.ss.usermodel.Workbook has the following implementations.
Click this link to see all its implementation.

Field

intPICTURE_TYPE_EMF
Extended windows meta file
intPICTURE_TYPE_WMF
Windows Meta File
intPICTURE_TYPE_PICT
Mac PICT format
intPICTURE_TYPE_JPEG
JPEG format
intPICTURE_TYPE_PNG
PNG format
intPICTURE_TYPE_DIB
Device independent bitmap

Method

intaddPicture(byte[] pictureData, int format)
Adds a picture to the workbook.
voidaddToolPack(UDFFinder toopack)
Register a new toolpack in this workbook.
SheetcloneSheet(int sheetNum)
Create an Sheet from an existing sheet in the Workbook.
voidclose()
Close the underlying input resource (File or Stream), from which the Workbook was read.
CellStylecreateCellStyle()
Create a new Cell style and add it to the workbook's style table
DataFormatcreateDataFormat()
Returns the instance of DataFormat for this workbook.
FontcreateFont()
Create a new Font and add it to the workbook's font table
NamecreateName()
Creates a new (uninitialised) defined name in this workbook
SheetcreateSheet(String sheetname)
Create a new sheet for this Workbook and return the high level representation.
SheetcreateSheet()
Create a Sheet for this Workbook, adds it to the sheets and returns the high level representation.
FontfindFont(boolean bold, short color, short fontHeight, String name, boolean italic, boolean strikeout, short typeOffset, byte underline)
Finds a font that matches the one with the supplied attributes
intgetActiveSheetIndex()
Convenience method to get the active sheet.
ListgetAllPictures()
Gets all pictures from the Workbook.
CellStylegetCellStyleAt(int idx)
Get the cell style object at the given index
CreationHelpergetCreationHelper()
Returns an object that handles instantiating concrete classes of the various instances one needs for HSSF and XSSF.
intgetFirstVisibleTab()
Gets the first tab that is displayed in the list of tabs in excel.
FontgetFontAt(short idx)
Get the font at the given index number
FontgetFontAt(int idx)
Get the font at the given index number
NamegetName(String name)
NamegetNameAt(int nameIndex)
intgetNameIndex(String name)
Gets the defined name index by name
Note: Excel defined names are case-insensitive and this method performs a case-insensitive search.
shortgetNumberOfFonts()
Get the number of fonts in the font table
intgetNumberOfNames()
intgetNumberOfSheets()
Get the number of spreadsheets in the workbook
intgetNumCellStyles()
Get the number of styles the workbook contains
StringgetPrintArea(int sheetIndex)
Retrieves the reference for the printarea of the specified sheet, the sheet name is appended to the reference even if it was not specified.
SheetgetSheet(String name)
Get sheet with the given name
SheetgetSheetAt(int index)
Get the Sheet object at the given index.
intgetSheetIndex(String name)
Returns the index of the sheet by his name
intgetSheetIndex(Sheet sheet)
Returns the index of the given sheet
StringgetSheetName(int sheet)
Get the sheet name
booleanisSheetHidden(int sheetIx)
Check whether a sheet is hidden.
booleanisSheetVeryHidden(int sheetIx)
Check whether a sheet is very hidden.
voidremoveName(int index)
Remove the defined name at the specified index
voidremoveName(String name)
Remove a defined name by name
voidremoveName(Name name)
Remove a defined name
voidremoveSheetAt(int index)
Removes sheet at the given index
voidsetActiveSheet(int sheetIndex)
Convenience method to set the active sheet.
voidsetForceFormulaRecalculation(boolean value)
Whether the application shall perform a full recalculation when the workbook is opened.
voidsetMissingCellPolicy(MissingCellPolicy missingCellPolicy)
Sets the policy on what to do when getting missing or blank cells from a row.
voidsetPrintArea(int sheetIndex, int startColumn, int endColumn, int startRow, int endRow)
For the Convenience of Java Programmers maintaining pointers.
voidsetPrintArea(int sheetIndex, String reference)
Sets the printarea for the sheet provided

i.e.

voidsetSheetHidden(int sheetIx, boolean hidden)
Hide or unhide a sheet.
voidsetSheetName(int sheet, String name)
Set the sheet name.
voidsetSheetOrder(String sheetname, int pos)
Sets the order of appearance for a given sheet.
IteratorsheetIterator()
Returns an iterator of the sheets in the workbook in sheet order.
voidwrite(OutputStream stream)
Write out this workbook to an Outputstream.