com.metamatrix.console.ui.views.deploy.util
Class DeployTableSorter

java.lang.Object
  extended by com.metamatrix.toolbox.ui.widget.table.DefaultTableComparator
      extended by com.metamatrix.console.ui.views.deploy.util.DeployTableSorter
All Implemented Interfaces:
TableComparator

public final class DeployTableSorter
extends DefaultTableComparator

A table sorter that works with the domain objects of the deployments subsystem. These domain objects implement the Comparable interface but that doesn't sort by the toString() method.

Version:
1.0
Author:
Dan Florian

Constructor Summary
DeployTableSorter()
           
 
Method Summary
 int compare(java.lang.Object theFirstValue, java.lang.Object theSecondValue, int theColumn)
          compare the first and second values
 
Methods inherited from class com.metamatrix.toolbox.ui.widget.table.DefaultTableComparator
compare, getInstance, ignoresCase, setIgnoresCase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployTableSorter

public DeployTableSorter()
Method Detail

compare

public int compare(java.lang.Object theFirstValue,
                   java.lang.Object theSecondValue,
                   int theColumn)
Description copied from interface: TableComparator
compare the first and second values

Specified by:
compare in interface TableComparator
Overrides:
compare in class DefaultTableComparator
theColumn - the index of the table column being compared
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.


Copyright © 2009. All Rights Reserved.