toxi.util.events
Class EventDispatcher<T>

java.lang.Object
  extended by toxi.util.events.EventDispatcher<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public class EventDispatcher<T>
extends java.lang.Object
implements java.lang.Iterable<T>


Constructor Summary
EventDispatcher()
           
 
Method Summary
 void addListener(T listener)
           
 java.util.List<T> getListeners()
           
 java.util.Iterator<T> iterator()
           
 void removeListener(T listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDispatcher

public EventDispatcher()
Method Detail

addListener

public void addListener(T listener)

getListeners

public java.util.List<T> getListeners()

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>

removeListener

public void removeListener(T listener)