Method Summary |
|
public static JwmaMessageInfoListImpl | createJwmaMessageInfoListImpl(Message[] messages) Factory method that creates a new JwmaMessageInfoListImpl instance
from the given array of messages.
Parameters: messages - array of javax.mail.Message instances. |
public static JwmaMessageInfoListImpl | createJwmaMessageInfoListImpl(Folder f) Factory method that creates a new JwmaMessageInfoListImpl instance
wrapping the list of messages in the given folder.
Parameters: f - the javax.mail.Folder instance, the new list instance shouldbe created for. |
public int | getLastSortCriteria() Returns the last used sort criteria as int. |
public int | getListIndex(int msgnum) Returns the list index of message given by it's
message number. |
public int | getNextMessageNumber(int msgnum) Returns the message number of the next message in the list,
observing the sorting.
The method returns -1 if the message does not exist in the list,
or when there is no next message.
Parameters: msgnum - the message number of the message to start from. |
public int | getPreviousMessageNumber(int msgnum) Returns the message number of the previous message in the list,
observing the sorting.
The method returns -1 if the message does not exist in the list,
or when there is no previous message.
Parameters: msgnum - the message number of the message to start from. |
public Iterator | iterator() Returns an Iterator over the JwmaMessageInfoImpl instances
contained within this list. |
public JwmaMessageInfoImpl[] | listMessageInfos() Returns an array of JwmaMessageInfo[] listing
the info's stored in this list. |
public void | remove(int[] msgsnums) Removes the items with the given numbers from this list. |
public void | removeDeleted() Removes items that are flagged deleted from this list. |
public void | renumber() Renumbers the items in this list. |
public int | size() Returns the size of this list. |
public void | sort(int criteria) Sorts this MessageInfoListImpl by the given criteria. |