Package org.opencms.workplace.list
Interface I_CmsListItemComparator
-
- All Known Implementing Classes:
CmsListItemActionIconComparator
,CmsListItemCaseInsensitiveComparator
,CmsListItemDefaultComparator
,CmsListItemNumericalComparator
,CmsLogLevelListItemComparator
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Comparator<CmsListItem>
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
java.util.Comparator<CmsListItem> 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 bylocale
- the current used locale- Returns:
- a new comparator
-
-