|
|
|
| The Java 1.1 event model is a Delegation
Event Model
It is used by both the GUI and by Java Beans (and virtually everything else that is coming out in the Java world!) Events are no longer represented by a
single event class (like Instead, events are represented by a hiearchy of event classes:
MouseEvent
represents mouse up, mouse down, mouse drag, mouse move,
etc.), some event classes may also contain an id (unique
within that class) which maps it to its specific event
types.
Every event is a subclass of GUI Events are subclasses of If a class is interested in an event, it declares itself to be a listener for that particular class of event. When an Event Occurs
|
|
This page was last modified on 02 October, 2007 |