FileDocCategorySizeDatePackage
PathologicalIteratingEventSource.javaAPI DocExample735Mon Jan 09 11:02:02 GMT 2006None

PathologicalIteratingEventSource

public class PathologicalIteratingEventSource extends TestEventSource

Fields Summary
ArrayList
listeners
Constructors Summary
Methods Summary
public voidaddListener(TestEventListener l)


         
        listeners.add (l);
    
public voidfireEvent(java.util.EventObject o)

        Iterator it = listeners.iterator();
        while (it.hasNext()) {
            TestEventListener l = (TestEventListener) it.next();
            l.handleEvent (o);
        }
    
public static voidmain(java.lang.String[] args)

        PathologicalIteratingEventSource pies = 
            new PathologicalIteratingEventSource();
        pies.test();
    
public voidremoveListener(TestEventListener l)

        listeners.remove (l);