cz.cuni.amis.utils.listener
Class IListener.Notifier<LISTENER extends IListener>

java.lang.Object
  extended by cz.cuni.amis.utils.listener.IListener.Notifier<LISTENER>
Type Parameters:
EVENT -
LISTENER -
All Implemented Interfaces:
Listeners.ListenerNotifier<LISTENER>
Enclosing interface:
IListener<T>

public static class IListener.Notifier<LISTENER extends IListener>
extends java.lang.Object
implements Listeners.ListenerNotifier<LISTENER>

Convenient class for notifying about events using Listeners or ListenersMap.


Constructor Summary
IListener.Notifier(java.lang.Object event)
           
 
Method Summary
 java.lang.Object getEvent()
           
 void notify(LISTENER listener)
           
 void setEvent(java.lang.Object event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IListener.Notifier

public IListener.Notifier(java.lang.Object event)
Method Detail

getEvent

public java.lang.Object getEvent()
Specified by:
getEvent in interface Listeners.ListenerNotifier<LISTENER extends IListener>

setEvent

public void setEvent(java.lang.Object event)

notify

public void notify(LISTENER listener)
Specified by:
notify in interface Listeners.ListenerNotifier<LISTENER extends IListener>