[]
Serializable, Comparable<TotalsCalculation>, ConstableUse this enumeration with ITableColumn.setTotalsCalculation(TotalsCalculation) to control how the totals cell is calculated for a table column, such as summing numeric values, counting cells, or returning the minimum or maximum value.
worksheet.getRange("A1:B3").setValue(new Object[][] {
{"Product", "Amount"},
{"Apple", 100},
{"Pear", 200}
});
ITable table = worksheet.getTables().add(worksheet.getRange("A1:B3"), true);
table.setShowTotals(true);
table.getColumns().get(1).setTotalsCalculation(TotalsCalculation.Sum);
Enum.EnumDesc<E extends Enum<E>>static TotalsCalculationforValue(int value) intgetValue()static TotalsCalculationstatic TotalsCalculation[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is nullvalue - The zero-based numeric value.