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 |
---|---|
Set<IFontProperties> |
addFontsFromFs(ILocationsProvider provider) |
Set<IFontProperties> |
addFontsFromFsFolder(String folderPath) |
Set<IFontProperties> |
addFontsFromResources(String folderPath) |
IWorkbook |
createNew()
Creates a new document
|
IWorkbook |
createNew(String firstWorksheetName)
Creates a new document
|
Set<IFontProperties> |
getAllAvailableFonts() |
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,
boolean tryOpenAsCsv,
Supplier<String> passwordSupplier,
String title)
Loads the document as a stream with trying to open it as a CSV
|
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 |
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
IWorkbook load(InputStream inputStream, boolean tryOpenAsCsv, Supplier<String> passwordSupplier, String title)
inputStream
- the InputStream of the xlsx-file to be openedtryOpenAsCsv
- if true
, it will try to open incoming stream as a CSVpasswordSupplier
- 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> addFontsFromFsFolder(String folderPath)
Set<IFontProperties> addFontsFromResources(String folderPath)
Set<IFontProperties> addFontsFromFs(ILocationsProvider provider)
Set<IFontProperties> getAllAvailableFonts()
Copyright © 2025. All rights reserved.