[]
Use this class to configure the item names, optional group name, and whether generated group fields are automatically added to the PivotTable layout by IPivotField.group(PivotFieldCustomGroupOptions).
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setName("Fruit Group");
options.setItems(java.util.Arrays.asList("Apple", "Banana"));
String name = options.getName();
booleangetItems()getName()voidsetAddGeneratedFieldsToLayout(boolean value) voidvoidThe returned list is a copy. Modifying it does not change this object; use setItems(List) to update the grouped items.
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setItems(java.util.Arrays.asList("Apple"));
List<String> items = options.getItems();
The list must contain at least one item name when grouping is applied. Source names, item names, and captions are matched without case sensitivity.
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setItems(java.util.Arrays.asList("Apple"));
List<String> items = options.getItems();
value - The source PivotItem names to include in the new custom group. Use null to clear the item list.
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setName("Fruit Group");
String name = options.getName();
null if the default group name is used.If this value is null or empty, a default group name is used when grouping is applied. If the name already exists, grouping fails.
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setName("Fruit Group");
String name = options.getName();
value - The display name of the created custom group.
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setAddGeneratedFieldsToLayout(false);
boolean addGeneratedFields = options.getAddGeneratedFieldsToLayout();
true if generated group fields are automatically added to the PivotTable layout; otherwise, false. The default value is true.
PivotFieldCustomGroupOptions options = new PivotFieldCustomGroupOptions();
options.setAddGeneratedFieldsToLayout(false);
boolean addGeneratedFields = options.getAddGeneratedFieldsToLayout();
value - true to add generated group fields to the PivotTable layout automatically; false to keep them hidden.