import { IEvent } from "../api/IEvent" ; see egret . EventDispatcher version platform includeExample see http language export class Event implements IEvent { private private _type : string ; private private _bubbles : boolean ; private private _cancelable : boolean ; private private _currentTarget : any ; private private _target : any ; private private _isDefaultPrevented : boolean = false ; private private _isPropagationStopped : boolean = false ; private private _isPropagationImmediateStopped : boolean = false ; private private _data : any ; param type param bubbles param cancelable param data version platform language constructor ( type , bubbles ? , cancelable ? , data ? ) { this . _type = type ; this . _bubbles = ! ! bubbles ; this . _cancelable = ! ! cancelable ; this . _data = data ; } see see version platform language public preventDefault ( ) { if ( this . _cancelable ) { this . _isDefaultPrevented = true ; } } see see version platform language public stopPropagation ( ) { if ( this . _bubbles ) { this . _isPropagationStopped = true ; } } see see version platform language public stopImmediatePropagation ( ) { if ( this . _bubbles ) { this . _isPropagationImmediateStopped = true ; } } version platform language public get type ( ) : string { return this . _type ; } version platform language public get bubbles ( ) : boolean { return this . _bubbles ; } see version platform language public get cancelable ( ) : boolean { return this . _cancelable ; } returns see version platform language public get isDefaultPrevented ( ) : boolean { return this . _isDefaultPrevented ; } public get isPropagationStopped ( ) : boolean { return this . _isPropagationStopped ; } public get isPropagationImmediateStopped ( ) : boolean { return this . _isPropagationImmediateStopped ; } version platform language public get currentTarget ( ) : any { return this . _currentTarget ; } public set currentTarget ( value ) { this . _currentTarget = value ; } version platform language public get target ( ) : any { return this . _target ; } public set target ( value ) { this . _target = value ; } version platform language public get data ( ) : any { return this . _data ; } public set data ( value ) { this . _data = value ; } }