Line | |
---|
1 | package com.medias.megapoli.struts.forms; |
---|
2 | |
---|
3 | import org.apache.struts.validator.ValidatorForm; |
---|
4 | |
---|
5 | /** |
---|
6 | * @author combaz |
---|
7 | * |
---|
8 | * Created on 11 mars 2005 |
---|
9 | */ |
---|
10 | public class DeleteForm extends ValidatorForm { |
---|
11 | /** |
---|
12 | * |
---|
13 | */ |
---|
14 | private static final long serialVersionUID = 1L; |
---|
15 | private String path; |
---|
16 | private String name; |
---|
17 | |
---|
18 | /** |
---|
19 | * @return Returns the name. |
---|
20 | */ |
---|
21 | public String getName() { |
---|
22 | return name; |
---|
23 | } |
---|
24 | /** |
---|
25 | * @param name The name to set. |
---|
26 | */ |
---|
27 | public void setName(String name) { |
---|
28 | this.name = name; |
---|
29 | } |
---|
30 | /** |
---|
31 | * @return Returns the path. |
---|
32 | */ |
---|
33 | public String getPath() { |
---|
34 | return path; |
---|
35 | } |
---|
36 | /** |
---|
37 | * @param path The path to set. |
---|
38 | */ |
---|
39 | public void setPath(String path) { |
---|
40 | this.path = path; |
---|
41 | this.setName(path.substring(path.lastIndexOf("/")+1)); |
---|
42 | } |
---|
43 | |
---|
44 | public void setFieldsToNull() { |
---|
45 | this.setPath(null); |
---|
46 | this.setName(null); |
---|
47 | } |
---|
48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.