Package org.opencms.ui.components
Class CmsFileTable.FileSorter
- java.lang.Object
-
- com.vaadin.v7.data.util.DefaultItemSorter
-
- org.opencms.ui.components.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
-
-
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
FileSorter
public FileSorter()
-
-
Method Detail
-
getSortableContainerPropertyIds
public java.util.Collection<?> getSortableContainerPropertyIds(com.vaadin.v7.data.Container container)
Description copied from interface:I_CmsItemSorter
Returns the sortable container property ids.- Specified by:
getSortableContainerPropertyIds
in interfaceI_CmsItemSorter
- Parameters:
container
- the container to be sorted- Returns:
- the sortable container property ids
- See Also:
I_CmsItemSorter.getSortableContainerPropertyIds(com.vaadin.v7.data.Container)
-
compareProperty
protected int compareProperty(java.lang.Object propertyId, boolean sortDirection, com.vaadin.v7.data.Item item1, com.vaadin.v7.data.Item item2)
- Overrides:
compareProperty
in classcom.vaadin.v7.data.util.DefaultItemSorter
- See Also:
DefaultItemSorter.compareProperty(java.lang.Object, boolean, com.vaadin.v7.data.Item, com.vaadin.v7.data.Item)
-
-