com.jalios.jcms.portlet
Class PortletSkinable.ContentTitleComparator<T extends Publication>

java.lang.Object
  extended by com.jalios.jstore.BasicStorable.CdateComparator<T>
      extended by com.jalios.jcms.comparator.BasicComparator<T>
          extended by com.jalios.jcms.Publication.TitleComparator<T>
              extended by com.jalios.jcms.portlet.PortletSkinable.ContentTitleComparator<T>
Type Parameters:
T - the type of publication being compared
All Implemented Interfaces:
Comparator<T>
Enclosing class:
PortletSkinable

public static class PortletSkinable.ContentTitleComparator<T extends Publication>
extends Publication.TitleComparator<T>

Sort the Publication according to their title, but using the display title for Portlet if available.


Field Summary
 
Fields inherited from class com.jalios.jcms.Publication.TitleComparator
lang
 
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, contextMap, jcmsContext, language, locale
 
Constructor Summary
PortletSkinable.ContentTitleComparator()
           
PortletSkinable.ContentTitleComparator(String lang)
           
 
Method Summary
 int compare(T p1, T p2)
           
 
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

PortletSkinable.ContentTitleComparator

public PortletSkinable.ContentTitleComparator()

PortletSkinable.ContentTitleComparator

public PortletSkinable.ContentTitleComparator(String lang)
Method Detail

compare

public int compare(T p1,
                   T p2)
Specified by:
compare in interface Comparator<T extends Publication>
Overrides:
compare in class Publication.TitleComparator<T extends Publication>


Copyright © 2001-2010 Jalios SA. All Rights Reserved.