KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > model > SearchHit


1 package SnowMailClient.model;
2
3 import SnowMailClient.model.folders.*;
4
5 /** used in the folder search
6 */

7 public final class SearchHit
8 {
9   final private MailMessage mess;
10   final private FolderTreeNode node;
11
12   public SearchHit(MailMessage mess, FolderTreeNode node)
13   {
14     this.mess = mess;
15     this.node = node;
16   }
17
18   public MailMessage getMessage()
19   {
20     return mess;
21   }
22
23   public FolderTreeNode getNode()
24   {
25     return node;
26   }
27
28   public String JavaDoc toString()
29   {
30     return this.node.getFolderName()+" / "+this.mess.getFromAddress()+", "
31       +mess.getSubject();
32   }
33
34 }
Popular Tags