Package io.keikai.axyra.sheets.content
Record Class Table
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.Table
public record Table(String name, int firstRow, int firstColumn, int lastRow, int lastColumn, List<String> columns, int headerRowCount, boolean totalsRowShown, TableStyleInfo style, List<TableColumn> tableColumns)
extends Record
A table (ListObject): a named rectangular region with header columns
(ECMA-376 §18.5.1.2). Coordinates are 0-based inclusive; when
totalsRowShown is true the totals row is the last row of the
range. columns keeps the plain header names; tableColumns
carries the per-column totals-row configuration.-
Constructor Summary
ConstructorsConstructorDescriptionTable(String name, int firstRow, int firstColumn, int lastRow, int lastColumn, List<String> columns, int headerRowCount, boolean totalsRowShown, TableStyleInfo style, List<TableColumn> tableColumns) Creates an instance of aTablerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstColumnrecord component.intfirstRow()Returns the value of thefirstRowrecord component.static TableParse the engine's table-info JSON.final inthashCode()Returns a hash code value for this object.intReturns the value of theheaderRowCountrecord component.intReturns the value of thelastColumnrecord component.intlastRow()Returns the value of thelastRowrecord component.name()Returns the value of thenamerecord component.style()Returns the value of thestylerecord component.Returns the value of thetableColumnsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetotalsRowShownrecord component.
-
Constructor Details
-
Table
public Table(String name, int firstRow, int firstColumn, int lastRow, int lastColumn, List<String> columns, int headerRowCount, boolean totalsRowShown, TableStyleInfo style, List<TableColumn> tableColumns) Creates an instance of aTablerecord class.- Parameters:
name- the value for thenamerecord componentfirstRow- the value for thefirstRowrecord componentfirstColumn- the value for thefirstColumnrecord componentlastRow- the value for thelastRowrecord componentlastColumn- the value for thelastColumnrecord componentcolumns- the value for thecolumnsrecord componentheaderRowCount- the value for theheaderRowCountrecord componenttotalsRowShown- the value for thetotalsRowShownrecord componentstyle- the value for thestylerecord componenttableColumns- the value for thetableColumnsrecord component
-
-
Method Details
-
fromJson
Parse the engine's table-info JSON. Not part of the public API. -
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
-
firstRow
public int firstRow()Returns the value of thefirstRowrecord component.- Returns:
- the value of the
firstRowrecord component
-
firstColumn
public int firstColumn()Returns the value of thefirstColumnrecord component.- Returns:
- the value of the
firstColumnrecord component
-
lastRow
public int lastRow()Returns the value of thelastRowrecord component.- Returns:
- the value of the
lastRowrecord component
-
lastColumn
public int lastColumn()Returns the value of thelastColumnrecord component.- Returns:
- the value of the
lastColumnrecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
headerRowCount
public int headerRowCount()Returns the value of theheaderRowCountrecord component.- Returns:
- the value of the
headerRowCountrecord component
-
totalsRowShown
public boolean totalsRowShown()Returns the value of thetotalsRowShownrecord component.- Returns:
- the value of the
totalsRowShownrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
tableColumns
Returns the value of thetableColumnsrecord component.- Returns:
- the value of the
tableColumnsrecord component
-