1 | public class StoreEvent extends EventObject {↵ | | 1 | public class TaskManagerEvent extends EventObject {↵
|
2 | /**↵ | | |
|
3 | * serialVersionUID↵ | | |
|
4 | */↵ | | |
|
5 | ↵ | | 2 | /**↵
|
| | | 3 | * The <code>serialVersionUID</code> which was generated from the↵
|
| | | 4 | * compiler.↵
|
| | | 5 | */↵
|
6 | private static final long serialVersionUID = -4143276384111374455L;↵ | | 6 | private static final long serialVersionUID = ↵
|
7 | private Object changes;↵ | | |
|
|
8 | /**↵ | | |
|
9 | * StoreEvent Constructor↵ | | |
|
10 | * ↵ | | |
|
11 | * @param source↵ | | |
|
12 | * @param changes↵ | | |
|
13 | */↵ | | |
|
14 | public Store↵ | | 7 | 4738977594206080618L;↵
|
|
| | | 8 | protected Worker worker;↵
|
|
| | | 9 | /**↵
|
| | | 10 | * Creates a new event from the given source with the given worker that↵
|
| | | 11 | * has changed.↵
|
| | | 12 | */↵
|
15 | Event(Object source, Object changes) {↵ | | 13 | public TaskManagerEvent(Object theSource, Worker theWorker) {↵
|
16 | super(source);↵ | | 14 | super(theSource);↵
|
17 | this.changes = changes;↵ | | 15 | this.↵
|
18 | }↵ | | |
|
|
19 | /**↵ | | |
|
20 | * getChanges method↵ | | |
|
21 | * ↵ | | |
|
22 | ↵ | | 16 | worker = theWorker;↵
|
| | | 17 | }↵
|
|
| | | 18 | /**↵
|
23 | * @return Returns the changes.↵ | | 19 | * Return↵
|
24 | */↵ | | |
|
25 | public Object getChanges↵ | | 20 | s the worker that has been added or removed.↵
|
| | | 21 | */↵
|
26 | () {↵ | | 22 | public Worker getWorker() {↵
|
27 | return changes | | 23 | return worker
|