Package com.jalios.jcms.portlet
Class PortletSkinable.ContentTitleComparator<T extends Publication>
- java.lang.Object
-
- com.jalios.jstore.BasicStorable.CdateComparator<T>
-
- com.jalios.jcms.comparator.BasicComparator<T>
-
- com.jalios.jcms.Publication.TitleComparator<T>
-
- com.jalios.jcms.portlet.PortletSkinable.ContentTitleComparator<T>
-
- Type Parameters:
T
- the type of publication being compared
- All Implemented Interfaces:
java.util.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.comparator.BasicComparator
BasicComparator.StringComparisonMethod
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.Publication.TitleComparator
lang
-
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, comparisonMethod, contextMap, jcmsContext, language, locale
-
-
Constructor Summary
Constructors Constructor Description ContentTitleComparator()
ContentTitleComparator(java.lang.String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T p1, T p2)
-
Methods inherited from class com.jalios.jcms.comparator.BasicComparator
compareString
-
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
-
-
-
-
Method Detail
-
compare
public int compare(T p1, T p2)
- Specified by:
compare
in interfacejava.util.Comparator<T extends Publication>
- Overrides:
compare
in classPublication.TitleComparator<T extends Publication>
-
-