KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > wizard > WizardActionStatus


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.wizard;
21
22 /**
23  * At the end of a wizard sequence, the wizard is likely to perform a number of
24  * actions. This object is used to return the status of each individual action
25  * for reporting back to the user.
26  *
27  * @author Brett Smith <brett@3sp.com>
28  */

29 public class WizardActionStatus {
30     /**
31      * The action completed ok with no errors or warnings
32      */

33     public final static int COMPLETED_OK = 0;
34     /**
35      * The action completed ok, but warnings occured that the user should be
36      * aware of
37      */

38     public final static int COMPLETED_WITH_WARNINGS = 1;
39     /**
40      * The action failed to complete as errors occured.
41      */

42     public final static int COMPLETED_WITH_ERRORS = 2;
43     // Private instance variables
44
private int status;
45     private String JavaDoc key;
46     private String JavaDoc arg0;
47     private String JavaDoc arg1;
48     private String JavaDoc arg2;
49     private String JavaDoc arg3;
50     private String JavaDoc arg4;
51     private String JavaDoc bundle;
52
53     public WizardActionStatus(int status, String JavaDoc key) {
54         this(status, key, "");
55     }
56
57     public WizardActionStatus(int status, String JavaDoc key, String JavaDoc arg0) {
58         this(status, key, arg0, "");
59     }
60
61     public WizardActionStatus(int status, String JavaDoc key, String JavaDoc arg0, String JavaDoc arg1) {
62         this(status, key, arg0, arg1, "");
63     }
64
65     public WizardActionStatus(int status, String JavaDoc key, String JavaDoc arg0, String JavaDoc arg1, String JavaDoc arg2) {
66         this(status, key, arg0, arg1, arg2, "");
67     }
68
69     public WizardActionStatus(int status, String JavaDoc key, String JavaDoc arg0, String JavaDoc arg1, String JavaDoc arg2, String JavaDoc arg3) {
70         this(status, key, arg0, arg1, arg2, arg3, "");
71     }
72
73     public WizardActionStatus(int status, String JavaDoc key, String JavaDoc arg0, String JavaDoc arg1, String JavaDoc arg2, String JavaDoc arg3, String JavaDoc arg4) {
74         this(status, key, arg0, arg1, arg2, arg3, arg4, null);
75     }
76
77     public WizardActionStatus(int status, String JavaDoc key, String JavaDoc arg0, String JavaDoc arg1, String JavaDoc arg2, String JavaDoc arg3, String JavaDoc arg4, String JavaDoc bundle) {
78         super();
79         this.status = status;
80         this.key = key;
81         this.arg0 = arg0;
82         this.arg1 = arg1;
83         this.arg2 = arg2;
84         this.arg3 = arg3;
85         this.arg4 = arg4;
86         this.bundle = bundle;
87     }
88
89     /**
90      * @return Returns the key.
91      */

92     public String JavaDoc getKey() {
93         return key;
94     }
95
96     /**
97      * @return Returns the status.
98      */

99     public int getStatus() {
100         return status;
101     }
102
103     /**
104      * @return Returns the arg0.
105      */

106     public String JavaDoc getArg0() {
107         return arg0;
108     }
109
110     /**
111      * @return Returns the arg1.
112      */

113     public String JavaDoc getArg1() {
114         return arg1;
115     }
116
117     /**
118      * @return Returns the arg2.
119      */

120     public String JavaDoc getArg2() {
121         return arg2;
122     }
123
124     /**
125      * @return Returns the arg3.
126      */

127     public String JavaDoc getArg3() {
128         return arg3;
129     }
130
131     /**
132      * @return Returns the arg4.
133      */

134     public String JavaDoc getArg4() {
135         return arg4;
136     }
137     
138     public String JavaDoc getBundle() {
139         return bundle;
140     }
141 }
142
Popular Tags