root / tags / v1_1_Build_1005 / libraries / libDriverManager / src / com / hardcode / driverManager / AbstractDriver.java @ 12355
History | View | Annotate | Download (460 Bytes)
1 | 10407 | fjp | 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 | } |