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
39 private String tooltipContent;
40
41 private boolean onFocus;
42 private boolean onMouseHover;
43
44 public Tooltip() {
45 super();
46 }
47
48
49
50
51
52 @Override
53 public void performFinalize(View view, Object model, Component parent) {
54 super.performFinalize(view, model, parent);
55 }
56
57
58
59
60
61
62 @BeanTagAttribute(name = "tooltipContent")
63 public String getTooltipContent() {
64 return tooltipContent;
65 }
66
67
68
69
70
71
72 public void setTooltipContent(String tooltipContent) {
73 this.tooltipContent = tooltipContent.replace("\"", """).replace("'", "'");
74 }
75
76
77
78
79
80
81 @BeanTagAttribute(name = "onFocus")
82 public boolean isOnFocus() {
83 return onFocus;
84 }
85
86
87
88
89
90
91 public void setOnFocus(boolean onFocus) {
92 this.onFocus = onFocus;
93 }
94
95
96
97
98
99
100 @BeanTagAttribute(name = "onMouseHover")
101 public boolean isOnMouseHover() {
102 return onMouseHover;
103 }
104
105
106
107
108
109
110 public void setOnMouseHover(boolean onMouseHover) {
111 this.onMouseHover = onMouseHover;
112 }
113 }