Abstract
Readonly
originThe origin of this event; where it was dispatched
Readonly
propagationWhich event propagation model is this event type using?
Abstract
Readonly
typeThe type of this event instance. Compare this against the static
WidgetEvent."type" in the class or a known string value.
Comparing this value and doing an instanceof
check must be equivalent.
Abstract
Readonly
userIs this event capturable by user event handlers?
Note that if the event does not propagate, capturing the event still has an effect; events are handled in the order for which the handlers were added, meaning that if a handler captures the event, the other handlers won't be called.
Static
Readonly
typeThe type of this event class. Each event type should be unique, and have a unique class.
Due to Typescript limitations, no compile error is thrown when this static field is not set at a sub-class. Despite this, the type must be set to a unique string value.
Check if the type of this event instance matches the type of a given event class, asserting that the instance is of the class' type.
A generic event that bubbles up a UI tree. This is an abstract class and must be implemented in child classes.