Changeset 20

Show
Ignore:
Timestamp:
08/04/05 15:36:37 (3 years ago)
Author:
schst
Message:

Fixed autoRemove bug, remove some non-ASCII characters from examples

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net/schst/EventDispatcher/EventListenerCollection.java

    r19 r20  
    4545            // remove the listener 
    4646            if (container.isAutoRemoveEnabled()) { 
    47                 remove.add(new Integer(i)); 
     47                remove.add(container.getListener()); 
    4848            } 
    4949            if (e.isCancelled()) { 
     
    5353        // remove the listeners that have been set to autoRemove 
    5454        for (Iterator iter = remove.iterator(); iter.hasNext();) { 
    55             Integer index = (Integer) iter.next(); 
    56             this.removeListener(index.intValue()); 
     55            EventListener listener = (EventListener) iter.next(); 
     56            this.removeListener(listener); 
    5757        } 
    5858        return e; 
  • trunk/src/net/schst/EventDispatcher/Examples/Example1.java

    r2 r20  
    1919        cus1.login(); 
    2020         
    21         Customer cus2 = new Customer(2, "Andreas Förch"); 
     21        Customer cus2 = new Customer(2, "Andreas Foerch"); 
    2222        cus2.login(); 
    2323    } 
  • trunk/src/net/schst/EventDispatcher/Examples/Example2.java

    r1 r20  
    1919        cus1.login(); 
    2020         
    21         Customer cus2 = new Customer(2, "Andreas Förch"); 
     21        Customer cus2 = new Customer(2, "Andreas Foerch"); 
    2222        cus2.login(); 
    2323    } 
  • trunk/src/net/schst/EventDispatcher/Examples/ExampleQueue.java

    r1 r20  
    1717        disp.addListener("onLogin", echo); 
    1818         
    19         Customer cus2 = new Customer(2, "Andreas Förch"); 
     19        Customer cus2 = new Customer(2, "Andreas Foerch"); 
    2020        cus2.login(); 
    2121    }