01: package org.sakaiproject.metaobj.shared.control;
02:
03: import org.sakaiproject.site.api.Site;
04:
05: import java.util.List;
06:
07: /**
08: * Created by IntelliJ IDEA.
09: * User: johnellis
10: * Date: Mar 26, 2007
11: * Time: 9:57:57 AM
12: * To change this template use File | Settings | File Templates.
13: */
14: public class SiteHomeWrapper implements Comparable {
15:
16: private Site site;
17: private List homes;
18:
19: public SiteHomeWrapper(Site site, List homes) {
20: this .site = site;
21: this .homes = homes;
22: }
23:
24: public Site getSite() {
25: return site;
26: }
27:
28: public void setSite(Site site) {
29: this .site = site;
30: }
31:
32: public List getHomes() {
33: return homes;
34: }
35:
36: public void setHomes(List homes) {
37: this .homes = homes;
38: }
39:
40: public int compareTo(Object o) {
41: return site.getTitle().compareTo(
42: ((SiteHomeWrapper) o).getSite().getTitle());
43: }
44: }
|