1 |
/* |
/* |
2 |
* $Id$ |
* ConnectionEvent.java |
3 |
* Copyright (C) 2004 The Free Software Foundation |
* Copyright (C) 2004 The Free Software Foundation |
4 |
* |
* |
5 |
* This file is part of GNU inetlib, a library. |
* This file is part of GNU inetlib, a library. |
46 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
47 |
*/ |
*/ |
48 |
public class ConnectionEvent |
public class ConnectionEvent |
49 |
extends EventObject |
extends EventObject |
50 |
{ |
{ |
51 |
|
|
52 |
/** |
/** |
62 |
/** |
/** |
63 |
* Constructs a connection event with the specified source and type. |
* Constructs a connection event with the specified source and type. |
64 |
*/ |
*/ |
65 |
public ConnectionEvent (Object source, int type) |
public ConnectionEvent(Object source, int type) |
66 |
{ |
{ |
67 |
super (source); |
super(source); |
68 |
this.type = type; |
this.type = type; |
69 |
} |
} |
70 |
|
|
72 |
* Returns the type of this event. |
* Returns the type of this event. |
73 |
* @see #type |
* @see #type |
74 |
*/ |
*/ |
75 |
public int getType () |
public int getType() |
76 |
{ |
{ |
77 |
return type; |
return type; |
78 |
} |
} |
79 |
|
|
80 |
} |
} |
81 |
|
|