javax.mail.event
类 ConnectionEvent

java.lang.Object
  继承者 java.util.EventObject
      继承者 javax.mail.event.MailEvent
          继承者 javax.mail.event.ConnectionEvent
所有已实现的接口:
Serializable

public class ConnectionEvent
extends MailEvent

This class models Connection events.

作者:
John Mani
另请参见:
序列化表格

字段摘要
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
 

字段详细信息

OPENED

public static final int OPENED
A connection was opened.

另请参见:
常量字段值

DISCONNECTED

public static final int DISCONNECTED
A connection was disconnected (not currently used).

另请参见:
常量字段值

CLOSED

public static final int CLOSED
A connection was closed.

另请参见:
常量字段值

type

protected int type
The event type.

构造方法详细信息

ConnectionEvent

public ConnectionEvent(Object source,
                       int type)
Constructor

参数:
source - The source object
方法详细信息

getType

public int getType()
Return the type of this event

返回:
type

dispatch

public void dispatch(Object listener)
Invokes the appropriate ConnectionListener method

指定者:
MailEvent 中的 dispatch


Copyright © 2013. All Rights Reserved.