Skip to content

API / geotoolkit / widgets / sync / SyncOperation / SyncOperation

Class: SyncOperation

sync.SyncOperation.SyncOperation

Define base class for all synchronization operations.

Table of contents

Constructors
  • [new SyncOperation(name)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.widgets-1.sync.syncoperation.syncoperation.md#new syncoperation(name))
Methods

Contents

Constructors

new SyncOperation(name)

• new SyncOperation(name)

Parameters

Name Type Description
namestringname of the operations
Methods

connect

▸ connect(events, item, listener): void

Connect events to item

Parameters

Name Type Description
eventsstring[]events to connect
itemEventDispatcheritem to connect events
listenerListenerlistener to be connected

Returns

void


disconnect

▸ disconnect(events, item, listener): void

Disconnect events from item

Parameters

Name Type Description
eventsstring[]events to disconnect
itemEventDispatcheritem to disconnect events
listenerListenerlistener to be disconnected

Returns

void


getData

▸ getData(item, direction, options): any

Gets data for the current operation

Parameters

Name Type Description
itemEventDispatcheritem to get data
directionOrientationdirection
optionsRecord<string, any&gt;additional options

Returns

any


getName

▸ getName(): string

Return a name of operation

Returns

string


setData

▸ setData(item, data, direction, options): any

Sets data for the current operation

Parameters

Name Type Description
itemEventDispatcheritem to set data
dataanydata to set
directionOrientationdirection
optionsRecord<string, any&gt;options

Returns

any

optional result