Interface ViewportData
- All Superinterfaces:
TableData
- All Known Implementing Classes:
AbstractTableSubscription.SubscriptionEventData
,AbstractTableSubscription.ViewportEventData
Extends
TableData
, but only contains data in the current viewport. The only API change from TableData is that
ViewportData also contains the offset to this data, so that the actual row number may be determined.
For viewport subscriptions, it is not necessary to read with the key, only with the position.
Do not assume that the first row in `rows` is the first visible row, because extra rows may be provided for easier scrolling without going to the server.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
This object may be pooled internally or discarded and not updated.Nested classes/interfaces inherited from interface io.deephaven.web.client.api.TableData
TableData.Row, TableData.RowPositionUnion
-
Field Summary
Fields inherited from interface io.deephaven.web.client.api.TableData
NO_ROW_FORMAT_COLUMN
-
Method Summary
Modifier and TypeMethodDescriptiondefault TableData.Row
get
(TableData.RowPositionUnion index) Reads a row object from the viewport, based on its position in the table.double
The position of the first returned row within the table.elemental2.core.JsArray<@TsTypeRef(ViewportRow.class) TableData.Row>
getRows()
A lazily computed array of all rows available on the client.
-
Method Details
-
getOffset
@JsProperty double getOffset()The position of the first returned row within the table. -
getRows
Description copied from interface:TableData
A lazily computed array of all rows available on the client. -
get
Reads a row object from the viewport, based on its position in the table.
-