org.formaria.swing.table
Class TableNumberSorter

java.lang.Object
  extended by javax.swing.table.TableStringConverter
      extended by org.formaria.swing.table.TableNumberSorter
All Implemented Interfaces:
java.util.Comparator

public class TableNumberSorter
extends javax.swing.table.TableStringConverter
implements java.util.Comparator

A sorter for columns of number values

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial


Constructor Summary
TableNumberSorter()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 java.lang.String toString(javax.swing.table.TableModel model, int row, int column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

TableNumberSorter

public TableNumberSorter()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

toString

public java.lang.String toString(javax.swing.table.TableModel model,
                                 int row,
                                 int column)
Specified by:
toString in class javax.swing.table.TableStringConverter