API / geotoolkit / controls / shapes / tableview / DataProvider / DataProvider
tableview.DataProvider.DataProvider
Base class for TableView data provider. Override its methods in specific purposes.
DataProvider
Constructors
Methods
Methods
▸ getContentData(column, row): string
Return optionally formatted content text field at col, row
| Name | Type | Description |
|---|---|---|
column | number | index at the column |
row | number | index at the column |
string
formatted content value
▸ getContentFormat(column, row, cellStyle): CellStyle
Return custom cell style for table content
| Name | Type | Description |
|---|---|---|
column | number | Column index |
row | number | Row index |
cellStyle | CellStyle | Current cell style |
Cell style
▸ getHeaderData(column): string
Return header text at column
| Name | Type | Description |
|---|---|---|
column | number | index where the header text will be returned |
string
header name
▸ getHeaderFormat(column, headerStyle): CellStyle
Return custom header style for header row
| Name | Type | Description |
|---|---|---|
column | number | Column index |
headerStyle | CellStyle | Current header style |
Header style
▸ getIndexData(row): string
Return optionally formatted index value at row
| Name | Type | Description |
|---|---|---|
row | number | index value at row |
string
formatted index value
▸ getIndexFormat(row, cellStyle): CellStyle
Return custom cell style for index column
| Name | Type | Description |
|---|---|---|
row | number | Row index |
cellStyle | CellStyle | Current cell style |
Cell style
▸ getMarkerData(row): boolean
Show marker at row
| Name | Type | Description |
|---|---|---|
row | number | index value at row |
boolean
true to show marker, false otherwise
▸ prepareContent(fromRow, toRow, fromColumn, toColumn): string | void
Run once before rendering content data. This should be used to prepare content data output formatting.
| Name | Type | Description |
|---|---|---|
fromRow | number | fromRow used to prepare content data output formatting |
toRow | number | toRow used to prepare content data output formatting |
fromColumn | number | fromColumn used to prepare content data output formatting |
toColumn | number | toColumn used to prepare content data output formatting |
string | void
▸ prepareIndex(fromRow, toRow): string | void
Run once before rendering index data. This should be used to prepare index data output formatting
| Name | Type | Description |
|---|---|---|
fromRow | number | fromRow used to prepare index data output formatting |
toRow | number | toRow used to prepare index data output formatting |
string | void
formatted index value