Package io.keikai.axyra.sheets.content
Record Class Timeline
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.Timeline
- Record Components:
name- internal timeline namecaption- header captioncacheName- name of the backing timeline cachesource- the pivot table the timeline filters (may be empty)dateField- the date field the timeline filters (may be empty when the source did not record it)level- granularity: "years" / "quarters" / "months" / "days"pivotCacheId- the shared pivot-cache id filtered, ornullwhen unknownsheetIndex- 0-based index of the sheet the control displays on (-1 = unknown)row- anchor from-corner row (0-based)col- anchor from-corner column (0-based)endRow- anchor to-corner row (0-based)endCol- anchor to-corner column (0-based)
public record Timeline(String name, String caption, String cacheName, String source, String dateField, String level, Integer pivotCacheId, int sheetIndex, int row, int col, int endRow, int endCol)
extends Record
A workbook timeline descriptor (immutable, read-only): a specialised slicer
for date-based filtering of a pivot table. Read back with
Workbook.timelines(); author it with
Workbook.addTimeline(name, source, dateField) or the anchored
overload Workbook.addTimeline(name, source, dateField, sheetIndex,
row, col, endRow, endCol).
The structural facts here — name(), caption(), the
filtered dateField(), the granularity level() and the
on-sheet anchor (sheetIndex(), row()/col() to
endRow()/endCol()) — round-trip through the model, and
the export path synthesizes the full display apparatus from them. The
selected date range is read with
Workbook.timelineRange(java.lang.String) and set with
Workbook.setTimelineRange(java.lang.String, java.time.LocalDate, java.time.LocalDate), which also
refreshes the bound pivot table. This record is a snapshot and does not
carry the selected range. The timeline style survives only through
byte-exact round-trip.
Reference: [MS-XLSX] x15 timeline / timelineCacheDefinition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheNamerecord component.caption()Returns the value of thecaptionrecord component.intcol()Returns the value of thecolrecord component.Returns the value of thedateFieldrecord component.intendCol()Returns the value of theendColrecord component.intendRow()Returns the value of theendRowrecord component.final booleanIndicates whether some other object is "equal to" this one.static TimelineBuild aTimelinefrom one decoded FFI JSON object.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.name()Returns the value of thenamerecord component.Returns the value of thepivotCacheIdrecord component.introw()Returns the value of therowrecord component.intReturns the value of thesheetIndexrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Timeline
public Timeline(String name, String caption, String cacheName, String source, String dateField, String level, Integer pivotCacheId, int sheetIndex, int row, int col, int endRow, int endCol) Creates an instance of aTimelinerecord class.- Parameters:
name- the value for thenamerecord componentcaption- the value for thecaptionrecord componentcacheName- the value for thecacheNamerecord componentsource- the value for thesourcerecord componentdateField- the value for thedateFieldrecord componentlevel- the value for thelevelrecord componentpivotCacheId- the value for thepivotCacheIdrecord componentsheetIndex- the value for thesheetIndexrecord componentrow- the value for therowrecord componentcol- the value for thecolrecord componentendRow- the value for theendRowrecord componentendCol- the value for theendColrecord component
-
-
Method Details
-
fromMap
Build aTimelinefrom one decoded FFI JSON object. -
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
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
cacheName
Returns the value of thecacheNamerecord component.- Returns:
- the value of the
cacheNamerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
dateField
Returns the value of thedateFieldrecord component.- Returns:
- the value of the
dateFieldrecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
pivotCacheId
Returns the value of thepivotCacheIdrecord component.- Returns:
- the value of the
pivotCacheIdrecord component
-
sheetIndex
public int sheetIndex()Returns the value of thesheetIndexrecord component.- Returns:
- the value of the
sheetIndexrecord component
-
row
public int row()Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
col
public int col()Returns the value of thecolrecord component.- Returns:
- the value of the
colrecord component
-
endRow
public int endRow()Returns the value of theendRowrecord component.- Returns:
- the value of the
endRowrecord component
-
endCol
public int endCol()Returns the value of theendColrecord component.- Returns:
- the value of the
endColrecord component
-