Class ChangeSupport

java.lang.Object
org.eclipse.core.databinding.observable.ChangeSupport

public abstract class ChangeSupport extends Object
Since:
1.0
  • Constructor Details

    • ChangeSupport

      public ChangeSupport(Realm realm)
      Parameters:
      realm - the realm
  • Method Details

    • addListener

      public void addListener(Object listenerType, IObservablesListener listener)
      Parameters:
      listenerType - arbitrary object to identify a type of the listener
      listener - the listener to add; not null
    • removeListener

      public void removeListener(Object listenerType, IObservablesListener listener)
      Parameters:
      listenerType - arbitrary object to identify a type of the listener
      listener - the listener to remove; not null
    • fireEvent

      public void fireEvent(ObservableEvent event)
    • firstListenerAdded

      protected abstract void firstListenerAdded()
    • lastListenerRemoved

      protected abstract void lastListenerRemoved()
    • addChangeListener

      public void addChangeListener(IChangeListener listener)
      Parameters:
      listener - the listener to add; not null
    • removeChangeListener

      public void removeChangeListener(IChangeListener listener)
      Parameters:
      listener - the listener to remove; not null
    • addStaleListener

      public void addStaleListener(IStaleListener listener)
      Parameters:
      listener - the listener to add; not null
    • removeStaleListener

      public void removeStaleListener(IStaleListener listener)
      Parameters:
      listener - the listener to remove; not null
    • addDisposeListener

      public void addDisposeListener(IDisposeListener listener)
      Parameters:
      listener - the listener to add; not null
      Since:
      1.2
    • removeDisposeListener

      public void removeDisposeListener(IDisposeListener listener)
      Parameters:
      listener - the listener to remove; not null
      Since:
      1.2
    • hasListeners

      protected boolean hasListeners()
    • dispose

      public void dispose()
    • getRealm

      public Realm getRealm()
      Returns:
      Returns the realm.
    • clone

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