public enum SheetProtectionOption extends Enum<SheetProtectionOption>
Enum Constant and Description |
---|
AUTO_FILTER
Autofilters are locked when the sheet is protected.
|
DELETE_COLUMNS
Deleting columns is locked when the sheet is protected.
|
DELETE_ROWS
Deleting rows is locked when the sheet is protected.
|
FORMAT_CELLS
Formatting cells is locked when the sheet is protected.
|
FORMAT_COLUMNS
Formatting columns is locked when the sheet is protected.
|
FORMAT_ROWS
Formatting rows is locked when the sheet is protected.
|
INSERT_COLUMNS
Inserting columns is locked when the sheet is protected.
|
INSERT_HYPERLINKS
Inserting hyperlinks is locked when the sheet is protected.
|
INSERT_ROWS
Inserting rows is locked when the sheet is protected.
|
OBJECTS
Objects are locked when the sheet is protected.
|
PIVOT_TABLES
Pivot tables are locked when the sheet is protected.
|
SCENARIOS
Scenarios are locked when the sheet is protected.
|
SELECT_LOCKED_CELLS
Selection of locked cells is locked when the sheet is protected.
|
SELECT_UNLOCKED_CELLS
Selection of unlocked cells is locked when the sheet is protected.
|
SHEET
Sheet is locked when the sheet is protected.
|
SORT
Sorting is locked when the sheet is protected.
|
Modifier and Type | Field and Description |
---|---|
static Set<SheetProtectionOption> |
DEFAULT_OPTIONS
The options that are
true by default AND 'sheet'. |
Modifier and Type | Method and Description |
---|---|
boolean |
getDefaultValue() |
String |
getName() |
static SheetProtectionOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SheetProtectionOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SheetProtectionOption AUTO_FILTER
public static final SheetProtectionOption DELETE_COLUMNS
public static final SheetProtectionOption DELETE_ROWS
public static final SheetProtectionOption FORMAT_CELLS
public static final SheetProtectionOption FORMAT_COLUMNS
public static final SheetProtectionOption FORMAT_ROWS
public static final SheetProtectionOption INSERT_COLUMNS
public static final SheetProtectionOption INSERT_HYPERLINKS
public static final SheetProtectionOption INSERT_ROWS
public static final SheetProtectionOption PIVOT_TABLES
public static final SheetProtectionOption SORT
public static final SheetProtectionOption SHEET
public static final SheetProtectionOption OBJECTS
public static final SheetProtectionOption SCENARIOS
public static final SheetProtectionOption SELECT_LOCKED_CELLS
public static final SheetProtectionOption SELECT_UNLOCKED_CELLS
public static final Set<SheetProtectionOption> DEFAULT_OPTIONS
true
by default AND 'sheet'.public static SheetProtectionOption[] values()
for (SheetProtectionOption c : SheetProtectionOption.values()) System.out.println(c);
public static SheetProtectionOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public boolean getDefaultValue()
Copyright © 2019. All rights reserved.