1 /*
2  * This file is part of libbluray
3  * Copyright (C) 2010  William Hahne
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not, see
17  * <http://www.gnu.org/licenses/>.
18  */
19 
20 package javax.media;
21 
22 public class ControllerClosedEvent extends ControllerEvent {
ControllerClosedEvent(Controller source)23     public ControllerClosedEvent(Controller source) {
24         super(source);
25     }
26 
ControllerClosedEvent(Controller source, String reason)27     public ControllerClosedEvent(Controller source, String reason) {
28         super(source);
29 
30         this.reason = reason;
31     }
32 
getMessage()33     public String getMessage() {
34         return reason;
35     }
36 
toString()37     public String toString() {
38         return getClass().getName() + "[source=" + source + ",reason=" + reason + "]";
39     }
40 
41     private String reason = "";
42     private static final long serialVersionUID = 5868546288299613691L;
43 }
44