Index

Package: Listeners

Description

package Events.Listeners is

Types

Event_Listener (abstract)

type Event_Listener is limited interface;
Any class can implement the Event_Listener interface so it can register with an event corral to receive events. Handle_Event will be called on the listener when an event that the listener was registered for, fires.

A_Event_Listener

type A_Event_Listener is access all Event_Listener'Class;

Subprograms & Entries

Handle_Event (abstract)

procedure Handle_Event
( this: access Event_Listener;
evt: in out A_Event;
resp: out Response_Type ) is abstract;
Handles an event the Event_Listener registered for. If 'evt' is returned null then the event was consumed and will not be passed on to other listeners. 'resp' is the handler's response to synchronous events that will be returned to a caller that triggered a synchronous event.

To_String (abstract)

function To_String
( this: access Event_Listener ) return String is abstract;
Returns a string that identifies the Event_Listener object.