Package org.opencms.workplace.list
Class CmsListItemDefaultComparator
java.lang.Object
org.opencms.workplace.list.CmsListItemDefaultComparator
- All Implemented Interfaces:
I_CmsListItemComparator
Default comparator for case sensitive column sorting with string localization.
If both list items column values are Strings then a localized collector is used for sorting;
if not, the interface is used.Comparable
- Since:
- 6.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparator(String columnId, Locale locale) Returns a new comparator for comparing list items by the given column, and using the given locale.
-
Constructor Details
-
CmsListItemDefaultComparator
public CmsListItemDefaultComparator()Default Constructor.
-
-
Method Details
-
getComparator
Description copied from interface:I_CmsListItemComparatorReturns a new comparator for comparing list items by the given column, and using the given locale.- Specified by:
getComparatorin interfaceI_CmsListItemComparator- Parameters:
columnId- the id of the column to sort bylocale- the current used locale- Returns:
- a new comparator
- See Also:
-