Eclipse Platform
Release 3.3

org.eclipse.core.databinding.observable.value
Interface IObservableValue

All Superinterfaces:
IObservable
All Known Subinterfaces:
ISWTObservableValue, IVetoableValue
All Known Implementing Classes:
AbstractObservableValue, AbstractVetoableValue, AggregateValidationStatus

public interface IObservableValue
extends IObservable

A value whose changes can be tracked by value change listeners.

This interface is not intended to be implemented by clients. Clients should instead subclass one of the classes that implement this interface. Note that direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.

Since:
1.0

Method Summary
 void addValueChangeListener(IValueChangeListener listener)
           
 Object getValue()
          Returns the value.
 Object getValueType()
          The value type of this observable value, or null if this observable value is untyped.
 void removeValueChangeListener(IValueChangeListener listener)
           
 void setValue(Object value)
          Sets the value.
 
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addStaleListener, dispose, getRealm, isStale, removeChangeListener, removeStaleListener
 

Method Detail

getValueType

public Object getValueType()
The value type of this observable value, or null if this observable value is untyped.

Returns:
the value type, or null

getValue

public Object getValue()
Returns the value. Must be invoked in the Realm of the observable.

Returns:
the current value
"TrackedGetter"

setValue

public void setValue(Object value)
Sets the value. Must be invoked in the Realm of the observable.

Parameters:
value - the value to set
Throws:
UnsupportedOperationException - if this observable value cannot be set.

addValueChangeListener

public void addValueChangeListener(IValueChangeListener listener)
Parameters:
listener -

removeValueChangeListener

public void removeValueChangeListener(IValueChangeListener listener)
Parameters:
listener -

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.