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.krad.service.KRADServiceLocator; |
20 | |
import org.kuali.rice.krad.util.KRADConstants; |
21 | |
|
22 | |
import java.io.Serializable; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
@Deprecated |
29 | 0 | public class ExtraButton implements Serializable { |
30 | 0 | private String extraButtonSource = ""; |
31 | |
|
32 | 0 | private String extraButtonAltText = ""; |
33 | |
|
34 | 0 | private String extraButtonParams = ""; |
35 | |
|
36 | 0 | private String extraButtonProperty = ""; |
37 | |
|
38 | 0 | private String extraButtonOnclick = ""; |
39 | |
|
40 | |
public String getExtraButtonAltText() { |
41 | 0 | return extraButtonAltText; |
42 | |
} |
43 | |
|
44 | |
public void setExtraButtonAltText(String extraButtonAltText) { |
45 | 0 | this.extraButtonAltText = extraButtonAltText; |
46 | 0 | } |
47 | |
|
48 | |
public String getExtraButtonParams() { |
49 | 0 | return extraButtonParams; |
50 | |
} |
51 | |
|
52 | |
public void setExtraButtonParams(String extraButtonParams) { |
53 | 0 | this.extraButtonParams = extraButtonParams; |
54 | 0 | } |
55 | |
|
56 | |
public String getExtraButtonProperty() { |
57 | 0 | return extraButtonProperty; |
58 | |
} |
59 | |
|
60 | |
public void setExtraButtonProperty(String extraButtonProperty) { |
61 | 0 | this.extraButtonProperty = extraButtonProperty; |
62 | 0 | } |
63 | |
|
64 | |
public String getExtraButtonSource() { |
65 | 0 | return extraButtonSource; |
66 | |
} |
67 | |
|
68 | |
public String getExtraButtonOnclick() { |
69 | 0 | return this.extraButtonOnclick; |
70 | |
} |
71 | |
|
72 | |
public void setExtraButtonOnclick(String extraButtonOnclick) { |
73 | 0 | this.extraButtonOnclick = extraButtonOnclick; |
74 | 0 | } |
75 | |
|
76 | |
public void setExtraButtonSource(String extraButtonSource) { |
77 | 0 | if (StringUtils.isNotBlank(extraButtonSource)) { |
78 | 0 | this.extraButtonSource = extraButtonSource |
79 | |
.replace( |
80 | |
"${kr.externalizable.images.url}", |
81 | |
KRADServiceLocator |
82 | |
.getKualiConfigurationService() |
83 | |
.getPropertyValueAsString(KRADConstants.EXTERNALIZABLE_IMAGES_URL_KEY)) |
84 | |
.replace( |
85 | |
"${externalizable.images.url}", |
86 | |
KRADServiceLocator |
87 | |
.getKualiConfigurationService() |
88 | |
.getPropertyValueAsString(KRADConstants.APPLICATION_EXTERNALIZABLE_IMAGES_URL_KEY)); |
89 | |
} |
90 | 0 | } |
91 | |
|
92 | |
} |