Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataSourceManager

Hierarchy

Index

Constructors

constructor

Accessors

map

sources

  • get sources(): {}
  • Returns {}

    • [key: string]: any

Methods

addSource

  • addSource(id: string, source: any): void
  • Parameters

    • id: string
    • source: any

    Returns void

findSource

  • findSource(id: string, value?: string): any
  • Parameters

    • id: string
    • Default value value: string = undefined

    Returns any

getSource

  • getSource(id: string): any
  • Parameters

    • id: string

    Returns any

handleSourceEvent

  • handleSourceEvent(event: "add" | "remove", id: string): void
  • Parameters

    • event: "add" | "remove"
    • id: string

    Returns void

has

  • has(type: string): boolean
  • Returns whether the listeners are registered for the specified event name.

    memberof

    EventDispatcher

    Parameters

    • type: string

    Returns boolean

linkPanel

  • Parameters

    Returns void

off

  • Removes a registered listener function for the specified event.

    memberof

    EventDispatcher

    Parameters

    • type: string

      Name of the event to remove the listener for.

    • callback: Function

      Handler function to remove so it won't be executed next time the event is triggered.

    • Default value scope: any = null

    Returns EventDispatcher

offAll

on

  • on(type: string, callback: Function, scope?: any, priority?: number): EventDispatcher
  • Registers a listener function to be executed each time an event occurs

    memberof

    EventDispatcher

    Parameters

    • type: string

      Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.

    • callback: Function

      Handler function to be called when the event occurs

    • Default value scope: any = null
    • Default value priority: number = 0

    Returns EventDispatcher

once

  • once(type: string, callback: Function, scope?: any, priority?: number): EventDispatcher
  • Registers a listener function to be executed the first time an event occurs.

    memberof

    EventDispatcher

    Parameters

    • type: string

      Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.

    • callback: Function

      Handler function to be called when the event occurs

    • Default value scope: any = null
    • Default value priority: number = 0

    Returns EventDispatcher

setSourceState

  • setSourceState(id: string, state: any): void
  • Parameters

    • id: string
    • state: any

    Returns void

trigger

  • Triggers the specified event so that all registered listeners will be executed with the specified parameters.

    memberof

    EventDispatcher

    Parameters

    • type: any

      Event name to trigger

    • Default value data: any = null

    Returns EventDispatcher

updateSources

  • Parameters

    Returns void

Generated using TypeDoc