1 /* 2 * Copyright (c) 2003, Inversoft 3 * 4 * This software is distribuable under the GNU Lesser General Public License. 5 * For more information visit gnu.org. 6 */ 7 package com.inversoft.beans; 8 9 10 import java.util.EventListener; 11 12 13 /** 14 * <p> 15 * This interface is an event listener for property events. 16 * These events take place when a BeanProperty or similar 17 * class is retrieving or updating (setting) a properties 18 * value. The different types of events that this listener 19 * watchs are: 20 * </p> 21 * 22 * <ul> 23 * <li>Property retrieval</li> 24 * <li>Property setting/changing</li> 25 * </ul> 26 * 27 * @author Brian Pontarelli 28 */ 29 public interface PropertyListener extends EventListener { 30 31 /** 32 * This handle method is called when the property value is being retrieved 33 * by calling the getter for the property 34 */ 35 void handleGet(PropertyEvent event); 36 37 /** 38 * This handle method is called when the property value is being changed 39 * by calling the setter for the property 40 */ 41 void handleSet(PropertyEvent event); 42 } 43