| java.lang.Object org.columba.mail.gui.tree.comparator.FolderComparator
All known Subclasses: org.columba.mail.gui.tree.comparator.UnreadFolderComparator,
FolderComparator | public class FolderComparator implements Comparator(Code) | | A comparator that can be used to sort Folders. Other folder comparators
should extend this class and only implement the sorting in the
compareFolders() method. This comparator will always put the
Inbox folders at the top of the tree.
The folders are by default sorted by their name. Note that the Inbox folder
will always be put at the top.
author: redsolo |
FolderComparator | public FolderComparator(boolean ascending)(Code) | | Parameters: ascending - if the sorting is ascending or not. |
compareFolders | protected int compareFolders(IMailbox folder1, IMailbox folder2)(Code) | | Compares the folders. Returns a negative integer, zero, or a positive
integer as the first argument is less than, equal to, or greater than the
second.
Parameters: folder1 - the first folder to be compared. Parameters: folder2 - the second folder to be compared. a negative integer, zero, or a positive integer as the firstargument is less than, equal to, or greater than the second. |
isAscending | public boolean isAscending()(Code) | | Returns if the comparator should sort ascending or not. |
setAscending | public void setAscending(boolean ascending)(Code) | | Parameters: ascending - if the comparator should sorted ascending or not. |
|
|