Package org.opencms.workplace.list
Class CmsListItemActionIconComparator
- java.lang.Object
-
- org.opencms.workplace.list.CmsListItemActionIconComparator
-
- All Implemented Interfaces:
I_CmsListItemComparator
public class CmsListItemActionIconComparator extends java.lang.Object implements 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, theI_CmsListDirectAction.setItem(CmsListItem)
interface is used.Comparable
- Since:
- 6.0.0
- See Also:
CmsListColumnDefinition
-
-
Constructor Summary
Constructors Constructor Description CmsListItemActionIconComparator()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
CmsListItemActionIconComparator
public CmsListItemActionIconComparator()
Default Constructor.
-
-
Method Detail
-
getComparator
public java.util.Comparator<CmsListItem> getComparator(java.lang.String columnId, java.util.Locale locale)
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:
I_CmsListItemComparator.getComparator(java.lang.String, java.util.Locale)
-
-