Klasse Notifier

java.lang.Object
org.eclipse.net4j.util.event.Notifier
Alle implementierten Schnittstellen:
INotifier, INotifier.INotifier2
Bekannte direkte Unterklassen:
AbstractDelegator, ElementWizard, ExecutorServiceNotifier, History, Lifecycle, ValueNotifier

public class Notifier extends Object implements INotifier.INotifier2
A default implementation of a notifier.
Seit:
3.0
Autor:
Eike Stepper
  • Konstruktordetails

    • Notifier

      public Notifier()
  • Methodendetails

    • addUniqueListener

      public boolean addUniqueListener(IListener listener)
      Beschreibung aus Schnittstelle kopiert: INotifier.INotifier2
      Adds a listener to this notifier unless this notifier already contains the listener.
      Angegeben von:
      addUniqueListener in Schnittstelle INotifier.INotifier2
    • 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
    • hasListener

      public boolean hasListener(IListener listener)
      Beschreibung aus Schnittstelle kopiert: INotifier.INotifier2
      Returns true if this notifier contains the listener, false otherwise.
      Angegeben von:
      hasListener in Schnittstelle INotifier.INotifier2
    • 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
    • fireEvent

      public void fireEvent()
      Seit:
      3.2
    • fireEvent

      public void fireEvent(IEvent event)
    • fireEvent

      public void fireEvent(IEvent event, IListener[] listeners)
      Seit:
      3.0
    • fireThrowable

      protected void fireThrowable(Throwable throwable)
      Seit:
      3.3
    • getNotificationService

      protected ExecutorService getNotificationService()
      Seit:
      3.0
    • listenerAdded

      protected void listenerAdded(IListener listener)
      Seit:
      3.13
    • listenerRemoved

      protected void listenerRemoved(IListener listener)
      Seit:
      3.13
    • firstListenerAdded

      protected void firstListenerAdded()
      Seit:
      3.0
    • lastListenerRemoved

      protected void lastListenerRemoved()
      Seit:
      3.0