1 7 package com.inversoft.beans; 8 9 10 import java.util.EventObject ; 11 12 13 22 public abstract class BaseEvent extends EventObject { 23 24 private BaseBeanProperty property; 25 private Object oldValue; 26 private Object newValue; 27 private Object bean; 28 29 32 public BaseEvent(BaseBeanProperty property, Object oldValue, Object newValue, 33 Object bean) { 34 super(property); 35 this.property = property; 36 this.oldValue = oldValue; 37 this.newValue = newValue; 38 this.bean = bean; 39 } 40 41 42 public String getPropertyName() { 43 return property.getPropertyName(); 44 } 45 46 51 public Class getPropertyType() { 52 return property.getPropertyType(); 53 } 54 55 56 public String getFullName() { 57 return property.getFullName(); 58 } 59 60 65 public Object getOldValue() { 66 return oldValue; 67 } 68 69 74 public Object getNewValue() { 75 return newValue; 76 } 77 78 79 public Object getBean() { 80 return bean; 81 } 82 } 83 | Popular Tags |