public abstract class UpdateCompleteProvider extends java.lang.Object implements IUpdateCompleteProvider
Constructor and Description |
---|
UpdateCompleteProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
addUpdateCompleteListener(IUpdateCompleteListener listener,
boolean fireNow)
Registers an
IUpdateCompleteListener to receive notification on completed updates. |
void |
dispose()
Disposes of the provider by clearing the listener list
|
protected void |
firstListenerAdded() |
protected void |
lastListenerRemoved() |
boolean |
removeUpdateCompleteListener(IUpdateCompleteListener listener)
Unregisters a listener registered by
IUpdateCompleteProvider.addUpdateCompleteListener(IUpdateCompleteListener, boolean) . |
protected void |
updateCompleted()
Notifies each listener that an update complete event occurred.
|
public boolean addUpdateCompleteListener(IUpdateCompleteListener listener, boolean fireNow)
IUpdateCompleteProvider
IUpdateCompleteListener
to receive notification on completed updates.
The listener can be unregistered via IUpdateCompleteProvider.removeUpdateCompleteListener(IUpdateCompleteListener)
.
addUpdateCompleteListener
in interface IUpdateCompleteProvider
listener
- the listener that will be notified of each completed updatefireNow
- if true, listener will be immediately invoked without waiting for the next updateprotected void firstListenerAdded()
protected void lastListenerRemoved()
public boolean removeUpdateCompleteListener(IUpdateCompleteListener listener)
IUpdateCompleteProvider
IUpdateCompleteProvider.addUpdateCompleteListener(IUpdateCompleteListener, boolean)
.removeUpdateCompleteListener
in interface IUpdateCompleteProvider
listener
- the listener that will no longer be notified.protected void updateCompleted()
public void dispose()