public interface IScellCoreApiFactory
Returns the API entry point IWorkbook
Creates a new SCell document or loads the existing one
Can be obtained from the IScellApiResolver
:
ScellApiEntryPoint.getApiResolverAsync().thenAccept(apiResolver -> {
IScellCoreApiFactory coreApiProvider = apiResolver.resolve(IScellCoreApiFactory.class);
// ...
});
Modifier and Type | Method and Description |
---|---|
IWorkbook |
createNew()
Creates a new document
|
IWorkbook |
createNew(String firstWorksheetName)
Creates a new document
|
IProductInfo |
getProductInfo() |
IWorkbook |
load(File file)
Loads the existing spreadsheet file
|
IWorkbook |
load(File file,
Supplier<String> passwordSupplier)
Loads the existing spreadsheet file
|
IWorkbook |
load(InputStream inputStream,
Supplier<String> passwordSupplier,
String title)
Loads the document as a stream
|
static IScellCoreApiFactory |
resolve(IScellApiResolver resolver)
Resolves a new instance of
IScellCoreApiFactory with given resolver |
Set<IFontProperties> |
setCustomFontsFolderPath(String path) |
static IScellCoreApiFactory resolve(IScellApiResolver resolver)
IScellCoreApiFactory
with given resolverresolver
- current resolverIScellCoreApiFactory
IWorkbook createNew(String firstWorksheetName)
firstWorksheetName
- sets the name of the first worksheetIWorkbook
IWorkbook load(File file, Supplier<String> passwordSupplier)
IWorkbook load(InputStream inputStream, Supplier<String> passwordSupplier, String title)
inputStream
- the InputStream of the xlsx-file to be openedpasswordSupplier
- provides the password if the stream is protectedtitle
- the title of the documentIWorkbook
IProductInfo getProductInfo()
IProductInfo
service which is used to get the SCell Component informationSet<IFontProperties> setCustomFontsFolderPath(String path)
Copyright © 2024. All rights reserved.