public final class SheetSelectorFactory extends Object
SheetSelector
instances.
Modifier and Type | Method and Description |
---|---|
static SheetSelector |
createActiveSheetSelector()
Creates SheetSelector instance with active sheet selected.
|
static SheetSelector |
createAllSheetsSelector()
Creates SheetSelector instance with all sheets selected.
|
static SheetSelector |
createSheetsSelector(Set<String> sheetNames)
Creates SheetSelector instance with specified sheet names selected.
|
public static SheetSelector createAllSheetsSelector()
SheetSelector
instance with all sheets selected.
Resulting sheet order will be the same as in the original spreadsheet document.
SheetSelector
instance, with all sheets selected
public static SheetSelector createActiveSheetSelector()
SheetSelector
instance with active sheet selected.
SheetSelector
instance, with active sheet selected
public static SheetSelector createSheetsSelector(Set<String> sheetNames)
SheetSelector
instance with specified sheet names selected.
Resulting sheet order will be the same as in the original spreadsheet document. All sheet names are case-insensitive, i.e. if there is a "Test" sheet in the spreadsheet, then any of "test", "Test", "TEST" etc. will work for selection.
Duplicate sheets will be printed only once regardless of how much times a sheet name is passed.
sheetNames
- sheet names to select
SheetSelector
instance, with specified sheet names selected
Copyright © 1998–2022 iText Group NV. All rights reserved.