KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dlog4j > formbean > FavoriteForm


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

16 package dlog4j.formbean;
17
18 import java.util.Date JavaDoc;
19
20 /**
21  * 网页收藏夹,也就是友情链接,对应dlog_favorite表中的一条记录
22  * @author Liudong
23  */

24 public class FavoriteForm extends DlogActionForm {
25     
26     SiteForm site;
27     int id ;
28     String JavaDoc title;
29     String JavaDoc detail;
30     String JavaDoc url;
31     
32     /**
33      * 友情链接的样式,值包括:HTML,RDF,RSS,ATOM
34      */

35     String JavaDoc mode = "HTML";
36     
37     /**
38      * 是否在新窗口打开,1,在新窗口打开; 0,在本窗口打开
39      */

40     int openInNewWindow;
41     Date JavaDoc createTime;
42     int order;
43
44     public SiteForm getSite() {
45         return site;
46     }
47     public void setSite(SiteForm site) {
48         this.site = site;
49     }
50     public Date JavaDoc getCreateTime() {
51         return createTime;
52     }
53     public void setCreateTime(Date JavaDoc createTime) {
54         this.createTime = createTime;
55     }
56     public String JavaDoc getDetail() {
57         return detail;
58     }
59     public void setDetail(String JavaDoc detail) {
60         this.detail = detail;
61     }
62     public int getId() {
63         return id;
64     }
65     public void setId(int id) {
66         this.id = id;
67     }
68     public int getOpenInNewWindow() {
69         return openInNewWindow;
70     }
71     public void setOpenInNewWindow(int openInNewWindow) {
72         this.openInNewWindow = openInNewWindow;
73     }
74     public int getOrder() {
75         return order;
76     }
77     public void setOrder(int order) {
78         this.order = order;
79     }
80     public String JavaDoc getTitle() {
81         return title;
82     }
83     public void setTitle(String JavaDoc title) {
84         this.title = title;
85     }
86     public String JavaDoc getUrl() {
87         return url;
88     }
89     public void setUrl(String JavaDoc url) {
90         this.url = url;
91     }
92     public String JavaDoc getMode() {
93         return mode;
94     }
95     public void setMode(String JavaDoc mode) {
96         this.mode = mode;
97     }
98 }
99
Popular Tags