FileDocCategorySizeDatePackage
PathologicalForLoopEventSource.javaAPI DocExample712Mon Jan 09 11:02:02 GMT 2006None

PathologicalForLoopEventSource

public class PathologicalForLoopEventSource extends TestEventSource

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


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

        for (int i=0; i<listeners.size(); i++) {
            TestEventListener l = (TestEventListener) listeners.get(i);
            l.handleEvent (o);
        }
    
public static voidmain(java.lang.String[] args)

        PathologicalForLoopEventSource pfles = 
            new PathologicalForLoopEventSource();
        pfles.test();
    
public voidremoveListener(TestEventListener l)

        listeners.remove (l);