|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.mail.event Class ConnectionEvent
java.lang.Object java.util.EventObject javax.mail.event.MailEvent javax.mail.event.ConnectionEvent
- All Implemented Interfaces:
- Serializable
public class ConnectionEvent
- extends MailEvent
Extends:
java.util.EventObject > MailEvent
此类模拟 Connection 事件。
This class models Connection events.
- Author:
- John Mani
- See Also:
- Serialized Form
Field Summary | |
---|---|
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. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ConnectionEvent(Object source,
int type)
Constructor |
Method Summary | |
---|---|
void |
dispatch(Object listener)
Invokes the appropriate ConnectionListener method |
int |
getType()
Return the type of this event |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
英文文档:
OPENED
public static final int OPENED
- A connection was opened.
- See Also:
- Constant Field Values
英文文档:
DISCONNECTED
public static final int DISCONNECTED
- A connection was disconnected (not currently used).
- See Also:
- Constant Field Values
英文文档:
CLOSED
public static final int CLOSED
- A connection was closed.
- See Also:
- Constant Field Values
英文文档:
type
protected int type
- The event type.
Constructor Detail |
---|
public
ConnectionEvent(Object source, int type)
Constructor
source | 源对象 |
ConnectionEvent
public ConnectionEvent(Object source, int type)
- Constructor
- Parameters:
source
- The source object
Method Detail |
---|
public int
getType()
返回此事件的类型
return | 类型 |
getType
public int getType()
- Return the type of this event
- Returns:
- type
public void
dispatch(Object listener)
调用相应的 ConnectionListener 方法
英文文档:
dispatch
public void dispatch(Object listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!