public class MailServerModel
extends java.lang.Object
implements java.util.Observer
The essence of a Presentation Model is of a fully self-contained class that represents all the data and behavior of the UI window, but without any of the controls used to render that UI on the screen.
| Constructor and Description |
|---|
MailServerModel()
Instantiates a new mail server model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllMails()
Delete all mails.
|
java.util.List<EmailModel> |
getEmailModels()
Gets the email models.
|
java.util.List<EmailModel> |
getRejectedMails()
Gets the rejected mails.
|
void |
rejectedMail(EmailModel mail)
Rejects a mail.
|
void |
saveMail(EmailModel email)
Save the mail.
|
java.lang.String |
toString() |
void |
update(java.util.Observable o,
java.lang.Object arg) |
public void deleteAllMails()
public java.util.List<EmailModel> getEmailModels()
public java.util.List<EmailModel> getRejectedMails()
public void rejectedMail(EmailModel mail)
mail - the mailpublic void saveMail(EmailModel email)
email - the emailpublic java.lang.String toString()
toString in class java.lang.Objectpublic void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observer