1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.widget;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTags;
21 import org.kuali.rice.krad.uif.component.Component;
22 import org.kuali.rice.krad.uif.view.View;
23
24
25
26
27
28
29
30
31
32
33
34 @BeanTags(
35 {@BeanTag(name = "tooltip-bean", parent = "Uif-Tooltip"), @BeanTag(name = "tooltipHelp-bean", parent = "Uif-TooltipHelp"),
36 @BeanTag(name = "tooltipFocus-bean", parent = "Uif-TooltipFocus")})
37 public class Tooltip extends WidgetBase {
38 private static final long serialVersionUID = -7641043761619191329L;
39
40 private String tooltipContent;
41
42 private boolean onFocus;
43 private boolean onMouseHover;
44
45 public Tooltip() {
46 super();
47 }
48
49
50
51
52
53
54 @BeanTagAttribute(name = "tooltipContent")
55 public String getTooltipContent() {
56 return tooltipContent;
57 }
58
59
60
61
62
63
64 public void setTooltipContent(String tooltipContent) {
65 if (tooltipContent != null) {
66 this.tooltipContent = tooltipContent.replace("\"", """).replace("'", "'");
67 } else {
68 this.tooltipContent = null;
69 }
70 }
71
72
73
74
75
76
77 @BeanTagAttribute(name = "onFocus")
78 public boolean isOnFocus() {
79 return onFocus;
80 }
81
82
83
84
85
86
87 public void setOnFocus(boolean onFocus) {
88 this.onFocus = onFocus;
89 }
90
91
92
93
94
95
96 @BeanTagAttribute(name = "onMouseHover")
97 public boolean isOnMouseHover() {
98 return onMouseHover;
99 }
100
101
102
103
104
105
106 public void setOnMouseHover(boolean onMouseHover) {
107 this.onMouseHover = onMouseHover;
108 }
109 }