|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.databinding.observable.ChangeManager
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.value.AbstractObservableValue
org.eclipse.core.databinding.observable.value.WritableValue
Mutable (writable) implementation of IObservableValue that will maintain a value and fire
change events when the value changes.
This class is thread safe. All state accessing methods must be invoked from
the current realm. Methods for adding and removing
listeners may be invoked from any thread.
| Constructor Summary | |
|---|---|
WritableValue()
Constructs a new instance with the default realm, a null
value type, and a null value. |
|
WritableValue(Object initialValue,
Object valueType)
Constructs a new instance with the default realm. |
|
WritableValue(Realm realm)
Constructs a new instance with the provided realm, a
null value type, and a null initial value. |
|
WritableValue(Realm realm,
Object initialValue,
Object valueType)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
Object |
doGetValue()
|
void |
doSetValue(Object value)
Template method for setting the value of the observable. |
Object |
getValueType()
The value type of this observable value, or null if this
observable value is untyped. |
static WritableValue |
withValueType(Object elementType)
|
| Methods inherited from class org.eclipse.core.databinding.observable.value.AbstractObservableValue |
|---|
addValueChangeListener, dispose, fireChange, fireValueChange, getValue, isStale, removeValueChangeListener, setValue |
| Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
|---|
addChangeListener, addListener, addStaleListener, checkRealm, fireEvent, fireStale, firstListenerAdded, getRealm, hasListeners, lastListenerRemoved, removeChangeListener, removeListener, removeStaleListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
|---|
addChangeListener, addStaleListener, getRealm, removeChangeListener, removeStaleListener |
| Constructor Detail |
public WritableValue()
null
value type, and a null value.
public WritableValue(Object initialValue,
Object valueType)
initialValue - can be nullvalueType - can be nullpublic WritableValue(Realm realm)
realm, a
null value type, and a null initial value.
realm -
public WritableValue(Realm realm,
Object initialValue,
Object valueType)
realm - initialValue - can be nullvalueType - can be null| Method Detail |
public Object doGetValue()
doGetValue in class AbstractObservableValuepublic void doSetValue(Object value)
AbstractObservableValueUnsupportedOperationException.
doSetValue in class AbstractObservableValuevalue - The value to set.public Object getValueType()
IObservableValuenull if this
observable value is untyped.
nullpublic static WritableValue withValueType(Object elementType)
elementType - can be null
null
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.