Maps API for JavaScript Developer's Guide

H.service.extension.customLocation.Table.Row

Class Summary

Implements: H.service.extension.dataView.IRow

This class represents an record within a CLE data layer as a table row. It implements the H.service.extension.dataView.IRow.<*> interface.

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

setCell (columnName, value)

To set the value of the cell at the specified column.

getColumnNames () : {Array<string>}

To get a ordered list of all column names.

getCell (columnName) : {(C | undefined)}

To get the cell value at the specified column

getTable () : {H.service.extension.dataView.ITable<C, M>}

To get the reference to the table this row belongs to

Class Description

This class represents an record within a CLE data layer as a table row. It implements the H.service.extension.dataView.IRow.<*> interface.

Constructor Details

H.service.extension.customLocation.Table.Row(table, rowIndex)

Parameters:
 
table:
{!H.service.extension.customLocation.Table}
 
The containing table of this row.
rowIndex:
{number}
 
The index of this row.

Method Details

setCell (columnName, value)

To set the value of the cell at the specified column.

GEOMETRY_ID cell of an existing row should not be modified to not cause data inconsistency.

Example

// Set value of the column with the specified name
row.setCell("COMPANY", "HERE Technologies");
row.setCell("WKT", new H.geo.Point(52.5309, 13.3849));
Parameters:
 
columnName:
{string}
 
The name of the cell's column
value:
{*}
 
The cell's value to set
Throws:
 
{H.lang.InvalidArgumentError}
 
if a column with the given name doesn't exist.

getColumnNames () : {Array<string>}

To get a ordered list of all column names.

Returns:
 
{Array<string>}
the list of the column names.

getCell (columnName) : {(C | undefined)}

To get the cell value at the specified column

Parameters:
 
columnName:
{string}
 
The name of the column
Returns:
 
{(C | undefined)}
The specified cell or undefined if a column with the the given name doesn't exist.

getTable () : {H.service.extension.dataView.ITable<C, M>}

To get the reference to the table this row belongs to