KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > search > MailSearchResult


1 // The contents of this file are subject to the Mozilla Public License Version
2
// 1.1
3
//(the "License"); you may not use this file except in compliance with the
4
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
5
//
6
//Software distributed under the License is distributed on an "AS IS" basis,
7
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
8
//for the specific language governing rights and
9
//limitations under the License.
10
//
11
//The Original Code is "The Columba Project"
12
//
13
//The Initial Developers of the Original Code are Frederik Dietz and Timo
14
// Stich.
15
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
16
//
17
//All Rights Reserved.
18
package org.columba.mail.search;
19
20 import java.net.URI JavaDoc;
21 import java.util.Date JavaDoc;
22
23 import javax.swing.ImageIcon JavaDoc;
24
25 import org.columba.core.search.SearchResult;
26 import org.columba.ristretto.message.Address;
27
28 public class MailSearchResult extends SearchResult {
29
30     private String JavaDoc stringDate;
31
32     private Address from;
33
34     private ImageIcon JavaDoc statusIcon;
35
36     private boolean flagged;
37
38     private Date JavaDoc date;
39     /**
40      * @param title
41      * @param description
42      * @param location
43      * @param date
44      * @param from
45      * @param statusIcon
46      * @param flagged
47      */

48     public MailSearchResult(String JavaDoc title, String JavaDoc description, URI JavaDoc location,
49             String JavaDoc stringDate, Date JavaDoc date, Address from, ImageIcon JavaDoc statusIcon, boolean flagged) {
50         super(title, description, location);
51         this.stringDate = stringDate;
52         this.date = date;
53         this.from = from;
54         this.statusIcon = statusIcon;
55         this.flagged = flagged;
56     }
57
58     /**
59      * @return date
60      */

61     public String JavaDoc getStringDate() {
62         return stringDate;
63     }
64
65     /**
66      * @return from
67      */

68     public Address getFrom() {
69         return from;
70     }
71
72     /**
73      * @return status Icon
74      */

75     public ImageIcon JavaDoc getStatusIcon() {
76         return statusIcon;
77     }
78
79     /**
80      * @return flagged
81      */

82     public boolean isFlagged() {
83         return flagged;
84     }
85
86     public Date JavaDoc getDate() {
87         return date;
88     }
89 }
90
Popular Tags