ISpreadsheetApiProvider - IWorkbook creation, getting API info

ISpreadsheetApiProvider - is a SCell Core API main entry point.

Functionality:

import com.intechcore.scomponents.scell.api.spreadsheet.model.IWorkbook;

public class CustomerExamples {
    private static final CompletableFuture<Optional<IScellApiResolver>> apiResolverFuture = ScellApiProvider.getApiResolverAsync();

    public static void main(String[] args) {
        apiResolverFuture.thenAccept(apiResolverOpt -> apiResolverOpt.ifPresent(apiResolver -> {

            ISpreadsheetApiProvider coreApiProvider = apiResolver.resolve(ISpreadsheetApiProvider.class); // Core API entry point

            ComparableFuture<IWorkbook> newWorkbook = coreApiProvider.createNew();                        // new spreadsheet

            CompletableFuture<IWorkbook> loadedWorkbook = coreApiProvider
                    .load(new File("spreadsheet.xlsx"), () -> "password");                                 // loaded spreadsheet

        })).join();
    }
}

To get SCell Public API information call getProductInfo():

public class CustomerExamples {
    private static final CompletableFuture<Optional<IScellApiResolver>> apiResolverFuture = ScellApiProvider.getApiResolverAsync();

    public static void main(String[] args) {
        apiResolverFuture.thenAccept(apiResolverOpt -> apiResolverOpt.ifPresent(apiResolver -> {

            ISpreadsheetApiProvider coreApiProvider = apiResolver.resolve(ISpreadsheetApiProvider.class); // Core API entry point

            IProductInfo productInfo = coreApiProvider.getProductInfo();
            
            System.out.println("API interfaces version: " + productInfo.getApiInterfacesVersion());
            System.out.println("API implementation version: " + productInfo.getApiImplementationVersion());
            System.out.println("API build number: " + productInfo.getBuildNumber());

        })).join();
    }
}

Next (IWorkbook - Spreadsheet content entry point)