Klasse NotifyingMonitor

Alle implementierten Schnittstellen:
INotifier, OMMonitor, OMMonitorProgress

public class NotifyingMonitor extends Monitor implements INotifier
Seit:
3.1
Autor:
Eike Stepper
  • Konstruktordetails

    • NotifyingMonitor

      public NotifyingMonitor()
    • NotifyingMonitor

      public NotifyingMonitor(String task)
    • NotifyingMonitor

      public NotifyingMonitor(String task, IListener[] listeners)
  • Methodendetails

    • getTask

      public String getTask()
    • hasListeners

      public boolean hasListeners()
      Beschreibung aus Schnittstelle kopiert: INotifier
      Returns true if one or more listeners are registered with this notifier, false otherwise.
      Angegeben von:
      hasListeners in Schnittstelle INotifier
    • getListeners

      public IListener[] getListeners()
      Beschreibung aus Schnittstelle kopiert: INotifier
      Returns the listeners that are registered with this notifier.

      Depending on the implementation duplicate listeners may be contained in the returned array.

      Angegeben von:
      getListeners in Schnittstelle INotifier
    • addListener

      public void addListener(IListener listener)
      Beschreibung aus Schnittstelle kopiert: INotifier
      Adds a listener to this notifier.

      Depending on the implementation duplicate listeners may lead to duplicate event delivery or not. Implementors are encouraged to prevent events from being delivered more than once to the same listener,

      Angegeben von:
      addListener in Schnittstelle INotifier
    • removeListener

      public void removeListener(IListener listener)
      Beschreibung aus Schnittstelle kopiert: INotifier
      Removes a listener from this notifier.
      Angegeben von:
      removeListener in Schnittstelle INotifier
    • worked

      public void worked(double work) throws MonitorCanceledException
      Angegeben von:
      worked in Schnittstelle OMMonitor
      Setzt außer Kraft:
      worked in Klasse AbstractMonitor
      Löst aus:
      MonitorCanceledException