Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.databinding.observable
Class AbstractObservable

java.lang.Object
  extended by 
org.eclipse.core.databinding.observable.AbstractObservable
All Implemented Interfaces:
IObservable
Direct Known Subclasses:
AbstractObservableSet, AbstractObservableValue, DecoratingObservable, ObservableList, ObservableMap, ObservableSet

public abstract class AbstractObservable
extends Object
implements IObservable

Since:
1.0

Constructor Summary
AbstractObservable ( Realm realm)
           
 
Method Summary
 void addChangeListener ( IChangeListener listener)
          Adds the given change listener to the list of change listeners.
 void addDisposeListener ( IDisposeListener listener)
          Adds the given dispose listener to the list of dispose listeners.
protected  void addListener ( Object listenerType, IObservablesListener listener)
           
 void addStaleListener ( IStaleListener listener)
          Adds the given stale listener to the list of stale listeners.
protected  void checkRealm ()
          Asserts that the realm is the current realm.
protected   Object clone ()
           
 void dispose ()
          Disposes of this observable object, removing all listeners registered with this object, and all listeners this object might have registered on other objects.
protected  void fireChange ()
           
protected  void fireEvent ( ObservableEvent event)
           
protected  void fireStale ()
           
protected  void firstListenerAdded ()
           
  Realm getRealm ()
           
protected  boolean hasListeners ()
           
 boolean isDisposed ()
          Returns whether the observable has been disposed
protected  void lastListenerRemoved ()
           
 void removeChangeListener ( IChangeListener listener)
          Removes the given change listener from the list of change listeners.
 void removeDisposeListener ( IDisposeListener listener)
          Removes the given dispose listener from the list of dispose listeners.
protected  void removeListener ( Object listenerType, IObservablesListener listener)
           
 void removeStaleListener ( IStaleListener listener)
          Removes the given stale listener from the list of stale listeners.
 
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
getRealm, isStale
 

Constructor Detail

AbstractObservable

public AbstractObservable(
Realm realm)
Parameters:
realm -
Method Detail

addChangeListener

public void addChangeListener(
IChangeListener listener)
Description copied from interface: IObservable
Adds the given change listener to the list of change listeners. Change listeners are notified about changes of the state of this observable in a generic way, without specifying the change that happened. To get the changed state, a change listener needs to query for the current state of this observable.

Specified by:
addChangeListener in interface IObservable

removeChangeListener

public void removeChangeListener(
IChangeListener listener)
Description copied from interface: IObservable
Removes the given change listener from the list of change listeners. Has no effect if the given listener is not registered as a change listener.

Specified by:
removeChangeListener in interface IObservable

addStaleListener

public void addStaleListener(
IStaleListener listener)
Description copied from interface: IObservable
Adds the given stale listener to the list of stale listeners. Stale listeners are notified when an observable object becomes stale, not when is becomes non-stale.

Specified by:
addStaleListener in interface IObservable
See Also:
IObservable.isStale()

removeStaleListener

public void removeStaleListener(
IStaleListener listener)
Description copied from interface: IObservable
Removes the given stale listener from the list of stale listeners. Has no effect if the given listener is not registered as a stale listener.

Specified by:
removeStaleListener in interface IObservable

addDisposeListener

public void addDisposeListener(
IDisposeListener listener)
Description copied from interface: IObservable
Adds the given dispose listener to the list of dispose listeners. Dispose listeners are notified when an observable has been disposed.

Specified by:
addDisposeListener in interface IObservable
Parameters:
listener - the listener to add
Since:
1.2

removeDisposeListener

public void removeDisposeListener(
IDisposeListener listener)
Description copied from interface: IObservable
Removes the given dispose listener from the list of dispose listeners. Has no effect if the given listener is not registered as a dispose listener.

Specified by:
removeDisposeListener in interface IObservable
Parameters:
listener - the listener to remove
Since:
1.2

fireChange

protected void fireChange()

fireStale

protected void fireStale()

isDisposed

public boolean isDisposed()
Description copied from interface: IObservable
Returns whether the observable has been disposed

Specified by:
isDisposed in interface IObservable
Returns:
whether the observable has been disposed
Since:
1.2

dispose

public void dispose()
Description copied from interface: IObservable
Disposes of this observable object, removing all listeners registered with this object, and all listeners this object might have registered on other objects.

Specified by:
dispose in interface IObservable

checkRealm

protected void checkRealm()
Asserts that the realm is the current realm.

Throws:
AssertionFailedException - if the realm is not the current realm
See Also:
Realm.isCurrent()

addListener

protected void addListener(
Object listenerType,
                           
IObservablesListener listener)
Parameters:
listenerType -
listener -

removeListener

protected void removeListener(
Object listenerType,
                              
IObservablesListener listener)
Parameters:
listenerType -
listener -

hasListeners

protected boolean hasListeners()

fireEvent

protected void fireEvent(
ObservableEvent event)

firstListenerAdded

protected void firstListenerAdded()

lastListenerRemoved

protected void lastListenerRemoved()

getRealm

public 
Realm getRealm()
Returns:
Returns the realm.

clone

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire