1 7 8 package java.util.prefs; 9 10 import java.io.NotSerializableException ; 11 12 28 public class PreferenceChangeEvent extends java.util.EventObject { 29 30 35 private String key; 36 37 42 private String newValue; 43 44 52 public PreferenceChangeEvent(Preferences node, String key, 53 String newValue) { 54 super(node); 55 this.key = key; 56 this.newValue = newValue; 57 } 58 59 64 public Preferences getNode() { 65 return (Preferences ) getSource(); 66 } 67 68 73 public String getKey() { 74 return key; 75 } 76 77 83 public String getNewValue() { 84 return newValue; 85 } 86 87 91 private void writeObject(java.io.ObjectOutputStream out) 92 throws NotSerializableException { 93 throw new NotSerializableException ("Not serializable."); 94 } 95 96 100 private void readObject(java.io.ObjectInputStream in) 101 throws NotSerializableException { 102 throw new NotSerializableException ("Not serializable."); 103 } 104 105 private static final long serialVersionUID = 793724513368024975L; 108 } 109 | Popular Tags |