de.qfs.apps.qflog.logview
Class LogSorter

java.lang.Object
  |
  +--de.qfs.lib.gui.DefaultTableModelSorter
        |
        +--de.qfs.apps.qflog.logview.LogSorter

public class LogSorter
extends de.qfs.lib.gui.DefaultTableModelSorter

TableModelSorter for the LogTableView.


Fields inherited from class de.qfs.lib.gui.DefaultTableModelSorter
ascending, autoAscending, column, configurableName, listeners
 
Constructor Summary
LogSorter(java.lang.String name)
          Create a new LogSorter.
 
Method Summary
 int compare(javax.swing.table.TableModel model, int ia, int ib)
          Compare two rows of the model.
 
Methods inherited from class de.qfs.lib.gui.DefaultTableModelSorter
addTableModelSorterListener, fireSortOrderChanged, getConfigurableName, getConfigurableState, getSortColumn, isAutoAscending, isSortAscending, registrationChanged, removeTableModelSorterListener, setAutoAscending, setConfigurableName, setConfigurableState, setSortAscending, setSortColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSorter

public LogSorter(java.lang.String name)
Create a new LogSorter.
Parameters:
name - The configurable name of the sorter.
model - The model to sort.
Method Detail

compare

public int compare(javax.swing.table.TableModel model,
                   int ia,
                   int ib)
Compare two rows of the model.
Overrides:
compare in class de.qfs.lib.gui.DefaultTableModelSorter
Parameters:
ia - The first row.
ib - The second row.
Returns:
-1, 0 or 1 if the first row is less than, equal to or greater than the second row.