Interface EventProcessor
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface EventProcessor

public interface netscape.application.EventProcessor
{
    /* Methods
     */
    public abstract void processEvent(Event);
}
Interface for objects interested in processing Events as they're removed from an EventLoop. Each Event has a processor, the object which understands the action that should be taken based on the Event and its data. For example, each MouseEvent specifies a RootView as its processor. As the EventLoop removes each MouseEvent, it calls the RootView's processEvent() method which forwards the MouseEvent to the appropriate View.
See Also:
setProcessor, EventLoop

Methods

processEvent

  public abstract void processEvent(Event event)
Called by EventLoop on an Event's processor. Callee should take the appropriate action to "process" the Event.

All Packages  Class Hierarchy  This Package  Previous  Next  Index