JDIC API V2006 Release 0308

org.jdesktop.jdic.desktop
类 Message

java.lang.Object
  继承者 org.jdesktop.jdic.desktop.Message

public class Message
extends java.lang.Object

This class represents a message structure.

It consists of several necessary message fields.

另请参见:
Desktop.mail(Message)

构造函数摘要
Message()
          Constructor of a Message object.
 
方法摘要
 java.util.Iterator getAttachments()
          Gets an iterator of the message "Attachment" file list.
 java.util.Iterator getBccAddrs()
          Gets an iterator of the message "Bcc" address list.
 java.lang.String getBody()
          Gets the "Body" field of the message.
 java.util.Iterator getCcAddrs()
          Gets an iterator of the message "Cc" address list.
 java.lang.String getSubject()
          Gets the "Subject" field of the message.
 java.util.Iterator getToAddrs()
          Gets an iterator of the message "To" address list.
 void setAttachments(java.util.List attachList)
          Sets the message "Attachments" field.
 void setBccAddrs(java.util.List abccList)
          Sets the message "Bcc" address list.
 void setBody(java.lang.String abody)
          Sets the message "Body" field.
 void setCcAddrs(java.util.List accList)
          Sets the message "Cc" address list.
 void setSubject(java.lang.String asubject)
          Sets the message "Subject" field.
 void setToAddrs(java.util.List atoList)
          Sets the message "To" address list.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造函数详细信息

Message

public Message()
Constructor of a Message object.

方法详细信息

getToAddrs

public java.util.Iterator getToAddrs()
Gets an iterator of the message "To" address list.

返回:
an Iterator object of the message "To" address list.

setToAddrs

public void setToAddrs(java.util.List atoList)
Sets the message "To" address list.

参数:
atoList - an email address list for the "To" field.

getCcAddrs

public java.util.Iterator getCcAddrs()
Gets an iterator of the message "Cc" address list.

返回:
an Iterator object of the message "Cc" address list.

setCcAddrs

public void setCcAddrs(java.util.List accList)
Sets the message "Cc" address list.

参数:
accList - an email address list for the "Cc" field.

getBccAddrs

public java.util.Iterator getBccAddrs()
Gets an iterator of the message "Bcc" address list.

返回:
an Iterator object of the message "Bcc" address list.

setBccAddrs

public void setBccAddrs(java.util.List abccList)
Sets the message "Bcc" address list.

参数:
abccList - an email address list for the "Bcc" field.

getSubject

public java.lang.String getSubject()
Gets the "Subject" field of the message.

返回:
the value of the "Subject" field.

setSubject

public void setSubject(java.lang.String asubject)
Sets the message "Subject" field.

参数:
asubject - a string for the "Subject" field.

getBody

public java.lang.String getBody()
Gets the "Body" field of the message.

返回:
the value of the "Body" field.

setBody

public void setBody(java.lang.String abody)
Sets the message "Body" field.

参数:
abody - a string for the "Body" field.

getAttachments

public java.util.Iterator getAttachments()
Gets an iterator of the message "Attachment" file list.

返回:
an Iterator object of the message "Attachment" file list.

setAttachments

public void setAttachments(java.util.List attachList)
                    throws java.io.IOException
Sets the message "Attachments" field.

参数:
attachList - the given attachment list, whose elements are the abosolute paths of files to be attached.
抛出:
java.io.IOException - if any of the attached files is not readable.

JDIC API V2006 Release 0308

For more information and documentation on JDIC, see JDIC website.

That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information.

Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.