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