|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface defining the contract for interaction with the JwmaMessageInfo model.
The JwmaMessageInfo allows a view programmer to obtain enough information about a message to show it in a list of messages. It could be considered as a lightweight proxy interface, concentrated on providing information for lists of messages.
JwmaFolder
Method Summary | |
java.util.Date |
getDate()
Convenience method that returns a Date representing the received or sent date of the message. |
java.lang.String |
getFrom()
Returns a String representing the sender(s) of the message. |
int |
getMessageNumber()
Returns an int representing the number of this message. |
java.util.Date |
getReceivedDate()
Returns a Date representing the date when the message was received. |
java.util.Date |
getSentDate()
Returns a Date representing the date when the message was sent. |
int |
getSize()
Returns the size of the message in bytes. |
java.lang.String |
getSubject()
Returns a String representing the subject of the message. |
java.lang.String |
getTo()
Returns a String representing the receivers(s) of the message. |
java.lang.String |
getWho()
Convenience method that returns a String representing the sender's or receiver's address of the message. |
boolean |
isAnswered()
Tests if the message was answered. |
boolean |
isDeleted()
Tests if the message was marked for deletion. |
boolean |
isDraft()
Tests if the message is a draft. |
boolean |
isMultipart()
Tests if the message is multipart. |
boolean |
isNew()
Tests if the message is new. |
boolean |
isRead()
Tests if the message was already read. |
boolean |
isReceived()
Tests if the message was received. |
boolean |
isSent()
Tests if the message was sent. |
boolean |
isSinglepart()
Tests if the message is singlepart. |
Method Detail |
public int getMessageNumber()
This number is the unique identifier for a message within a folder, and should be used on subsequent display, move or delete actions.
public boolean isRead()
public boolean isAnswered()
public boolean isDeleted()
public boolean isNew()
public boolean isDraft()
public boolean isReceived()
public boolean isSent()
Note that this method will always return the opposite of isReceived() (i.e. represents !getReceived()).
public java.lang.String getWho()
public java.lang.String getFrom()
public java.lang.String getTo()
public java.util.Date getDate()
public java.util.Date getReceivedDate()
public java.util.Date getSentDate()
public java.lang.String getSubject()
public boolean isSinglepart()
A singlepart message does not have any attachments.
public boolean isMultipart()
A multipart message has attachments or is composed out of different parts. Note that this method will always return the opposite of isSinglepart() (i.e. represents !isSinglepart()).
public int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |