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.data.client;
09:
10: import java.util.Date;
11:
12: import net.mygwt.ui.client.data.Model;
13:
14: public class Post extends Model {
15:
16: protected Date dummy;
17:
18: public String getId() {
19: return getAsString("id");
20: }
21:
22: public void setId(String id) {
23: set("id", id);
24: }
25:
26: public String getUsername() {
27: return getAsString("username");
28: }
29:
30: public void setUsername(String username) {
31: set("username", username);
32: }
33:
34: public String getForum() {
35: return getAsString("forum");
36: }
37:
38: public void setForum(String forum) {
39: set("forum", forum);
40: }
41:
42: public Date getDate() {
43: return (Date) get("date");
44: }
45:
46: public void setDate(Date date) {
47: set("date", date);
48: }
49:
50: public String getSubject() {
51: return getAsString("subject");
52: }
53:
54: public void setSubject(String subject) {
55: set("subject", subject);
56: }
57:
58: }
|