1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.views.jsp.ui;
19
20 import org.apache.struts2.components.RemoteUICallBean;
21
22 public abstract class AbstractRemoteCallUITag extends AbstractClosingTag {
23
24 protected String href;
25 protected String listenTopics;
26 protected String notifyTopics;
27 protected String loadingText;
28 protected String errorText;
29 protected String beforeLoading;
30 protected String afterLoading;
31 protected String executeScripts;
32 protected String handler;
33 protected String formId;
34 protected String formFilter;
35 protected String showErrorTransportText;
36 protected String indicator;
37 protected String showLoadingText;
38
39 protected void populateParams() {
40 super.populateParams();
41
42 RemoteUICallBean remote = (RemoteUICallBean) component;
43 remote.setHref(href);
44 remote.setListenTopics(listenTopics);
45 remote.setLoadingText(loadingText);
46 remote.setErrorText(errorText);
47 remote.setAfterLoading(afterLoading);
48 remote.setBeforeLoading(beforeLoading);
49 remote.setExecuteScripts(executeScripts);
50 remote.setHandler(handler);
51 remote.setFormFilter(formFilter);
52 remote.setFormId(formId);
53 remote.setNotifyTopics(notifyTopics);
54 remote.setShowErrorTransportText(showErrorTransportText);
55 remote.setIndicator(indicator);
56 remote.setShowLoadingText(showLoadingText);
57 }
58
59 public void setHref(String href) {
60 this.href = href;
61 }
62
63 public void setErrorText(String errorText) {
64 this.errorText = errorText;
65 }
66
67 public void setLoadingText(String loadingText) {
68 this.loadingText = loadingText;
69 }
70
71 public void setListenTopics(String listenTopics) {
72 this.listenTopics = listenTopics;
73 }
74
75 public void setAfterLoading(String afterLoading) {
76 this.afterLoading = afterLoading;
77 }
78
79 public void setBeforeLoading(String beforeLoading) {
80 this.beforeLoading = beforeLoading;
81 }
82
83 public void setExecuteScripts(String executeScripts) {
84 this.executeScripts = executeScripts;
85 }
86
87 public void setHandler(String handler) {
88 this.handler = handler;
89 }
90
91 public void setFormFilter(String formFilter) {
92 this.formFilter = formFilter;
93 }
94
95 public void setFormId(String formId) {
96 this.formId = formId;
97 }
98
99 public void setNotifyTopics(String notifyTopics) {
100 this.notifyTopics = notifyTopics;
101 }
102
103 public void setShowErrorTransportText(String showErrorTransportText) {
104 this.showErrorTransportText = showErrorTransportText;
105 }
106
107 /***
108 * @param indicator The indicator to set.
109 */
110 public void setIndicator(String indicator) {
111 this.indicator = indicator;
112 }
113
114 public void setShowLoadingText(String showLoadingText) {
115 this.showLoadingText = showLoadingText;
116 }
117 }