org.eclipse.emf.databinding
Class EObjectObservableValue

java.lang.Object
  extended by org.eclipse.core.databinding.observable.AbstractObservable
      extended by org.eclipse.core.databinding.observable.value.AbstractObservableValue
          extended by org.eclipse.emf.databinding.EObjectObservableValue
All Implemented Interfaces:
IObservable, IObserving, IObservableValue
Direct Known Subclasses:
EditingDomainEObjectObservableValue

public class EObjectObservableValue
extends AbstractObservableValue
implements IObserving

PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.


Field Summary
protected  EObject eObject
          The object instance
protected  EStructuralFeature eStructuralFeature
          The feature
protected  Adapter listener
          The listener
 
Constructor Summary
EObjectObservableValue(EObject eObject, EStructuralFeature eStructuralFeature)
          Observe a feature of the instance using the default realm
EObjectObservableValue(Realm realm, EObject eObject, EStructuralFeature eStructuralFeature)
          Observe a feature of the instance using the realm
 
Method Summary
protected  void addListener(java.lang.Object arg0, IObservablesListener arg1)
           
protected  java.lang.Object clone()
           
 void dispose()
           
protected  java.lang.Object doGetValue()
           
protected  void doSetValue(java.lang.Object value)
           
protected  void fireEvent(ObservableEvent arg0)
           
protected  void firstListenerAdded()
           
 java.lang.Object getObserved()
           
 Realm getRealm()
           
 java.lang.Object getValueType()
           
protected  boolean hasListeners()
           
protected  void lastListenerRemoved()
           
protected  void removeListener(java.lang.Object arg0, IObservablesListener arg1)
           
 java.lang.String toString()
           
 
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, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener
 

Field Detail

eObject

protected EObject eObject
The object instance


eStructuralFeature

protected EStructuralFeature eStructuralFeature
The feature


listener

protected Adapter listener
The listener

Constructor Detail

EObjectObservableValue

public EObjectObservableValue(EObject eObject,
                              EStructuralFeature eStructuralFeature)
Observe a feature of the instance using the default realm

Parameters:
eObject - the object
eStructuralFeature - the feature

EObjectObservableValue

public EObjectObservableValue(Realm realm,
                              EObject eObject,
                              EStructuralFeature eStructuralFeature)
Observe a feature of the instance using the realm

Parameters:
realm -
eObject - the object
eStructuralFeature - the feature
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IObservable
Overrides:
dispose in class AbstractObservable

getObserved

public java.lang.Object getObserved()
Specified by:
getObserved in interface IObserving

firstListenerAdded

protected void firstListenerAdded()

lastListenerRemoved

protected void lastListenerRemoved()

doGetValue

protected java.lang.Object doGetValue()
Specified by:
doGetValue in class AbstractObservableValue

doSetValue

protected void doSetValue(java.lang.Object value)
Overrides:
doSetValue in class AbstractObservableValue

getValueType

public java.lang.Object getValueType()
Specified by:
getValueType in interface IObservableValue

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addListener

protected void addListener(java.lang.Object arg0,
                           IObservablesListener arg1)

removeListener

protected void removeListener(java.lang.Object arg0,
                              IObservablesListener arg1)

hasListeners

protected boolean hasListeners()

fireEvent

protected void fireEvent(ObservableEvent arg0)

getRealm

public Realm getRealm()

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.