|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.ConnectionEvent
public class ConnectionEvent
This class models Connection events.
| 字段摘要 | |
|---|---|
static int |
CLOSED
A connection was closed. |
static int |
DISCONNECTED
A connection was disconnected (not currently used). |
static int |
OPENED
A connection was opened. |
protected int |
type
The event type. |
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
ConnectionEvent(Object source,
int type)
Constructor |
|
| 方法摘要 | |
|---|---|
void |
dispatch(Object listener)
Invokes the appropriate ConnectionListener method |
int |
getType()
Return the type of this event |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int OPENED
public static final int DISCONNECTED
public static final int CLOSED
protected int type
| 构造方法详细信息 |
|---|
public ConnectionEvent(Object source,
int type)
source - The source object| 方法详细信息 |
|---|
public int getType()
public void dispatch(Object listener)
MailEvent 中的 dispatch
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||