org.extremecomponents.table.model
Class SortHandler

java.lang.Object
  extended byorg.extremecomponents.table.model.SortHandler
Direct Known Subclasses:
SortHandler

public class SortHandler
extends java.lang.Object

Deal with the sorting.

Author:
Jeff Johnston

Field Summary
static java.lang.String SORT_ASC_
           
static java.lang.String SORT_ASC_IMAGE
           
static java.lang.String SORT_DEFAULT_
           
static java.lang.String SORT_DESC_
           
static java.lang.String SORT_DESC_IMAGE
           
 
Constructor Summary
SortHandler(TableModel model)
           
 
Method Summary
 boolean canSort(java.lang.String property)
          Find out if the table is trying to sort.
 java.lang.String getSortableProperty()
          Find the column that is doing the sorting.
 void sort(java.util.List rows)
          Take the sortable property and then sort the Collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_ASC_

public static final java.lang.String SORT_ASC_
See Also:
Constant Field Values

SORT_DESC_

public static final java.lang.String SORT_DESC_
See Also:
Constant Field Values

SORT_DEFAULT_

public static final java.lang.String SORT_DEFAULT_
See Also:
Constant Field Values

SORT_ASC_IMAGE

public static final java.lang.String SORT_ASC_IMAGE
See Also:
Constant Field Values

SORT_DESC_IMAGE

public static final java.lang.String SORT_DESC_IMAGE
See Also:
Constant Field Values
Constructor Detail

SortHandler

public SortHandler(TableModel model)
Method Detail

canSort

public boolean canSort(java.lang.String property)
Find out if the table is trying to sort.


getSortableProperty

public java.lang.String getSortableProperty()
Find the column that is doing the sorting. Use the property to key off of.


sort

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



Copyright © 2004 sourceforge. All Rights Reserved.