API / geotoolkit / widgets / sync / SyncOperation / SyncOperation
sync.SyncOperation.SyncOperation
Define base class for all synchronization operations.
Constructors
Constructors
• new SyncOperation(name)
| Name | Type | Description |
|---|---|---|
name | string | name of the operations |
Methods
▸ connect(events, item, listener): void
Connect events to item
| Name | Type | Description |
|---|---|---|
events | string[] | events to connect |
item | EventDispatcher | item to connect events |
listener | Listener | listener to be connected |
void
▸ disconnect(events, item, listener): void
Disconnect events from item
| Name | Type | Description |
|---|---|---|
events | string[] | events to disconnect |
item | EventDispatcher | item to disconnect events |
listener | Listener | listener to be disconnected |
void
▸ getData(item, direction, options): any
Gets data for the current operation
| Name | Type | Description |
|---|---|---|
item | EventDispatcher | item to get data |
direction | Orientation | direction |
options | Record<string, any> | additional options |
any
▸ getName(): string
Return a name of operation
string
▸ setData(item, data, direction, options): any
Sets data for the current operation
| Name | Type | Description |
|---|---|---|
item | EventDispatcher | item to set data |
data | any | data to set |
direction | Orientation | direction |
options | Record<string, any> | options |
any
optional result