KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > event > ListDataListener


1 /*
2  * @(#)ListDataListener.java 1.13 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.swing.event;
9
10 import java.util.EventListener JavaDoc;
11
12 /**
13  * ListDataListener
14  *
15  * @version 1.13 12/19/03
16  * @author Hans Muller
17  */

18 public interface ListDataListener extends EventListener JavaDoc {
19
20     /**
21      * Sent after the indices in the index0,index1
22      * interval have been inserted in the data model.
23      * The new interval includes both index0 and index1.
24      *
25      * @param e a <code>ListDataEvent</code> encapsulating the
26      * event information
27      */

28     void intervalAdded(ListDataEvent JavaDoc e);
29
30     
31     /**
32      * Sent after the indices in the index0,index1 interval
33      * have been removed from the data model. The interval
34      * includes both index0 and index1.
35      *
36      * @param e a <code>ListDataEvent</code> encapsulating the
37      * event information
38      */

39     void intervalRemoved(ListDataEvent JavaDoc e);
40
41
42     /**
43      * Sent when the contents of the list has changed in a way
44      * that's too complex to characterize with the previous
45      * methods. For example, this is sent when an item has been
46      * replaced. Index0 and index1 bracket the change.
47      *
48      * @param e a <code>ListDataEvent</code> encapsulating the
49      * event information
50      */

51     void contentsChanged(ListDataEvent JavaDoc e);
52 }
53
54
Popular Tags