com.cmpware.ide.views
Class EasySorter

java.lang.Object
  extended by org.eclipse.jface.viewers.ViewerComparator
      extended by org.eclipse.jface.viewers.ViewerSorter
          extended by com.cmpware.ide.views.EasySorter

public class EasySorter
extends org.eclipse.jface.viewers.ViewerSorter

This class implements a generic sorter for the Easy table. All entries must be Strings or Integers.

Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
 
Constructor Summary
EasySorter(int column)
          The Constructor.
EasySorter(int column, boolean reverse)
          The Constructor.
 
Method Summary
 int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object o1, java.lang.Object o2)
           
 int getColumn()
          This method returns the table column for this sorter.
 boolean getReverse()
          This method returns the sorting direction.
 
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
getCollator, getComparator
 
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
category, isSorterProperty, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

EasySorter

public EasySorter(int column)
The Constructor.

Parameters:
column - The sort column

EasySorter

public EasySorter(int column,
                  boolean reverse)
The Constructor.

Parameters:
column - The sort column
Method Detail

compare

public int compare(org.eclipse.jface.viewers.Viewer viewer,
                   java.lang.Object o1,
                   java.lang.Object o2)
Overrides:
compare in class org.eclipse.jface.viewers.ViewerComparator

getColumn

public int getColumn()
This method returns the table column for this sorter.

Returns:
This method returns the table column for this sorter.

getReverse

public boolean getReverse()
This method returns the sorting direction.

Returns:
This method returns the sorting direction.