KickJava   Java API By Example, From Geeks To Geeks.

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


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: ListSelectionEvent.java,v $
11    Revision 1.1 2004/01/27 09:05:15 bobintetley
12    ListModel and List Selection implemented. ScrollPane fix so all components
13       scrollable
14
15
16 */

17
18 package swingwtx.swing.event;
19
20 import java.util.EventObject JavaDoc;
21
22 public class ListSelectionEvent extends EventObject JavaDoc {
23     private int firstIndex;
24     private int lastIndex;
25     private boolean isAdjusting;
26     public ListSelectionEvent(Object JavaDoc source, int firstIndex, int lastIndex, boolean isAdjusting) {
27     super(source);
28     this.firstIndex = firstIndex;
29     this.lastIndex = lastIndex;
30     this.isAdjusting = isAdjusting;
31     }
32     public int getFirstIndex() { return firstIndex; }
33     public int getLastIndex() { return lastIndex; }
34     public boolean getValueIsAdjusting() { return isAdjusting; }
35
36 }
37
Popular Tags