Event
An event is used for transferring data around
It also has methods for cancelling or stopping it's propagation

C# | Visual Basic | Visual C++ |
public class Event : ICloneable
Public Class Event _ Implements ICloneable
public ref class Event : ICloneable

All Members | Constructors | Methods | Fields | ||
Icon | Member | Description |
---|---|---|
![]() | Event(String) |
Constant
|
![]() | Event(String, Object) |
Constant
|
![]() | Event(String, Boolean) |
Constant
|
![]() | Event(String, Boolean, Boolean) |
Constant
|
![]() | Event(String, Object, Boolean, Boolean) |
Constant
|
![]() | Bubbles |
The flag used by systems that support event bubbling
false by default
|
![]() | Cancel()()()() |
Cancels the event
e.g. sets Canceled to TRUE
|
![]() | Cancelable |
The flag that indicates if the event could be canceled or default prevented
Using this flag, the developer can cancel/default prevent some behaviour inside the event dispatcher from the 'outside'
|
![]() | CancelAndStopPropagation()()()() |
Stops the propagation
Used by systems that support event bubbling
Cancels the further bubbling AND cancels the event
|
![]() | Canceled |
The flag that indicates if the event has been canceled
Using this flag, the developer can cancel some default behaviour inside the event dispatcher from the 'outside'
After the event has been canceled, it won't be dispatched to any of the consequent listeners
|
![]() ![]() | CHANGE | |
![]() | Clone()()()() |
Makes a shallow copy of the event
|
![]() | CurrentTarget |
Current target
Used by systems that support event bubbling
to keep track of the current object processing the event
|
![]() | DefaultPrevented |
The flag that indicates if the event has been default prevented
Using this flag, the developer can prevent a default action of the event dispatcher
This mechanism is used to expose a part of the decision making from event dispatcher to the 'outside'
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Phase |
Event phase (Capture/Target/Bubbling)
Used by systems that support event bubbling
to keep track of the current bubbling phase
|
![]() | PreventDefault()()()() |
Prevents the default action of the dispatcher following the dispatching
|
![]() | StopPropagation()()()() |
Stops the propagation
Used by systems that support event bubbling
Cancels the further bubbling but does not cancel the event
|
![]() | Target |
Event target (or originator)
By default, the object that dispatched the event
It may be set to any object (not necesarily the one that dispatched it)
If not set explicitelly, the target is set by the system to default
|
![]() | ToString()()()() |
Formatted string for debugging purposes
(Overrides Object.ToString()()()().) |
![]() | Type |
The event type
Used for notifiying listeners subscribed to specific event type
|

Coded by Danko Kozar
