1 15 package org.apache.tapestry.event; 16 17 import java.util.EventObject ; 18 19 import org.apache.hivemind.util.Defense; 20 import org.apache.tapestry.IComponent; 21 22 27 28 public class ObservedChangeEvent extends EventObject 29 { 30 private IComponent _component; 31 32 private String _propertyName; 33 34 private Object _newValue; 35 36 51 52 public ObservedChangeEvent(IComponent component, String propertyName, Object newValue) 53 { 54 super(component); 55 56 Defense.notNull(propertyName, "propertyName"); 57 58 _component = component; 59 _propertyName = propertyName; 60 _newValue = newValue; 61 } 62 63 public IComponent getComponent() 64 { 65 return _component; 66 } 67 68 public Object getNewValue() 69 { 70 return _newValue; 71 } 72 73 public String getPropertyName() 74 { 75 return _propertyName; 76 } 77 78 } | Popular Tags |