001: /*
002: * $Id: AbstractRemoteCallUITag.java 508280 2007-02-16 02:07:56Z musachy $
003: *
004: * Copyright 2006 The Apache Software Foundation.
005: *
006: * Licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License.
008: * You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018: package org.apache.struts2.views.jsp.ui;
019:
020: import org.apache.struts2.components.RemoteUICallBean;
021:
022: public abstract class AbstractRemoteCallUITag extends
023: AbstractClosingTag {
024:
025: protected String href;
026: protected String listenTopics;
027: protected String notifyTopics;
028: protected String loadingText;
029: protected String errorText;
030: protected String beforeLoading;
031: protected String afterLoading;
032: protected String executeScripts;
033: protected String handler;
034: protected String formId;
035: protected String formFilter;
036: protected String showErrorTransportText;
037: protected String indicator;
038: protected String showLoadingText;
039:
040: protected void populateParams() {
041: super .populateParams();
042:
043: RemoteUICallBean remote = (RemoteUICallBean) component;
044: remote.setHref(href);
045: remote.setListenTopics(listenTopics);
046: remote.setLoadingText(loadingText);
047: remote.setErrorText(errorText);
048: remote.setAfterLoading(afterLoading);
049: remote.setBeforeLoading(beforeLoading);
050: remote.setExecuteScripts(executeScripts);
051: remote.setHandler(handler);
052: remote.setFormFilter(formFilter);
053: remote.setFormId(formId);
054: remote.setNotifyTopics(notifyTopics);
055: remote.setShowErrorTransportText(showErrorTransportText);
056: remote.setIndicator(indicator);
057: remote.setShowLoadingText(showLoadingText);
058: }
059:
060: public void setHref(String href) {
061: this .href = href;
062: }
063:
064: public void setErrorText(String errorText) {
065: this .errorText = errorText;
066: }
067:
068: public void setLoadingText(String loadingText) {
069: this .loadingText = loadingText;
070: }
071:
072: public void setListenTopics(String listenTopics) {
073: this .listenTopics = listenTopics;
074: }
075:
076: public void setAfterLoading(String afterLoading) {
077: this .afterLoading = afterLoading;
078: }
079:
080: public void setBeforeLoading(String beforeLoading) {
081: this .beforeLoading = beforeLoading;
082: }
083:
084: public void setExecuteScripts(String executeScripts) {
085: this .executeScripts = executeScripts;
086: }
087:
088: public void setHandler(String handler) {
089: this .handler = handler;
090: }
091:
092: public void setFormFilter(String formFilter) {
093: this .formFilter = formFilter;
094: }
095:
096: public void setFormId(String formId) {
097: this .formId = formId;
098: }
099:
100: public void setNotifyTopics(String notifyTopics) {
101: this .notifyTopics = notifyTopics;
102: }
103:
104: public void setShowErrorTransportText(String showErrorTransportText) {
105: this .showErrorTransportText = showErrorTransportText;
106: }
107:
108: /**
109: * @param indicator The indicator to set.
110: */
111: public void setIndicator(String indicator) {
112: this .indicator = indicator;
113: }
114:
115: public void setShowLoadingText(String showLoadingText) {
116: this.showLoadingText = showLoadingText;
117: }
118: }
|