root / tags / v1_1_Build_1003 / libraries / libDriverManager / src / com / hardcode / driverManager / AbstractDriver.java @ 12271
History | View | Annotate | Download (460 Bytes)
1 |
package com.hardcode.driverManager; |
---|---|
2 |
|
3 |
import java.util.ArrayList; |
4 |
|
5 |
public abstract class AbstractDriver implements Driver { |
6 |
private ArrayList driverEventListeners = new ArrayList(); |
7 |
|
8 |
public void addDriverEventListener(DriverEventListener listener) { |
9 |
if (!driverEventListeners.contains(listener))
|
10 |
driverEventListeners.add(listener); |
11 |
} |
12 |
public void removeDriverEventListener(DriverEventListener listener) { |
13 |
driverEventListeners.remove(listener); |
14 |
} |
15 |
|
16 |
} |