Private
#m_Private
m_Private
m_Private
m_Private
m_Private
m_Protected
m_Private
m_Private
m_Private
m_Static
Private
selflisten for an event
callback to call
handle an event one time
Promise if callback is null
take care with that because if the event is never fired and you await it, the system may overflow
callback to call when event is signaled
remove the previous default handler installed for an event
event name
callback handler to remove (must be the same as in setDefaultHandler)
set the event default handler
name of the event
callback to call when the event is not handled (and preventDeault has not been called)
start a new timer
timer name
time out in ms
if true this is an auto repeat timer
if !null, the callback to call else a EvTimer is fired
Static
instancethe application singleton
Generated using TypeDoc
Represents an x4 application, which is typically a single page app. You should inherit Application to define yours. Application derives from BaseComponent so you can use that to implement a global messaging system.
Example
```ts
// in yout main caode let app = new Application( );
app.events.close.on( ( ev ) => { ... do something });
// somewhere else in the source function xxx( ) { let app = Application.instance( ); app.events.close.emit( new Events.close() ); }