public class DecoratingVetoableValue extends DecoratingObservableValue implements IVetoableValue
IVetoableValue
decorator for an observable value.Constructor and Description |
---|
DecoratingVetoableValue(IObservableValue decorated,
boolean disposeDecoratedOnDispose) |
Modifier and Type | Method and Description |
---|---|
protected void |
addListener(Object listenerType,
IObservablesListener listener) |
void |
addValueChangingListener(IValueChangingListener listener) |
protected Object |
clone() |
protected void |
fireEvent(ObservableEvent event) |
protected boolean |
fireValueChanging(ValueDiff diff)
Notifies listeners about a pending change, and returns true if no
listener vetoed the change.
|
Realm |
getRealm() |
protected boolean |
hasListeners() |
protected void |
removeListener(Object listenerType,
IObservablesListener listener) |
void |
removeValueChangingListener(IValueChangingListener listener) |
void |
setValue(Object value)
Sets the value.
|
addValueChangeListener, dispose, fireChange, fireValueChange, firstListenerAdded, getValue, getValueType, handleValueChange, lastListenerRemoved, removeValueChangeListener
equals, getDecorated, getterCalled, handleStaleEvent, hashCode, isStale
addChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addValueChangeListener, getValue, getValueType, removeValueChangeListener
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
public DecoratingVetoableValue(IObservableValue decorated, boolean disposeDecoratedOnDispose)
decorated
- disposeDecoratedOnDispose
- public void setValue(Object value)
IObservableValue
Realm
of the observable.setValue
in interface IObservableValue
setValue
in class DecoratingObservableValue
value
- the value to setpublic void addValueChangingListener(IValueChangingListener listener)
addValueChangingListener
in interface IVetoableValue
public void removeValueChangingListener(IValueChangingListener listener)
removeValueChangingListener
in interface IVetoableValue
protected boolean fireValueChanging(ValueDiff diff)
diff
- protected void addListener(Object listenerType, IObservablesListener listener)
listenerType
- listener
- protected void removeListener(Object listenerType, IObservablesListener listener)
listenerType
- listener
- protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
public Realm getRealm()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.