public interface IWorkbook
Modifier and Type | Method and Description |
---|---|
IWorksheet |
add()
Creates and adds a worksheet to the workbook
|
IWorksheet |
addCopy(int originId)
Copies the existing worksheet and adds it to the workbook
|
Stream<IWorksheet> |
all() |
IWorkbook |
createCopy()
Creates a new
IWorkbook with copy all the data from current this |
Optional<IWorksheet> |
find(int id)
Searches the worksheet by the ID
|
Optional<IWorksheet> |
find(String name)
Searches the worksheet by the name
|
com.intechcore.scomponents.common.core.event.manager.IEventManager |
getEventManager() |
IWorksheet |
getFirst() |
IFormulasService |
getFormulasService() |
IScellApiResolver |
getResolver() |
ISearchService |
getSearchService() |
IFileWriter |
getWriter() |
Boolean |
remove(int id)
Removes the worksheet
|
IWorksheet |
removeAll()
Removes all worksheets and adds a new one (since the workbook must contain at least one worksheet)
|
void |
setProtection(IPasswordInput passwordHandler)
Protects or (when the param is null) does not protect the current document.
|
IFileWriter getWriter()
IFileWriter
to save or convert the xlsxIWorksheet add()
IWorksheet
IWorksheet addCopy(int originId)
originId
- the worksheet id to be copiedIWorksheet
IWorkbook createCopy()
IWorkbook
with copy all the data from current thisIWorkbook
Boolean remove(int id)
id
- the id of the worksheet to be removedIWorksheet removeAll()
IWorksheet
ISearchService getSearchService()
ISearchService
to find any content in the WorkbookIWorksheet getFirst()
IWorksheet
of the workbookOptional<IWorksheet> find(int id)
id
- the ID of the required worksheet (integer)IWorksheet
or Optional.empty()
Optional<IWorksheet> find(String name)
name
- the name of the required worksheetIWorksheet
or Optional.empty()Stream<IWorksheet> all()
IWorksheet
com.intechcore.scomponents.common.core.event.manager.IEventManager getEventManager()
IEventManager
to manage the internal eventsIScellApiResolver getResolver()
IScellApiResolver
for conveniencevoid setProtection(IPasswordInput passwordHandler)
passwordHandler
- the password supplier. To remove the existing protection set the param to nullIFormulasService getFormulasService()
Copyright © 2024. All rights reserved.