Package io.keikai.model.impl
Class AbstractBookAdv
- java.lang.Object
-
- io.keikai.model.impl.AbstractBookAdv
-
- All Implemented Interfaces:
SBook,EvaluationContributorContainer,Serializable
- Direct Known Subclasses:
BookImpl
public abstract class AbstractBookAdv extends Object implements SBook, EvaluationContributorContainer, Serializable
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractBookAdv()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidaddTable(STable table)abstract voidclearDefaultCellStyles()abstract voidclearExtraStyles()abstract voidclearNamedStyles()abstract SNamecreateTableName(STable table)abstract intgetCharWidth()abstract List<SColor>getDefaultChartSeriesColors()abstract StringgetId()abstract 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.abstract STablegetTable(String name)abstract booleanhasSubtotalExpression()abstract voidinitDefaultCellStyles()abstract voidinitDefaultFont()abstract booleanisPostProcessing()abstract STableremoveTable(String name)abstract voidresetSubtotalExpressionCache()abstract voidsendModelEvent(ModelEvent event)abstract voidsetDefaultChartSeriesColors(List<SColor> colors)abstract voidsetPostProcessing(boolean b)abstract StringsetTableColumnName(STable table, String oldName, String newName)abstract voidstartBatchNotificationMode()Starts a batch mode for event notification in a workbook.abstract voidstopBatchNotificationMode()Stops the batch mode for event notification when triggers all of the events in a queue.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.keikai.model.sys.formula.EvaluationContributorContainer
getEvaluationContributor, setEvaluationContributor
-
Methods inherited from interface io.keikai.model.SBook
addCellStyle, addCellStyle, addDefaultCellStyle, addEventListener, addExtraStyle, addFont, addFont, addNamedCellstyle, addPictureData, addTableStyle, clearTableStyles, cloneBook, createCellStyle, createCellStyle, createCellStyle, createCellStyle, createColor, createColor, createFont, createFont, createFont, createFont, createName, createName, createSheet, createSheet, createSheet, deleteName, deleteSheet, getAttribute, getAttributes, getBookName, getBookSeries, getDefaultCellStyle, getDefaultCellStyle, getDefaultCellStyles, getDefaultFont, getDefaultPivotStyleName, getDefaultTableStyleName, getDependencyTracer, getExtraStyles, getFormulaMaxChange, getFormulaMaxIterations, getMaxColumnIndex, getMaxColumnSize, getMaxRowIndex, getMaxRowSize, getName, getNameByName, getNameByName, getNamedStyle, getNamedStyles, getNames, getNumOfName, getNumOfSheet, getOrAddCellStyle, getOrAddDefaultHyperlinkStyle, getOrAddExtraStyle, getOrCreateDefaultHyperlinkStyle, getPictureData, getPicturesDatas, getShareScope, getSheet, getSheetById, getSheetByName, getSheetIndex, getSheetIndex, getSheets, getTableStyle, getTableStyles, getWorkbookProtection, isDirty, moveSheetTo, optimizeCellStyle, removeEventListener, searchCellStyle, searchExtraStyle, searchFont, setAttribute, setDefaultCellStyle, setDefaultPivotStyleName, setDefaultTableStyleName, setDirty, setFormulaMaxChange, setFormulaMaxIterations, setNameName, setNameName, setShareScope, setSheetName
-
-
-
-
Method Detail
-
sendModelEvent
public abstract void sendModelEvent(ModelEvent event)
-
getId
public abstract String getId()
-
clearDefaultCellStyles
public abstract void clearDefaultCellStyles()
-
clearNamedStyles
public abstract void clearNamedStyles()
-
initDefaultCellStyles
public abstract void initDefaultCellStyles()
-
addTable
public abstract void addTable(STable table)
-
setTableColumnName
public abstract String setTableColumnName(STable table, String oldName, String newName)
-
initDefaultFont
public abstract void initDefaultFont()
-
getCharWidth
public abstract int getCharWidth()
-
clearExtraStyles
public abstract void clearExtraStyles()
-
getOrAddFont
public abstract SFont getOrAddFont(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.- Since:
- 5.3.0
-
isPostProcessing
public abstract boolean isPostProcessing()
-
setPostProcessing
public abstract void setPostProcessing(boolean b)
-
hasSubtotalExpression
public abstract boolean hasSubtotalExpression()
-
resetSubtotalExpressionCache
public abstract void resetSubtotalExpressionCache()
-
startBatchNotificationMode
public abstract void startBatchNotificationMode()
Starts 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 untilstopBatchNotificationMode()is invoked.Usage:
try { book.startBatchNotificationMode(); // do something here to send events. } finally { book.stopBatchNotificationMode(); // ensure this will be invoked finally }- Since:
- 5.1.0
- See Also:
stopBatchNotificationMode()
-
stopBatchNotificationMode
public abstract void stopBatchNotificationMode()
Stops the batch mode for event notification when triggers all of the events in a queue.- Since:
- 5.1.0
-
-