00001 /* 00002 * Copyright 2006 Dictionarys Inc. All rights reserved. 00003 */ 00004 00005 package com.phidgets.event; 00006 00007 import com.phidgets.Dictionary; 00008 00014 public class KeyChangeEvent 00015 { 00016 Dictionary source; 00017 String value; 00018 String key; 00019 00025 public KeyChangeEvent(Dictionary source, String key, String value) 00026 { 00027 this.source = source; 00028 this.value = value; 00029 this.key = key; 00030 } 00031 00039 public Dictionary getSource() { 00040 return source; 00041 } 00042 00043 public String getKey() 00044 { 00045 return key; 00046 } 00047 00048 public String getValue() 00049 { 00050 return value; 00051 } 00052 00058 public String toString() 00059 { 00060 return source.toString() + " Key changed: " 00061 + key + ":" + value; 00062 } 00063 }