|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.poi.POIDocument
org.zkoss.poi.hssf.usermodel.HSSFWorkbook
org.zkoss.zss.model.impl.HSSFBookImpl
public class HSSFBookImpl
Implementation of Book based on HSSFWorkbook.
| Field Summary |
|---|
| Fields inherited from class org.zkoss.poi.hssf.usermodel.HSSFWorkbook |
|---|
_sheets, INITIAL_CAPACITY |
| Fields inherited from class org.zkoss.poi.POIDocument |
|---|
directory |
| Fields inherited from interface org.zkoss.poi.ss.usermodel.Workbook |
|---|
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 |
| Fields inherited from interface org.zkoss.zss.model.impl.BookCtrl |
|---|
CLASS |
| Constructor Summary | |
|---|---|
HSSFBookImpl(java.lang.String bookname,
java.io.InputStream is)
|
|
| Method Summary | |
|---|---|
void |
addFocus(java.lang.Object focus)
|
void |
addFunctionMapper(org.zkoss.xel.FunctionMapper mapper)
Adds a function mapper to this model for the specified prefix. |
void |
addVariableResolver(org.zkoss.xel.VariableResolver resolver)
Adds a variable resolver to this model. |
boolean |
containsFocus(java.lang.Object focus)
|
protected org.zkoss.poi.hssf.usermodel.HSSFSheet |
createHSSFSheet(org.zkoss.poi.hssf.usermodel.HSSFWorkbook workbook)
|
protected org.zkoss.poi.hssf.usermodel.HSSFSheet |
createHSSFSheet(org.zkoss.poi.hssf.usermodel.HSSFWorkbook workbook,
org.zkoss.poi.hssf.model.InternalSheet sheet)
|
void |
deletePictureData(org.zkoss.poi.ss.usermodel.PictureData img)
Delete the PictureData. |
org.zkoss.poi.ss.usermodel.Font |
findFont(short boldWeight,
org.zkoss.poi.ss.usermodel.Color color,
short fontHeight,
java.lang.String name,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline)
Finds a font that matches the one with the supplied attributes |
java.lang.String |
getBookName()
Returns the associated book name of this spreadsheet book (important when used with @{link Books}). |
int |
getDefaultCharWidth()
Returns default character width in pixel. |
org.zkoss.poi.ss.usermodel.Font |
getDefaultFont()
Returns the default font used in this book. |
org.zkoss.poi.ss.usermodel.FormulaEvaluator |
getFormulaEvaluator()
Returns the associated formula evaluator for this spreadsheet book. |
org.zkoss.poi.ss.util.CellRangeAddress |
getRepeatingRowsAndColumns(int sheetIndex)
Returns the repeat rows and columns in a CellRangeAddress per the specified sheet; -1 mean no repeat rows or columns |
java.lang.String |
getShareScope()
Returns share scope of this book. |
org.zkoss.poi.ss.SpreadsheetVersion |
getSpreadsheetVersion()
Returns the spreadsheet version of this book (EXCEL97 or EXCEL2007). |
Worksheet |
getWorksheet(java.lang.String name)
Returns ZK Spreadsheet Worksheet by name. |
Worksheet |
getWorksheetAt(int index)
Returns ZK Spreadsheet Worksheet by index(0-based). |
boolean |
isDate1904()
Gets a boolean value that indicates whether the date systems used in the workbook starts in 1904. |
RefBook |
newRefBook(Book book)
Create an associated reference book. |
java.lang.String |
nextFocusId()
Return next focus id for the UI. |
java.lang.String |
nextSheetId()
Return next sheet id. |
void |
notifyChange(java.lang.String[] variables)
Notify this book the value of the specified variable has changed. |
void |
removeFocus(java.lang.Object focus)
|
void |
removeFunctionMapper(org.zkoss.xel.FunctionMapper mapper)
Removes a function mapper to this model for the specified prefix. |
void |
removeSheetAt(int index)
|
void |
removeVariableResolver(org.zkoss.xel.VariableResolver resolver)
Removes a variable resolver to this model. |
void |
setDefaultFont(org.zkoss.poi.ss.usermodel.Font font)
Sets the default font used in this book. |
void |
setShareScope(java.lang.String scope)
Sets share scope of this book; default scope is EventQueues.DESKTOP. |
void |
setSheetName(int index,
java.lang.String name)
|
void |
subscribe(org.zkoss.zk.ui.event.EventListener listener)
Subscribe a listener to listener to this book |
void |
unsubscribe(org.zkoss.zk.ui.event.EventListener listener)
Unsubscribe the specified listener from listening to this book |
| Methods inherited from class org.zkoss.poi.hssf.usermodel.HSSFWorkbook |
|---|
addPicture, addSSTString, addToolPack, changeExternalReference, cloneSheet, create, createCellStyle, createDataFormat, createFont, createName, createPivotCache, createSheet, createSheet, dumpDrawingGroupRecords, findFont, findSheetNameFromExternSheet, getActiveSheetIndex, getAllAutofilters, getAllEmbeddedObjects, getAllPictures, getBackupFlag, getBytes, getCellStyleAt, getCreationHelper, getCustomPalette, getDisplayedTab, getExternalSheetIndex, getFirstVisibleTab, getFontAt, getForceFormulaRecalculation, getMissingCellPolicy, getName, getNameAt, getNameIndex, getNameName, getNameRecord, getNumberOfFonts, getNumberOfNames, getNumberOfSheets, getNumCellStyles, getPivotCaches, getPrintArea, getSelectedTab, getSheet, getSheetAt, getSheetIndex, getSheetIndex, getSheetIndexFromExternSheetIndex, getSheetName, getSSTString, insertChartRecord, isHidden, isSheetHidden, isSheetVeryHidden, isWriteProtected, removeName, removeName, removePrintArea, resetFontCache, resolveNameXText, setActiveSheet, setBackupFlag, setDisplayedTab, setFirstVisibleTab, setForceFormulaRecalculation, setHidden, setMissingCellPolicy, setPrintArea, setPrintArea, setRepeatingRowsAndColumns, setSelectedTab, setSelectedTab, setSelectedTabs, setSheetHidden, setSheetHidden, setSheetOrder, unwriteProtectWorkbook, write, writeProtectWorkbook |
| Methods inherited from class org.zkoss.poi.POIDocument |
|---|
copyNodeRecursively, copyNodes, copyNodes, createInformationProperties, getDocumentSummaryInformation, getPropertySet, getSummaryInformation, readProperties, writeProperties, writeProperties, writePropertySet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.zkoss.poi.ss.usermodel.Workbook |
|---|
addPicture, addToolPack, cloneSheet, createCellStyle, createDataFormat, createFont, createName, createPivotCache, createSheet, createSheet, findFont, getActiveSheetIndex, getAllPictures, getCellStyleAt, getCreationHelper, getFirstVisibleTab, getFontAt, getForceFormulaRecalculation, getMissingCellPolicy, getName, getNameAt, getNameIndex, getNumberOfFonts, getNumberOfNames, getNumberOfSheets, getNumCellStyles, getPivotCaches, getPrintArea, getSheet, getSheetAt, getSheetIndex, getSheetIndex, getSheetName, isHidden, isSheetHidden, isSheetVeryHidden, removeName, removeName, removePrintArea, setActiveSheet, setFirstVisibleTab, setForceFormulaRecalculation, setHidden, setMissingCellPolicy, setPrintArea, setPrintArea, setRepeatingRowsAndColumns, setSelectedTab, setSheetHidden, setSheetHidden, setSheetOrder, write |
| Constructor Detail |
|---|
public HSSFBookImpl(java.lang.String bookname,
java.io.InputStream is)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public org.zkoss.poi.ss.SpreadsheetVersion getSpreadsheetVersion()
Book
getSpreadsheetVersion in interface Bookpublic java.lang.String getBookName()
Book
getBookName in interface Bookpublic org.zkoss.poi.ss.usermodel.FormulaEvaluator getFormulaEvaluator()
Book
getFormulaEvaluator in interface Bookpublic void addFunctionMapper(org.zkoss.xel.FunctionMapper mapper)
Book
addFunctionMapper in interface Bookmapper - the function mapperpublic void addVariableResolver(org.zkoss.xel.VariableResolver resolver)
Book
addVariableResolver in interface Bookresolver - the variable resolver to be added.public void removeFunctionMapper(org.zkoss.xel.FunctionMapper mapper)
Book
removeFunctionMapper in interface Bookmapper - the function mapper.prefix the prefix of the specified mapper.public void removeVariableResolver(org.zkoss.xel.VariableResolver resolver)
Book
removeVariableResolver in interface Bookresolver - the variable resolver to be removed.public void subscribe(org.zkoss.zk.ui.event.EventListener listener)
Book
subscribe in interface Bookpublic void unsubscribe(org.zkoss.zk.ui.event.EventListener listener)
Book
unsubscribe in interface Bookpublic org.zkoss.poi.ss.usermodel.Font getDefaultFont()
Book
getDefaultFont in interface Bookpublic int getDefaultCharWidth()
Book
getDefaultCharWidth in interface Bookpublic void setDefaultFont(org.zkoss.poi.ss.usermodel.Font font)
Book
setDefaultFont in interface Bookfont - the font to be used as the default font in this book.public void notifyChange(java.lang.String[] variables)
Book
notifyChange in interface Bookvariables - the variable namespublic org.zkoss.poi.ss.util.CellRangeAddress getRepeatingRowsAndColumns(int sheetIndex)
Book
getRepeatingRowsAndColumns in interface BooksheetIndex - the sheet index
public void deletePictureData(org.zkoss.poi.ss.usermodel.PictureData img)
Book
deletePictureData in interface BookdeletePictureData in class org.zkoss.poi.hssf.usermodel.HSSFWorkbookpublic void removeSheetAt(int index)
removeSheetAt in interface org.zkoss.poi.ss.usermodel.WorkbookremoveSheetAt in class org.zkoss.poi.hssf.usermodel.HSSFWorkbook
public void setSheetName(int index,
java.lang.String name)
setSheetName in interface org.zkoss.poi.ss.usermodel.WorkbooksetSheetName in class org.zkoss.poi.hssf.usermodel.HSSFWorkbook
protected org.zkoss.poi.hssf.usermodel.HSSFSheet createHSSFSheet(org.zkoss.poi.hssf.usermodel.HSSFWorkbook workbook,
org.zkoss.poi.hssf.model.InternalSheet sheet)
createHSSFSheet in class org.zkoss.poi.hssf.usermodel.HSSFWorkbookprotected org.zkoss.poi.hssf.usermodel.HSSFSheet createHSSFSheet(org.zkoss.poi.hssf.usermodel.HSSFWorkbook workbook)
createHSSFSheet in class org.zkoss.poi.hssf.usermodel.HSSFWorkbook
public org.zkoss.poi.ss.usermodel.Font findFont(short boldWeight,
org.zkoss.poi.ss.usermodel.Color color,
short fontHeight,
java.lang.String name,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline)
findFont in interface Booknullpublic java.lang.String getShareScope()
BookNote: this feature requires ZK Spreadsheet EE.
getShareScope in interface BookBook.setShareScope(String)public void setShareScope(java.lang.String scope)
BookEventQueues.DESKTOP.
Note: this feature requires ZK Spreadsheet EE.
setShareScope in interface Bookscope - share scope of this book: can be EventQueues.DESKTOP,EventQueues.GROUP,EventQueues.SESSION,EventQueues.APPLICATION.public Worksheet getWorksheetAt(int index)
BookWorksheet by index(0-based).
getWorksheetAt in interface Bookpublic Worksheet getWorksheet(java.lang.String name)
BookWorksheet by name.
getWorksheet in interface Bookpublic boolean isDate1904()
BookThe default value is false, meaning that the workbook uses the 1900 date system, where 1/1/1900 is the first day in the system..
isDate1904 in interface Bookpublic RefBook newRefBook(Book book)
BookCtrl
newRefBook in interface BookCtrlbook - the ZK Spreadsheet bookpublic java.lang.String nextSheetId()
BookCtrl
nextSheetId in interface BookCtrlpublic java.lang.String nextFocusId()
BookCtrl
nextFocusId in interface BookCtrlpublic void addFocus(java.lang.Object focus)
addFocus in interface BookCtrlpublic void removeFocus(java.lang.Object focus)
removeFocus in interface BookCtrlpublic boolean containsFocus(java.lang.Object focus)
containsFocus in interface BookCtrl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||