The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Search
Feedback


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 The Mozilla Organization.