T - the type of value being observedpublic class SelectObservableValue<T> extends AbstractObservableValue<T>
addOption(Object, IObservableValue) method. The
value of the SelectObservableValue is the value of whichever option's
observable has a value of Boolean.TRUE, or null if none of the observable's
values are Boolean.TRUE.| Constructor and Description |
|---|
SelectObservableValue()
Constructs a SelectObservableValue on the default realm.
|
SelectObservableValue(java.lang.Object valueType)
Constructs a SelectObservableValue on the default realm, with the given
value type.
|
SelectObservableValue(Realm realm)
Constructs a SelectObservableValue on the specified realm.
|
SelectObservableValue(Realm realm,
java.lang.Object valueType)
Constructs a SelectObservableValue on the given realm, with the given
value type.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addListener(java.lang.Object listenerType,
IObservablesListener listener) |
void |
addOption(T value,
IObservableValue<java.lang.Boolean> observable)
Adds an option to this SelectObservableValue.
|
protected java.lang.Object |
clone() |
protected T |
doGetValue() |
protected void |
doSetValue(java.lang.Object value)
Template method for setting the value of the observable.
|
protected void |
fireEvent(ObservableEvent event) |
protected void |
firstListenerAdded() |
Realm |
getRealm() |
java.lang.Object |
getValueType()
The value type of this observable value, or
null if this
observable value is untyped. |
protected boolean |
hasListeners() |
protected void |
lastListenerRemoved() |
protected void |
removeListener(java.lang.Object listenerType,
IObservablesListener listener) |
addValueChangeListener, fireChange, fireValueChange, getValue, isStale, removeValueChangeListener, setValueaddChangeListener, addDisposeListener, addStaleListener, checkRealm, dispose, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerpublic SelectObservableValue()
public SelectObservableValue(Realm realm)
realm - the realmpublic SelectObservableValue(java.lang.Object valueType)
valueType - the value typepublic SelectObservableValue(Realm realm, java.lang.Object valueType)
realm - the realmvalueType - the value typeprotected void firstListenerAdded()
protected void lastListenerRemoved()
public java.lang.Object getValueType()
IObservableValuenull if this
observable value is untyped.nullpublic void addOption(T value, IObservableValue<java.lang.Boolean> observable)
value - The value associated with the provided observableobservable - an observable of value type Boolean.class or Boolean.TYPEprotected T doGetValue()
doGetValue in class AbstractObservableValue<T>protected void doSetValue(java.lang.Object value)
AbstractObservableValueUnsupportedOperationException.doSetValue in class AbstractObservableValue<T>protected void addListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected void removeListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
public Realm getRealm()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.