Package org.opencms.workplace.list
Class CmsListItemActionIconComparator
java.lang.Object
org.opencms.workplace.list.CmsListItemActionIconComparator
- All Implemented Interfaces:
I_CmsListItemComparator
Comparator for column sorting by first direct action icon names.
If the list items column definition has at least one direct action,
the icon of the first visible action is used for sorting
(using the
method);
if not, the I_CmsListDirectAction.setItem(CmsListItem)
interface is used.Comparable
- Since:
- 6.0.0
- See Also:
-
Constructor Summary
-
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
-
CmsListItemActionIconComparator
public CmsListItemActionIconComparator()Default Constructor.
-
-
Method Details
-
getComparator
Description copied from interface:I_CmsListItemComparator
Returns a new comparator for comparing list items by the given column, and using the given locale.- Specified by:
getComparator
in interfaceI_CmsListItemComparator
- Parameters:
columnId
- the id of the column to sort bylocale
- the current used locale- Returns:
- a new comparator
- See Also:
-