FileDocCategorySizeDatePackage
BackwardsForLoopEventSource.javaAPI DocExample706Mon Jan 09 11:02:02 GMT 2006None

BackwardsForLoopEventSource

public class BackwardsForLoopEventSource 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=listeners.size()-1; i>=0; i--) {
            TestEventListener l = (TestEventListener) listeners.get(i);
            l.handleEvent (o);
        }
    
public static voidmain(java.lang.String[] args)

        BackwardsForLoopEventSource bfles = 
            new BackwardsForLoopEventSource();
        bfles.test();
    
public voidremoveListener(TestEventListener l)

        listeners.remove (l);