- java.lang.Object
-
- java.lang.Enum<SheetProtectionOption>
-
- org.dhatim.fastexcel.SheetProtectionOption
-
- All Implemented Interfaces:
Serializable,Comparable<SheetProtectionOption>
public enum SheetProtectionOption extends Enum<SheetProtectionOption>
Represents an attribute on the <sheetProtection> xml-tag.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_FILTERAutofilters are locked when the sheet is protected.DELETE_COLUMNSDeleting columns is locked when the sheet is protected.DELETE_ROWSDeleting rows is locked when the sheet is protected.FORMAT_CELLSFormatting cells is locked when the sheet is protected.FORMAT_COLUMNSFormatting columns is locked when the sheet is protected.FORMAT_ROWSFormatting rows is locked when the sheet is protected.INSERT_COLUMNSInserting columns is locked when the sheet is protected.INSERT_HYPERLINKSInserting hyperlinks is locked when the sheet is protected.INSERT_ROWSInserting rows is locked when the sheet is protected.OBJECTSObjects are locked when the sheet is protected.PIVOT_TABLESPivot tables are locked when the sheet is protected.SCENARIOSScenarios are locked when the sheet is protected.SELECT_LOCKED_CELLSSelection of locked cells is locked when the sheet is protected.SELECT_UNLOCKED_CELLSSelection of unlocked cells is locked when the sheet is protected.SHEETSheet is locked when the sheet is protected.SORTSorting is locked when the sheet is protected.
-
Field Summary
Fields Modifier and Type Field Description static Set<SheetProtectionOption>DEFAULT_OPTIONSThe options that aretrueby default AND 'sheet'.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultValue()StringgetName()static SheetProtectionOptionvalueOf(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.
-
-
-
Enum Constant Detail
-
AUTO_FILTER
public static final SheetProtectionOption AUTO_FILTER
Autofilters are locked when the sheet is protected.
-
DELETE_COLUMNS
public static final SheetProtectionOption DELETE_COLUMNS
Deleting columns is locked when the sheet is protected.
-
DELETE_ROWS
public static final SheetProtectionOption DELETE_ROWS
Deleting rows is locked when the sheet is protected.
-
FORMAT_CELLS
public static final SheetProtectionOption FORMAT_CELLS
Formatting cells is locked when the sheet is protected.
-
FORMAT_COLUMNS
public static final SheetProtectionOption FORMAT_COLUMNS
Formatting columns is locked when the sheet is protected.
-
FORMAT_ROWS
public static final SheetProtectionOption FORMAT_ROWS
Formatting rows is locked when the sheet is protected.
-
INSERT_COLUMNS
public static final SheetProtectionOption INSERT_COLUMNS
Inserting columns is locked when the sheet is protected.
-
INSERT_HYPERLINKS
public static final SheetProtectionOption INSERT_HYPERLINKS
Inserting hyperlinks is locked when the sheet is protected.
-
INSERT_ROWS
public static final SheetProtectionOption INSERT_ROWS
Inserting rows is locked when the sheet is protected.
-
PIVOT_TABLES
public static final SheetProtectionOption PIVOT_TABLES
Pivot tables are locked when the sheet is protected.
-
SORT
public static final SheetProtectionOption SORT
Sorting is locked when the sheet is protected.
-
SHEET
public static final SheetProtectionOption SHEET
Sheet is locked when the sheet is protected.
-
OBJECTS
public static final SheetProtectionOption OBJECTS
Objects are locked when the sheet is protected.
-
SCENARIOS
public static final SheetProtectionOption SCENARIOS
Scenarios are locked when the sheet is protected.
-
SELECT_LOCKED_CELLS
public static final SheetProtectionOption SELECT_LOCKED_CELLS
Selection of locked cells is locked when the sheet is protected.
-
SELECT_UNLOCKED_CELLS
public static final SheetProtectionOption SELECT_UNLOCKED_CELLS
Selection of unlocked cells is locked when the sheet is protected.
-
-
Field Detail
-
DEFAULT_OPTIONS
public static final Set<SheetProtectionOption> DEFAULT_OPTIONS
The options that aretrueby default AND 'sheet'.
-
-
Method Detail
-
values
public static SheetProtectionOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SheetProtectionOption c : SheetProtectionOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SheetProtectionOption valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
-
getDefaultValue
public boolean getDefaultValue()
-
-