1 7 package org.jdesktop.swing.data; 8 9 import java.util.EventObject ; 10 11 15 public class SelectionModelEvent extends EventObject { 16 19 private int firstIndex; 20 23 private int lastIndex; 24 25 35 public SelectionModelEvent(SelectionModel source, int firstIndex, int lastIndex) { 36 super(source); 37 assert(firstIndex <= lastIndex); 38 assert(firstIndex >= 0); 39 this.firstIndex = firstIndex; 40 this.lastIndex = lastIndex; 41 } 42 43 47 public int getFirstIndex() { 48 return firstIndex; 49 } 50 51 55 public int getLastIndex() { 56 return lastIndex; 57 } 58 } 59 | Popular Tags |