01: // The contents of this file are subject to the Mozilla Public License Version
02: // 1.1
03: //(the "License"); you may not use this file except in compliance with the
04: //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
05: //
06: //Software distributed under the License is distributed on an "AS IS" basis,
07: //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
08: //for the specific language governing rights and
09: //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;
21: import java.util.Date;
22:
23: import javax.swing.ImageIcon;
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 stringDate;
31:
32: private Address from;
33:
34: private ImageIcon statusIcon;
35:
36: private boolean flagged;
37:
38: private Date date;
39:
40: /**
41: * @param title
42: * @param description
43: * @param location
44: * @param date
45: * @param from
46: * @param statusIcon
47: * @param flagged
48: */
49: public MailSearchResult(String title, String description,
50: URI location, String stringDate, Date date, Address from,
51: ImageIcon statusIcon, boolean flagged) {
52: super (title, description, location);
53: this .stringDate = stringDate;
54: this .date = date;
55: this .from = from;
56: this .statusIcon = statusIcon;
57: this .flagged = flagged;
58: }
59:
60: /**
61: * @return date
62: */
63: public String getStringDate() {
64: return stringDate;
65: }
66:
67: /**
68: * @return from
69: */
70: public Address getFrom() {
71: return from;
72: }
73:
74: /**
75: * @return status Icon
76: */
77: public ImageIcon getStatusIcon() {
78: return statusIcon;
79: }
80:
81: /**
82: * @return flagged
83: */
84: public boolean isFlagged() {
85: return flagged;
86: }
87:
88: public Date getDate() {
89: return date;
90: }
91: }
|