1 19 package org.netbeans.modules.j2ee.websphere6.dd.loaders; 20 21 import org.openide.loaders.DataObject; 22 26 public class DDChangeEvent extends java.util.EventObject { 27 28 public static final int WEB_ADDED = 1; 29 30 31 public static final int WEB_CHANGED = 2; 32 33 34 public static final int WEB_DELETED = 3; 36 37 public static final int WEB_MOVED = 4; 38 39 40 41 private String newValue; 42 43 44 private String oldValue; 45 46 47 private int type; 48 49 50 private DataObject oldDD; 51 52 57 public DDChangeEvent (Object src, DataObject oldDD, String oldVal, String newVal, int type) { 58 super (src); 59 newValue = newVal; 60 oldValue = oldVal; 61 this.type = type; 62 this.oldDD = oldDD; 63 } 64 65 70 public DDChangeEvent (Object src, String oldVal, String newVal, int type) { 71 this (src, null, oldVal, newVal, type); 72 } 73 74 public String getNewValue () { 75 return newValue; 76 } 77 78 public String getOldValue () { 79 return oldValue; 80 } 81 82 public DataObject getOldDD () { 83 return oldDD; 84 } 85 86 90 public int getType () { 91 return type; 92 } 93 94 public String toString () { 95 return "DDChangeEvent "+getSource ()+" of type "+type; } 97 98 } 99 | Popular Tags |