Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.integralsource.monsoon
Class ItemSorter  view ItemSorter download ItemSorter.java

java.lang.Object
  extended byorg.integralsource.monsoon.ItemSorter

public class ItemSorter
extends java.lang.Object


Field Summary
private static Ascending _ascend
           
private static int _column
           
private static java.util.Comparator _compare
           
private static Descending _descend
           
private static boolean _type
           
 
Constructor Summary
ItemSorter()
           
 
Method Summary
static int getColumn()
          Returns the column which was last sorted
static boolean getSort()
          Returns the type of sort that was last used.
static void setColumn(int col)
          Sets the column to be sorted
static java.util.ArrayList sort(java.util.ArrayList items, boolean ascending)
          Sorts items based on the ascending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ascend

private static Ascending _ascend

_descend

private static Descending _descend

_compare

private static java.util.Comparator _compare

_type

private static boolean _type

_column

private static int _column
Constructor Detail

ItemSorter

public ItemSorter()
Method Detail

sort

public static java.util.ArrayList sort(java.util.ArrayList items,
                                       boolean ascending)
Sorts items based on the ascending. The sorted java.util.ArrayList is returned.


getSort

public static boolean getSort()
Returns the type of sort that was last used.


getColumn

public static int getColumn()
Returns the column which was last sorted


setColumn

public static void setColumn(int col)
Sets the column to be sorted