Package io.keikai.model.impl
Class BookImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractBookAdv
-
- io.keikai.model.impl.BookImpl
-
- All Implemented Interfaces:
SBook,EvaluationContributorContainer,Serializable
public class BookImpl extends AbstractBookAdv
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SCellStyleBuilderaddCellStyle()Create a cell style builder with default font and store inside this book after built, then you can useSBook.getOrAddCellStyle(SCellStyle)to find and reuse this style.SCellStyleBuilderaddCellStyle(SCellStyle src)Create a cell style builder and copy the style from the src style, store inside this book after built, then you can useSBook.getOrAddCellStyle(SCellStyle)to find and reuse this style.intaddDefaultCellStyle(SCellStyle cellStyle)Add one more default cell style and return its index.voidaddEventListener(ModelEventListener listener)add event listener to this bookvoidaddExtraStyle(SExtraStyle extraStyle)Add one more extra cell style.SFontBuilderaddFont()Create a font builder and store inside this book after built, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.SFontBuilderaddFont(SFont src)Create a font builder and copy the style from the src style, store inside this book after built, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.voidaddNamedCellstyle(SNamedStyle namedStyle)Add one more named cell style.SPictureDataaddPictureData(SPicture.Format format, byte[] data)AddSPictureDatainto this bookvoidaddTable(STable table)voidaddTableStyle(STableStyle tableStyle)Add table style into this book.protected voidcheckOwnership(SName name)protected voidcheckOwnership(SSheet sheet)voidclearDefaultCellStyles()voidclearExtraStyles()voidclearNamedStyles()voidclearTableStyles()Clear custom table styles of this book.SBookcloneBook()Clones a new book.SCellStyleBuildercreateCellStyle()Create a cell style builder with default fontSCellStylecreateCellStyle(boolean inStyleTable)Create a cell styleSCellStyleBuildercreateCellStyle(SCellStyle src)Create a cell style builder and copy the style from the src style, store inside this book after built,SCellStylecreateCellStyle(SCellStyle src, boolean inStyleTable)Create a cell style and copy the style from the src style.SColorcreateColor(byte r, byte g, byte b)SColorcreateColor(String htmlColor)SFontBuildercreateFont()Create a font builder without storing inside this book after built.SFontcreateFont(boolean inFontTable)SFontBuildercreateFont(SFont src)Create a font builder and copy the style from the src style, store inside this book after built, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.SFontcreateFont(SFont src, boolean inFontTable)SNamecreateName(String namename)SNamecreateName(String namename, String sheetName)Create a defined name on specified sheetSSheetcreateSheet(String name)Create a sheetSSheetcreateSheet(String name, SSheet src)Create a sheet and copy the content from the specified src sheet; note the owner book of the specified src sheet can be different from this book.SSheetcreateSheet(String name, SSheet src, boolean valueOnly)Create a sheet and copy the content from the specified src sheet; note the owner book of the specified src sheet can be different from this book.SNamecreateTableName(STable table)voiddeleteName(SName name)Delete a defined namevoiddeleteSheet(SSheet sheet)Delete the sheetvoiddump(StringBuilder builder)Map<SCellStyle,SCellStyle>geImmutableCellStyleTable()Map<AbstractFontAdv,AbstractFontAdv>geImmutableFontTable()ObjectgetAttribute(String name)Get the runtime custom attribute that stored in this bookMap<String,Object>getAttributes()Get the unmodifiable runtime attributes mapStringgetBookName()Get the book name, a book name is unique for book inSBookSeriesSBookSeriesgetBookSeries()Get the book series, it contains a group of book that might refer to other by book nameSCellStylegetCellStyle(SCellStyle src)List<SCellStyle>getCellStyleTable()intgetCharWidth()Office Open XML Part 4: Markup Language Reference 3.3.1.12 col (Column Width & Formatting) The character width 7 is based on Calibri 11 and character width 8 is base on Calibri 12.SCellStylegetDefaultCellStyle()Get the default style of this bookSCellStylegetDefaultCellStyle(int index)Get the nth default style of this bookCollection<SCellStyle>getDefaultCellStyles()Get all default cell styles.List<SColor>getDefaultChartSeriesColors()SFontgetDefaultFont()SCellStylegetDefaultImmutableCellStyle()SCellStylegetDefaultImmutableCellStyle(int index)SFontgetDefaultImmutableFont()StringgetDefaultPivotStyleName()Get default pivot style name.StringgetDefaultTableStyleName()Get default table style nameSDependencyTracergetDependencyTracer()Returns the dependency tracer.EvaluationContributorgetEvaluationContributor()List<SExtraStyle>getExtraStyles()Get all extra styles.List<SFont>getFontTable()doublegetFormulaMaxChange()Returns the max change of formulaintgetFormulaMaxIterations()Returns the max iterations of formulaStringgetId()intgetMaxColumnIndex()Get the max column index of this book, it isSBook.getMaxColumnIndex()-1intgetMaxColumnSize()Get the max column size of this bookintgetMaxRowIndex()Get the max row index of this book, it isSBook.getMaxRowSize()-1intgetMaxRowSize()Get the max row size of this bookSNamegetName(int idx)SNamegetNameByName(String namename)SNamegetNameByName(String namename, String sheetName)SNamedStylegetNamedStyle(String name)Get the named style of this bookCollection<SNamedStyle>getNamedStyles()Get all name styles.List<SName>getNames()intgetNumOfName()intgetNumOfSheet()Get the number of sheetSCellStylegetOrAddCellStyle(SCellStyle src)Get the cell style which stored in this book, add it into the book if not found.SCellStylegetOrAddDefaultHyperlinkStyle(SCell cell)Returns existing or add cell style for hyperlink on the specified cellSExtraStylegetOrAddExtraStyle(SExtraStyle src)Get the extra style which stored in this book, add it into the book if not found.SFontgetOrAddFont(SFont font)Get the font which stored in this book, or add it into the book if not found, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.SCellStylegetOrCreateDefaultHyperlinkStyle(SCell cell)Returns existing or create SCellStyle for hyperlink on the specified cellSPictureDatagetPictureData(int index)GetSPictureDataof the specified index from this book; null if not existCollection<SPictureData>getPicturesDatas()Returns allSPictureDatafo this book.protected RefgetRef()StringgetShareScope()SSheetgetSheet(int i)Get sheet at the indexSSheetgetSheetById(String id)Get the sheet by idSSheetgetSheetByName(String name)Get the sheet by nameintgetSheetIndex(SSheet sheet)Get the index of sheetintgetSheetIndex(String sheetName)Get the index of sheetList<SSheet>getSheets()Get all sheetsSTablegetTable(String name)STableStylegetTableStyle(String name)Get table style of the specified name.List<STableStyle>getTableStyles()Returns table styles of this book.SWorkbookProtectiongetWorkbookProtection()Returns the workbook protectionbooleanhasSubtotalExpression()voidinitDefaultCellStyles()voidinitDefaultFont()booleanisDirty()Get if book is changedbooleanisPostProcessing()voidmoveSheetTo(SSheet sheet, int index)Move the sheet to new positionvoidoptimizeCellStyle()Optimize CellStyle, usually called when export book or after many style operationvoidremoveEventListener(ModelEventListener listener)remove event listener from this bookSTableremoveTable(String name)voidresetSubtotalExpressionCache()SCellStylesearchCellStyle(CellStyleMatcher matcher)Search the style table and return the first matched style.SExtraStylesearchExtraStyle(CellStyleMatcher matcher)Search the style table and return the first matched style.SFontsearchFont(FontMatcher matcher)voidsendModelEvent(ModelEvent event)ObjectsetAttribute(String name, Object value)Set the runtime custom attribute to stored in this book, the attribute is only use for developer to stored runtime data in the book, values will not stored to excel when exporting.voidsetDefaultCellStyle(SCellStyle cellStyle)Set the default style of this bookvoidsetDefaultChartSeriesColors(List<SColor> colors)voidsetDefaultPivotStyleName(String name)Set default pivot style name.voidsetDefaultTableStyleName(String name)Set default table style namevoidsetDirty(boolean dirty)Set dirty flagvoidsetEvaluationContributor(EvaluationContributor contributor)voidsetFormulaMaxChange(double maxChange)Sets the max change of formulavoidsetFormulaMaxIterations(int maxIterations)Sets the max iterations of formulavoidsetNameName(SName name, String newname)voidsetNameName(SName name, String newname, String sheetName)voidsetPostProcessing(boolean b)voidsetShareScope(String scope)voidsetSheetName(SSheet sheet, String newname)Set the sheet to a new nameStringsetTableColumnName(STable table, String oldName, String newName)voidstartBatchNotificationMode()Starts a batch mode for event notification in a workbook.voidstopBatchNotificationMode()Stops the batch mode for event notification when triggers all of the events in a queue.
-
-
-
Constructor Detail
-
BookImpl
public BookImpl(String bookName)
-
-
Method Detail
-
initDefaultCellStyles
public void initDefaultCellStyles()
- Specified by:
initDefaultCellStylesin classAbstractBookAdv
-
setDefaultChartSeriesColors
public void setDefaultChartSeriesColors(List<SColor> colors)
- Specified by:
setDefaultChartSeriesColorsin classAbstractBookAdv
-
getDefaultChartSeriesColors
public List<SColor> getDefaultChartSeriesColors()
- Specified by:
getDefaultChartSeriesColorsin classAbstractBookAdv
-
getBookSeries
public SBookSeries getBookSeries()
Description copied from interface:SBookGet the book series, it contains a group of book that might refer to other by book name- Returns:
- book series
-
getBookName
public String getBookName()
Description copied from interface:SBookGet the book name, a book name is unique for book inSBookSeries- Returns:
- book name;
-
getSheet
public SSheet getSheet(int i)
Description copied from interface:SBookGet sheet at the index- Parameters:
i- the sheet index- Returns:
- the sheet at the index
-
getNumOfSheet
public int getNumOfSheet()
Description copied from interface:SBookGet the number of sheet- Returns:
- the number of sheet
-
getSheetByName
public SSheet getSheetByName(String name)
Description copied from interface:SBookGet the sheet by name- Parameters:
name- the name of sheet- Returns:
- the sheet, or null if not found
-
getSheetById
public SSheet getSheetById(String id)
Description copied from interface:SBookGet the sheet by id- Parameters:
id- the id of sheet- Returns:
- the sheet, or null if not found
-
checkOwnership
protected void checkOwnership(SSheet sheet)
-
checkOwnership
protected void checkOwnership(SName name)
-
startBatchNotificationMode
public void startBatchNotificationMode()
Description copied from class:AbstractBookAdvStarts a batch mode for event notification in a workbook. Note: all the subsequence event will put in a queue or be ignored it if that event has a duplicated one already inside the queue, and then all the events are triggered untilAbstractBookAdv.stopBatchNotificationMode()is invoked.Usage:
try { book.startBatchNotificationMode(); // do something here to send events. } finally { book.stopBatchNotificationMode(); // ensure this will be invoked finally }- Specified by:
startBatchNotificationModein classAbstractBookAdv- See Also:
AbstractBookAdv.stopBatchNotificationMode()
-
stopBatchNotificationMode
public void stopBatchNotificationMode()
Description copied from class:AbstractBookAdvStops the batch mode for event notification when triggers all of the events in a queue.- Specified by:
stopBatchNotificationModein classAbstractBookAdv
-
sendModelEvent
public void sendModelEvent(ModelEvent event)
- Specified by:
sendModelEventin classAbstractBookAdv
-
createSheet
public SSheet createSheet(String name)
Description copied from interface:SBookCreate a sheet- Parameters:
name- the name of sheet- Returns:
- the sheet
-
createSheet
public SSheet createSheet(String name, SSheet src)
Description copied from interface:SBookCreate a sheet and copy the content from the specified src sheet; note the owner book of the specified src sheet can be different from this book.- Parameters:
name- the name of the new created sheet; null would try to use the sheet name of the specified src sheet; if the same sheet name already used in this book then use default "SheetX" name where X is the next sheet number of this book.src- the source sheet to copy- Returns:
- the sheet
- See Also:
SBook.createSheet(String, SSheet, boolean)
-
createSheet
public SSheet createSheet(String name, SSheet src, boolean valueOnly)
Description copied from interface:SBookCreate a sheet and copy the content from the specified src sheet; note the owner book of the specified src sheet can be different from this book.- Parameters:
name- the name of the new created sheet; null would try to use the sheet name of the specified src sheet; if the same sheet name already used in this book then use default "SheetX" name where X is the next sheet number of this book.src- the source sheet to copyvalueOnly- true to copy cell value only- Returns:
- the sheet
-
getRef
protected Ref getRef()
-
setSheetName
public void setSheetName(SSheet sheet, String newname)
Description copied from interface:SBookSet the sheet to a new name- Parameters:
sheet- the sheetnewname- the new name
-
deleteSheet
public void deleteSheet(SSheet sheet)
Description copied from interface:SBookDelete the sheet- Parameters:
sheet- the sheet
-
moveSheetTo
public void moveSheetTo(SSheet sheet, int index)
Description copied from interface:SBookMove the sheet to new position- Parameters:
sheet- the sheetindex- the new position
-
dump
public void dump(StringBuilder builder)
-
getDefaultCellStyle
public SCellStyle getDefaultCellStyle()
Description copied from interface:SBookGet the default style of this book- Returns:
-
getDefaultCellStyle
public SCellStyle getDefaultCellStyle(int index)
Description copied from interface:SBookGet the nth default style of this book- Returns:
-
getDefaultImmutableCellStyle
public SCellStyle getDefaultImmutableCellStyle()
-
geImmutableCellStyleTable
public Map<SCellStyle,SCellStyle> geImmutableCellStyleTable()
-
getDefaultImmutableCellStyle
public SCellStyle getDefaultImmutableCellStyle(int index)
-
setDefaultCellStyle
public void setDefaultCellStyle(SCellStyle cellStyle)
Description copied from interface:SBookSet the default style of this book
-
createCellStyle
public SCellStyle createCellStyle(boolean inStyleTable)
Description copied from interface:SBookCreate a cell style- Parameters:
inStyleTable- if true, the new created style will be stored inside this book, then you can useSBook.searchCellStyle(CellStyleMatcher)to search and reuse this style.
-
createCellStyle
public SCellStyle createCellStyle(SCellStyle src, boolean inStyleTable)
Description copied from interface:SBookCreate a cell style and copy the style from the src style.- Parameters:
src- the source style to copy from.inStyleTable- if true, the new created style will be stored inside this book, then you can useSBook.searchCellStyle(CellStyleMatcher)to search and reuse this style.
-
addCellStyle
public SCellStyleBuilder addCellStyle()
Description copied from interface:SBookCreate a cell style builder with default font and store inside this book after built, then you can useSBook.getOrAddCellStyle(SCellStyle)to find and reuse this style.
-
addCellStyle
public SCellStyleBuilder addCellStyle(SCellStyle src)
Description copied from interface:SBookCreate a cell style builder and copy the style from the src style, store inside this book after built, then you can useSBook.getOrAddCellStyle(SCellStyle)to find and reuse this style.- Parameters:
src- the source style to copy from.
-
createCellStyle
public SCellStyleBuilder createCellStyle()
Description copied from interface:SBookCreate a cell style builder with default font
-
createCellStyle
public SCellStyleBuilder createCellStyle(SCellStyle src)
Description copied from interface:SBookCreate a cell style builder and copy the style from the src style, store inside this book after built,- Parameters:
src- the source style to copy from.
-
getCellStyleTable
public List<SCellStyle> getCellStyleTable()
-
searchCellStyle
public SCellStyle searchCellStyle(CellStyleMatcher matcher)
Description copied from interface:SBookSearch the style table and return the first matched style.- Parameters:
matcher- the style matcher- Returns:
- the matched style.
-
addExtraStyle
public void addExtraStyle(SExtraStyle extraStyle)
Description copied from interface:SBookAdd one more extra cell style.
-
getExtraStyles
public List<SExtraStyle> getExtraStyles()
Description copied from interface:SBookGet all extra styles.
-
clearExtraStyles
public void clearExtraStyles()
- Specified by:
clearExtraStylesin classAbstractBookAdv
-
searchExtraStyle
public SExtraStyle searchExtraStyle(CellStyleMatcher matcher)
Description copied from interface:SBookSearch the style table and return the first matched style.- Parameters:
matcher- the style matcher- Returns:
- the matched style.
-
getDefaultFont
public SFont getDefaultFont()
-
getDefaultImmutableFont
public SFont getDefaultImmutableFont()
-
geImmutableFontTable
public Map<AbstractFontAdv,AbstractFontAdv> geImmutableFontTable()
-
addFont
public SFontBuilder addFont()
Description copied from interface:SBookCreate a font builder and store inside this book after built, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.
-
addFont
public SFontBuilder addFont(SFont src)
Description copied from interface:SBookCreate a font builder and copy the style from the src style, store inside this book after built, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.
-
createFont
public SFontBuilder createFont()
Description copied from interface:SBookCreate a font builder without storing inside this book after built.
-
createFont
public SFontBuilder createFont(SFont src)
Description copied from interface:SBookCreate a font builder and copy the style from the src style, store inside this book after built, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.- Parameters:
src- the source style to copy from.
-
getOrAddFont
public SFont getOrAddFont(SFont font)
Description copied from class:AbstractBookAdvGet the font which stored in this book, or add it into the book if not found, then you can useSBook.searchFont(FontMatcher)to search and reuse this style.- Specified by:
getOrAddFontin classAbstractBookAdv
-
createFont
public SFont createFont(boolean inFontTable)
-
searchFont
public SFont searchFont(FontMatcher matcher)
-
getMaxRowSize
public int getMaxRowSize()
Description copied from interface:SBookGet the max row size of this book
-
getMaxColumnSize
public int getMaxColumnSize()
Description copied from interface:SBookGet the max column size of this book
-
optimizeCellStyle
public void optimizeCellStyle()
Description copied from interface:SBookOptimize CellStyle, usually called when export book or after many style operation
-
addEventListener
public void addEventListener(ModelEventListener listener)
Description copied from interface:SBookadd event listener to this book- Parameters:
listener- the listener
-
removeEventListener
public void removeEventListener(ModelEventListener listener)
Description copied from interface:SBookremove event listener from this book- Parameters:
listener- the listener
-
getAttribute
public Object getAttribute(String name)
Description copied from interface:SBookGet the runtime custom attribute that stored in this book- Parameters:
name- the attribute name- Returns:
- the value, or null if not found
-
setAttribute
public Object setAttribute(String name, Object value)
Description copied from interface:SBookSet the runtime custom attribute to stored in this book, the attribute is only use for developer to stored runtime data in the book, values will not stored to excel when exporting.- Parameters:
name- name the attribute namevalue- the attribute value
-
getAttributes
public Map<String,Object> getAttributes()
Description copied from interface:SBookGet the unmodifiable runtime attributes map- Returns:
-
createColor
public SColor createColor(byte r, byte g, byte b)
-
getSheets
public List<SSheet> getSheets()
Description copied from interface:SBookGet all sheets- Returns:
- an unmodifiable sheet list
-
createName
public SName createName(String namename, String sheetName)
Description copied from interface:SBookCreate a defined name on specified sheet- Returns:
- created defined name
-
deleteName
public void deleteName(SName name)
Description copied from interface:SBookDelete a defined name
-
getNumOfName
public int getNumOfName()
-
getName
public SName getName(int idx)
-
getSheetIndex
public int getSheetIndex(SSheet sheet)
Description copied from interface:SBookGet the index of sheet- Parameters:
sheet- the sheet- Returns:
- the index
-
getSheetIndex
public int getSheetIndex(String sheetName)
Description copied from interface:SBookGet the index of sheet- Parameters:
sheetName- the sheet
-
setShareScope
public void setShareScope(String scope)
-
getShareScope
public String getShareScope()
-
getEvaluationContributor
public EvaluationContributor getEvaluationContributor()
-
setEvaluationContributor
public void setEvaluationContributor(EvaluationContributor contributor)
-
getMaxRowIndex
public int getMaxRowIndex()
Description copied from interface:SBookGet the max row index of this book, it isSBook.getMaxRowSize()-1
-
getMaxColumnIndex
public int getMaxColumnIndex()
Description copied from interface:SBookGet the max column index of this book, it isSBook.getMaxColumnIndex()-1
-
getId
public String getId()
- Specified by:
getIdin classAbstractBookAdv
-
addPictureData
public SPictureData addPictureData(SPicture.Format format, byte[] data)
Description copied from interface:SBookAddSPictureDatainto this book- Parameters:
format- picture formatdata- picture raw data- Returns:
- the created SPictureData
-
getPictureData
public SPictureData getPictureData(int index)
Description copied from interface:SBookGetSPictureDataof the specified index from this book; null if not exist- Returns:
- SPictureData of the specified index from this book; null if not exist
-
getPicturesDatas
public Collection<SPictureData> getPicturesDatas()
Description copied from interface:SBookReturns allSPictureDatafo this book.
-
getNamedStyle
public SNamedStyle getNamedStyle(String name)
Description copied from interface:SBookGet the named style of this book- Returns:
-
addDefaultCellStyle
public int addDefaultCellStyle(SCellStyle cellStyle)
Description copied from interface:SBookAdd one more default cell style and return its index.
-
getDefaultCellStyles
public Collection<SCellStyle> getDefaultCellStyles()
Description copied from interface:SBookGet all default cell styles.- Returns:
-
addNamedCellstyle
public void addNamedCellstyle(SNamedStyle namedStyle)
Description copied from interface:SBookAdd one more named cell style.
-
getNamedStyles
public Collection<SNamedStyle> getNamedStyles()
Description copied from interface:SBookGet all name styles.- Returns:
-
clearDefaultCellStyles
public void clearDefaultCellStyles()
- Specified by:
clearDefaultCellStylesin classAbstractBookAdv
-
clearNamedStyles
public void clearNamedStyles()
- Specified by:
clearNamedStylesin classAbstractBookAdv
-
isDirty
public boolean isDirty()
Description copied from interface:SBookGet if book is changed- Returns:
- See Also:
#resetDirty()
-
setDirty
public void setDirty(boolean dirty)
Description copied from interface:SBookSet dirty flag- See Also:
SBook.isDirty()
-
createTableName
public SName createTableName(STable table)
- Specified by:
createTableNamein classAbstractBookAdv
-
addTable
public void addTable(STable table)
- Specified by:
addTablein classAbstractBookAdv
-
getTable
public STable getTable(String name)
- Specified by:
getTablein classAbstractBookAdv
-
removeTable
public STable removeTable(String name)
- Specified by:
removeTablein classAbstractBookAdv
-
setTableColumnName
public String setTableColumnName(STable table, String oldName, String newName)
- Specified by:
setTableColumnNamein classAbstractBookAdv
-
getOrCreateDefaultHyperlinkStyle
public SCellStyle getOrCreateDefaultHyperlinkStyle(SCell cell)
Description copied from interface:SBookReturns existing or create SCellStyle for hyperlink on the specified cell- Returns:
-
getOrAddDefaultHyperlinkStyle
public SCellStyle getOrAddDefaultHyperlinkStyle(SCell cell)
Description copied from interface:SBookReturns existing or add cell style for hyperlink on the specified cell- Parameters:
cell- the cell with hyperlink
-
initDefaultFont
public void initDefaultFont()
- Specified by:
initDefaultFontin classAbstractBookAdv
-
getCharWidth
public int getCharWidth()
Office Open XML Part 4: Markup Language Reference 3.3.1.12 col (Column Width & Formatting) The character width 7 is based on Calibri 11 and character width 8 is base on Calibri 12.- Specified by:
getCharWidthin classAbstractBookAdv
-
getTableStyle
public STableStyle getTableStyle(String name)
Description copied from interface:SBookGet table style of the specified name.- Returns:
-
addTableStyle
public void addTableStyle(STableStyle tableStyle)
Description copied from interface:SBookAdd table style into this book.
-
getTableStyles
public List<STableStyle> getTableStyles()
Description copied from interface:SBookReturns table styles of this book.- Returns:
-
clearTableStyles
public void clearTableStyles()
Description copied from interface:SBookClear custom table styles of this book.
-
setDefaultPivotStyleName
public void setDefaultPivotStyleName(String name)
Description copied from interface:SBookSet default pivot style name.
-
getDefaultPivotStyleName
public String getDefaultPivotStyleName()
Description copied from interface:SBookGet default pivot style name.- Returns:
-
setDefaultTableStyleName
public void setDefaultTableStyleName(String name)
Description copied from interface:SBookSet default table style name
-
getDefaultTableStyleName
public String getDefaultTableStyleName()
Description copied from interface:SBookGet default table style name- Returns:
-
getDependencyTracer
public SDependencyTracer getDependencyTracer()
Description copied from interface:SBookReturns the dependency tracer.- Returns:
-
getWorkbookProtection
public SWorkbookProtection getWorkbookProtection()
Description copied from interface:SBookReturns the workbook protection
-
setFormulaMaxIterations
public void setFormulaMaxIterations(int maxIterations)
Description copied from interface:SBookSets the max iterations of formula
-
getFormulaMaxIterations
public int getFormulaMaxIterations()
Description copied from interface:SBookReturns the max iterations of formula
-
setFormulaMaxChange
public void setFormulaMaxChange(double maxChange)
Description copied from interface:SBookSets the max change of formula
-
getFormulaMaxChange
public double getFormulaMaxChange()
Description copied from interface:SBookReturns the max change of formula
-
cloneBook
public SBook cloneBook()
Description copied from interface:SBookClones a new book.- Returns:
- a new book
-
getOrAddCellStyle
public SCellStyle getOrAddCellStyle(SCellStyle src)
Description copied from interface:SBookGet the cell style which stored in this book, add it into the book if not found.
-
getCellStyle
public SCellStyle getCellStyle(SCellStyle src)
-
getOrAddExtraStyle
public SExtraStyle getOrAddExtraStyle(SExtraStyle src)
Description copied from interface:SBookGet the extra style which stored in this book, add it into the book if not found.
-
isPostProcessing
public boolean isPostProcessing()
- Specified by:
isPostProcessingin classAbstractBookAdv
-
setPostProcessing
public void setPostProcessing(boolean b)
- Specified by:
setPostProcessingin classAbstractBookAdv
-
hasSubtotalExpression
public boolean hasSubtotalExpression()
- Specified by:
hasSubtotalExpressionin classAbstractBookAdv
-
resetSubtotalExpressionCache
public void resetSubtotalExpressionCache()
- Specified by:
resetSubtotalExpressionCachein classAbstractBookAdv
-
-