Class CmsFileTable.FileSorter

  • All Implemented Interfaces:
    com.vaadin.v7.data.util.ItemSorter, java.io.Serializable, java.lang.Cloneable, java.util.Comparator<java.lang.Object>, I_CmsItemSorter
    Enclosing class:
    CmsFileTable

    public static class CmsFileTable.FileSorter
    extends com.vaadin.v7.data.util.DefaultItemSorter
    implements I_CmsItemSorter
    Extends the default sorting to differentiate between files and folder when sorting by name.

    Also allows sorting by navPos property for the Resource icon column.

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.v7.data.util.DefaultItemSorter

        com.vaadin.v7.data.util.DefaultItemSorter.DefaultPropertyValueComparator
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSorter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int compareProperty​(java.lang.Object propertyId, boolean sortDirection, com.vaadin.v7.data.Item item1, com.vaadin.v7.data.Item item2)  
      java.util.Collection<?> getSortableContainerPropertyIds​(com.vaadin.v7.data.Container container)
      Returns the sortable container property ids.
      • Methods inherited from class com.vaadin.v7.data.util.DefaultItemSorter

        compare, setSortProperties
      • 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
      • Methods inherited from interface com.vaadin.v7.data.util.ItemSorter

        compare, setSortProperties