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, removeValueChangeListenerequals, getDecorated, getterCalled, handleStaleEvent, hashCode, isStaleaddChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerfinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddValueChangeListener, getValue, getValueType, removeValueChangeListeneraddChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListenerpublic DecoratingVetoableValue(IObservableValue decorated, boolean disposeDecoratedOnDispose)
decorated - disposeDecoratedOnDispose - public void setValue(Object value)
IObservableValueRealm of the observable.setValue in interface IObservableValuesetValue in class DecoratingObservableValuevalue - the value to setpublic void addValueChangingListener(IValueChangingListener listener)
addValueChangingListener in interface IVetoableValuepublic void removeValueChangingListener(IValueChangingListener listener)
removeValueChangingListener in interface IVetoableValueprotected 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 ObjectCloneNotSupportedException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.