T
- the type of value being observedpublic class ValueChangeEvent<T> extends ObservableEvent
IObservableValue
object's current value.Modifier and Type | Field and Description |
---|---|
ValueDiff<T> |
diff
Description of the change to the source observable value.
|
source
Constructor and Description |
---|
ValueChangeEvent(IObservableValue<T> source,
ValueDiff<T> diff)
Creates a new value change event.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(IObservablesListener listener)
Dispatch this event to the given listener.
|
protected Object |
getListenerType()
Returns a unique object used for distinguishing this event type from
others.
|
IObservableValue<T> |
getObservableValue()
Returns the observable value from which this event originated.
|
getObservable
getSource, toString
public ValueChangeEvent(IObservableValue<T> source, ValueDiff<T> diff)
source
- the source observable valuediff
- the value changepublic IObservableValue<T> getObservableValue()
protected void dispatch(IObservablesListener listener)
ObservableEvent
dispatch
in class ObservableEvent
listener
- the listener that should handle the eventprotected Object getListenerType()
ObservableEvent
getListenerType
in class ObservableEvent
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.