1 17 18 package swingwtx.swing.event; 19 20 import java.util.EventObject ; 21 22 public class ListSelectionEvent extends EventObject { 23 private int firstIndex; 24 private int lastIndex; 25 private boolean isAdjusting; 26 public ListSelectionEvent(Object 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 |