comparison org.eclipse.jface/src/org/eclipse/jface/util/IPropertyChangeListener.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
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 org.eclipse.jface.util.IPropertyChangeListener;
14
15 import org.eclipse.jface.util.PropertyChangeEvent;
16
17 import java.lang.all;
18 import java.util.EventListener;
19
20 /**
21 * Listener for property changes.
22 * <p>
23 * Usage:
24 * <pre>
25 * IPropertyChangeListener listener =
26 * new IPropertyChangeListener() {
27 * public void propertyChange(PropertyChangeEvent event) {
28 * ... // code to deal with occurrence of property change
29 * }
30 * };
31 * emitter.addPropertyChangeListener(listener);
32 * ...
33 * emitter.removePropertyChangeListener(listener);
34 * </pre>
35 * </p>
36 */
37 public interface IPropertyChangeListener : EventListener {
38 /**
39 * Notification that a property has changed.
40 * <p>
41 * This method gets called when the observed object fires a property
42 * change event.
43 * </p>
44 *
45 * @param event the property change event object describing which property
46 * changed and how
47 */
48 public void propertyChange(PropertyChangeEvent event);
49 }