|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hagenah.diplomacy.diptool.EmailAccount
public class EmailAccount
An email account. Note: This class is not thread-safe. So even if some methods may be called by other threads than the event dispatching thread it's still so that in this case the event-dispatching thread must not modify this object in parallel.
| Method Summary | |
|---|---|
boolean |
canGetMessages()
Is a POP3 or IMAP server configured? |
boolean |
canSendMessage()
Is a SMTP server configured? |
int |
compareTo(java.lang.Object obj)
Compares two accounts by Name |
boolean |
equals(java.lang.Object obj)
Compares two accounts by Name |
java.util.Collection |
getMessages(javax.swing.JFrame owner,
de.hagenah.util.ModalProgressMonitor progressmonitor)
Get all new messages. |
int |
hashCode()
Returns a hashcode for this account. |
boolean |
isSMTPPasswordUnknown()
Is a password for the SMTP server necessary and is this password unknown? |
void |
sendMessage(java.awt.Window owner,
java.lang.String to,
java.lang.String subject,
java.lang.String body,
java.lang.String password,
boolean savepassword)
Sends an e-mail message using the SMTP server of this account. |
java.lang.String |
toString()
Returns the name of the account, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean canGetMessages()
public java.util.Collection getMessages(javax.swing.JFrame owner,
de.hagenah.util.ModalProgressMonitor progressmonitor)
owner - Owner frame for dialogs if no progressmonitor is nullprogressmonitor - A progress monitor (can be null)
public boolean canSendMessage()
public boolean isSMTPPasswordUnknown()
public void sendMessage(java.awt.Window owner,
java.lang.String to,
java.lang.String subject,
java.lang.String body,
java.lang.String password,
boolean savepassword)
throws javax.mail.MessagingException
owner - A owner window for dialogsto - The recipient of the the messagesubject - The subject of the messagebody - The body of the messagepassword - A password to use if the password is unknown (can be null)savepassword - true if the password shall be saved in the properties
javax.mail.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||