com.frinika.sequencer.gui
Class ListenerSupport<L,E>

java.lang.Object
  extended by com.frinika.sequencer.gui.ListenerSupport<L,E>

public abstract class ListenerSupport<L,E>
extends java.lang.Object

Helps handling listeners.

Author:
Jens Gulden

Constructor Summary
ListenerSupport()
          Creates a new instance
 
Method Summary
 void addListener(L listener)
           
 java.util.Collection<L> getListeners()
           
abstract  void notify(L l, E e)
          Fire event to a single listener.
 void notifyListeners(E e)
          Fire event to all.
 void removeListener(L listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerSupport

public ListenerSupport()
Creates a new instance

Method Detail

addListener

public void addListener(L listener)

removeListener

public void removeListener(L listener)

getListeners

public java.util.Collection<L> getListeners()

notifyListeners

public void notifyListeners(E e)
Fire event to all.


notify

public abstract void notify(L l,
                            E e)
Fire event to a single listener.