KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > internal > databinding > provisional > observable > value > IObservableValue


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.jface.internal.databinding.provisional.observable.value;
13
14 import org.eclipse.jface.internal.databinding.provisional.observable.IObservable;
15
16 /**
17  * @since 1.0
18  *
19  */

20 public interface IObservableValue extends IObservable {
21
22     /**
23      * The value type of this observable value, or <code>null</code> if this
24      * observable value is untyped.
25      *
26      * @return the value type, or <code>null</null>
27      */

28     public Object JavaDoc getValueType();
29
30     /**
31      * @return the current value
32      * @TrackedGetter
33      */

34     public Object JavaDoc getValue();
35
36     /**
37      * @param value
38      * the value to set
39      * @throws UnsupportedOperationException
40      * if this observable value cannot be set.
41      */

42     public void setValue(Object JavaDoc value);
43
44     /**
45      *
46      * @param listener
47      */

48     public void addValueChangeListener(IValueChangeListener listener);
49
50     /**
51      * @param listener
52      */

53     public void removeValueChangeListener(IValueChangeListener listener);
54 }
55
Popular Tags