Package io.keikai.axyra.sheets
Record Class PivotStyle
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.PivotStyle
- Record Components:
name- the style nameshowRowHeaders- style the row-header columnshowColHeaders- style the column-header rowshowRowStripes- banded rowsshowColStripes- banded columnsshowLastColumn- style the last (grand total) column
public record PivotStyle(String name, boolean showRowHeaders, boolean showColHeaders, boolean showRowStripes, boolean showColStripes, boolean showLastColumn)
extends Record
A named pivot-table style plus banding flags (
<pivotTableStyleInfo> — ECMA-376 Part 1 §18.10.1.88), read back via
PivotTableView.style(). Built-in names run
PivotStyleLight1..28, PivotStyleMedium1..
28, PivotStyleDark1..28.-
Constructor Summary
ConstructorsConstructorDescriptionPivotStyle(String name, boolean showRowHeaders, boolean showColHeaders, boolean showRowStripes, boolean showColStripes, boolean showLastColumn) Creates an instance of aPivotStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static PivotStyleExcel's Design-tab defaults: headers on, banding off, last column on.booleanReturns the value of theshowColHeadersrecord component.booleanReturns the value of theshowColStripesrecord component.booleanReturns the value of theshowLastColumnrecord component.booleanReturns the value of theshowRowHeadersrecord component.booleanReturns the value of theshowRowStripesrecord component.final StringtoString()Returns a string representation of this record class.A copy with banded columns on.A copy with banded rows on.
-
Constructor Details
-
PivotStyle
public PivotStyle(String name, boolean showRowHeaders, boolean showColHeaders, boolean showRowStripes, boolean showColStripes, boolean showLastColumn) Creates an instance of aPivotStylerecord class.- Parameters:
name- the value for thenamerecord componentshowRowHeaders- the value for theshowRowHeadersrecord componentshowColHeaders- the value for theshowColHeadersrecord componentshowRowStripes- the value for theshowRowStripesrecord componentshowColStripes- the value for theshowColStripesrecord componentshowLastColumn- the value for theshowLastColumnrecord component
-
-
Method Details
-
of
Excel's Design-tab defaults: headers on, banding off, last column on. -
withRowStripes
A copy with banded rows on. -
withColStripes
A copy with banded columns on. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
showRowHeaders
public boolean showRowHeaders()Returns the value of theshowRowHeadersrecord component.- Returns:
- the value of the
showRowHeadersrecord component
-
showColHeaders
public boolean showColHeaders()Returns the value of theshowColHeadersrecord component.- Returns:
- the value of the
showColHeadersrecord component
-
showRowStripes
public boolean showRowStripes()Returns the value of theshowRowStripesrecord component.- Returns:
- the value of the
showRowStripesrecord component
-
showColStripes
public boolean showColStripes()Returns the value of theshowColStripesrecord component.- Returns:
- the value of the
showColStripesrecord component
-
showLastColumn
public boolean showLastColumn()Returns the value of theshowLastColumnrecord component.- Returns:
- the value of the
showLastColumnrecord component
-