KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > mydesktop > ShortcutVO


1 /* ===============================================================================
2 *
3 * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4 *
5 * ===============================================================================
6 *
7 * Copyright (C) Mattias Bogeblad
8 *
9 * This program is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License version 2, as published by the
11 * Free Software Foundation. See the file LICENSE.html for more information.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19 * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20 *
21 * ===============================================================================
22 */

23
24 package org.infoglue.cms.entities.mydesktop;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.util.ConstraintExceptionBuffer;
28
29 /**
30  * This contains a shortcut object.
31  *
32  * @author Mattias Bogeblad
33  */

34
35 public class ShortcutVO implements BaseEntityVO
36 {
37     private String JavaDoc name;
38     private String JavaDoc URL;
39     private boolean popup = true;
40     
41     private ShortcutVO() {}
42
43     public ShortcutVO(String JavaDoc name, String JavaDoc URL, boolean popup)
44     {
45         setName(name);
46         setURL(URL);
47         setPopup(popup);
48     }
49
50     public Integer JavaDoc getId()
51     {
52         return null;
53     }
54
55     public String JavaDoc getName()
56     {
57         return name;
58     }
59
60     private void setName(String JavaDoc name)
61     {
62         this.name = name;
63     }
64
65     public String JavaDoc getURL()
66     {
67         return URL;
68     }
69
70     private void setURL(String JavaDoc url)
71     {
72         URL = url;
73     }
74
75     public boolean getPopup()
76     {
77         return popup;
78     }
79
80     private void setPopup(boolean popup)
81     {
82         this.popup = popup;
83     }
84
85     public ConstraintExceptionBuffer validate()
86     {
87         return new ConstraintExceptionBuffer();
88     }
89
90 }
91
Popular Tags