01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.console.ajax;
17:
18: import org.directwebremoting.annotations.DataTransferObject;
19: import org.directwebremoting.annotations.RemoteProperty;
20:
21: @DataTransferObject
22: public class ProgressInfo {
23: public static final String PROGRESS_INFO_KEY = "progressinfokey";
24: private int progressPercent = -1;
25: private String mainMessage;
26: private String subMessage;
27: private boolean finished;
28:
29: @RemoteProperty
30: public int getProgressPercent() {
31: return progressPercent;
32: }
33:
34: public void setProgressPercent(int progressPercent) {
35: this .progressPercent = progressPercent;
36: }
37:
38: @RemoteProperty
39: public String getMainMessage() {
40: return mainMessage;
41: }
42:
43: public void setMainMessage(String mainMessage) {
44: this .mainMessage = mainMessage;
45: }
46:
47: @RemoteProperty
48: public String getSubMessage() {
49: return subMessage;
50: }
51:
52: public void setSubMessage(String subMessage) {
53: this .subMessage = subMessage;
54: }
55:
56: @RemoteProperty
57: public boolean isFinished() {
58: return finished;
59: }
60:
61: public void setFinished(boolean finished) {
62: this.finished = finished;
63: }
64: }
|