Class SPivotLayoutItem

java.lang.Object
io.keikai.model.SPivotLayoutItem
All Implemented Interfaces:
Serializable

public class SPivotLayoutItem extends Object implements Serializable
One entry of a pivot table's rendered layout — an <i> of <rowItems> or <colItems> (ECMA-376 Part 1 §18.10.1.44).

The engine enumerates every tuple of a pivot and has no notion of a collapsed group, so it cannot reproduce the layout of a pivot whose groups are closed. A caller that renders its own layout supplies it through SPivotTable.setLayoutItems(java.util.List<io.keikai.model.SPivotLayoutItem>, java.util.List<io.keikai.model.SPivotLayoutItem>), and the exported file then matches what the caller displays instead of asking Excel to rebuild it on open.

Since:
7.0.0
See Also:
  • Constructor Details

    • SPivotLayoutItem

      public SPivotLayoutItem(String itemType, Integer dataFieldIndex, Integer repeated, List<Integer> xs)
      Parameters:
      itemType - the t attribute ("grand", "default", …); null for a plain data entry
      dataFieldIndex - the i attribute, for pivots with more than one data field; may be null
      repeated - the r attribute, how many leading items repeat from the previous entry; may be null
      xs - the <x v="…"/> shared-item indices; a null element is a bare <x/>
  • Method Details

    • getItemType

      public String getItemType()
    • getDataFieldIndex

      public Integer getDataFieldIndex()
    • getRepeated

      public Integer getRepeated()
    • getXs

      public List<Integer> getXs()
      The shared-item indices; a null element means the index is zero and is written as a bare x.