Mercurial > projects > dwt-addons
comparison dwtx/jface/util/IPropertyChangeListener.d @ 4:c87617952847
some JFace modules
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 28 Mar 2008 17:08:33 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:6518c18a01f7 | 4:c87617952847 |
---|---|
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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.util.IPropertyChangeListener; | |
14 | |
15 import dwtx.jface.util.PropertyChangeEvent; | |
16 | |
17 import dwt.dwthelper.utils; | |
18 | |
19 /** | |
20 * Listener for property changes. | |
21 * <p> | |
22 * Usage: | |
23 * <pre> | |
24 * IPropertyChangeListener listener = | |
25 * new IPropertyChangeListener() { | |
26 * public void propertyChange(PropertyChangeEvent event) { | |
27 * ... // code to deal with occurrence of property change | |
28 * } | |
29 * }; | |
30 * emitter.addPropertyChangeListener(listener); | |
31 * ... | |
32 * emitter.removePropertyChangeListener(listener); | |
33 * </pre> | |
34 * </p> | |
35 */ | |
36 public interface IPropertyChangeListener : EventListener { | |
37 /** | |
38 * Notification that a property has changed. | |
39 * <p> | |
40 * This method gets called when the observed object fires a property | |
41 * change event. | |
42 * </p> | |
43 * | |
44 * @param event the property change event object describing which property | |
45 * changed and how | |
46 */ | |
47 public void propertyChange(PropertyChangeEvent event); | |
48 } |