KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > util > IPropertyChangeListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.util;
12
13 import java.util.EventListener JavaDoc;
14
15 /**
16  * Listener for property changes.
17  * <p>
18  * Usage:
19  * <pre>
20  * IPropertyChangeListener listener =
21  * new IPropertyChangeListener() {
22  * public void propertyChange(PropertyChangeEvent event) {
23  * ... // code to deal with occurrence of property change
24  * }
25  * };
26  * emitter.addPropertyChangeListener(listener);
27  * ...
28  * emitter.removePropertyChangeListener(listener);
29  * </pre>
30  * </p>
31  */

32 public interface IPropertyChangeListener extends EventListener JavaDoc {
33     /**
34      * Notification that a property has changed.
35      * <p>
36      * This method gets called when the observed object fires a property
37      * change event.
38      * </p>
39      *
40      * @param event the property change event object describing which property
41      * changed and how
42      */

43     public void propertyChange(PropertyChangeEvent event);
44 }
45
Popular Tags