KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ProgressSource.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 /**
11  * Interface for ProgressListener registrations methods and indicates that the
12  * implementation class is a source of ProgressEvents.
13  * ProgressListeners which are interested in ProgressEvents from this class can
14  * register themselves as listeners.
15  *
16  * @see ProgressEvent
17  * @see ProgressListener
18  * @author Mark Davidson
19  */

20 public interface ProgressSource {
21
22     /**
23      * Register the ProgressListener.
24      *
25      * @param l the listener to register
26      */

27     void addProgressListener(ProgressListener l);
28
29     /**
30      * Unregister the ProgressListener from the ProgressSource.
31      *
32      * @param l the listener to unregister
33      */

34     void removeProgressListener(ProgressListener l);
35
36     /**
37      * Returns an array of listeners.
38      *
39      * @return an non null array of ProgressListeners.
40      */

41     ProgressListener[] getProgressListeners();
42 }
43
Popular Tags