Class TopbarManager.TopbarApplicationItemComparator
- java.lang.Object
-
- com.jalios.jcms.uicomponent.topbar.TopbarManager.TopbarApplicationItemComparator
-
- All Implemented Interfaces:
java.util.Comparator<TopbarApplicationItem>
- Enclosing class:
- TopbarManager
public class TopbarManager.TopbarApplicationItemComparator extends java.lang.Object implements java.util.Comparator<TopbarApplicationItem>
Compares TopbarApplicationItem based following order : - Firstly, items from user preferences - Secondly, items from ShortCut ordered by label - Thirdly, items from properties ordered randomly since they have no label- Since:
- jcms-10.0.0
-
-
Constructor Summary
Constructors Constructor Description TopbarApplicationItemComparator(java.util.List<TopbarApplicationItem> userAppList, java.lang.String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TopbarApplicationItem o1, TopbarApplicationItem o2)
-
-
-
Constructor Detail
-
TopbarApplicationItemComparator
public TopbarApplicationItemComparator(java.util.List<TopbarApplicationItem> userAppList, java.lang.String lang)
-
-
Method Detail
-
compare
public int compare(TopbarApplicationItem o1, TopbarApplicationItem o2)
- Specified by:
compare
in interfacejava.util.Comparator<TopbarApplicationItem>
-
-