KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > event > ListDataEvent


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: ListDataEvent.java,v $
11    Revision 1.1 2003/12/15 17:37:18 bobintetley
12    ComboBox model interfaces and support
13
14
15 */

16
17 package swingwtx.swing.event;
18
19 public class ListDataEvent extends java.util.EventObject JavaDoc {
20     
21     private int type;
22     private int index0;
23     private int index1;
24     
25     public static final int CONTENTS_CHANGED = 0;
26     public static final int INTERVAL_ADDED = 1;
27     public static final int INTERVAL_REMOVED = 2;
28     
29     public int getType() { return type; }
30     public int getIndex0() { return index0; }
31     public int getIndex1() { return index1; }
32     
33     public ListDataEvent(Object JavaDoc source, int type, int index0, int index1) {
34         super(source);
35     this.type = type;
36     this.index0 = index0;
37     this.index1 = index1;
38     }
39
40 }
41
42
43
44
Popular Tags