Package io.keikai.axyra.sheets.io
Class StreamStyle
java.lang.Object
io.keikai.axyra.sheets.io.StreamStyle
A cell style for
StreamWorkbook — the small subset that covers report
authoring: a number format plus bold / italic.
Deliberately narrower than CellStyle.
The full style model resolves against a workbook's style table, which a
streaming writer does not have; everything here can be decided the moment a
cell is written.
A patch record (design conventions §16, shape 5a): start from
defaults() and derive with with… copies. Instances are
immutable and value-comparable, so registering the same style repeatedly
costs one entry in the file.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbold()static StreamStyledefaults()The neutral style: General format, no emphasis.booleaninthashCode()booleanitalic()The Excel number-format code, ornullfor General.toString()withBold()This style, bold — the usual header row.withBold(boolean value) This style with bold set explicitly.This style, italic.withItalic(boolean value) This style with italic set explicitly.withNumberFormat(String code) This style with an Excel number-format code, e.g.
-
Method Details
-
defaults
The neutral style: General format, no emphasis. -
withNumberFormat
This style with an Excel number-format code, e.g."#,##0.00"or"yyyy-mm-dd". Excel has no date type: a date cell is a serial number plus a date format — seeStreamRow.setDate(int, java.time.LocalDate, int). Passnullfor General. -
withBold
This style, bold — the usual header row. -
withBold
This style with bold set explicitly. -
withItalic
This style, italic. -
withItalic
This style with italic set explicitly. -
numberFormat
The Excel number-format code, ornullfor General. -
bold
public boolean bold() -
italic
public boolean italic() -
equals
-
hashCode
public int hashCode() -
toString
-