KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > swing > event > MessageListener


1 /*
2  * $Id: MessageListener.java,v 1.1.1.1 2004/06/16 01:43:39 davidson1 Exp $
3  *
4  * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5  * Santa Clara, California 95054, U.S.A. All rights reserved.
6  */

7
8 package org.jdesktop.swing.event;
9
10 import java.util.EventListener JavaDoc;
11
12 /**
13  * The listener interface for recieving message events.
14  * The class interested in handling {@link MessageEvent}s should implement
15  * this interface. The complementary interface would be {@link MessageSource}
16  *
17  * @see MessageEvent
18  * @see MessageSource
19  * @author Mark Davidson
20  */

21 public interface MessageListener extends java.util.EventListener JavaDoc {
22
23     /**
24      * Invoked to send a message to a listener. The {@link MessageEvent}
25      * is qualified depending on context. It may represent a simple
26      * transient messages to be passed to the ui or it could
27      * represent a serious exception which has occured during
28      * processing.
29      * <p>
30      * The implementation of this interface should come up
31      * with a consistent policy to reflect the business logic
32      * of the application.
33      *
34      * @param evt an object which describes the message
35      */

36     void message(MessageEvent evt);
37 }
38
Popular Tags