Package io.keikai.model
Interface SPivotDataField
- All Known Implementing Classes:
PivotDataFieldImpl
public interface SPivotDataField
Represents a data (value) field in a pivot table.
- Since:
- 7.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumHow the data values are displayed relative to other values.static enumAggregation function (subtotal type) for this data field. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the base cache field.getName()Returns the display name of this data field.Returns the number format string for this data field.Returns how values are displayed.Returns the subtotal (aggregation) function.voidSets the display name of this data field.voidsetNumberFormat(String format) Sets the number format string for this data field.voidSets how values are displayed.voidsetSubtotal(SPivotDataField.Subtotal subtotal) Sets the subtotal (aggregation) function.
-
Method Details
-
getName
String getName()Returns the display name of this data field.- Returns:
- the name
-
setName
Sets the display name of this data field.- Parameters:
name- the name
-
getBaseFieldIndex
int getBaseFieldIndex()Returns the index of the base cache field.- Returns:
- the cache field index
-
getSubtotal
SPivotDataField.Subtotal getSubtotal()Returns the subtotal (aggregation) function.- Returns:
- the subtotal type
-
setSubtotal
Sets the subtotal (aggregation) function.- Parameters:
subtotal- the subtotal type
-
getShowDataAs
SPivotDataField.ShowDataAs getShowDataAs()Returns how values are displayed.- Returns:
- the show-data-as mode
-
setShowDataAs
Sets how values are displayed.- Parameters:
showAs- the show-data-as mode
-
getNumberFormat
String getNumberFormat()Returns the number format string for this data field.- Returns:
- the number format, or null if default
-
setNumberFormat
Sets the number format string for this data field.- Parameters:
format- the number format
-