Source code: docs/template/ExampleEvent.java
1
2 package docs.template;
3
4 import java.util.*;
5
6 /**
7 * An ExampleEvent happens whenever an example happens.
8 *
9 * <table border='1' cellPadding='3' cellSpacing='0' width="100%">
10 * <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
11 * Distribution Licence:<br />
12 * Project B is free software; you can redistribute it
13 * and/or modify it under the terms of the GNU General Public License,
14 * version 2 as published by the Free Software Foundation.<br />
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.<br />
19 * The License is available on the internet
20 * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
21 * <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
23 * The copyright to this program is held by it's authors.
24 * </font></td></tr></table>
25 * @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
26 * @see <{docs.Licence}>
27 * @see Bible
28 * @see ProgressListener
29 * @author Joe Walker
30 * @version D7.I6.T2
31 */
32 public class ExampleEvent extends EventObject
33 {
34 /**
35 * Initialize a ExampleEvent
36 * @param source The thing that started this off
37 * @param param The parameter to this event
38 */
39 public ExampleEvent(Object source, String param)
40 {
41 super(source);
42
43 this.param = param;
44 }
45
46 /**
47 * Initialize an ExampleEvent
48 * @param source The thing that started this off
49 */
50 public ExampleEvent(Object source)
51 {
52 super(source);
53
54 param = "";
55 }
56
57 /**
58 * Get the parameter
59 * @return The parameter
60 */
61 public String getParam()
62 {
63 return param;
64 }
65
66 /**
67 * The parameter
68 */
69 private String param;
70 }