IWorkbook - Spreadsheet content entry point

IWorkbook is an interface to manage spreadsheet content.

Usage examples:

import com.intechcore.scomponents.scell.api.init.ScellApiEntryPoint;
import com.intechcore.scomponents.scell.api.spreadsheet.IScellCoreApiFactory;
import com.intechcore.scomponents.scell.api.spreadsheet.model.IWorkbook;
import com.intechcore.scomponents.scell.api.spreadsheet.model.IWorksheet;

public class TestApp {
    public static void main(String[] args) {
        ScellApiEntryPoint.getApiResolverAsync().thenAccept(resolver -> {
            IScellCoreApiFactory apiFactory = resolver.resolve(IScellCoreApiFactory.class);
            IWorkbook newWorkbook = apiFactory.createNew();

            int firstSheetID = newWorkbook.getFirst().getId();                            // getting worksheet ID
            String firstSheetName = newWorkbook.getFirst().getName();                     // getting worksheet name

            IWorksheet firstSheetByID = newWorkbook.find(firstSheetID).get();             // getting worksheet by ID
            IWorksheet firstSheetByName = newWorkbook.find(firstSheetName).get();         // getting worksheet by name
        }).whenComplete((unused, throwable) -> {
            if (throwable != null) {
                System.out.println(throwable.getMessage());
            }
        }).join();
    }
}
  • How to save xlsx file see here

Next - IWorksheet