IWorksheet - Sheet content manager

IWorksheet - interface to manage cells content.

IWorksheet depends on IWorkbook instance. With worksheet object you can get info e.g.: worksheet ID, name, hidden state.

Example:

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

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
            IWorkbook newWorkbook = coreApiProvider.createNew().join();                                   // new spreadsheet
            IWorksheet worksheet = newWorkbook.all().findFirst().get();                                   // getting first worksheet
            
            int worksheetID = worksheet.getId();                                                          // worksheet ID
            
            String worksheetName = worksheet.getName();                                                   // worksheet name
            
            boolean isHidden = worksheet.isHidden();                                                      // worksheet's hidden state
            
        })).join();
    }
}

Other methods:

Next (IWorksheetContent - Cells content manager)