Package org.eclipse.net4j.util.event
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
A default implementation of a
notifier
.- Seit:
- 3.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addListener
(IListener listener) Adds a listener to this notifier.boolean
addUniqueListener
(IListener listener) Adds a listener to this notifier unless this notifier alreadycontains
the listener.void
void
void
protected void
fireThrowable
(Throwable throwable) protected void
Returns the listeners that are registered with this notifier.protected ExecutorService
boolean
hasListener
(IListener listener) Returnstrue
if this notifier contains the listener,false
otherwise.boolean
Returnstrue
if one or more listeners are registered with this notifier,false
otherwise.protected void
protected void
listenerAdded
(IListener listener) protected void
listenerRemoved
(IListener listener) void
removeListener
(IListener listener) Removes a listener from this notifier.
-
Konstruktordetails
-
Notifier
public Notifier()
-
-
Methodendetails
-
addUniqueListener
Beschreibung aus Schnittstelle kopiert:INotifier.INotifier2
Adds a listener to this notifier unless this notifier alreadycontains
the listener.- Angegeben von:
addUniqueListener
in SchnittstelleINotifier.INotifier2
-
addListener
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 SchnittstelleINotifier
-
removeListener
Beschreibung aus Schnittstelle kopiert:INotifier
Removes a listener from this notifier.- Angegeben von:
removeListener
in SchnittstelleINotifier
-
hasListener
Beschreibung aus Schnittstelle kopiert:INotifier.INotifier2
Returnstrue
if this notifier contains the listener,false
otherwise.- Angegeben von:
hasListener
in SchnittstelleINotifier.INotifier2
-
hasListeners
public boolean hasListeners()Beschreibung aus Schnittstelle kopiert:INotifier
Returnstrue
if one or more listeners are registered with this notifier,false
otherwise.- Angegeben von:
hasListeners
in SchnittstelleINotifier
-
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 SchnittstelleINotifier
-
fireEvent
public void fireEvent()- Seit:
- 3.2
-
fireEvent
-
fireEvent
- Seit:
- 3.0
-
fireThrowable
- Seit:
- 3.3
-
getNotificationService
- Seit:
- 3.0
-
listenerAdded
- Seit:
- 3.13
-
listenerRemoved
- Seit:
- 3.13
-
firstListenerAdded
protected void firstListenerAdded()- Seit:
- 3.0
-
lastListenerRemoved
protected void lastListenerRemoved()- Seit:
- 3.0
-