Package io.keikai.axyra.sheets.calc
Enum Class CalcMode
- All Implemented Interfaces:
Serializable,Comparable<CalcMode>,Constable
The workbook calculation mode, read with
Workbook.calcMode() and set
with Workbook.setCalcMode(CalcMode). It is saved to the file, so
Excel uses the same mode on open.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRecalculates dependent formulas after every change; Excel's default.Excel's "Automatic except for data tables" (calcMode="autoNoTable").Recalculates only when asked:Workbook.recalculate()orWorkbook.recalculateDirty(). -
Method Summary
Modifier and TypeMethodDescriptionintcode()The engine code: 0 automatic, 1 manual, 2 automatic except tables.static CalcModefromCode(int code) The mode for an engine code.static CalcModeReturns the enum constant of this class with the specified name.static CalcMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTOMATIC
Recalculates dependent formulas after every change; Excel's default. Switching to this mode from MANUAL recalculates the pending cells at once. -
MANUAL
Recalculates only when asked:Workbook.recalculate()orWorkbook.recalculateDirty(). Until then, formula cells keep their old values, and a save writes those values. -
AUTOMATIC_EXCEPT_TABLES
Excel's "Automatic except for data tables" (calcMode="autoNoTable"). The engine recalculates exactly as inAUTOMATIC, because it has no what-if data tables. The mode is kept and written back, so Excel applies it on open.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code()The engine code: 0 automatic, 1 manual, 2 automatic except tables. -
fromCode
The mode for an engine code.
-