KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > forms > MenuForm


1 /*
2  * Menu.java
3  *
4  * Created on 27. August 2003, 00:01
5  */

6
7 package org.contineo.forms;
8
9 import javax.servlet.http.HttpServletRequest JavaDoc;
10 import org.apache.struts.action.ActionMapping;
11 import org.apache.struts.validator.ValidatorForm;
12
13 /**
14  * This class represents menus.
15  * @author Michael Scholz
16  * @version 1.0
17  */

18 public class MenuForm extends ValidatorForm {
19  
20     private static final long serialVersionUID = 1L;
21
22     /**
23      * @uml.property name="menuText"
24      */

25     private String JavaDoc menuText;
26     /**
27      * @uml.property name="menuParent"
28      */

29     private String JavaDoc menuParent;
30     /**
31      * @uml.property name="menuSort"
32      */

33     private String JavaDoc menuSort;
34     /**
35      * @uml.property name="menuIcon"
36      */

37     private String JavaDoc menuIcon;
38     /**
39      * @uml.property name="menuPath"
40      */

41     private String JavaDoc menuPath;
42     /**
43      * @uml.property name="menuType"
44      */

45     private String JavaDoc menuType;
46     /**
47      * @uml.property name="menuHier"
48      */

49     private String JavaDoc menuHier;
50     /**
51      * @uml.property name="menuRef"
52      */

53     private String JavaDoc menuRef;
54     /**
55      * @uml.property name="menuGroup"
56      */

57     private String JavaDoc[] menuGroup;
58     
59     /** Creates a new instance of Menu */
60     public MenuForm() {
61         menuText = "";
62         menuParent = "";
63         menuSort = "0";
64         menuIcon = "";
65         menuPath = "";
66         menuType = "2";
67         menuHier = "";
68         menuRef = "";
69         menuGroup = null;
70     }
71
72     /**
73      *
74      * @uml.property name="menuText"
75      */

76     public String JavaDoc getMenuText() {
77         return menuText;
78     }
79
80     /**
81      *
82      * @uml.property name="menuParent"
83      */

84     public String JavaDoc getMenuParent() {
85         return menuParent;
86     }
87
88     /**
89      *
90      * @uml.property name="menuSort"
91      */

92     public String JavaDoc getMenuSort() {
93         return menuSort;
94     }
95
96     /**
97      *
98      * @uml.property name="menuIcon"
99      */

100     public String JavaDoc getMenuIcon() {
101         return menuIcon;
102     }
103
104     /**
105      *
106      * @uml.property name="menuPath"
107      */

108     public String JavaDoc getMenuPath() {
109         return menuPath;
110     }
111
112     /**
113      *
114      * @uml.property name="menuType"
115      */

116     public String JavaDoc getMenuType() {
117         return menuType;
118     }
119
120     /**
121      *
122      * @uml.property name="menuHier"
123      */

124     public String JavaDoc getMenuHier() {
125         return menuHier;
126     }
127
128     /**
129      *
130      * @uml.property name="menuRef"
131      */

132     public String JavaDoc getMenuRef() {
133         return menuRef;
134     }
135
136     /**
137      *
138      * @uml.property name="menuGroup"
139      */

140     public String JavaDoc[] getMenuGroup() {
141         return menuGroup;
142     }
143
144     /**
145      *
146      * @uml.property name="menuText"
147      */

148     public void setMenuText(String JavaDoc text) {
149         menuText = text;
150     }
151
152     /**
153      *
154      * @uml.property name="menuParent"
155      */

156     public void setMenuParent(String JavaDoc parent) {
157         menuParent = parent;
158     }
159
160     /**
161      *
162      * @uml.property name="menuSort"
163      */

164     public void setMenuSort(String JavaDoc sort) {
165         menuSort = sort;
166     }
167
168     /**
169      *
170      * @uml.property name="menuIcon"
171      */

172     public void setMenuIcon(String JavaDoc icon) {
173         menuIcon = icon;
174     }
175
176     /**
177      *
178      * @uml.property name="menuPath"
179      */

180     public void setMenuPath(String JavaDoc path) {
181         menuPath = path;
182     }
183
184     /**
185      *
186      * @uml.property name="menuType"
187      */

188     public void setMenuType(String JavaDoc type) {
189         menuType = type;
190     }
191
192     /**
193      *
194      * @uml.property name="menuHier"
195      */

196     public void setMenuHier(String JavaDoc hier) {
197         menuHier = hier;
198     }
199
200     /**
201      *
202      * @uml.property name="menuRef"
203      */

204     public void setMenuRef(String JavaDoc ref) {
205         menuRef = ref;
206     }
207
208     /**
209      *
210      * @uml.property name="menuGroup"
211      */

212     public void setMenuGroup(String JavaDoc[] mgroup) {
213         menuGroup = mgroup;
214     }
215
216     
217     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
218         menuText = "";
219         menuParent = "";
220         menuSort = "0";
221         menuIcon = "";
222         menuPath = "";
223         menuType = "2";
224         menuHier = "";
225         menuRef = "";
226         menuGroup = null;
227     }
228 }
229
Popular Tags