org.opencms.workplace.list
Interface I_CmsListItemComparator

All Known Implementing Classes:
CmsListItemActionIconComparator, CmsListItemCaseInsensitiveComparator, CmsListItemDefaultComparator, CmsListItemNumericalComparator

public interface I_CmsListItemComparator

A list item comparator can be set at a column definition to set the sorting method for that column.

Since:
6.0.0
Version:
$Revision: 1.6 $
Author:
Michael Moossen

Method Summary
 java.util.Comparator getComparator(java.lang.String columnId, java.util.Locale locale)
          Returns a new comparator for comparing list items by the given column, and using the given locale.
 

Method Detail

getComparator

public java.util.Comparator getComparator(java.lang.String columnId,
                                          java.util.Locale locale)
Returns a new comparator for comparing list items by the given column, and using the given locale.

Parameters:
columnId - the id of the column to sort by
locale - the current used locale
Returns:
a new comparator