Package io.keikai.axyra.sheets.content
Record Class TableStyleInfo
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.TableStyleInfo
public record TableStyleInfo(String styleName, boolean showFirstColumn, boolean showLastColumn, boolean showRowStripes, boolean showColumnStripes)
extends Record
A table's style binding (ECMA-376 §18.5.1.20 tableStyleInfo): the built-in
style name (e.g.
"TableStyleMedium2", "TableStyleLight9",
"TableStyleDark3") plus the four banding / emphasis toggles.-
Constructor Summary
ConstructorsConstructorDescriptionTableStyleInfo(String styleName, boolean showFirstColumn, boolean showLastColumn, boolean showRowStripes, boolean showColumnStripes) Creates an instance of aTableStyleInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableStyleInfodefaults()Excel's default for new tables:TableStyleMedium2, row stripes on.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TableStyleInfoThe default banding flags with a different built-in style name.booleanReturns the value of theshowColumnStripesrecord component.booleanReturns the value of theshowFirstColumnrecord component.booleanReturns the value of theshowLastColumnrecord component.booleanReturns the value of theshowRowStripesrecord component.Returns the value of thestyleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableStyleInfo
public TableStyleInfo(String styleName, boolean showFirstColumn, boolean showLastColumn, boolean showRowStripes, boolean showColumnStripes) Creates an instance of aTableStyleInforecord class.- Parameters:
styleName- the value for thestyleNamerecord componentshowFirstColumn- the value for theshowFirstColumnrecord componentshowLastColumn- the value for theshowLastColumnrecord componentshowRowStripes- the value for theshowRowStripesrecord componentshowColumnStripes- the value for theshowColumnStripesrecord component
-
-
Method Details
-
defaults
Excel's default for new tables:TableStyleMedium2, row stripes on. -
of
The default banding flags with a different built-in style name. -
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 '=='. -
styleName
Returns the value of thestyleNamerecord component.- Returns:
- the value of the
styleNamerecord component
-
showFirstColumn
public boolean showFirstColumn()Returns the value of theshowFirstColumnrecord component.- Returns:
- the value of the
showFirstColumnrecord component
-
showLastColumn
public boolean showLastColumn()Returns the value of theshowLastColumnrecord component.- Returns:
- the value of the
showLastColumnrecord component
-
showRowStripes
public boolean showRowStripes()Returns the value of theshowRowStripesrecord component.- Returns:
- the value of the
showRowStripesrecord component
-
showColumnStripes
public boolean showColumnStripes()Returns the value of theshowColumnStripesrecord component.- Returns:
- the value of the
showColumnStripesrecord component
-