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.IRCode; 00009 00015 public class CodeEvent 00016 { 00017 Phidget source; 00018 IRCode code; 00019 boolean repeat; 00020 00028 public CodeEvent(Phidget source, IRCode code, boolean repeat) 00029 { 00030 this.source = source; 00031 this.code = code; 00032 this.repeat = repeat; 00033 } 00034 00042 public Phidget getSource() { 00043 return source; 00044 } 00045 00051 public IRCode getCode() { 00052 return code; 00053 } 00054 00060 public boolean getRepeat() { 00061 return repeat; 00062 } 00063 00069 public String toString() { 00070 return source.toString() + " Code: " 00071 + code.toString(); 00072 } 00073 }