KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > menu > MenuBase


1 /*
2  * MenuBase.java
3  *
4  * Created on January 28, 2001, 7:28 PM
5  */

6
7 package fr.improve.struts.taglib.layout.menu;
8
9 /*
10  * MenuBase.java
11  *
12  * Created on January 28, 2001, 7:28 PM
13  */

14
15 /**
16  * MenuBase, from Struts-Menu.
17  *
18  * @author ssayles
19  * @version
20  */

21 public abstract class MenuBase {
22
23     /** Holds value of property name. */
24     protected String JavaDoc name;
25     /** Holds value of property title. */
26     protected String JavaDoc title;
27     /** Holds value of property location. */
28     protected String JavaDoc location;
29     /** Holds value of property target. */
30     protected String JavaDoc target;
31     /** Holds value of property description. */
32     protected String JavaDoc description;
33     /** Holds value of property onClick. */
34     protected String JavaDoc onClick;
35     /** Holds value of property onMouseOver. */
36     protected String JavaDoc onMouseOver;
37     /** Holds value of property onMouseOut. */
38     protected String JavaDoc onMouseOut;
39     /** Holds value of property image. */
40     private String JavaDoc image;
41     /** Holds value of property altImage. */
42     private String JavaDoc altImage;
43     
44     /** Holds value of property toolTip. */
45     private String JavaDoc toolTip;
46     
47     /** Holds value of property page */
48     protected String JavaDoc page;
49     
50     /** Holds value of the property action */
51     protected String JavaDoc action;
52     
53     /** Holds value of property forward */
54     protected String JavaDoc forward;
55     
56     /** Holds value of property style */
57     protected String JavaDoc style;
58     
59     protected String JavaDoc id;
60     
61     /** Creates new MenuBase */
62     public MenuBase() {
63     }
64     
65     public MenuBase(String JavaDoc in_id) {
66         id = in_id;
67     }
68     
69
70     /** Getter for property name.
71      * @return Value of property name.
72      */

73     public String JavaDoc getName() {
74         return name;
75     }
76     /** Setter for property name.
77      * @param name New value of property name.
78      */

79     public void setName(String JavaDoc name) {
80         this.name = name;
81     }
82     /** Getter for property title.
83      * @return Value of property title.
84      */

85     public String JavaDoc getTitle() {
86         return title;
87     }
88     /** Setter for property title.
89      * @param title New value of property title.
90      */

91     public void setTitle(String JavaDoc title) {
92         this.title = title;
93     }
94     /** Getter for property location.
95      * @return Value of property location.
96      */

97     public String JavaDoc getLocation() {
98         return location;
99     }
100     /** Setter for property location.
101      * @param location New value of property location.
102      */

103     public void setLocation(String JavaDoc location) {
104         this.location = location;
105     }
106     /** Getter for property target.
107      * @return Value of property target.
108      */

109     public String JavaDoc getTarget() {
110         return target;
111     }
112     /** Setter for property target.
113      * @param target New value of property target.
114      */

115     public void setTarget(String JavaDoc target) {
116         this.target = target;
117     }
118     /** Getter for property description.
119      * @return Value of property description.
120      */

121     public String JavaDoc getDescription() {
122         return description;
123     }
124     /** Setter for property description.
125      * @param description New value of property description.
126      */

127     public void setDescription(String JavaDoc description) {
128         this.description = description;
129     }
130     /** Getter for property onClick.
131      * @return Value of property onClick.
132      */

133     public String JavaDoc getOnClick() {
134         return onClick;
135     }
136     /** Setter for property onClick.
137      * @param onClick New value of property onClick.
138      */

139     public void setOnClick(String JavaDoc onClick) {
140         this.onClick = onClick;
141     }
142     /** Getter for property onMouseOver.
143      * @return Value of property onMouseOver.
144      */

145     public String JavaDoc getOnMouseOver() {
146         return onMouseOver;
147     }
148     /** Setter for property onMouseOver.
149      * @param onMouseOver New value of property onMouseOver.
150      */

151     public void setOnMouseOver(String JavaDoc onMouseOver) {
152         this.onMouseOver = onMouseOver;
153     }
154     
155     /** Getter for property onMouseOut.
156      * @return Value of property onMouseOut.
157      */

158     public String JavaDoc getOnMouseOut() {
159         return onMouseOut;
160     }
161     /** Setter for property onMouseOut.
162      * @param onMouseOut New value of property onMouseOut.
163      */

164     public void setOnMouseOut(String JavaDoc onMouseOut) {
165         this.onMouseOut = onMouseOut;
166     }
167     
168     /** Getter for property image.
169      * @return Value of property image.
170      */

171     public String JavaDoc getImage() {
172         return image;
173     }
174     /** Setter for property image.
175      * @param image New value of property image.
176      */

177     public void setImage(String JavaDoc image) {
178         this.image = image;
179     }
180     /** Getter for property altImage.
181      * @return Value of property altImage.
182      */

183     public String JavaDoc getAltImage() {
184         return altImage;
185     }
186     /** Setter for property altImage.
187      * @param altImage New value of property altImage.
188      */

189     public void setAltImage(String JavaDoc altImage) {
190         this.altImage = altImage;
191     }
192     /** Getter for property toolTip.
193      * @return Value of property toolTip.
194      */

195     public String JavaDoc getToolTip() {
196         return toolTip;
197     }
198     /** Setter for property toolTip.
199      * @param toolTip New value of property toolTip.
200      */

201     public void setToolTip(String JavaDoc toolTip) {
202         this.toolTip = toolTip;
203     }
204     /**
205      * Returns the forward.
206      * @return String
207      */

208     public String JavaDoc getForward() {
209         return forward;
210     }
211
212     /**
213      * Returns the page.
214      * @return String
215      */

216     public String JavaDoc getPage() {
217         return page;
218     }
219
220     /**
221      * Sets the forward.
222      * @param forward The forward to set
223      */

224     public void setForward(String JavaDoc forward) {
225         this.forward = forward;
226     }
227
228     /**
229      * Sets the page.
230      * @param page The page to set
231      */

232     public void setPage(String JavaDoc page) {
233         this.page = page;
234     }
235
236     public String JavaDoc getStyle() {
237         return style;
238     }
239
240     public void setStyle(String JavaDoc in_string) {
241         style = in_string;
242     }
243
244     public String JavaDoc getId() {
245         return id;
246     }
247     
248     /**
249      * @return Returns the action.
250      */

251     public String JavaDoc getAction() {
252         return action;
253     }
254     /**
255      * @param action The action to set.
256      */

257     public void setAction(String JavaDoc action) {
258         this.action = action;
259     }
260 }
Popular Tags