1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.field;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.krad.uif.view.View;
20 import org.kuali.rice.krad.uif.widget.LightBox;
21
22
23
24
25
26
27 public class LinkField extends FieldBase {
28 private static final long serialVersionUID = -1908504471910271148L;
29
30 private String linkLabel;
31 private String target;
32 private String hrefText;
33 private LightBox lightBox;
34
35 public LinkField() {
36 super();
37 }
38
39
40
41
42
43
44
45
46
47
48 @Override
49 public void performInitialization(View view, Object model) {
50 super.performInitialization(view, model);
51
52 if (StringUtils.isBlank(linkLabel)) {
53 linkLabel = this.getLabel();
54 }
55 }
56
57 public String getLinkLabel() {
58 return this.linkLabel;
59 }
60
61 public void setLinkLabel(String linkLabel) {
62 this.linkLabel = linkLabel;
63 }
64
65 public String getTarget() {
66 return this.target;
67 }
68
69 public void setTarget(String target) {
70 this.target = target;
71 }
72
73 public String getHrefText() {
74 return this.hrefText;
75 }
76
77 public void setHrefText(String hrefText) {
78 this.hrefText = hrefText;
79 }
80
81
82
83
84 public void setLightBox(LightBox lightBox) {
85 this.lightBox = lightBox;
86 }
87
88
89
90
91 public LightBox getLightBox() {
92 return lightBox;
93 }
94
95
96
97
98 public boolean getSupportsOnClick() {
99 return true;
100 }
101
102 }