KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > content > comparators > PageComparator


1 /*
2  * Copyright (c) 2005 Your Corporation. All Rights Reserved.
3  */

4 package org.jahia.content.comparators;
5
6 import org.jahia.params.ParamBean;
7
8 /**
9  * <p>Title: Container comparator </p>
10  * <p>Description: This sub-class of the ordered comparator hard-codes it's
11  * sub-comparators in an order that is logic for containers.</p>
12  * <p>Copyright: Copyright (c) 2002</p>
13  * <p>Company: Jahia Ltd</p>
14  * @author Serge Huber
15  * @version 1.0
16  * @todo Can we remove the hard-coded configuration here and put it maybe in
17  * a configuration file ?
18  */

19
20 public class PageComparator extends OrderedCompositeComparator {
21     public PageComparator(ParamBean paramBean) {
22         super();
23         super.addComparator(new PageByTitleComparator(paramBean));
24     }
25
26 }
Popular Tags