Package io.keikai.model
Interface SPivotField
- All Known Implementing Classes:
PivotFieldImpl
public interface SPivotField
Represents a field in a pivot table.
- Since:
- 7.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe axis on which this field is placed.static enumThe sort order for items in this field. -
Method Summary
Modifier and TypeMethodDescriptiongetAxis()Returns the axis this field is placed on.intReturns the index into the pivot cache fields that this field references.getItems()Returns the items in this field.getName()Returns the display name of this field.Returns the sort type for items.booleanReturns whether this field uses compact display.booleanisItemHidden(int itemIndex) Returns whether the item at the given index is hidden.booleanReturns whether this field uses outline display.booleanReturns whether all items are shown (including those with no data).booleanReturns whether subtotals are shown at the top.voidsetAxis(SPivotField.Axis axis) Sets the axis for this field.voidsetCompact(boolean compact) Sets compact display mode.voidsetItemHidden(int itemIndex, boolean hidden) Sets the hidden state for the item at the given index.voidsetOutline(boolean outline) Sets outline display mode.voidSets the sort type for items.voidsetSubtotalTop(boolean top) Sets whether subtotals are shown at the top.
-
Method Details
-
getName
String getName()Returns the display name of this field.- Returns:
- the field name
-
getCacheFieldIndex
int getCacheFieldIndex()Returns the index into the pivot cache fields that this field references.- Returns:
- the cache field index
-
getAxis
SPivotField.Axis getAxis()Returns the axis this field is placed on.- Returns:
- the axis
-
setAxis
Sets the axis for this field.- Parameters:
axis- the axis
-
getSortType
SPivotField.SortType getSortType()Returns the sort type for items.- Returns:
- the sort type
-
setSortType
Sets the sort type for items.- Parameters:
sort- the sort type
-
isCompact
boolean isCompact()Returns whether this field uses compact display.- Returns:
- true if compact
-
setCompact
void setCompact(boolean compact) Sets compact display mode.- Parameters:
compact- true for compact
-
isOutline
boolean isOutline()Returns whether this field uses outline display.- Returns:
- true if outline
-
setOutline
void setOutline(boolean outline) Sets outline display mode.- Parameters:
outline- true for outline
-
isSubtotalTop
boolean isSubtotalTop()Returns whether subtotals are shown at the top.- Returns:
- true if subtotals at top
-
setSubtotalTop
void setSubtotalTop(boolean top) Sets whether subtotals are shown at the top.- Parameters:
top- true for subtotals at top
-
isShowAll
boolean isShowAll()Returns whether all items are shown (including those with no data).- Returns:
- true if showing all items
-
getItems
List<SPivotItem> getItems()Returns the items in this field.- Returns:
- list of pivot items
-
isItemHidden
boolean isItemHidden(int itemIndex) Returns whether the item at the given index is hidden.- Parameters:
itemIndex- zero-based item index- Returns:
- true if hidden
-
setItemHidden
void setItemHidden(int itemIndex, boolean hidden) Sets the hidden state for the item at the given index.- Parameters:
itemIndex- zero-based item indexhidden- true to hide
-