01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.util;
11:
12: import java.util.EventListener;
13:
14: /**
15: * Listener for property changes.
16: * <p>
17: * Usage:
18: * <pre>
19: * IPropertyChangeListener listener =
20: * new IPropertyChangeListener() {
21: * public void propertyChange(PropertyChangeEvent event) {
22: * ... // code to deal with occurrence of property change
23: * }
24: * };
25: * emitter.addPropertyChangeListener(listener);
26: * ...
27: * emitter.removePropertyChangeListener(listener);
28: * </pre>
29: * </p>
30: */
31: public interface IPropertyChangeListener extends EventListener {
32: /**
33: * Notification that a property has changed.
34: * <p>
35: * This method gets called when the observed object fires a property
36: * change event.
37: * </p>
38: *
39: * @param event the property change event object describing which property
40: * changed and how
41: */
42: public void propertyChange(PropertyChangeEvent event);
43: }
|