1 29 30 package nextapp.echo2.app.event; 31 32 import java.util.EventObject ; 33 34 39 public class ListDataEvent extends EventObject { 40 41 44 public static final int CONTENTS_CHANGED = 0; 45 46 49 public static final int INTERVAL_ADDED = 1; 50 51 54 public static final int INTERVAL_REMOVED = 2; 55 56 private int index0; 57 private int index1; 58 private int type; 59 60 77 public ListDataEvent(Object source, int type, int index0, int index1) { 78 super(source); 79 80 this.type = type; 81 this.index0 = index0; 82 this.index1 = index1; 83 } 84 85 90 public int getIndex0() { 91 return index0; 92 } 93 94 99 public int getIndex1() { 100 return index1; 101 } 102 103 116 public int getType() { 117 return type; 118 } 119 } 120 | Popular Tags |