T - the type of value being observedpublic class ValueChangingEvent<T> extends ObservableEvent
IObservableValue object's current value. Listeners can veto the
pending change by setting veto to true.| Modifier and Type | Field and Description |
|---|---|
ValueDiff<T> |
diff
Description of the change to the source observable value.
|
boolean |
veto
Flag for vetoing this change.
|
source| Constructor and Description |
|---|
ValueChangingEvent(IObservableValue<T> source,
ValueDiff<T> diff)
Creates a new value changing 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() |
getObservablegetSource, toStringpublic ValueDiff<T> diff
public boolean veto
false, can be
set to true by listeners to veto this change.public ValueChangingEvent(IObservableValue<T> source, ValueDiff<T> diff)
source - the source observable valuediff - the value changepublic IObservableValue<T> getObservableValue()
protected void dispatch(IObservablesListener listener)
ObservableEventdispatch in class ObservableEventlistener - the listener that should handle the eventprotected Object getListenerType()
ObservableEventgetListenerType in class ObservableEvent
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.