Interface IObservableValue<T>

Type Parameters:
T - type of the value of the property
All Superinterfaces:
All Known Subinterfaces:
ISWTObservableValue<T>, IVetoableValue<T>, IViewerObservableValue<T>
All Known Implementing Classes:
AbstractObservableValue, AbstractVetoableValue, AggregateValidationStatus, ComputedValue, DateAndTimeObservableValue, DecoratingObservableValue, DecoratingVetoableValue, DuplexingObservableValue, LocalDateTimeObservableValue, SelectObservableValue, WritableValue

public interface IObservableValue<T> extends IObservable
A value whose changes can be tracked by value change listeners.
See Also:
This interface is not intended to be implemented by clients. Clients should instead subclass one of the classes that implement this interface.

Authors of extensions to the databinding framework may extend this interface and indirectly implement it, but if doing so must also extend one of the framework classes. (Use an API problem filter to suppress the resulting warning.)

Direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.

  • Method Details

    • getValueType

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

      T getValue()
      Returns the value. Must be invoked in the Realm of the observable.
      the current value
    • setValue

      void setValue(T value)
      Sets the value. Must be invoked in the Realm of the observable.
      value - the value to set
      UnsupportedOperationException - if this observable value cannot be set.
    • addValueChangeListener

      void addValueChangeListener(IValueChangeListener<? super T> listener)
      listener - the change listener to add; not null
    • removeValueChangeListener

      void removeValueChangeListener(IValueChangeListener<? super T> listener)
      listener - the change listener to remove; not null