Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: openfuture/util/forms/TransactionResultForm.java


1   package openfuture.util.forms;
2   /*
3    * This library is free software; you can redistribute it and/or
4    * modify it under the terms of the GNU Lesser General Public
5    * License as published by the Free Software Foundation; either
6    * version 2 of the License, or (at your option) any later version.<p>
7    *
8    * This library is distributed in the hope that it will be useful,
9    * but WITHOUT ANY WARRANTY; without even the implied warranty of
10   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11   * Lesser General Public License for more details.<p>
12   *
13   * You should have received a copy of the GNU Lesser General Public
14   * License along with this library; if not, write to the Free Software
15   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA<br>
16   * http://www.gnu.org/copyleft/lesser.html
17   */
18  
19  import java.util.LinkedList;
20  import org.apache.struts.action.ActionForm;
21  
22  // Configuration Management Information: 
23  // -------------------------------------
24  // $Id: TransactionResultForm.java,v 1.3 2001/07/01 06:46:30 wreissen Exp $
25  //
26  // Version History:
27  // ----------------
28  // $Log: TransactionResultForm.java,v $
29  // Revision 1.3  2001/07/01 06:46:30  wreissen
30  // fixed errors in DOS/Unix-translation.
31  //
32  // Revision 1.2  2001/05/29 18:26:43  wreissen
33  // updated to version 1.0b2 of Struts
34  //
35  // Revision 1.1  2001/02/15 07:49:46  wreissen
36  // initial version, copied from WebGlossary.
37  //
38  // Revision 1.1  2001/02/01 06:59:11  wreissen
39  // initial version of struts based Web Glossary.
40  //
41  //
42  // ***********************************************************************************
43  /**
44   * Form bean containing results of a transaction.<p>
45   *
46   *
47   * Created: Wed Jan 24 06:05:27 2001
48   *
49   * @author <a href="mailto:wolfgang@openfuture.de">Wolfgang Reissenberger</a>
50   * @version $Revision: 1.3 $
51   */
52  
53  public class TransactionResultForm extends ActionForm {
54      
55  
56  
57      private String continueURL;
58      private String continueText;
59      private String title;
60      private LinkedList messages;
61      
62      
63  
64      /**
65       * Creates a new <code>TransactionResultForm</code> instance. 
66       * Does nothing.
67       *
68       */
69      public TransactionResultForm() {
70      }
71  
72  
73      /**
74       * Creates a new <code>TransactionResultForm</code> instance and
75       * sets all bean attributes.
76       *
77       * @param title the {@link #getTitle() title} to be displayed.
78       * @param message the {@link #getMessages() messages} to be displayed.
79       * @param continueText the {@link #getContinueText() text} of
80       *                     the "Continue"-Link.
81       * @param continueURL the {@link #getContinueURL() URL} of
82       *                     the "Continue"-Link.
83       */
84      public TransactionResultForm(String title, LinkedList messages,
85           String continueText, String continueURL){
86    setTitle(title);
87    setMessages(messages);
88    setContinueText(continueText);
89    setContinueURL(continueURL);
90      }
91  
92      
93      /**
94       * Returns the title to be displayed.
95       * @return the title.
96       */
97      public String getTitle() {return title;}
98      
99      /**
100      * Set the title to be displayed.
101      * @param v the title.
102      */
103     public void setTitle(String  v) {
104   this.title = v;
105     }
106     
107 
108 
109     /**
110      * Returns the messages to be displayed.
111      * @return the list of messages.
112      */
113     public LinkedList getMessages() {return messages;}
114     
115     /**
116      * Set the messages to be displayed.
117      * @param v the list of messages.
118      */
119     public void setMessages(LinkedList  v) {
120   this.messages = v;
121     }
122     
123 
124     /**
125      * Returns the text of the "Continue" link.
126      * @return the text.
127      */
128     public String getContinueText() {return continueText;}
129     
130     /**
131      * Set the text of the "Continue" link.
132      * @param v the text.
133      */
134     public void setContinueText(String  v) {
135   this.continueText = v;
136     }
137     
138 
139 
140     /**
141      * Returns the URL where the "Continue" link points to.
142      * @return the link as <code>String</code>.
143      */
144     public String getContinueURL() {return continueURL;}
145     
146     /**
147      * Set the URL where the "Continue" link points to.
148      * @param v the link as <code>String</code>.
149      */
150     public void setContinueURL(String  v) {
151   this.continueURL = v;
152     }
153     
154 } // TransactionResultForm