KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > forms > BackupForm


1 package org.contineo.forms;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4 import org.apache.struts.action.ActionForm;
5 import org.apache.struts.action.ActionMapping;
6
7 /**
8  * Created on 04.10.2004
9  * @author Michael Scholz
10  */

11 public class BackupForm extends ActionForm{
12     
13     private static final long serialVersionUID = 1L;
14     private boolean enable;
15     private String JavaDoc path;
16
17     /**
18      *
19      */

20     public BackupForm() {
21         enable = true;
22         path = "";
23     }
24
25     /**
26      * @return Returns the enable.
27      * @uml.property name="enable"
28      */

29     public boolean isEnable() {
30         return enable;
31     }
32     
33     /**
34      * @param enable The enable to set.
35      * @uml.property name="enable"
36      */

37     public void setEnable(boolean enable) {
38         this.enable = enable;
39     }
40     
41     /**
42      * @return Returns the path.
43      * @uml.property name="path"
44      */

45     public String JavaDoc getPath() {
46         return path;
47     }
48     
49     /**
50      * @param path The path to set.
51      * @uml.property name="path"
52      */

53     public void setPath(String JavaDoc path) {
54         this.path = path;
55     }
56     
57     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
58         enable = false;
59         path = "";
60     }
61 }
62
Popular Tags