1 16 17 package swingwtx.swing.event; 18 19 public class ListDataEvent extends java.util.EventObject { 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 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 |