|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.value.AbstractObservableValue
org.eclipse.core.databinding.observable.value.SelectObservableValue
public class SelectObservableValue
An observable value which behaves similarly to the <select> and
<option> HTML tags. A SelectObservableValue has a number of options
added to it via the 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 Summary | |
|---|---|
SelectObservableValue()
Constructs a SelectObservableValue on the default realm. |
|
SelectObservableValue(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,
Object valueType)
Constructs a SelectObservableValue on the given realm, with the given value type. |
|
| Method Summary | |
|---|---|
protected void |
addListener(Object listenerType,
IObservablesListener listener)
|
void |
addOption(Object value,
IObservableValue observable)
Adds an option to this SelectObservableValue. |
protected Object |
clone()
|
protected Object |
doGetValue()
|
protected void |
doSetValue(Object value)
Template method for setting the value of the observable. |
protected void |
fireEvent(ObservableEvent event)
|
protected void |
firstListenerAdded()
|
Realm |
getRealm()
|
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(Object listenerType,
IObservablesListener listener)
|
| Methods inherited from class org.eclipse.core.databinding.observable.value.AbstractObservableValue |
|---|
addValueChangeListener, fireChange, fireValueChange, getValue, isStale, removeValueChangeListener, setValue |
| Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
|---|
addChangeListener, addDisposeListener, addStaleListener, checkRealm, dispose, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
|---|
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
| Constructor Detail |
|---|
public SelectObservableValue()
public SelectObservableValue(Realm realm)
realm - the realmpublic SelectObservableValue(Object valueType)
valueType - the value type
public SelectObservableValue(Realm realm,
Object valueType)
realm - the realmvalueType - the value type| Method Detail |
|---|
protected void firstListenerAdded()
protected void lastListenerRemoved()
public Object getValueType()
IObservableValuenull if this
observable value is untyped.
null
public void addOption(Object value,
IObservableValue observable)
value - The value associated with the provided observableobservable - an observable of value type Boolean.class or Boolean.TYPEprotected Object doGetValue()
doGetValue in class AbstractObservableValueprotected void doSetValue(Object value)
AbstractObservableValueUnsupportedOperationException.
doSetValue in class AbstractObservableValue
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
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.