KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Created on 22 mars 2004
3  *
4  * Copyright Improve SA.
5  * All rights reserved.
6  */

7 package fr.improve.struts.taglib.layout.menu;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * This class modelize an action that can be added to a menu element.
13  *
14  * @author jnribette
15  */

16 public class MenuAction implements Serializable JavaDoc {
17         
18     /**
19      * The href this actions links to.
20      */

21     private String JavaDoc href;
22     
23     /**
24      * The target of the link.
25      */

26     private String JavaDoc target;
27     
28     /**
29      * The action image url.
30      */

31     private String JavaDoc imgSrc;
32     
33     /**
34      * @return Returns the href.
35      */

36     public String JavaDoc getHref() {
37         return href;
38     }
39     /**
40      * @param href The href to set.
41      */

42     public void setHref(String JavaDoc href) {
43         this.href = href;
44     }
45     /**
46      * @return Returns the imgSrc.
47      */

48     public String JavaDoc getImgSrc() {
49         return imgSrc;
50     }
51     /**
52      * @param imgSrc The imgSrc to set.
53      */

54     public void setImgSrc(String JavaDoc imgSrc) {
55         this.imgSrc = imgSrc;
56     }
57     /**
58      * @return Returns the target.
59      */

60     public String JavaDoc getTarget() {
61         return target;
62     }
63     /**
64      * @param target The target to set.
65      */

66     public void setTarget(String JavaDoc target) {
67         this.target = target;
68     }
69 }
70
Popular Tags