org.pdfsam.guiclient.commons.models
Class SortablePdfSelectionTableModel.PdfSelectionTableItemComparator

java.lang.Object
  extended by org.pdfsam.guiclient.commons.models.SortablePdfSelectionTableModel.PdfSelectionTableItemComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<PdfSelectionTableItem>
Enclosing class:
SortablePdfSelectionTableModel

public class SortablePdfSelectionTableModel.PdfSelectionTableItemComparator
extends java.lang.Object
implements java.util.Comparator<PdfSelectionTableItem>, java.io.Serializable

comparator for the PdfSelectionTableItem

Author:
Andrea Vacondio
See Also:
Serialized Form

Constructor Summary
SortablePdfSelectionTableModel.PdfSelectionTableItemComparator()
           
 
Method Summary
 int compare(PdfSelectionTableItem o1, PdfSelectionTableItem o2)
           
 AbstractPdfSelectionTableModel.SortingState getSortingState()
           
 void setSortingState(AbstractPdfSelectionTableModel.SortingState sortingState)
           
 
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

SortablePdfSelectionTableModel.PdfSelectionTableItemComparator

public SortablePdfSelectionTableModel.PdfSelectionTableItemComparator()
Method Detail

compare

public int compare(PdfSelectionTableItem o1,
                   PdfSelectionTableItem o2)
Specified by:
compare in interface java.util.Comparator<PdfSelectionTableItem>

getSortingState

public AbstractPdfSelectionTableModel.SortingState getSortingState()
Returns:
the sortingState

setSortingState

public void setSortingState(AbstractPdfSelectionTableModel.SortingState sortingState)
Parameters:
sortingState - the sortingState to set