1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.web.ui;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.rice.core.api.CoreApiServiceLocator;
20 import org.kuali.rice.krad.util.KRADConstants;
21
22 import java.io.Serializable;
23
24
25
26
27
28
29
30 @Deprecated
31 public class ExtraButton implements Serializable {
32 private String extraButtonSource = "";
33
34 private String extraButtonAltText = "";
35
36 private String extraButtonParams = "";
37
38 private String extraButtonProperty = "";
39
40 private String extraButtonOnclick = "";
41
42 public String getExtraButtonAltText() {
43 return extraButtonAltText;
44 }
45
46 public void setExtraButtonAltText(String extraButtonAltText) {
47 this.extraButtonAltText = extraButtonAltText;
48 }
49
50 public String getExtraButtonParams() {
51 return extraButtonParams;
52 }
53
54 public void setExtraButtonParams(String extraButtonParams) {
55 this.extraButtonParams = extraButtonParams;
56 }
57
58 public String getExtraButtonProperty() {
59 return extraButtonProperty;
60 }
61
62 public void setExtraButtonProperty(String extraButtonProperty) {
63 this.extraButtonProperty = extraButtonProperty;
64 }
65
66 public String getExtraButtonSource() {
67 return extraButtonSource;
68 }
69
70 public String getExtraButtonOnclick() {
71 return this.extraButtonOnclick;
72 }
73
74 public void setExtraButtonOnclick(String extraButtonOnclick) {
75 this.extraButtonOnclick = extraButtonOnclick;
76 }
77
78 public void setExtraButtonSource(String extraButtonSource) {
79 if (StringUtils.isNotBlank(extraButtonSource)) {
80 this.extraButtonSource = extraButtonSource
81 .replace("${kr.externalizable.images.url}",
82 CoreApiServiceLocator
83 .getKualiConfigurationService()
84 .getPropertyValueAsString(KRADConstants.EXTERNALIZABLE_IMAGES_URL_KEY))
85 .replace(
86 "${externalizable.images.url}",
87 CoreApiServiceLocator
88 .getKualiConfigurationService()
89 .getPropertyValueAsString(KRADConstants.APPLICATION_EXTERNALIZABLE_IMAGES_URL_KEY));
90 }
91 }
92
93 }