org.extremecomponents.tree.model
Class SortHandler

java.lang.Object
  extended byorg.extremecomponents.table.model.SortHandler
      extended byorg.extremecomponents.tree.model.SortHandler

public class SortHandler
extends SortHandler

Deal with the sorting.

Author:
Jeff Johnston

Field Summary
 
Fields inherited from class org.extremecomponents.table.model.SortHandler
SORT_ASC_, SORT_ASC_IMAGE, SORT_DEFAULT_, SORT_DESC_, SORT_DESC_IMAGE
 
Constructor Summary
SortHandler(TableModel model)
           
 
Method Summary
 void recursiveSort(java.util.List output, java.util.List rows, java.lang.String sortOrder)
           
 void sort(java.util.List rows)
          Take the sortable property and then sort the Collection.
 void subSort(java.util.List rows, java.lang.String sortOrder)
           
 
Methods inherited from class org.extremecomponents.table.model.SortHandler
canSort, getSortableProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortHandler

public SortHandler(TableModel model)
Method Detail

sort

public void sort(java.util.List rows)
Take the sortable property and then sort the Collection. Always sort by parentAttribute first.

Overrides:
sort in class SortHandler

recursiveSort

public void recursiveSort(java.util.List output,
                          java.util.List rows,
                          java.lang.String sortOrder)

subSort

public void subSort(java.util.List rows,
                    java.lang.String sortOrder)


Copyright © 2004 sourceforge. All Rights Reserved.