public class NotificationSupport extends Object
NotificationEvent
s.NotificationEvent
,
NotificationListener
Modifier and Type | Field and Description |
---|---|
private EventListenerList |
listeners |
private Object |
source |
Constructor and Description |
---|
NotificationSupport(Object source)
Construct a new
NotificationSupport object. |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(NotificationListener listener)
Add a
NotificationListener to this object's list of
listeners. |
void |
fireNotificationEvent(int id)
Fire a
NotificationEvent with the specified ID. |
void |
removeNotificationListener(NotificationListener listener)
Remove a
NotificationListener from this object's list of
listeners. |
private EventListenerList listeners
public NotificationSupport(Object source)
NotificationSupport
object.source
- The owner of this object (and the source of the events that
will be generated by it).public void addNotificationListener(NotificationListener listener)
NotificationListener
to this object's list of
listeners.listener
- The listener to add.public void removeNotificationListener(NotificationListener listener)
NotificationListener
from this object's list of
listeners.listener
- The listener to remove.public void fireNotificationEvent(int id)
NotificationEvent
with the specified ID.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses