1 | public class CalendarSelectionChangedEvent extends EventObject {↵ | | 1 | public class TaskManagerEvent extends EventObject {↵
|
|
2 | /**↵ | | |
|
3 | * serialVersionUID↵ | | |
|
4 | */↵ | | |
|
5 | private static final long serialVersionUID = -3639709270195042586L;↵ | | |
|
6 | private ICalendarItem selection;↵ | | |
|
|
7 | /**↵ | | |
|
8 | * CalendarSelectionChangedEvent parameterized constructor↵ | | |
|
9 | * @param source↵ | | |
|
10 | * @param selection↵ | | |
|
11 | */↵ | | |
|
12 | public CalendarSelectionChan↵ | | 2 | /**↵
|
| | | 3 | * The <code>serialVersionUID</code> which was generated from the↵
|
| | | 4 | * compiler.↵
|
| | | 5 | */↵
|
| | | 6 | private static final long serialVersionUID = 4738977594206080618L;↵
|
|
| | | 7 | protected Worker worker;↵
|
|
| | | 8 | /**↵
|
| | | 9 | * Creates a new event from the given source with the given worker that↵
|
| | | 10 | * has changed.↵
|
| | | 11 | */↵
|
13 | gedEvent(Object source, ICalendarItem selection) {↵ | | 12 | public TaskManagerEvent(Object theSource, Worker theWorker) {↵
|
14 | super(source);↵ | | 13 | super(theSource);↵
|
15 | this.selection = selection;↵ | | 14 | this.↵
|
16 | }↵ | | |
|
|
17 | /**↵ | | |
|
18 | * getSelection method↵ | | |
|
19 | * @return Returns the new selection↵ | | |
|
20 | */↵ | | |
|
21 | public ICalendarItem getSelection↵ | | 15 | worker = theWorker;↵
|
| | | 16 | }↵
|
|
| | | 17 | /**↵
|
| | | 18 | * Returns the worker that has been added or removed.↵
|
| | | 19 | */↵
|
22 | () {↵ | | 20 | public Worker getWorker() {↵
|
23 | return selection | | 21 | return worker
|