KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ProgressListener.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 progress events.
14  * The class interested in handling {@link ProgressEvent}s should implement
15  * this interface. The complementary interface would be {@link MessageSource}
16  *
17  * @see ProgressEvent
18  * @see MessageSource
19  * @author Mark Davidson
20  */

21 public interface ProgressListener extends java.util.EventListener JavaDoc {
22
23     /**
24      * Indicates the start of a long operation. The <code>ProgressEvent</code>
25      * will indicate if this is a determinate or indeterminate operation.
26      *
27      * @param evt an object which describes the event
28      */

29     void progressStarted(ProgressEvent evt);
30
31
32     /**
33      * Indicates that the operation has stopped.
34      */

35     void progressEnded(ProgressEvent evt);
36
37     /**
38      * Invoked when an increment of progress is sent. This may not be
39      * sent if an indeterminate progress has started.
40      *
41      * @param evt an object which describes the event
42      */

43     void progressIncremented(ProgressEvent evt);
44 }
45
Popular Tags