Last updated

API / geotoolkit / data / AbstractDataTable / AbstractDataTable

Class: AbstractDataTable

data.AbstractDataTable.AbstractDataTable

Define an abstract class for data table representation

Hierarchy

Implements

Table of contents

Constructors
Methods

Contents

Constructors

new AbstractDataTable()

new AbstractDataTable()

Inherited from

EventDispatcher.constructor

Methods

dispose

dispose(): void

Dispose.

Returns

void

Inherited from

EventDispatcher.dispose


getClassName

getClassName(): string

Returns

string

Implementation of

IDataTable.getClassName

Inherited from

EventDispatcher.getClassName


getColumn

Abstract getColumn(columnIndex): AbstractDataSeries<any>

Returns the column at the specified index.

Parameters

Name Type Description
columnIndexnumbercolumn index

Returns

AbstractDataSeries<any>


getColumnById

Abstract getColumnById(id): AbstractDataSeries<any>

Returns column by specified identifier. If multiple columns have the same identifier, the first one will be returned.

Parameters

Name Type Description
idstring | numberidentifier of the column

Returns

AbstractDataSeries<any>

a column


getColumnByName

Abstract getColumnByName(name): AbstractDataSeries<any>

Returns column by specified name. If multiple columns have the same name, the first one will be returned.

Parameters

Name Type Description
namestringname of the column

Returns

AbstractDataSeries<any>

a column


getColumnProperties

getColumnProperties(columnIndex): Record<string, any>

Returns the map of all properties of specified column.

Parameters

Name Type Description
columnIndexnumberindex of the column

Returns

Record<string, any>


getMetaData

Abstract getMetaData(): Record<string, any>

Returns the map of all meta data of the data table. This method returns the reference to the meta data.

Returns

Record<string, any>


getName

getName(): string

Returns table name

Returns

string


getNumberOfColumns

Abstract getNumberOfColumns(): number

Returns the number of columns in the data table.

Returns

number

number of columns

Implementation of

IDataTable.getNumberOfColumns


getNumberOfRows

Abstract getNumberOfRows(): number

Returns number of rows.

Returns

number

Implementation of

IDataTable.getNumberOfRows


getValue

Abstract getValue(rowIndex, columnIndex): any

Return the value of a cell.

Parameters

Name Type Description
rowIndexnumberindex of the row. It should be a number greater than or equal to zero, and less than the number of rows as returned by the getNumberOfRows() method.
columnIndexnumberindex of the column. should be a number greater than or equal to zero, and less than the number of columns as returned by the getNumberOfColumns() method.

Returns

any

Implementation of

IDataTable.getValue


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

EventDispatcher.hasEventListener


indexOfColumn

Abstract indexOfColumn(column): number

Returns the index of specified column.

Parameters

Name Type Description
columnAbstractDataSeries<any>column

Returns

number

index


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

EventDispatcher.isDisposed


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

EventDispatcher.isSilent


notify

notify(type, source, args?): AbstractDataTable

Notify listeners

Parameters

Name Type Description
typestringevent types
sourceanyof the event
Optional argsanyarguments of the event

Returns

AbstractDataTable

this

Inherited from

EventDispatcher.notify


off

off(type?, callback?): AbstractDataTable

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Parameters

Name Type Description
Optional typestringtype of the event
Optional callbackEventListenerfunction to be called

Returns

AbstractDataTable

this

Inherited from

EventDispatcher.off

off<E>(type, callback): AbstractDataTable

Type parameters

NameType
Eextends string

Parameters

Name Type
typeE
callback(eventType: E, sender: AbstractDataTable, args: EventMap[E]) => void

Returns

AbstractDataTable

Inherited from

EventDispatcher.off


on

on(type, callback, options?): AbstractDataTable

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Parameters

Name Type Description
typestringtype of event or property
callbackEventListenerto be called
Optional optionsOptionsoptions of subscription

Returns

AbstractDataTable

this

Inherited from

EventDispatcher.on

on<E>(type, callback, options?): AbstractDataTable

Type parameters

NameType
Eextends string

Parameters

Name Type
typeE
callback(eventType: E, sender: AbstractDataTable, args: EventMap[E]) => void
Optional optionsOptions

Returns

AbstractDataTable

Inherited from

EventDispatcher.on


setName

setName(name): AbstractDataTable

Sets name of the table

Parameters

Name Type Description
namestringnew table name

Returns

AbstractDataTable


setSilent

setSilent(bool): AbstractDataTable

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

AbstractDataTable

this

Inherited from

EventDispatcher.setSilent


getClassName

Static getClassName(): string

Returns

string

Inherited from

EventDispatcher.getClassName