You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.view.Sorter

java.lang.Object
   |
   +----grendel.view.Sorter

This sorts a set of messages by some metric. The set of messages may already be arranged into a thread hierarchy; in that case, siblings are sorted while leaving parent/child relationships intact. The sets of messages are accessed via the ISortable interface.

See Also: ISortable, Threader, Comparer, QSort


class  Sorter
     extends java.lang.Object
{
          // Fields 2
     private QSort sorter;
     private Vector v;

          // Constructors 1
     public Sorter(Comparer);

          // Methods 2
     public void sortMessageChildren(ISortable);
     private void sortMessageChildren_1(ISortable);
}



Fields


v

   private Vector v


sorter

   private QSort sorter



Constructors


Sorter

   public Sorter(Comparer comparer) 

Creates an object for sorting messages. Use the sortMessageChildren() method to sort them.

Parameter Description
comparer The object which compares two ISortable objects for ordering.




Methods


sortMessageChildren

   public void sortMessageChildren(ISortable sortable_root) 

Sorts the set of messages indicated by sortable_root. The child-list of sortable_root will be modified (reordered) upon completion (as will all grandchildren.)

Parameter Description
sortable_root The root object; it should have children, but no siblings.



sortMessageChildren_1

   private void sortMessageChildren_1(ISortable parent) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4