Changeset 20
- Timestamp:
- 08/04/05 15:36:37 (3 years ago)
- Files:
-
- trunk/src/net/schst/EventDispatcher/EventListenerCollection.java (modified) (2 diffs)
- trunk/src/net/schst/EventDispatcher/Examples/Example1.java (modified) (1 diff)
- trunk/src/net/schst/EventDispatcher/Examples/Example2.java (modified) (1 diff)
- trunk/src/net/schst/EventDispatcher/Examples/ExampleQueue.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/net/schst/EventDispatcher/EventListenerCollection.java
r19 r20 45 45 // remove the listener 46 46 if (container.isAutoRemoveEnabled()) { 47 remove.add( new Integer(i));47 remove.add(container.getListener()); 48 48 } 49 49 if (e.isCancelled()) { … … 53 53 // remove the listeners that have been set to autoRemove 54 54 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); 57 57 } 58 58 return e; trunk/src/net/schst/EventDispatcher/Examples/Example1.java
r2 r20 19 19 cus1.login(); 20 20 21 Customer cus2 = new Customer(2, "Andreas F örch");21 Customer cus2 = new Customer(2, "Andreas Foerch"); 22 22 cus2.login(); 23 23 } trunk/src/net/schst/EventDispatcher/Examples/Example2.java
r1 r20 19 19 cus1.login(); 20 20 21 Customer cus2 = new Customer(2, "Andreas F örch");21 Customer cus2 = new Customer(2, "Andreas Foerch"); 22 22 cus2.login(); 23 23 } trunk/src/net/schst/EventDispatcher/Examples/ExampleQueue.java
r1 r20 17 17 disp.addListener("onLogin", echo); 18 18 19 Customer cus2 = new Customer(2, "Andreas F örch");19 Customer cus2 = new Customer(2, "Andreas Foerch"); 20 20 cus2.login(); 21 21 }
