Class TableRowComparator<Bean,​VTM extends ViewToModel<Bean>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Comparator<VTM> columnComparator​(javax.swing.RowSorter.SortKey sortKey)  
      int compare​(VTM row1, VTM row2)  
      java.util.List<javax.swing.RowSorter.SortKey> getSortKeys()  
      boolean isEmpty()  
      boolean isSorted​(int column)  
      void reset()  
      void setSortKeys​(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)  
      void toggleSortOrder​(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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Method Detail

      • compare

        public int compare​(VTM row1,
                           VTM row2)
        Specified by:
        compare in interface java.util.Comparator<Bean>
      • getSortKeys

        public java.util.List<javax.swing.RowSorter.SortKey> getSortKeys()
      • setSortKeys

        public void setSortKeys​(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
      • toggleSortOrder

        public void toggleSortOrder​(int column)
      • isEmpty

        public boolean isEmpty()
      • isSorted

        public boolean isSorted​(int column)
      • reset

        public void reset()
      • columnComparator

        protected java.util.Comparator<VTM> columnComparator​(javax.swing.RowSorter.SortKey sortKey)