Event
Module | ejs.events |
Namespace | "ejs.events" |
Definition | class Event |
Inheritance | Event ![]() |
The Event class encapsulates information pertaining to a system or application event.
Applications typically subclass Event to add custom event data if required. Events are initiated via the EventTarget class and are routed to listening functions via a system event queue. Example: class UpdateEvent extends Event { } obj.events.dispatch(new UpdateEvent()).
Properties
Qualifiers | Property | Type | Description |
---|---|---|---|
public static const | PRI_HIGH | Number | High priority constant for use with the Event() constructor method. |
public static const | PRI_LOW | Number | Low priority constant for use with the Event() constructor method. |
public static const | PRI_NORMAL | Number | Normal priority constant for use with the Event() constructor method. |
public | bubbles | Boolean | Whether the event will bubble up to the listeners parent. |
public | data | Object | Event data associated with the Event. When Events are created, the constructor optionally takes an arbitrary object data reference. |
public | priority | Number | Event priority. Priorities are 0-99. Zero is the highest priority and 50 is normal. Use the priority symbolic constants PRI_LOW, PRI_NORMAL or PRI_HIGH. |
public | timestamp | Date | Time the event was created. The Event constructor will automatically set the timestamp to the current time. |
Event Methods
Qualifiers | Method |
---|---|
Event(data: Object, bubbles: Boolean, priority: Number) | |
Constructor for Event. | |
public override | toString(): String |
Method Detail
override public toString(): String