public class ValueChangingEvent 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 |
diff
Description of the change to the source observable value.
|
boolean |
veto
Flag for vetoing this change.
|
source| Constructor and Description |
|---|
ValueChangingEvent(IObservableValue source,
ValueDiff 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 |
getObservableValue() |
getObservablegetSource, toStringpublic ValueDiff diff
public boolean veto
false, can
be set to true by listeners to veto this change.public ValueChangingEvent(IObservableValue source, ValueDiff diff)
source - the source observable valuediff - the value changepublic IObservableValue 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, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.