The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Class grendel.view.Sorter
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
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998.