1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.struts.tiles.beans;
23
24 import java.io.Serializable;
25
26
27
28
29
30 public class SimpleMenuItem implements MenuItem, Serializable {
31
32 private String value = null;
33
34 private String link = null;
35
36 private String icon = null;
37
38 private String tooltip = null;
39
40
41
42
43 public SimpleMenuItem() {
44 super();
45 }
46
47
48
49
50 public void setValue(String value) {
51 this.value = value;
52 }
53
54
55
56
57 public String getValue() {
58 return value;
59 }
60
61
62
63
64 public void setLink(String link) {
65 this.link = link;
66 }
67
68
69
70
71 public String getLink() {
72 return link;
73 }
74
75
76
77
78 public void setIcon(String icon) {
79 this.icon = icon;
80 }
81
82
83
84
85 public String getIcon() {
86 return icon;
87 }
88
89
90
91
92 public void setTooltip(String tooltip) {
93 this.tooltip = tooltip;
94 }
95
96
97
98
99 public String getTooltip() {
100 return tooltip;
101 }
102
103
104
105
106 public String toString() {
107 StringBuffer buff = new StringBuffer("SimpleMenuItem[");
108
109 if (getValue() != null) {
110 buff.append("value=").append(getValue()).append(", ");
111 }
112
113 if (getLink() != null) {
114 buff.append("link=").append(getLink()).append(", ");
115 }
116
117 if (getTooltip() != null) {
118 buff.append("tooltip=").append(getTooltip()).append(", ");
119 }
120
121 if (getIcon() != null) {
122 buff.append("icon=").append(getIcon()).append(", ");
123 }
124
125 buff.append("]");
126 return buff.toString();
127 }
128
129 }