org.opencms.workplace.list
Class CmsListItemActionIconComparator

java.lang.Object
  extended by 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 I_CmsListDirectAction.setItem(CmsListItem) method); if not, the Comparable interface is used.

Since:
6.0.0
Version:
$Revision: 1.14 $
Author:
Michael Moossen
See Also:
CmsListColumnDefinition

Constructor Summary
CmsListItemActionIconComparator()
          Default Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsListItemActionIconComparator

public CmsListItemActionIconComparator()
Default Constructor.

Method Detail

getComparator

public java.util.Comparator 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 interface I_CmsListItemComparator
Parameters:
columnId - the id of the column to sort by
locale - the current used locale
Returns:
a new comparator
See Also:
I_CmsListItemComparator.getComparator(java.lang.String, java.util.Locale)