home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / ActiveEvent.java next >
Encoding:
Java Source  |  1998-03-20  |  1.2 KB  |  38 lines

  1. /*
  2.  * @(#)ActiveEvent.java    1.4 98/03/18
  3.  *
  4.  * Copyright 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt;
  16.  
  17. /**
  18.  * An interface for events that know how dispatch themselves.
  19.  * By implementing this interface an event can be placed upon the event 
  20.  * queue and this method will be called to dispatch the event.  This allows
  21.  * objects that are not components to arrange for behavior to occur on
  22.  * a different thread from the current thread. 
  23.  *
  24.  * Peer implementations can use this facility to avoid making upcalls 
  25.  * that could potentially cause a deadlock.
  26.  *
  27.  * @author  Timothy Prinzing
  28.  * @version 1.4 03/18/98
  29.  */
  30. public interface ActiveEvent {
  31.  
  32.     /**
  33.      * Dispatch the event to it's target, listeners of the events source, 
  34.      * or do whatever it is this event is supposed to do.
  35.      */
  36.     public void dispatch();
  37. }
  38.