Package io.keikai.model
Class SPivotLayoutItem
java.lang.Object
io.keikai.model.SPivotLayoutItem
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetXs()The shared-item indices; a null element means the index is zero and is written as a bare x.
-
Constructor Details
-
SPivotLayoutItem
public SPivotLayoutItem(String itemType, Integer dataFieldIndex, Integer repeated, List<Integer> xs) - Parameters:
itemType- thetattribute ("grand", "default", …); null for a plain data entrydataFieldIndex- theiattribute, for pivots with more than one data field; may be nullrepeated- therattribute, how many leading items repeat from the previous entry; may be nullxs- the<x v="…"/>shared-item indices; a null element is a bare<x/>
-
-
Method Details
-
getItemType
-
getDataFieldIndex
-
getRepeated
-
getXs
The shared-item indices; a null element means the index is zero and is written as a bare x.
-