public class HSSFWorkbook extends POIDocument implements Workbook
InternalWorkbook
,
HSSFSheet
Modifier and Type | Field and Description |
---|---|
protected List<HSSFSheet> |
_sheets
this holds the HSSFSheet objects attached to this workbook
|
static int |
INITIAL_CAPACITY
used for compile-time performance/memory optimization.
|
directory
PICTURE_TYPE_DIB, PICTURE_TYPE_EMF, PICTURE_TYPE_JPEG, PICTURE_TYPE_PICT, PICTURE_TYPE_PNG, PICTURE_TYPE_WMF, SHEET_STATE_HIDDEN, SHEET_STATE_VERY_HIDDEN, SHEET_STATE_VISIBLE
Constructor and Description |
---|
HSSFWorkbook()
Creates new HSSFWorkbook from scratch (start here!)
|
HSSFWorkbook(DirectoryNode directory,
boolean preserveNodes)
given a POI POIFSFileSystem object, and a specific directory
within it, read in its Workbook and populate the high and
low level models.
|
HSSFWorkbook(DirectoryNode directory,
POIFSFileSystem fs,
boolean preserveNodes)
given a POI POIFSFileSystem object, and a specific directory
within it, read in its Workbook and populate the high and
low level models.
|
HSSFWorkbook(InputStream s) |
HSSFWorkbook(InputStream s,
boolean preserveNodes)
Companion to HSSFWorkbook(POIFSFileSystem), this constructs the POI filesystem around your
inputstream.
|
HSSFWorkbook(POIFSFileSystem fs) |
HSSFWorkbook(POIFSFileSystem fs,
boolean preserveNodes)
given a POI POIFSFileSystem object, read in its Workbook and populate the high and
low level models.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultCellStyle(CellStyle cellStyle) |
int |
addDxfCellStyle(DxfCellStyle cellStyle) |
void |
addNamedStyle(NamedStyle namedStyle) |
int |
addPicture(byte[] pictureData,
int format)
Adds a picture to the workbook.
|
int |
addSSTString(String string)
Deprecated.
Do not call this method from your applications. Use the methods
available in the HSSFRow to add string HSSFCells
|
void |
addTableStyle(TableStyle tbStyle) |
void |
addToolPack(UDFFinder toopack)
Register a new toolpack in this workbook.
|
boolean |
changeExternalReference(String oldUrl,
String newUrl)
Changes an external referenced file to another file.
|
void |
clearDefaultCellStyles() |
void |
clearDxfCellStyles() |
void |
clearNamedStyles() |
void |
clearTableStyles() |
HSSFSheet |
cloneSheet(int sheetIndex)
create an HSSFSheet from an existing sheet in the HSSFWorkbook.
|
static HSSFWorkbook |
create(InternalWorkbook book) |
HSSFCellStyle |
createCellStyle()
Create a new Cell style and add it to the workbook's style table.
|
HSSFDataFormat |
createDataFormat()
Returns the instance of HSSFDataFormat for this workbook.
|
DxfCellStyle |
createDxfCellStyle() |
HSSFFont |
createFont()
create a new Font and add it to the workbook's font table
|
protected HSSFSheet |
createHSSFSheet(HSSFWorkbook workbook) |
protected HSSFSheet |
createHSSFSheet(HSSFWorkbook workbook,
InternalSheet sheet) |
HSSFName |
createName()
creates a new named range and add it to the model
|
NamedStyle |
createNamedStyle(String name,
boolean custom,
int builtinId,
int index) |
PivotCache |
createPivotCache(AreaReference sourceRef) |
HSSFSheet |
createSheet()
create an HSSFSheet for this HSSFWorkbook, adds it to the sheets and returns
the high level representation.
|
HSSFSheet |
createSheet(String sheetname)
Create a new sheet for this Workbook and return the high level representation.
|
TableStyle |
createTableStyle(String name) |
protected void |
deletePictureData(PictureData img) |
void |
dumpDrawingGroupRecords(boolean fat)
Spits out a list of all the drawing records in the workbook.
|
HSSFFont |
findFont(short boldWeight,
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
|
String |
findSheetNameFromExternSheet(int externSheetIndex)
Deprecated.
for POI internal use only (formula rendering). This method is likely to
be removed in future versions of POI.
|
int |
getActiveSheetIndex()
gets the tab whose data is actually seen when the sheet is opened.
|
List<NameRecord> |
getAllAutofilters() |
List<HSSFObjectData> |
getAllEmbeddedObjects()
Gets all embedded OLE2 objects from the Workbook.
|
List<HSSFPictureData> |
getAllPictures()
Gets all pictures from the Workbook.
|
boolean |
getBackupFlag()
determine whether the Excel GUI will backup the workbook when saving.
|
byte[] |
getBytes()
Method getBytes - get the bytes of just the HSSF portions of the XLS file.
|
HSSFCellStyle |
getCellStyleAt(int idx)
get the cell style object at the given index
|
HSSFCreationHelper |
getCreationHelper()
Returns an object that handles instantiating concrete
classes of the various instances one needs for HSSF and XSSF.
|
HSSFPalette |
getCustomPalette() |
List<CellStyle> |
getDefaultCellStyles() |
String |
getDefaultPivotStyle() |
String |
getDefaultTableStyle() |
short |
getDisplayedTab()
Deprecated.
- Misleading name - use getFirstVisibleTab()
|
List<DxfCellStyle> |
getDxfCellStyles() |
int |
getDxfIndex(DxfCellStyle dxfCellStyle) |
int |
getExternalSheetIndex(int internalSheetIndex)
Deprecated.
for POI internal use only (formula parsing). This method is likely to
be removed in future versions of POI.
|
int |
getFirstVisibleTab()
sets the first tab that is displayed in the list of tabs in excel.
|
HSSFFont |
getFontAt(short idx)
Get the font at the given index number
|
boolean |
getForceFormulaRecalculation()
Whether Excel will be asked to recalculate all formulas when the workbook is opened.
|
Row.MissingCellPolicy |
getMissingCellPolicy()
Retrieves the current policy on what to do when
getting missing or blank cells from a row.
|
HSSFName |
getName(String name) |
HSSFName |
getNameAt(int nameIndex) |
List<NamedStyle> |
getNamedStyles() |
int |
getNameIndex(String name)
Gets the defined name index by name
Note: Excel defined names are case-insensitive and this method performs a case-insensitive search. |
String |
getNameName(int index)
gets the named range name
|
NameRecord |
getNameRecord(int nameIndex) |
short |
getNumberOfFonts()
get the number of fonts in the font table
|
int |
getNumberOfNames() |
int |
getNumberOfSheets()
get the number of spreadsheets in the workbook (this will be three after serialization)
|
short |
getNumCellStyles()
get the number of styles the workbook contains
|
List<PivotCache> |
getPivotCaches() |
String |
getPrintArea(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.
|
DirectoryNode |
getRootDirectory() |
short |
getSelectedTab()
Deprecated.
- Misleading name - use getActiveSheetIndex()
|
HSSFSheet |
getSheet(String name)
Get sheet with the given name (case insensitive match)
|
HSSFSheet |
getSheetAt(int index)
Get the HSSFSheet object at the given index.
|
int |
getSheetIndex(Sheet sheet)
Returns the index of the given sheet
|
int |
getSheetIndex(String name)
Returns the index of the sheet by his name
|
int |
getSheetIndexFromExternSheetIndex(int externSheetNumber) |
String |
getSheetName(int sheetIndex)
Get the sheet name
|
String |
getSSTString(int index)
Deprecated.
Do not call this method from your applications. Use the methods
available in the HSSFRow to get string HSSFCells
|
List<TableStyle> |
getTableStyles() |
void |
insertChartRecord()
Test only.
|
void |
insertToolPack(int index,
UDFFinder udfFinder)
Inserts the locator of user-defined functions
|
boolean |
isHidden() |
boolean |
isSheetHidden(int sheetIx)
Check whether a sheet is hidden.
|
boolean |
isSheetVeryHidden(int sheetIx)
Check whether a sheet is very hidden.
|
boolean |
isWriteProtected()
Is the workbook protected with a password (not encrypted)?
|
void |
removeName(int index)
Remove the defined name at the specified index
|
void |
removeName(String name)
Remove a defined name by name
|
void |
removePrintArea(int sheetIndex)
Delete the printarea for the sheet specified
|
void |
removeSheetAt(int index)
Removes sheet at the given index.
Care must be taken if the removed sheet is the currently active or only selected sheet in
the workbook.
|
protected void |
resetFontCache()
Reset the fonts cache, causing all new calls
to getFontAt() to create new objects.
|
String |
resolveNameXText(int refIndex,
int definedNameIndex)
Deprecated.
for POI internal use only (formula rendering). This method is likely to
be removed in future versions of POI.
|
void |
setActiveSheet(int index)
Convenience method to set the active sheet.
|
void |
setBackupFlag(boolean backupValue)
determine whether the Excel GUI will backup the workbook when saving.
|
void |
setDefaultPivotStyle(String defaultPivotStyle) |
void |
setDefaultTableStyle(String defaultTableStyle) |
void |
setDisplayedTab(short index)
Deprecated.
- Misleading name - use setFirstVisibleTab()
|
void |
setFirstVisibleTab(int index)
sets the first tab that is displayed in the list of tabs
in excel.
|
void |
setForceFormulaRecalculation(boolean value)
Whether the application shall perform a full recalculation when the workbook is opened.
|
void |
setHidden(boolean hiddenFlag) |
void |
setMissingCellPolicy(Row.MissingCellPolicy missingCellPolicy)
Sets the policy on what to do when
getting missing or blank cells from a row.
|
void |
setPrintArea(int sheetIndex,
int startColumn,
int endColumn,
int startRow,
int endRow)
For the Convenience of Java Programmers maintaining pointers.
|
void |
setPrintArea(int sheetIndex,
String reference)
Sets the printarea for the sheet provided
|
void |
setRepeatingRowsAndColumns(int sheetIndex,
int startColumn,
int endColumn,
int startRow,
int endRow)
|
void |
setSelectedTab(int index)
Selects a single sheet.
|
void |
setSelectedTab(short index)
Deprecated.
use setSelectedTab(int)
|
void |
setSelectedTabs(int[] indexes) |
void |
setSheetHidden(int sheetIx,
boolean hidden)
Hide or unhide a sheet
|
void |
setSheetHidden(int sheetIx,
int hidden)
Hide or unhide a sheet.
|
void |
setSheetName(int sheetIx,
String name)
Set the sheet name.
|
void |
setSheetOrder(String sheetname,
int pos)
sets the order of appearance for a given sheet.
|
void |
unwriteProtectWorkbook()
removes the write protect flag
|
void |
write(OutputStream stream)
Method write - write out this workbook to an Outputstream.
|
void |
writeProtectWorkbook(String password,
String username)
protect a workbook with a password (not encypted, just sets writeprotect
flags and the password.
|
copyNodeRecursively, copyNodes, copyNodes, createInformationProperties, getDocumentSummaryInformation, getPropertySet, getSummaryInformation, readProperties, writeProperties, writeProperties, writePropertySet
public static final int INITIAL_CAPACITY
public HSSFWorkbook()
public HSSFWorkbook(POIFSFileSystem fs) throws IOException
IOException
public HSSFWorkbook(POIFSFileSystem fs, boolean preserveNodes) throws IOException
fs
- the POI filesystem that contains the Workbook stream.preserveNodes
- whether to preseve other nodes, such as
macros. This takes more memory, so only say yes if you
need to. If set, will store all of the POIFSFileSystem
in memoryIOException
- if the stream cannot be readPOIFSFileSystem
public HSSFWorkbook(DirectoryNode directory, POIFSFileSystem fs, boolean preserveNodes) throws IOException
directory
- the POI filesystem directory to process fromfs
- the POI filesystem that contains the Workbook stream.preserveNodes
- whether to preseve other nodes, such as
macros. This takes more memory, so only say yes if you
need to. If set, will store all of the POIFSFileSystem
in memoryIOException
- if the stream cannot be readPOIFSFileSystem
public HSSFWorkbook(DirectoryNode directory, boolean preserveNodes) throws IOException
directory
- the POI filesystem directory to process frompreserveNodes
- whether to preseve other nodes, such as
macros. This takes more memory, so only say yes if you
need to. If set, will store all of the POIFSFileSystem
in memoryIOException
- if the stream cannot be readPOIFSFileSystem
public HSSFWorkbook(InputStream s) throws IOException
IOException
public HSSFWorkbook(InputStream s, boolean preserveNodes) throws IOException
s
- the POI filesystem that contains the Workbook stream.preserveNodes
- whether to preseve other nodes, such as
macros. This takes more memory, so only say yes if you
need to.IOException
- if the stream cannot be readPOIFSFileSystem
,
HSSFWorkbook(POIFSFileSystem)
public static HSSFWorkbook create(InternalWorkbook book)
public Row.MissingCellPolicy getMissingCellPolicy()
Row.MissingCellPolicy
getMissingCellPolicy
in interface Workbook
public void setMissingCellPolicy(Row.MissingCellPolicy missingCellPolicy)
HSSFRow.getCell(int)
}. See
Row.MissingCellPolicy
.
Note that this has no effect on any
iterators, only on when fetching Cells
by their column index.setMissingCellPolicy
in interface Workbook
public void setSheetOrder(String sheetname, int pos)
setSheetOrder
in interface Workbook
sheetname
- the name of the sheet to reorderpos
- the position that we want to insert the sheet into (0 based)public void setSelectedTab(int index)
setSelectedTab
in interface Workbook
index
- the index of the sheet to select (0 based)Sheet.setSelected(boolean)
public void setSelectedTab(short index)
public void setSelectedTabs(int[] indexes)
public void setActiveSheet(int index)
setActiveSheet
in interface Workbook
index
- index of the active sheet (0-based)public int getActiveSheetIndex()
getActiveSheetIndex
in interface Workbook
HSSFSheet.setSelected(boolean)
public short getSelectedTab()
public void setFirstVisibleTab(int index)
setFirstVisibleTab
in interface Workbook
index
- public void setDisplayedTab(short index)
public int getFirstVisibleTab()
getFirstVisibleTab
in interface Workbook
public short getDisplayedTab()
public void setSheetName(int sheetIx, String name)
setSheetName
in interface Workbook
sheetIx
- number (0 based)IllegalArgumentException
- if the name is null or invalid
or workbook already contains a sheet with this namecreateSheet(String)
,
WorkbookUtil.createSafeSheetName(String nameProposal)
public String getSheetName(int sheetIndex)
Workbook
getSheetName
in interface Workbook
sheetIndex
- sheet number (0 based)public boolean isHidden()
public void setHidden(boolean hiddenFlag)
public boolean isSheetHidden(int sheetIx)
Workbook
Note that a sheet could instead be set to be very hidden, which is different
(Workbook.isSheetVeryHidden(int)
)
isSheetHidden
in interface Workbook
sheetIx
- Numbertrue
if sheet is hiddenpublic boolean isSheetVeryHidden(int sheetIx)
Workbook
This is different from the normal hidden status
(Workbook.isSheetHidden(int)
)
isSheetVeryHidden
in interface Workbook
sheetIx
- sheet index to checktrue
if sheet is very hiddenpublic void setSheetHidden(int sheetIx, boolean hidden)
Workbook
setSheetHidden
in interface Workbook
sheetIx
- the sheet index (0-based)hidden
- True to mark the sheet as hidden, false otherwisepublic void setSheetHidden(int sheetIx, int hidden)
Workbook
setSheetHidden
in interface Workbook
sheetIx
- the sheet index (0-based)hidden
- one of the following Workbook
constants:
Workbook.SHEET_STATE_VISIBLE
,
Workbook.SHEET_STATE_HIDDEN
, or
Workbook.SHEET_STATE_VERY_HIDDEN
.public int getSheetIndex(String name)
getSheetIndex
in interface Workbook
name
- the sheet namepublic int getSheetIndex(Sheet sheet)
getSheetIndex
in interface Workbook
sheet
- the sheet to look uppublic int getExternalSheetIndex(int internalSheetIndex)
public String findSheetNameFromExternSheet(int externSheetIndex)
public String resolveNameXText(int refIndex, int definedNameIndex)
refIndex
- Index to REF entry in EXTERNSHEET record in the Link TabledefinedNameIndex
- zero-based to DEFINEDNAME or EXTERNALNAME recordpublic HSSFSheet createSheet()
createSheet
in interface Workbook
public HSSFSheet cloneSheet(int sheetIndex)
cloneSheet
in interface Workbook
public HSSFSheet createSheet(String sheetname)
Note that Excel allows sheet names up to 31 chars in length but other applications (such as OpenOffice) allow more. Some versions of Excel crash with names longer than 31 chars, others - truncate such names to 31 character.
POI's SpreadsheetAPI silently truncates the input argument to 31 characters. Example:
Sheet sheet = workbook.createSheet("My very long sheet name which is longer than 31 chars"); // will be truncated
assert 31 == sheet.getSheetName().length();
assert "My very long sheet name which i" == sheet.getSheetName();
Except the 31-character constraint, Excel applies some other rules:
Sheet name MUST be unique in the workbook and MUST NOT contain the any of the following characters:
createSheet
in interface Workbook
sheetname
- sheetname to set for the sheet.IllegalArgumentException
- if the name is null or invalid
or workbook already contains a sheet with this nameWorkbookUtil.createSafeSheetName(String nameProposal)
public int getNumberOfSheets()
getNumberOfSheets
in interface Workbook
public int getSheetIndexFromExternSheetIndex(int externSheetNumber)
public HSSFSheet getSheetAt(int index)
getSheetAt
in interface Workbook
index
- of the sheet number (0-based physical & logical)public HSSFSheet getSheet(String name)
public void removeSheetAt(int index)
removeSheetAt
in interface Workbook
index
- of the sheet (0-based)public void setBackupFlag(boolean backupValue)
backupValue
- true to indicate a backup will be performed.public boolean getBackupFlag()
public void setRepeatingRowsAndColumns(int sheetIndex, int startColumn, int endColumn, int startRow, int endRow)
HSSFSheet.setRepeatingRows(CellRangeAddress)
or HSSFSheet.setRepeatingColumns(CellRangeAddress)
To set just repeating columns:
workbook.setRepeatingRowsAndColumns(0,0,1,-1-1);To set just repeating rows:
workbook.setRepeatingRowsAndColumns(0,-1,-1,0,4);To remove all repeating rows and columns for a sheet.
workbook.setRepeatingRowsAndColumns(0,-1,-1,-1,-1);
setRepeatingRowsAndColumns
in interface Workbook
sheetIndex
- 0 based index to sheet.startColumn
- 0 based start of repeating columns.endColumn
- 0 based end of repeating columns.startRow
- 0 based start of repeating rows.endRow
- 0 based end of repeating rows.public HSSFFont createFont()
createFont
in interface Workbook
public HSSFFont findFont(short boldWeight, short color, short fontHeight, String name, boolean italic, boolean strikeout, short typeOffset, byte underline)
public short getNumberOfFonts()
getNumberOfFonts
in interface Workbook
public HSSFFont getFontAt(short idx)
protected void resetFontCache()
public HSSFCellStyle createCellStyle()
createCellStyle
in interface Workbook
IllegalStateException
- if the maximum number of cell styles exceeded the limitpublic short getNumCellStyles()
getNumCellStyles
in interface Workbook
public HSSFCellStyle getCellStyleAt(int idx)
getCellStyleAt
in interface Workbook
idx
- index within the set of stylespublic void write(OutputStream stream) throws IOException
write
in interface Workbook
write
in class POIDocument
stream
- - the java OutputStream you wish to write the XLS toIOException
- if anything can't be written.POIFSFileSystem
public byte[] getBytes()
public int addSSTString(String string)
public String getSSTString(int index)
public int getNumberOfNames()
getNumberOfNames
in interface Workbook
public HSSFName getNameAt(int nameIndex)
public NameRecord getNameRecord(int nameIndex)
public String getNameName(int index)
index
- the named range index (0 based)public void setPrintArea(int sheetIndex, String reference)
i.e. Reference = $A$1:$B$2
setPrintArea
in interface Workbook
sheetIndex
- Zero-based sheet index (0 Represents the first sheet to keep consistent with java)reference
- Valid name Reference for the Print Areapublic void setPrintArea(int sheetIndex, int startColumn, int endColumn, int startRow, int endRow)
setPrintArea
in interface Workbook
sheetIndex
- Zero-based sheet index (0 = First Sheet)startColumn
- Column to begin printareaendColumn
- Column to end the printareastartRow
- Row to begin the printareaendRow
- Row to end the printareasetPrintArea(int, String)
public String getPrintArea(int sheetIndex)
getPrintArea
in interface Workbook
sheetIndex
- Zero-based sheet index (0 Represents the first sheet to keep consistent with java)public void removePrintArea(int sheetIndex)
removePrintArea
in interface Workbook
sheetIndex
- Zero-based sheet index (0 = First Sheet)public HSSFName createName()
createName
in interface Workbook
public int getNameIndex(String name)
Workbook
getNameIndex
in interface Workbook
name
- the name of the defined namepublic void removeName(int index)
Workbook
removeName
in interface Workbook
index
- named range index (0 based)public HSSFDataFormat createDataFormat()
createDataFormat
in interface Workbook
FormatRecord
,
Record
public void removeName(String name)
Workbook
removeName
in interface Workbook
name
- the name of the defined namepublic HSSFPalette getCustomPalette()
public void insertChartRecord()
public void dumpDrawingGroupRecords(boolean fat)
public int addPicture(byte[] pictureData, int format)
addPicture
in interface Workbook
pictureData
- The bytes of the pictureformat
- The format of the picture. One of PICTURE_TYPE_*
Workbook.PICTURE_TYPE_EMF
,
Workbook.PICTURE_TYPE_WMF
,
Workbook.PICTURE_TYPE_PICT
,
Workbook.PICTURE_TYPE_JPEG
,
Workbook.PICTURE_TYPE_PNG
,
Workbook.PICTURE_TYPE_DIB
public List<HSSFPictureData> getAllPictures()
getAllPictures
in interface Workbook
HSSFPictureData
objects.)public List<NameRecord> getAllAutofilters()
public boolean isWriteProtected()
public void writeProtectWorkbook(String password, String username)
password
- to setpublic void unwriteProtectWorkbook()
public List<HSSFObjectData> getAllEmbeddedObjects()
HSSFObjectData
objects.)public HSSFCreationHelper getCreationHelper()
Workbook
getCreationHelper
in interface Workbook
public void insertToolPack(int index, UDFFinder udfFinder)
public void addToolPack(UDFFinder toopack)
addToolPack
in interface Workbook
toopack
- the toolpack to registerpublic void setForceFormulaRecalculation(boolean value)
Typically you want to force formula recalculation when you modify cell formulas or values of a workbook previously created by Excel. When set to true, this flag will tell Excel that it needs to recalculate all formulas in the workbook the next time the file is opened.
Note, that recalculation updates cached formula results and, thus, modifies the workbook. Depending on the version, Excel may prompt you with "Do you want to save the changes in filename?" on close.
setForceFormulaRecalculation
in interface Workbook
value
- true if the application will perform a full recalculation of
workbook values when the workbook is openedpublic boolean getForceFormulaRecalculation()
getForceFormulaRecalculation
in interface Workbook
public boolean changeExternalReference(String oldUrl, String newUrl)
oldUrl
- The old URL to search for and which is to be replacednewUrl
- The URL replacementpublic DirectoryNode getRootDirectory()
protected HSSFSheet createHSSFSheet(HSSFWorkbook workbook, InternalSheet sheet)
protected HSSFSheet createHSSFSheet(HSSFWorkbook workbook)
protected void deletePictureData(PictureData img)
public PivotCache createPivotCache(AreaReference sourceRef)
createPivotCache
in interface Workbook
public List<PivotCache> getPivotCaches()
getPivotCaches
in interface Workbook
public void addDefaultCellStyle(CellStyle cellStyle)
addDefaultCellStyle
in interface Workbook
public List<CellStyle> getDefaultCellStyles()
getDefaultCellStyles
in interface Workbook
public void addNamedStyle(NamedStyle namedStyle)
addNamedStyle
in interface Workbook
public NamedStyle createNamedStyle(String name, boolean custom, int builtinId, int index)
createNamedStyle
in interface Workbook
public List<NamedStyle> getNamedStyles()
getNamedStyles
in interface Workbook
public int addDxfCellStyle(DxfCellStyle cellStyle)
addDxfCellStyle
in interface Workbook
public DxfCellStyle createDxfCellStyle()
createDxfCellStyle
in interface Workbook
public List<DxfCellStyle> getDxfCellStyles()
getDxfCellStyles
in interface Workbook
public void clearDefaultCellStyles()
clearDefaultCellStyles
in interface Workbook
public void clearNamedStyles()
clearNamedStyles
in interface Workbook
public void clearDxfCellStyles()
clearDxfCellStyles
in interface Workbook
public void clearTableStyles()
clearTableStyles
in interface Workbook
public List<TableStyle> getTableStyles()
getTableStyles
in interface Workbook
public String getDefaultPivotStyle()
getDefaultPivotStyle
in interface Workbook
public String getDefaultTableStyle()
getDefaultTableStyle
in interface Workbook
public void addTableStyle(TableStyle tbStyle)
addTableStyle
in interface Workbook
public TableStyle createTableStyle(String name)
createTableStyle
in interface Workbook
public int getDxfIndex(DxfCellStyle dxfCellStyle)
getDxfIndex
in interface Workbook
public void setDefaultPivotStyle(String defaultPivotStyle)
setDefaultPivotStyle
in interface Workbook
public void setDefaultTableStyle(String defaultTableStyle)
setDefaultTableStyle
in interface Workbook
Copyright © 2020. All rights reserved.