00001 /* 00002 * Copyright 2006 Phidgets Inc. All rights reserved. 00003 */ 00004 00005 package com.phidgets.event; 00006 00007 import com.phidgets.Phidget; 00008 import com.phidgets.IRLearnedCode; 00009 00015 public class LearnEvent 00016 { 00017 Phidget source; 00018 IRLearnedCode value; 00019 00025 public LearnEvent(Phidget source, IRLearnedCode value) 00026 { 00027 this.source = source; 00028 this.value = value; 00029 } 00030 00038 public Phidget getSource() { 00039 return source; 00040 } 00041 00047 public IRLearnedCode getValue() { 00048 return value; 00049 } 00050 00056 public String toString() { 00057 return source.toString() + " Learned Code: " 00058 + value; 00059 } 00060 }