1 // re/mind - Remote Reminder Software
2 // Copyright (C) 2002 Moritz Petersen
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 //
18 // $Id: NoteText.java,v 1.1 2002/09/29 19:33:23 powerpete Exp $
19 package de.jface.remind.core;
20
21 /***
22 * Class <code>NoteText</code>
23 * of project RemotePostIt.
24 *
25 * @author Moritz Petersen
26 * @version $Revision: 1.1 $
27 */
28 public class NoteText
29 {
30 private String body = "";
31
32 public NoteText()
33 {
34 this("");
35 }
36
37 public NoteText(String body)
38 {
39 setBody(body);
40 }
41
42 public String getBody()
43 {
44 return body;
45 }
46
47 public void setBody(String body)
48 {
49 if (body == null)
50 {
51 body = "";
52 }
53
54 this.body = body;
55 }
56
57 public boolean equals(Object o)
58 {
59 NoteText n = (NoteText) o;
60
61 return body.equals(n.body);
62 }
63
64 public String toString()
65 {
66 return body;
67 }
68 }
This page was automatically generated by Maven