Class ChangeSupport
java.lang.Object
org.eclipse.core.databinding.observable.ChangeSupport
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(IChangeListener listener) void
addDisposeListener
(IDisposeListener listener) void
addListener
(Object listenerType, IObservablesListener listener) void
addStaleListener
(IStaleListener listener) protected Object
clone()
void
dispose()
void
fireEvent
(ObservableEvent event) protected abstract void
getRealm()
protected boolean
protected abstract void
void
removeChangeListener
(IChangeListener listener) void
removeDisposeListener
(IDisposeListener listener) void
removeListener
(Object listenerType, IObservablesListener listener) void
removeStaleListener
(IStaleListener listener)
-
Constructor Details
-
ChangeSupport
- Parameters:
realm
- the realm
-
-
Method Details
-
addListener
- Parameters:
listenerType
- arbitrary object to identify a type of the listenerlistener
- the listener to add; notnull
-
removeListener
- Parameters:
listenerType
- arbitrary object to identify a type of the listenerlistener
- the listener to remove; notnull
-
fireEvent
-
firstListenerAdded
protected abstract void firstListenerAdded() -
lastListenerRemoved
protected abstract void lastListenerRemoved() -
addChangeListener
- Parameters:
listener
- the listener to add; notnull
-
removeChangeListener
- Parameters:
listener
- the listener to remove; notnull
-
addStaleListener
- Parameters:
listener
- the listener to add; notnull
-
removeStaleListener
- Parameters:
listener
- the listener to remove; notnull
-
addDisposeListener
- Parameters:
listener
- the listener to add; notnull
- Since:
- 1.2
-
removeDisposeListener
- Parameters:
listener
- the listener to remove; notnull
- Since:
- 1.2
-
hasListeners
protected boolean hasListeners() -
dispose
public void dispose() -
getRealm
- Returns:
- Returns the realm.
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-