comparison dwtx/jface/viewers/deferred/IConcurrentModelListener.d @ 10:b6c35faf97c8

Viewers
author Frank Benoit <benoit@tionex.de>
date Mon, 31 Mar 2008 00:47:19 +0200
parents
children
comparison
equal deleted inserted replaced
9:6c14e54dfc11 10:b6c35faf97c8
1 /*******************************************************************************
2 * Copyright (c) 2004, 2005 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.viewers.deferred.IConcurrentModelListener;
14
15 /**
16 * Interface for objects that can listen to changes in an IConcurrentModel.
17 * Elements in an IConcurrentModel are unordered.
18 *
19 * @since 3.1
20 */
21 public interface IConcurrentModelListener {
22
23 /**
24 * Called when elements are added to the model
25 *
26 * @param added elements added to the model
27 */
28 public void add(Object[] added);
29
30 /**
31 * Called when elements are removed from the model
32 *
33 * @param removed elements removed from the model
34 */
35 public void remove(Object[] removed);
36
37 /**
38 * Called when elements in the model have changed
39 *
40 * @param changed elements that have changed
41 */
42 public void update(Object[] changed);
43
44 /**
45 * Notifies the receiver about the complete set
46 * of elements in the model. Most models will
47 * not call this method unless the listener explicitly
48 * requests it by calling
49 * <code>IConcurrentModel.requestUpdate</code>
50 *
51 * @param newContents contents of the model
52 */
53 public void setContents(Object[] newContents);
54 }