public static class CmsFileTable.FileSorter extends com.vaadin.v7.data.util.DefaultItemSorter implements I_CmsItemSorter
Also allows sorting by navPos property for the Resource icon column.
| Constructor and Description |
|---|
FileSorter() |
| Modifier and Type | Method and 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.
|
public FileSorter()
public java.util.Collection<?> getSortableContainerPropertyIds(com.vaadin.v7.data.Container container)
I_CmsItemSortergetSortableContainerPropertyIds in interface I_CmsItemSortercontainer - the container to be sortedI_CmsItemSorter.getSortableContainerPropertyIds(com.vaadin.v7.data.Container)protected int compareProperty(java.lang.Object propertyId, boolean sortDirection, com.vaadin.v7.data.Item item1, com.vaadin.v7.data.Item item2)
compareProperty in class com.vaadin.v7.data.util.DefaultItemSorterDefaultItemSorter.compareProperty(java.lang.Object, boolean, com.vaadin.v7.data.Item, com.vaadin.v7.data.Item)