All Packages Class Hierarchy This Package Previous Next Index
public class netscape.application.Event extends java.lang.Object implements java.lang.Cloneable { /* Constructors */ public Event(); public Event(long); /* Methods */ public Object clone(); public EventProcessor processor(); public void setProcessor(EventProcessor); public void setTimeStamp(long); public void setType(int); public long timeStamp(); public int type(); }Abstract Object subclass representing a user or program action, such as a mouse click, key press, and so on. Events are created in response to these actions and directed to the application's EventLoop. The EventLoop removes each Event and forwards it to the Event's processor, the object responsible for determining which object should ultimately receive the Event. In most cases, this object is the application itself.
In general, you never work directly with the event processing mechanism. However, if you do need to create an Event subclass requiring special processing, you can set the Event subclass' processor to the object that knows how to process it, and hand the Event to the application's EventLoop using the code:
Application.application().eventLoop().addEvent(newEvent);
public Event()
public Event(long timeStamp)
public void setType(int aType)
public int type()
public void setTimeStamp(long timeStamp)
public long timeStamp()
public void setProcessor(EventProcessor aProcessor)
public EventProcessor processor()
public Object clone()
All Packages Class Hierarchy This Package Previous Next Index