1 |
|
2 |
|
3 |
|
4 | import { LoggerFactory } from "./logger";
|
5 | import { IEventEmitter } from "./interfaces/iEventEmitter";
|
6 | import { GridOptionsWrapper } from "./gridOptionsWrapper";
|
7 | import { AgEvent } from "./events";
|
8 | export declare class EventService implements IEventEmitter {
|
9 | private allSyncListeners;
|
10 | private allAsyncListeners;
|
11 | private globalSyncListeners;
|
12 | private globalAsyncListeners;
|
13 | private logger;
|
14 | private asyncFunctionsQueue;
|
15 | private scheduled;
|
16 | private static PRIORITY;
|
17 | setBeans(loggerFactory: LoggerFactory, gridOptionsWrapper: GridOptionsWrapper, globalEventListener?: Function): void;
|
18 | private getListenerList(eventType, async);
|
19 | addEventListener(eventType: string, listener: Function, async?: boolean): void;
|
20 | addModalPriorityEventListener(eventType: string, listener: Function, async?: boolean): void;
|
21 | addGlobalListener(listener: Function, async?: boolean): void;
|
22 | removeEventListener(eventType: string, listener: Function, async?: boolean): void;
|
23 | removeGlobalListener(listener: Function, async?: boolean): void;
|
24 | dispatchEvent(event: AgEvent): void;
|
25 | private dispatchToListeners(event, async);
|
26 | private dispatchAsync(func);
|
27 | private flushAsyncQueue();
|
28 | }
|