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 Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The axis on which this field is placed.
    static enum 
    The sort order for items in this field.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the axis this field is placed on.
    int
    Returns the index into the pivot cache fields that this field references.
    Returns the items in this field.
    Returns the display name of this field.
    Returns the sort type for items.
    boolean
    Returns whether this field uses compact display.
    boolean
    isItemHidden(int itemIndex)
    Returns whether the item at the given index is hidden.
    boolean
    Returns whether this field uses outline display.
    boolean
    Returns whether all items are shown (including those with no data).
    boolean
    Returns whether subtotals are shown at the top.
    void
    Sets the axis for this field.
    void
    setCompact(boolean compact)
    Sets compact display mode.
    void
    setItemHidden(int itemIndex, boolean hidden)
    Sets the hidden state for the item at the given index.
    void
    setOutline(boolean outline)
    Sets outline display mode.
    void
    Sets the sort type for items.
    void
    setSubtotalTop(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

      void setAxis(SPivotField.Axis axis)
      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

      void setSortType(SPivotField.SortType sort)
      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 index
      hidden - true to hide