1 31 package org.blojsom.event; 32 33 import java.util.Date ; 34 35 42 public class Event { 43 44 protected Object _source; 45 protected Date _timestamp; 46 protected boolean _eventHandled = false; 47 48 54 public Event(Object source, Date timestamp) { 55 _source = source; 56 _timestamp = timestamp; 57 } 58 59 64 public Object getSource() { 65 return _source; 66 } 67 68 73 public Date getTimestamp() { 74 return _timestamp; 75 } 76 77 82 public boolean isEventHandled() { 83 return _eventHandled; 84 } 85 86 91 public void setEventHandled(boolean eventHandled) { 92 _eventHandled = eventHandled; 93 } 94 } | Popular Tags |