1 19 20 package org.netbeans.modules.j2ee.ddloaders.ejb; 21 22 import org.openide.loaders.DataObject; 23 24 30 public class DDChangeEvent extends java.util.EventObject { 31 32 33 public static final int EJB_ADDED = 1; 34 35 36 public static final int EJB_CHANGED = 2; 37 38 39 public static final int EJB_DELETED = 3; 41 42 public static final int EJB_MOVED = 4; 43 44 45 public static final int EJB_HOME_CHANGED = 5; 46 47 public static final int EJB_REMOTE_CHANGED = 6; 48 49 public static final int EJB_LOCAL_HOME_CHANGED = 7; 50 51 public static final int EJB_LOCAL_CHANGED = 8; 52 53 public static final int EJB_HOME_DELETED = 9; 54 55 public static final int EJB_REMOTE_DELETED = 10; 56 57 public static final int EJB_LOCAL_HOME_DELETED = 11; 58 59 public static final int EJB_LOCAL_DELETED = 12; 60 61 public static final int EJB_CLASS_CHANGED = 13; 62 63 public static final int EJB_CLASS_DELETED = 14; 64 65 66 private String newValue; 67 68 69 private String oldValue; 70 71 72 private int type; 73 74 75 private DataObject oldDD; 76 77 82 public DDChangeEvent (Object src, DataObject oldDD, String oldVal, String newVal, int type) { 83 super (src); 84 newValue = newVal; 85 oldValue = oldVal; 86 this.type = type; 87 this.oldDD = oldDD; 88 } 89 90 95 public DDChangeEvent (Object src, String oldVal, String newVal, int type) { 96 this (src, null, oldVal, newVal, type); 97 } 98 99 public String getNewValue () { 100 return newValue; 101 } 102 103 public String getOldValue () { 104 return oldValue; 105 } 106 107 public DataObject getOldDD () { 108 return oldDD; 109 } 110 111 115 public int getType () { 116 return type; 117 } 118 119 public String toString () { 120 return "DDChangeEvent "+getSource ()+" of type "+type; } 122 123 } 124 | Popular Tags |