EventHandler (class)
public final EventHandler
Package: CURL.RUNTIME.EVENT

An event handler.

Description

See the on macro for more information about how to create EventHandlers, and EventTarget for more information about how they are used.

Constructors
default:Construct a new EventHandler.
constructor public {EventHandler.default
    event-class:ClassType,
    handler-proc:{proc-type {Event, EventTarget}:void}
}
Properties
event-class:The subclass of Event that this EventHandler handles.
field public constant EventHandler.event-class:ClassType
handler-proc:The procedure to invoke when this EventHandler is invoked.
field public constant EventHandler.handler-proc:{proc-type {Event, EventTarget}:void}
Methods
Methods inherited from Object: object-describe, object-describe-for-debugging, object-serialize

Constructor Details
default (constructor)
public {EventHandler.default
    event-class:ClassType,
    handler-proc:{proc-type {Event, EventTarget}:void}
}

Construct a new EventHandler.

event-class: The subclass of Event to handle.
handler-proc: The procedure to invoke, with an appropriate Event and EventTarget, when this EventHandler is invoked.


Property Details
event-class (field)
public constant EventHandler.event-class:ClassType

The subclass of Event that this EventHandler handles.



handler-proc (field)
public constant EventHandler.handler-proc:{proc-type {Event, EventTarget}:void}

The procedure to invoke when this EventHandler is invoked.



Method Details