01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package net.mygwt.samples.resources.client;
09:
10: import net.mygwt.ui.client.data.Model;
11:
12: public class MailItem extends Model {
13:
14: public MailItem() {
15:
16: }
17:
18: public MailItem(String sender, String email, String subject) {
19: setSender(sender);
20: setEmail(email);
21: setSubject(subject);
22: }
23:
24: public MailItem(String sender, String email, String subject,
25: String body) {
26: this (sender, email, subject);
27: set("body", body);
28: }
29:
30: public String getSender() {
31: return (String) get("sender");
32: }
33:
34: public void setSender(String sender) {
35: set("sender", sender);
36: }
37:
38: public void setEmail(String email) {
39: set("email", email);
40: }
41:
42: public String getEmail() {
43: return (String) get("email");
44: }
45:
46: public String getBody() {
47: return (String) get("body");
48: }
49:
50: public void setSubject(String subject) {
51: set("subject", subject);
52: }
53:
54: public String getSubject() {
55: return (String) get("subject");
56: }
57: }
|