KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > util > MenuItem


1 package fr.improve.struts.taglib.layout.util;
2
3 /**
4  * @author: Jean-NoŽl Ribette
5  */

6 public class MenuItem {
7     protected String JavaDoc key;
8     protected String JavaDoc link;
9     protected String JavaDoc image;
10     protected Menu subMenu;
11
12 public MenuItem(String JavaDoc key, String JavaDoc link, Menu subMenu) {
13     this.key = key;
14     this.link = link;
15     this.subMenu = subMenu;
16 }
17 public MenuItem(String JavaDoc key, String JavaDoc link, String JavaDoc image, Menu subMenu) {
18     this.key = key;
19     this.link = link;
20     this.subMenu = subMenu;
21     this.image = image;
22 }
23     public String JavaDoc getImage() {
24         return image;
25     }
26 public String JavaDoc getKey() {
27     return key;
28 }
29 public String JavaDoc getLink() {
30     return link;
31 }
32 public Menu getSubMenu() {
33     return subMenu;
34 }
35 }
36
Popular Tags