78
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006, 2008 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
|
|
12 module org.eclipse.core.databinding.observable.IObservableCollection;
|
81
|
13 import org.eclipse.core.databinding.observable.IObservable;
|
78
|
14
|
|
15 import java.lang.all;
|
|
16
|
|
17 import java.util.Collection;
|
|
18
|
|
19 import org.eclipse.core.databinding.observable.list.IObservableList;
|
|
20 import org.eclipse.core.databinding.observable.set.IObservableSet;
|
|
21
|
|
22 /**
|
|
23 * Interface for observable collections. Only general change listeners can be
|
|
24 * added to an observable collection. Listeners interested in incremental
|
|
25 * changes have to be added using more concrete subtypes such as
|
|
26 * {@link IObservableList} or {@link IObservableSet}.
|
|
27 *
|
|
28 * @noextend This interface is not intended to be extended by clients.
|
|
29 * @noimplement This interface is not intended to be implemented by clients.
|
|
30 * Clients should instead subclass one of the classes that
|
|
31 * implement this interface. Note that direct implementers of this
|
|
32 * interface outside of the framework will be broken in future
|
|
33 * releases when methods are added to this interface.
|
|
34 * </p>
|
|
35 *
|
|
36 * @since 1.0
|
|
37 */
|
|
38 public interface IObservableCollection : IObservable, Collection {
|
|
39
|
|
40 /**
|
|
41 * @return the element type of this observable value, or <code>null</code>
|
|
42 * if this observable collection is untyped.
|
|
43 */
|
|
44 Object getElementType();
|
|
45
|
|
46 }
|