| 1 | /* __copyright_begin__ |
| 2 | Copyright 2011 Dan Hagberg |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | __copyright_end__ */ |
| 16 | package net.digitaltsunami.tmeter.event; |
| 17 | |
| 18 | import java.util.EventObject; |
| 19 | |
| 20 | import net.digitaltsunami.tmeter.Timer; |
| 21 | |
| 22 | public class TimerStoppedEvent extends EventObject { |
| 23 | |
| 24 | private static final long serialVersionUID = -4521533334911873218L; |
| 25 | |
| 26 | /** |
| 27 | * Construct a completion event providing the timer that has completed. |
| 28 | * |
| 29 | * @param source |
| 30 | */ |
| 31 | public TimerStoppedEvent(Timer timer) { |
| 32 | super(timer); |
| 33 | } |
| 34 | |
| 35 | public Timer getTimer() { |
| 36 | return (Timer) getSource(); |
| 37 | } |
| 38 | |
| 39 | } |