|
|
|
|
org.eclipse.core.databinding.observable.value
Interface IObservableValue
-
All Superinterfaces:
-
IObservable
-
All Known Subinterfaces:
-
ISWTObservableValue,
IVetoableValue,
IViewerObservableValue
-
All Known Implementing Classes:
-
AbstractObservableValue,
AbstractVetoableValue,
AggregateValidationStatus,
ComputedValue,
DateAndTimeObservableValue,
DecoratingObservableValue,
DecoratingVetoableValue,
DuplexingObservableValue,
SelectObservableValue,
WritableValue
-
public interface IObservableValue
- extends
IObservable
A value whose changes can be tracked by value change listeners.
-
Since:
- 1.0
-
See Also:
-
AbstractObservableValue
-
Restriction:
- 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.
getValueType
Object getValueType()
- The value type of this observable value, or
null if this
observable value is untyped.
-
-
-
Returns:
- the value type, or
null
getValue
Object getValue()
- Returns the value. Must be invoked in the
Realm of the observable.
-
-
-
Returns:
- the current value
-
"TrackedGetter"
-
setValue
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
void addValueChangeListener(
IValueChangeListener listener)
-
-
-
Parameters:
-
listener -
removeValueChangeListener
void removeValueChangeListener(
IValueChangeListener listener)
-
-
-
Parameters:
-
listener -
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|